:root {
    color-scheme: dark;
    --background: #08090b;
    --surface: #121316;
    --line: rgba(255, 255, 255, 0.1);
    --text: #f5f1e8;
    --muted: #aaa69d;
    --gold: #f1d58f;
}

* {
    box-sizing: border-box;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(ellipse at 50% -20%, rgba(181, 145, 71, 0.16), transparent 44rem),
        var(--background);
    font-family: "Segoe UI", Tahoma, sans-serif;
}

.hidden {
    display: none !important;
}

.watch-page {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    padding-top: 68px;
}

.watch-content {
    display: grid;
    width: min(1280px, 100%);
    flex: 1;
    align-content: center;
    gap: 20px;
    margin: 0 auto;
    padding: clamp(20px, 5vh, 56px) clamp(14px, 4vw, 48px);
}

.watch-heading {
    text-align: center;
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
}

h1 {
    margin: 0;
    font-size: clamp(21px, 3vw, 32px);
    line-height: 1.3;
}

.watch-status {
    min-height: 24px;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.player-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(241, 213, 143, 0.2);
    border-radius: 14px;
    background: #000;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}

mux-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    --media-object-fit: contain;
    --media-object-position: center;
}

.fullscreen-button {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 1;
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    color: #fff;
    background: rgba(0, 0, 0, 0.72);
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.fullscreen-button:hover {
    background: rgba(0, 0, 0, 0.9);
}

.fullscreen-button i {
    font-size: 19px;
    font-style: normal;
}

.watch-notice {
    width: min(680px, 100%);
    justify-self: center;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    background: var(--surface);
    text-align: center;
    line-height: 1.7;
}

.watch-notice a {
    display: inline-flex;
    margin-top: 12px;
    color: var(--gold);
}

.watch-footnote {
    margin: 0;
    color: #77746d;
    font-size: 12px;
    text-align: center;
}

.player-frame:fullscreen {
    display: grid;
    width: 100%;
    height: 100%;
    align-items: center;
    border: 0;
    border-radius: 0;
    background: #000;
}

.player-frame:fullscreen mux-player {
    max-height: 100vh;
}

@media (max-width: 600px) {
    .watch-page {
        padding-top: 58px;
    }

    .watch-content {
        align-content: start;
        gap: 16px;
        padding-top: 34px;
    }

    .player-frame {
        border-radius: 8px;
    }

    .fullscreen-button {
        right: 8px;
        bottom: 8px;
        min-height: 34px;
        padding: 6px 9px;
        font-size: 12px;
    }
}
