:root { color-scheme: dark; font-family: system-ui, sans-serif; background: #080d18; color: #edf1fa; }
* { box-sizing: border-box; }
body { margin: 0; }
#player { height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: #080d18; }
header { padding: 10px 18px; display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
h1 { font-size: 16px; font-weight: 600; margin: 0; }
#scene-title { font-size: 14px; color: #aebbd0; }
#viewport { flex: 1; min-height: 100px; position: relative; overflow: hidden; background: #030610; }
#picture { position: absolute; overflow: hidden; transform-origin: 0 0; visibility: hidden; }
iframe { position: absolute; border: 0; width: 1920px; height: 1080px; pointer-events: none; }
#caption { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); max-width: 90%; width: max-content; margin: 0; padding: 7px 12px; border-radius: 5px; background: #000e; color: white; font-size: clamp(14px, 2vw, 24px); text-align: center; white-space: pre-line; pointer-events: none; }
#status { position: absolute; inset: 0; margin: auto; width: fit-content; height: fit-content; max-width: 90%; padding: 12px 18px; background: #172035ed; border-radius: 8px; text-align: center; }
#status[hidden], #caption[hidden] { display: none; }
#controls { padding: 10px 16px; background: #111a2b; }
.timeline, .buttons { display: flex; gap: 12px; align-items: center; }
.timeline { margin-bottom: 10px; }
.timeline label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#seek { flex: 1; min-width: 50px; }
#time { font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.buttons { flex-wrap: wrap; }
label { display: inline-flex; gap: 7px; align-items: center; font-size: 13px; }
button, select { font: inherit; color: inherit; background: #24324c; border: 1px solid #465874; border-radius: 6px; padding: 8px 10px; min-height: 38px; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
button[aria-pressed="true"] { background: #245e80; border-color: #63c6fb; }
:focus-visible { outline: 2px solid #70d1ff; outline-offset: 3px; }
input { accent-color: #70d1ff; }
#chapter { max-width: min(32vw, 330px); }
#volume { width: 90px; }
#player:fullscreen header { display: none; }
@media (max-width: 600px) {
  header { padding: 8px 10px; gap: 4px; }
  #scene-title { width: 100%; font-size: 12px; }
  #controls { padding: 8px; }
  .buttons { gap: 8px; }
  #chapter { max-width: 170px; }
  button, select { font-size: 13px; padding: 7px; }
  .volume { margin-left: auto; }
}
