html, body { margin: 0; width: 100%; height: 100%; background: #050608; color: #eee; font: 13px -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif; overflow: hidden; }
video { width: 100%; height: 100%; display: block; object-fit: contain; background: #050608; }
button, select { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #edff00; outline-offset: 2px; }
#player-controls { position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; padding: 26px max(12px, env(safe-area-inset-right)) max(4px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); background: linear-gradient(transparent, #000b 40%, #000e); transition: opacity .18s; }
.player-controls-hidden #player-controls { opacity: 0; pointer-events: none; }
.player-controls-hidden video { cursor: none; }
.player-control-row { display: flex; align-items: center; gap: 4px; min-width: 0; }
.player-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #eef0f4; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.player-icon svg { width: 20px; height: 20px; fill: currentColor; pointer-events: none; }
.player-icon:hover, .player-icon:focus-visible { color: #edff00; background: #ffffff12; }
#player-time { margin-left: 7px; color: #e2e4e9; font-variant-numeric: tabular-nums; font-size: 12px; white-space: nowrap; user-select: none; }
.player-control-spacer { flex: 1; min-width: 4px; }
#player-rate { width: 55px; height: 36px; border: 0; border-radius: 5px; background: transparent; color: #e2e4e9; font-size: 12px; text-align: center; }
#player-rate option { background: #171b23; color: #eee; }
#player-seek { display: block; appearance: none; -webkit-appearance: none; width: 100%; height: 18px; margin: 0; padding: 0; background: transparent; cursor: pointer; touch-action: pan-y; --progress: 0%; }
#player-seek::-webkit-slider-runnable-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, #edff00 var(--progress), #ffffff55 var(--progress)); }
#player-seek::-moz-range-track { height: 3px; border-radius: 2px; background: linear-gradient(to right, #edff00 var(--progress), #ffffff55 var(--progress)); }
#player-seek::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 11px; height: 11px; margin-top: -4px; border: 0; border-radius: 50%; background: #edff00; }
#player-seek::-moz-range-thumb { width: 11px; height: 11px; border: 0; border-radius: 50%; background: #edff00; }
#player-seek:disabled { cursor: default; opacity: .45; }
.icon-pause, .icon-muted { display: none; }
.player-is-playing .icon-play, .player-is-muted .icon-volume { display: none; }
.player-is-playing .icon-pause, .player-is-muted .icon-muted { display: block; }
#status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 4; max-width: min(440px, 85%); width: max-content; box-sizing: border-box; background: #141820ee; border: 1px solid #ffffff25; padding: 14px 17px; border-radius: 12px; color: #e9edf4; line-height: 1.8; text-align: center; box-shadow: 0 10px 40px #0005; }
#status:empty { display: none; }
#status span { display: block; }
#status button { display: inline-block; margin: 10px 5px 0; padding: 7px 12px; border: 1px solid #dce900; border-radius: 7px; background: #edff00; color: #151700; font-size: 12px; }
#status button.secondary { background: #272c36; border-color: #434a57; color: #dce2eb; }
@media (max-width: 600px) { #player-controls { padding-left: max(6px, env(safe-area-inset-left)); padding-right: max(6px, env(safe-area-inset-right)); } .player-control-row { gap: 0; } #player-time { margin-left: 3px; font-size: 11px; } #player-rate { width: 49px; font-size: 11px; } #status { padding: 11px 13px; font-size: 11px; max-width: 90%; } }
@media (pointer: coarse) { .player-icon { width: 44px; height: 44px; flex-basis: 44px; } }
@media (prefers-reduced-motion: reduce) { #player-controls { transition: none; } }

@media (max-width: 420px) { #player-pip { display: none; } #player-rate { width: 44px; } #player-time { font-size: 10.5px; } }
