:root{color-scheme:dark;--accent:#d6283a;--ink:#fff}
*{box-sizing:border-box}
html,body{width:100%;height:100%;margin:0;padding:0;background:#000;overflow:hidden}
body{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#fff}
[hidden]{display:none!important}
.player{position:fixed;inset:0;width:100%;height:100vh;height:100dvh;background:#000;overflow:hidden;outline:0;touch-action:manipulation}
.player video{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;background:#000}
.play-overlay{position:absolute;inset:0;display:grid;place-items:center;pointer-events:none}
.big-play{pointer-events:auto;width:clamp(76px,10vmin,116px);height:clamp(76px,10vmin,116px);display:grid;place-items:center;border:1px solid #ffffff88;border-radius:50%;background:#0009;color:#fff;cursor:pointer;backdrop-filter:blur(8px);transition:transform .18s,background .18s}
.big-play svg{width:38%;height:38%;margin-left:5%}
.big-play:hover{background:#000d;transform:scale(1.06)}
.big-play:active{transform:scale(.98)}
.loading,.problem{position:absolute;top:calc(50% + 74px);left:50%;transform:translateX(-50%);color:#fff;font-size:13px;text-align:center;background:#000b;padding:8px 14px;border-radius:4px;max-width:min(90vw,450px)}
.problem{color:#fff}
.chrome{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .25s ease,visibility .25s ease}
.player[data-controls-visible="true"] .chrome,.player:has(.chrome :focus-visible) .chrome{opacity:1;visibility:visible;pointer-events:auto}
.chrome-top{display:flex;justify-content:space-between;align-items:flex-start;padding:calc(18px + env(safe-area-inset-top,0px)) calc(22px + env(safe-area-inset-right,0px)) 48px calc(22px + env(safe-area-inset-left,0px));gap:14px;background:linear-gradient(to bottom,#000a,transparent)}
.brand{color:#fff;text-decoration:none;font-weight:850;letter-spacing:-.07em;font-size:clamp(20px,3.5vmin,30px);white-space:nowrap;text-shadow:0 1px 5px #0008}
.brand span{color:#f24c59}
.live-indicator{display:flex;align-items:center;gap:7px;font-size:11px;font-weight:800;letter-spacing:.12em;text-shadow:0 1px 4px #000}
.live-dot{width:8px;height:8px;border-radius:50%;background:var(--accent)}
.controlbar{display:flex;align-items:center;gap:clamp(5px,1.2vw,12px);width:100%;min-height:80px;padding:20px calc(17px + env(safe-area-inset-right,0px)) calc(16px + env(safe-area-inset-bottom,0px)) calc(17px + env(safe-area-inset-left,0px));background:linear-gradient(to top,#000e,#0009 45%,transparent)}
.icon-button{flex:0 0 auto;display:grid;place-items:center;width:40px;height:42px;padding:9px;border:0;border-radius:6px;background:transparent;color:#fff;cursor:pointer}
.icon-button svg{width:23px;height:23px;display:block}
.icon-button:hover,.text-button:hover{background:#ffffff26}
/* This unmute affordance lives inside the controls, which only appear when
   the pointer moves over the video, on touch, or with keyboard focus. */
#sound.needs-unmute{display:flex;align-items:center;justify-content:center;gap:8px;width:auto;min-width:110px;padding-inline:12px;background:#fff;color:#111;font-weight:700;box-shadow:0 3px 16px #0007}
#sound.needs-unmute:hover{background:#f0f0f0}
#sound-label{display:none}
#sound.needs-unmute #sound-label{display:inline;font-size:13px;white-space:nowrap}

#volume{width:clamp(58px,9vw,100px);height:22px;accent-color:#fff;cursor:pointer}
.status{color:#eee;font-size:12px;text-shadow:0 1px 5px #000;white-space:nowrap}
.control-spacer{flex:1}
.text-button{flex:0 0 auto;padding:9px 10px;color:#fff;font-size:12px;font-weight:650;background:transparent;border:0;border-radius:6px;cursor:pointer}
:focus-visible{outline:3px solid #fff;outline-offset:3px}
@media (hover:hover){.player[data-playing="true"][data-controls-visible="false"]{cursor:none}}
@media(max-width:520px){.chrome-top{padding:calc(12px + env(safe-area-inset-top,0px)) calc(14px + env(safe-area-inset-right,0px)) 40px calc(14px + env(safe-area-inset-left,0px))}.controlbar{padding:15px calc(8px + env(safe-area-inset-right,0px)) calc(9px + env(safe-area-inset-bottom,0px)) calc(8px + env(safe-area-inset-left,0px));gap:3px}.icon-button{width:38px;height:38px;padding:8px}#volume{width:52px}.status{font-size:11px}.text-button{font-size:11px;padding:7px}}
@media(max-width:355px){#volume{width:40px}.status{display:none}}
@media(prefers-reduced-motion:reduce){.chrome,.big-play{transition:none}}
dialog{color:#242424;background:#fff;color-scheme:light;border:0;border-radius:8px;width:min(92vw,500px);max-height:88dvh;overflow:auto;box-shadow:0 18px 80px #0009;padding:24px;font:14px/1.55 system-ui,-apple-system,"Segoe UI",sans-serif}
dialog::backdrop{background:#000b}
dialog h2{font-size:21px;line-height:1.2;margin:0 0 12px}
dialog p{margin:12px 0;color:#444}
dialog hr{border:0;border-top:1px solid #ddd;margin:22px 0}
.privacy-actions{display:flex;gap:10px;flex-wrap:wrap}
dialog button{border:1px solid #ccc;background:#f7f7f7;color:#222;padding:10px 13px;border-radius:4px;font:600 13px system-ui,sans-serif;cursor:pointer}
dialog button:hover{background:#eee}
dialog button:focus-visible{outline:3px solid var(--accent)}
dialog .close{margin-top:10px}
.noscript{position:fixed;top:20px;left:20px;background:#111;color:#fff;padding:12px}

/* Six-hour DVR controls live inside the existing hover/touch overlay. */
.dvr{margin-top:auto;width:100%;padding:0 calc(22px + env(safe-area-inset-right,0px)) 0 calc(22px + env(safe-area-inset-left,0px));background:linear-gradient(to top, #000c 0%,#0007 58%, transparent);}
.dvr-labels{display:flex;align-items:center;gap:16px;justify-content:space-between;color:#fff;font-size:12px;font-weight:650;line-height:1.2;text-shadow:0 1px 4px #000b;padding:8px 0 9px}
.seek-time{font-variant-numeric:tabular-nums;min-width:68px;font-weight:800}
.dvr-hint{font-size:11px;color:#ddd;font-weight:500}
.dvr-live-label{font-size:11px;font-weight:850;letter-spacing:.06em}
.seekbar{display:block;width:100%;height:24px;margin:0;accent-color:var(--accent);cursor:pointer;touch-action:none}
.seekbar:focus-visible{outline:2px solid #fff;outline-offset:1px}
.go-live{border:1px solid #ffffff88;white-space:nowrap;font-size:12px;font-weight:750;letter-spacing:.01em}
.go-live.at-live{border-color:transparent;opacity:.7}
.go-live:disabled{cursor:default}
.rewind-button{white-space:nowrap}
@media(max-width:520px){.dvr{padding:0 calc(12px + env(safe-area-inset-right,0px)) 0 calc(12px + env(safe-area-inset-left,0px))}.dvr-hint{display:none}.rewind-button,.go-live{font-size:11px;padding:8px 5px}.status{display:none}}
@media(max-width:380px){#volume{display:none}.rewind-button,.go-live{font-size:10px}}

/* v3.4 — official image replaces text branding. Keep it unobtrusive. */
.brand{display:inline-flex;align-items:center;max-width:min(34vw,235px);max-height:70px}
.brand img{display:block;width:auto;max-width:100%;height:auto;max-height:65px;object-fit:contain;filter:drop-shadow(0 1px 3px #000c)}
/* The mute reminder is separate from hover chrome and expires after 45s. */
.unmute-prompt{position:absolute;left:50%;bottom:clamp(96px,15vh,170px);transform:translateX(-50%) translateY(8px);z-index:4;display:flex;gap:10px;align-items:center;justify-content:center;padding:14px 22px;border:1px solid #fff9;border-radius:999px;background:#fff;color:#181818;font:750 clamp(14px,1.4vw,18px)/1 system-ui,-apple-system,"Segoe UI",sans-serif;box-shadow:0 6px 35px #000b;cursor:pointer;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .45s ease, transform .45s ease, visibility .45s ease}
.unmute-prompt svg{width:22px;height:22px}
.unmute-prompt.visible{opacity:1;visibility:visible;pointer-events:auto;transform:translateX(-50%) translateY(0)}
.unmute-prompt:hover{background:#e9e9e9}
/* A draggable/scrubbable DVR timeline, shown with playback chrome. */
.seekbar{appearance:none;-webkit-appearance:none;height:28px;position:relative;background:transparent;touch-action:pan-y}
.seekbar::-webkit-slider-runnable-track{height:6px;border-radius:9px;background:linear-gradient(to right,var(--accent) 0,var(--accent) var(--seek-progress,100%),#ffffff70 var(--seek-progress,100%),#ffffff70 100%)}
.seekbar::-moz-range-track{height:6px;border-radius:9px;background:#ffffff70}
.seekbar::-moz-range-progress{height:6px;border-radius:9px;background:var(--accent)}
.seekbar::-webkit-slider-thumb{-webkit-appearance:none;width:18px;height:18px;border:2px solid white;background:var(--accent);border-radius:50%;margin-top:-6px;box-shadow:0 2px 7px #0009}
.seekbar::-moz-range-thumb{width:15px;height:15px;border:2px solid white;background:var(--accent);border-radius:50%;box-shadow:0 2px 7px #0009}
.seekbar:disabled{opacity:.4;cursor:not-allowed}
.rewind-button:disabled{opacity:.4;cursor:not-allowed}
.dvr{padding-bottom:4px}
@media(max-width:520px){.brand{max-width:45vw}.brand img{max-height:45px}.unmute-prompt{bottom:130px;padding:12px 19px}}
@media(prefers-reduced-motion:reduce){.unmute-prompt{transition:none}}

/* v3.5 — playback-aware live badge: never show red LIVE while rewound/paused. */
.live-indicator[data-live="false"] .live-dot {background:#a0a0a0}
.live-indicator[data-live="false"] {letter-spacing:.025em;white-space:nowrap}
.dvr-live-label {white-space:nowrap}
