:root {
  --bg: #17120d; --panel: #221a12; --ink: #f4ead9; --muted: #b9a78c; --gold: #f2b544; --line: #3a2c1e; --err: #ff5a4f;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --bg: #f7efe2; --panel: #efe3cf; --ink: #22190f; --muted: #6b5842; --gold: #b7791f; --line: #dccbb0; --err: #c62828; }
}
:root[data-theme="dark"] { --bg: #17120d; --panel: #221a12; --ink: #f4ead9; --muted: #b9a78c; --gold: #f2b544; --line: #3a2c1e; --err: #ff5a4f; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 "Segoe UI", system-ui, sans-serif; }
#app { max-width: 1100px; margin: 0 auto; padding: 16px; }
#head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-bottom: 10px; }
#title { font-size: 22px; font-weight: 700; letter-spacing: 0.2px; }
#sub { color: var(--muted); font-size: 14px; }
#stage { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
#stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
#stage video.hidden { visibility: hidden; }
#fx { position: absolute; inset: 0; width: 100%; height: 100%; cursor: default; }
#fx.hot { cursor: pointer; }
#big-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 86px; height: 86px; border-radius: 50%; border: 2px solid var(--gold); background: rgba(0,0,0,0.55); color: var(--gold); font-size: 34px; cursor: pointer; }
#big-play.hidden, #hint.hidden, #where.hidden, #err.hidden { display: none; }
#hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); padding: 6px 12px; border-radius: 16px; background: rgba(0,0,0,0.55); color: #ffe7b0; font-size: 14px; pointer-events: none; }
#where { position: absolute; left: 12px; top: 10px; padding: 3px 10px; border-radius: 12px; background: rgba(0,0,0,0.5); color: #ffe7b0; font-size: 13px; pointer-events: none; }
#controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
#controls button { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; font: inherit; cursor: pointer; }
#controls button.on { border-color: var(--gold); color: var(--gold); }
#controls button:disabled { opacity: 0.4; cursor: default; }
#lanes { display: flex; gap: 6px; }
#scrub { flex: 1 1 220px; accent-color: var(--gold); }
#time { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 44px; }
#err { margin-top: 10px; padding: 10px 12px; border: 1px solid var(--err); color: var(--err); border-radius: 8px; }
@media (max-width: 600px) { #app { padding: 12px; } #title { font-size: 18px; } }
