:root{color-scheme:dark;--bg:#100e0b;--line:#33291e;--muted:#9b866a;--ink:#ffe8bb;--accent:#ffd75f;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink)}button,input{font:inherit}button,.file-button{border:1px solid var(--line);background:transparent;color:var(--ink);border-radius:4px;cursor:pointer}button{padding:9px 12px}button:hover,.file-button:hover{border-color:var(--muted);background:#211b13}button:disabled{opacity:.35;cursor:wait}button:focus-visible,a:focus-visible,.file-button:focus-within,input:focus-visible{outline:2px solid var(--accent);outline-offset:4px}[hidden]{display:none!important}#player{width:min(1500px,100%);margin:auto;padding:0 28px;min-height:100dvh;display:flex;flex-direction:column}.masthead{display:flex;align-items:center;justify-content:space-between;min-height:70px;gap:12px}.brand{color:var(--accent);text-decoration:none;font-size:16px;letter-spacing:.1em}.brand span{font-size:10px;color:var(--muted);letter-spacing:.16em}.header-actions{display:flex;gap:8px}.header-actions button{font-size:12px}.stage{position:relative;min-height:250px;flex:1;display:flex;align-items:center;justify-content:center;background:#080706;border:1px solid var(--line);overflow:hidden;height:calc(100dvh - 275px);max-height:850px}#screen{position:absolute;inset:0;display:block;width:100%;height:100%}.loading{position:absolute;inset:0;background:#080706;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;padding:24px}.eyebrow{font-size:10px;letter-spacing:.24em;color:var(--muted)}h1{font-size:clamp(22px,4vw,50px);letter-spacing:-.04em;font-weight:500;color:var(--accent)}.loading p{font-size:12px;color:var(--muted);max-width:42em;line-height:1.8}.transport{padding:18px 0 0}.timeline{display:flex;align-items:center;gap:14px;font-size:11px;color:var(--muted)}input[type=range]{accent-color:var(--accent);cursor:pointer;min-width:0;height:20px}#seek{flex:1}.controls{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-top:12px}.playback,.options{display:flex;align-items:center;gap:8px}.playback button{font-size:12px;min-height:40px}.playback .play{background:var(--accent);border-color:var(--accent);color:#19120a;min-width:105px}.volume{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:8px}.volume input{width:90px}.file-button{padding:10px 12px;font-size:12px;position:relative;overflow:hidden}.file-button input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.chapters{display:grid;grid-template-columns:repeat(5,1fr);margin-top:17px;border-top:1px solid var(--line)}.chapters button{border:0;border-radius:0;padding:12px 6px;font-size:10px;letter-spacing:.08em;color:var(--muted);border-bottom:2px solid transparent}.chapters button span{margin-right:8px;opacity:.5}.chapters button[aria-current=true]{color:var(--accent);border-bottom-color:var(--accent)}#help{border:1px solid var(--line);padding:12px 18px;font-size:12px;line-height:1.8;color:var(--muted)}#help input{width:80px;background:var(--bg);color:var(--ink);border:1px solid var(--line);padding:4px}footer{display:flex;justify-content:space-between;gap:16px;color:var(--muted);font-size:10px;padding:15px 0;line-height:1.6}
@media(max-width:650px){#player{padding:0 12px}.masthead{min-height:56px}.brand span{display:none}.stage{height:calc(100dvh - 290px);min-height:280px}.controls{flex-wrap:wrap;gap:12px}.options{justify-content:space-between;width:100%}.playback{width:100%;justify-content:space-between}.playback .play{flex:1}.chapters button{font-size:8px;padding:12px 1px;letter-spacing:0}.chapters button span{display:block;margin:0 0 5px}footer span:last-child{display:none}}
@media(max-height:550px) and (orientation:landscape){.masthead{min-height:42px}.stage{min-height:150px;height:calc(100dvh - 160px)}.transport{padding-top:8px}.controls{margin-top:5px}.chapters{margin-top:6px}.chapters button{padding:6px}.playback button{min-height:30px;padding:5px 12px}footer{padding:6px 0;font-size:9px}}
.stage:focus{outline:none}
.stage:fullscreen{width:100vw;height:100dvh;max-height:none;min-height:0;flex:none;border:0}
body.embedded{--bg:#1f2937;--line:#374151;--muted:#9ca3af;--ink:#f3f4f6;--accent:#94a3b8;--button-ink:#0f172a;color-scheme:dark;font-family:ui-sans-serif,system-ui,sans-serif}
body.embedded[data-appearance=light]{color-scheme:light}
body.embedded #player{width:100%;min-height:100dvh;height:100dvh;padding:16px}
body.embedded .masthead,body.embedded footer{display:none}
body.embedded .stage{height:auto;max-height:none;min-height:220px;border-color:var(--line);border-radius:8px}
body.embedded .playback .play{color:var(--button-ink)}
body.embedded .controls{flex-wrap:wrap;gap:10px}
body.embedded .options{flex-wrap:wrap}
body.embedded .options button{font-size:12px}
body.embedded button,body.embedded .file-button{border-radius:6px}
body.embedded .chapters button{border-radius:0}
body.embedded .chapters{margin-top:12px}
body.embedded button:hover,body.embedded .file-button:hover{background:color-mix(in srgb,var(--ink) 8%,var(--bg));border-color:var(--muted)}
body.embedded .playback .play:hover{background:var(--accent)}
body.embedded #help{margin-top:10px;font-size:11px}
body.embedded .stage:fullscreen{border-radius:0;min-height:0;height:100dvh}
@media(max-width:650px){body.embedded #player{padding:10px}body.embedded .options{gap:6px}body.embedded .volume input{width:65px}body.embedded .file-button,body.embedded .options button{padding:8px;font-size:11px}}
