/* Base Page Styles */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    background-color: #f4f6f8;
}

/* Header */
.header-container {
    text-align: center;
    padding: 15px 0;
    background: #ffffff;
    border-bottom: 1px solid #e0e0e0;
}

.header-logo {
    width: 100%;
    max-width: 900px;
    height: auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Layout Containers */
.player-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    /* 10% outer viewport margin */
    padding: 5vh 10vw;
    width: 100vw;
}

.player-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-frame {
    width: min(100%, calc(75vh * 16 / 9));
    aspect-ratio: 16 / 9;
    margin: 0 auto;
    background: #000000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Both the <mux-player> pages and any legacy <iframe> embed fill the frame. */
.video-frame iframe,
.video-frame mux-player {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* Authentication Box */
.login-box {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 350px;
    width: 100%;
    border: 1px solid #e0e0e0;
}

.login-box h2 {
    margin-top: 0;
    color: #333333;
}

.login-box p {
    color: #666666;
    font-size: 14px;
    margin-bottom: 20px;
}

.login-box input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.2s ease;
}

.login-box input[type="password"]:focus {
    outline: none;
    border-color: #0072CE;
}

.login-box button {
    background: #002B49;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s ease;
}

.login-box button:hover {
    background: #001e33;
}

/* Utility Styles */
.error-message {
    color: #c62828;
    background: #ffebee;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
    border: 1px solid #ffcdd2;
}

.logout-bar {
    text-align: right;
    padding-bottom: 8px;
}

.logout-btn {
    background: none;
    border: none;
    color: #0072CE;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
}

.logout-btn:hover {
    text-decoration: underline;
    color: #002B49;
}

.footer {
    text-align: center;
    padding: 15px;
    background: #ffffff;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    color: #666666;
}

.hidden {
    display: none !important;
}
