:root { color-scheme: dark; font-family: Arial, Helvetica, sans-serif; background: #09172f; color: #fff; }
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
[hidden] { display: none !important; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; cursor: pointer; }
.player { position: relative; width: 100%; height: 100%; overflow: hidden; background: #09172f; isolation: isolate; }
video { display: block; width: 100%; height: 100%; object-fit: contain; }
.start { position: absolute; inset: 0; width: 80px; height: 80px; margin: auto; border: 2px solid #fff; border-radius: 50%; background: #0169eb; box-shadow: 0 4px 28px #00133766; display: grid; place-items: center; }
.start svg { width: 36px; height: 36px; margin-left: 3px; fill: currentColor; }
.start:hover { background: #0058c6; }
.controls { position: absolute; inset: auto 0 0; padding: 0 8px 8px; background: linear-gradient(transparent, #071429ed 24%); }
.seek { display: block; width: calc(100% - 12px); height: 44px; margin: 12px 6px 0; padding: 0; background: transparent; cursor: pointer; appearance: none; -webkit-appearance: none; }
.seek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, #8cc5ff 0 var(--progress, 0%), #ffffff66 var(--progress, 0%) 100%); }
.seek::-moz-range-track { height: 4px; border-radius: 2px; background: #ffffff66; }
.seek::-moz-range-progress { height: 4px; border-radius: 2px; background: #8cc5ff; }
.seek::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border: 0; border-radius: 50%; background: #fff; }
.seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.seek:disabled { opacity: 0.5; cursor: default; }
.control-row { display: flex; align-items: center; justify-content: space-between; gap: 0; }
.control-row button { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; border: 0; padding: 0; border-radius: 6px; background: transparent; }
.control-row button:hover { background: #ffffff1a; }
.control-row svg { width: 22px; height: 22px; fill: currentColor; }
.time { position: absolute; top: 5px; right: 14px; white-space: nowrap; font-size: 11px; font-variant-numeric: tabular-nums; }
.cc { padding: 1px 2px; border: 1.5px solid currentColor; border-radius: 3px; font-size: 11px; font-weight: 700; line-height: 1.1; }
#captions-toggle[aria-pressed="true"] { color: #a7d1ff; }
#captions-toggle[aria-pressed="true"] .cc { border-bottom-width: 3px; }
.icon-pause, .icon-replay, .sound-off, .icon-collapse { display: none; }
[data-state="playing"] .icon-play, [data-state="ended"] .icon-play { display: none; }
[data-state="playing"] .icon-pause, [data-state="ended"] .icon-replay { display: block; }
[data-muted="true"] .sound-on, [data-fullscreen="true"] .icon-expand { display: none; }
[data-muted="true"] .sound-off, [data-fullscreen="true"] .icon-collapse { display: block; }
.captions { position: absolute; inset: auto 10px 120px; width: fit-content; max-width: calc(100% - 20px); margin: 0 auto; padding: 5px 7px; border-radius: 3px; background: #050b15d9; color: #fff; font-size: clamp(12px, 4.4vw, 17px); line-height: 1.35; text-align: center; white-space: pre-line; pointer-events: none; }
.status { position: absolute; top: 16px; left: 12px; right: 12px; margin: 0; padding: 10px 12px; border-radius: 8px; background: #071429ed; color: #fff; font-size: 13px; line-height: 1.45; text-align: center; }
.status a { display: block; width: fit-content; min-height: 44px; margin: 4px auto -4px; padding: 12px 4px; color: #a7d1ff; text-underline-offset: 3px; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid #a7d1ff; outline-offset: 2px; }
.start:focus-visible { outline-offset: 6px; }
.player:fullscreen { width: 100%; height: 100%; }
.player:fullscreen .controls { max-width: 560px; margin-inline: auto; }
.player:fullscreen .captions { max-width: min(90%, 600px); font-size: clamp(16px, 3vw, 24px); }
@media (prefers-reduced-motion: no-preference) { .start { transition: background-color 150ms linear, transform 150ms linear; } .start:hover { transform: scale(1.04); } }
