@font-face{font-family:TinyBaby;src:url('./tinybaby.otf') format('opentype');font-display:swap}*{box-sizing:border-box} :root{color-scheme:dark;--bg:#040b17;--panel:#071426;--line:#1c405d;--accent:#b4acff;--muted:#a0abc1;--cyan:#3fc3f1}body{margin:0;background:var(--bg);color:#fff;font:16px TinyBaby,monospace;line-height:1.5;padding:24px 32px}button,input{font:inherit}button{border:1px solid var(--line);background:#091a2e;color:var(--accent);padding:10px 14px;cursor:pointer}button:hover,button.active,button[aria-pressed=true]{border-color:var(--accent);background:#10344e}button:disabled{opacity:.4;cursor:default}:focus-visible{outline:2px solid var(--cyan);outline-offset:4px}input[type=search]{border:1px solid var(--line);background:var(--panel);padding:13px;color:#fff;width:100%;border-radius:0}input[type=range]{accent-color:var(--accent);cursor:pointer;min-width:0}header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:20px;gap:20px}.brand{font-size:24px;text-decoration:none;color:white;white-space:nowrap}.brand>span:first-child{color:var(--accent)}.tag{font-size:12px;color:var(--muted);display:block;letter-spacing:2px;margin-top:3px}.header-right{display:flex;gap:24px;align-items:center;font-size:12px;color:var(--muted)}main{display:grid;grid-template-columns:270px minmax(0,1fr);max-width:1600px;margin:auto;min-height:calc(100vh - 160px)}aside{padding:26px 24px 20px 0;border-right:1px solid var(--line);display:flex;flex-direction:column;gap:16px}.section-label{color:var(--muted);font-size:12px;letter-spacing:1px}aside .section-label{display:flex;justify-content:space-between}.library-actions{display:flex;gap:8px}.library-actions button{font-size:12px;flex:1;padding:10px 4px}#tracks{flex:1;max-height:480px;overflow:auto}.track{display:block;width:100%;text-align:left;margin-bottom:8px;padding:14px 12px;overflow-wrap:anywhere}.track small{display:block;color:var(--muted);font-size:12px;margin-top:6px}.track.active{border-left:3px solid var(--cyan)}.empty{border:1px dashed var(--line);padding:24px 16px;color:var(--muted);font-size:14px}.side-bottom{font-size:10px;color:var(--cyan);margin-top:30px}.side-bottom p{color:var(--muted);font-size:14px}.side-bottom small{color:var(--muted);line-height:2}.dot{display:inline-block;width:6px;height:6px;background:var(--cyan);margin-right:6px}.room{padding:26px 0 20px 28px}.room-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}h1{font-size:32px;line-height:1.3;font-weight:400;margin:12px 0 22px}h1 span{color:var(--accent)}.live{font-size:12px;color:var(--cyan);white-space:nowrap}.stage{position:relative;height:350px;border:1px solid var(--line);background:radial-gradient(ellipse at 50% 50%,#112e43 0,#071426 65%);overflow:hidden}.stage-top,.stage-bottom{position:absolute;left:20px;right:20px;display:flex;justify-content:space-between;gap:14px;font-size:10px;color:var(--muted);z-index:1;pointer-events:none}.stage-top{top:18px}.stage-top span:first-child{color:var(--accent)}.stage-bottom{bottom:18px}#scene{position:absolute;inset:0}#scene canvas{display:block;width:100%;height:100%}.stage-corner{position:absolute;width:12px;height:12px;border-color:var(--accent);border-style:solid;pointer-events:none}.tl{top:0;left:0;border-width:2px 0 0 2px}.br{bottom:0;right:0;border-width:0 2px 2px 0}.stage-controls{display:flex;justify-content:space-between;align-items:center;margin-top:12px;gap:12px}.modes{display:flex;gap:8px}.modes button{font-size:12px;padding:8px 12px}.motion{font-size:12px;color:var(--muted);white-space:nowrap}.now{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-top:26px}h2{font-size:20px;font-weight:400;margin:8px 0;overflow-wrap:anywhere}.now p{font-size:12px;color:var(--muted);margin:0}.now>div{min-width:0}#spectrum{width:180px;height:48px}.timeline{display:flex;align-items:center;gap:12px;margin:20px 0 16px;font-size:12px;color:var(--muted)}#seek{flex:1}.transport,.play-controls,.options{display:flex;align-items:center;gap:8px}.transport{justify-content:space-between;flex-wrap:wrap;gap:16px}.primary{background:var(--accent);color:#071426;border-color:var(--accent);min-width:100px}.options{font-size:12px;gap:12px}.options button{padding:8px}#volume{width:90px}footer{border-top:1px solid var(--line);padding-top:16px;display:flex;justify-content:space-between;gap:16px;font-size:10px;color:var(--accent)}.muted,#notice{color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}body.dragging .stage{border:2px dashed var(--accent)}@media(min-width:1500px){.stage{height:440px}}@media(max-width:850px){body{padding:18px}main{grid-template-columns:210px minmax(0,1fr)}aside{padding-right:16px}.room{padding-left:18px}.header-right>span{display:none}.room-heading{align-items:flex-start}.live{margin-top:5px;font-size:10px}h1{font-size:24px}.stage{height:320px}#spectrum{width:100px}.modes{gap:4px}.modes button{padding:8px;font-size:10px}.stage-bottom span:last-child{display:none}}@media(max-width:620px){main{display:flex;flex-direction:column}aside{border-right:0;border-bottom:1px solid var(--line);padding:20px 0}#tracks{max-height:180px}.side-bottom{display:none}.room{padding:24px 0}.stage{height:320px}.brand{font-size:20px}.tag{font-size:10px}.options{gap:8px}.stage-controls{align-items:flex-start}.now{gap:8px}footer{flex-direction:column}.room-heading{gap:5px}.live{font-size:8px}h2{font-size:18px}}
/* The interface steps out of the way while listening. */
header,aside,.room-heading,.stage-controls,.now,.timeline,.transport,footer,.stage-top,.stage-bottom,.stage-corner{transition:opacity .45s ease}
body.immersive{cursor:none;overflow:hidden}
body.immersive header,body.immersive aside,body.immersive .room-heading,body.immersive .stage-controls,body.immersive .now,body.immersive .timeline,body.immersive .transport,body.immersive footer,body.immersive .stage-top,body.immersive .stage-bottom,body.immersive .stage-corner{opacity:0;pointer-events:none}
body.immersive .stage{position:fixed;inset:0;width:100vw;height:100vh;border:0;z-index:10;cursor:none}
@media(prefers-reduced-motion:reduce){header,aside,.room-heading,.stage-controls,.now,.timeline,.transport,footer,.stage-top,.stage-bottom,.stage-corner{transition:none}}
.modes{flex-wrap:wrap}.stage-controls{align-items:flex-start}
.character-picker{display:flex;align-items:center;gap:14px;margin-top:14px;font-size:12px;transition:opacity .45s ease}.character-picker label{color:var(--muted);white-space:nowrap}.character-picker select{font:inherit;color:var(--accent);background:#091a2e;border:1px solid var(--line);padding:10px 12px;min-width:0;max-width:100%;flex:1;cursor:pointer}body.immersive .character-picker{opacity:0;pointer-events:none}@media(prefers-reduced-motion:reduce){.character-picker{transition:none}}
.show-options{display:flex;flex-wrap:wrap;gap:12px 20px;padding:16px 0 4px;font-size:12px;color:var(--muted);transition:opacity .45s ease}.show-options label{display:flex;align-items:center;gap:8px}.show-options select{font:inherit;background:#091a2e;color:var(--accent);border:1px solid var(--line);padding:8px;max-width:100%;cursor:pointer}.show-options .toggle{color:var(--accent)}body.immersive .show-options{opacity:0;pointer-events:none}#effects-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}#scene{z-index:1}.stage-top,.stage-bottom,.stage-corner{z-index:2}@media(prefers-reduced-motion:reduce){.show-options{transition:none}}
/* Playback mode state must remain distinct from hover and keyboard focus. */
#shuffle[aria-pressed="true"],#repeat[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:#071426}
#shuffle[aria-pressed="false"],#repeat[aria-pressed="false"]{background:#091a2e;border-color:var(--line);color:var(--muted)}
#shuffle[aria-pressed="false"]:hover,#repeat[aria-pressed="false"]:hover{background:#10344e;border-color:var(--cyan);color:#fff}
#shuffle::after,#repeat::after{content:' / OFF';font-size:10px}
#shuffle[aria-pressed="true"]::after,#repeat[aria-pressed="true"]::after{content:' / ON'}
.options{flex-wrap:wrap}
#music-folder{font:inherit;font-size:14px;width:100%;min-width:0;background:#091a2e;color:var(--accent);border:1px solid var(--line);padding:12px;cursor:pointer}#station-name{color:var(--accent);overflow-wrap:anywhere}
.anime-dancer{position:fixed;bottom:16px;width:clamp(110px,17vw,320px);height:auto;max-height:55vh;object-fit:contain;object-position:bottom;z-index:12;pointer-events:none;user-select:none}.anime-dancer[hidden]{display:none}.dancer-left{left:10px}.dancer-right{right:10px;transform:scaleX(-1)}#dancer-file{max-width:240px}#rescan-dancers{font-size:12px;padding:8px}@media(max-width:700px){.anime-dancer{width:23vw;max-height:32vh;bottom:8px}.dancer-left{left:0}.dancer-right{right:0}}body:not(.immersive) .anime-dancer{max-height:35vh;width:clamp(90px,12vw,220px)}
/* Lift dancers above the footer in the normal interface only. */
body:not(.immersive):not(:fullscreen) .anime-dancer{bottom:clamp(64px,8vh,110px)}
:root{--picture-opacity:.5}.side-picture{position:fixed;width:clamp(110px,17vw,320px);height:auto;max-height:28vh;object-fit:contain;opacity:var(--picture-opacity);z-index:11;pointer-events:none;user-select:none}.side-picture[hidden]{display:none}.picture-left{left:10px}.picture-right{right:10px}body:not(.immersive) .side-picture{width:clamp(90px,12vw,220px)}#picture-opacity{width:80px}#picture-opacity-value{min-width:36px}#rescan-pictures{font-size:12px;padding:8px}@media(max-width:700px){.side-picture{width:23vw}.picture-left{left:0}.picture-right{right:0}}

/* Larger, clearer side pictures in normal and immersive views. */
:root{--picture-opacity:.8}.side-picture{width:clamp(180px,25vw,460px);max-height:48vh}body:not(.immersive) .side-picture{width:clamp(160px,22vw,400px)}@media(max-width:700px){.side-picture,body:not(.immersive) .side-picture{width:30vw}}

/* Large side artwork, constrained to the space above each dancer. */
.side-picture{width:clamp(240px,34vw,720px);max-height:68vh}body:not(.immersive) .side-picture{width:clamp(220px,30vw,600px)}@media(max-width:700px){.side-picture,body:not(.immersive) .side-picture{width:40vw}}

/* Pictures are background artwork, below all player content and dancers. */
:root{--picture-opacity:.4}
body{isolation:isolate}
.side-picture{z-index:0}
header,footer{position:relative;z-index:2}
main{position:relative;z-index:1}
body.immersive{background:radial-gradient(ellipse at 50% 50%,#112e43 0,#071426 65%)}
body.immersive .stage{background:transparent}
/* Crop side artwork into tall ovals without changing the source images. */
.side-picture{aspect-ratio:2 / 3;height:auto;object-fit:cover;object-position:center;clip-path:ellipse(50% 50% at 50% 50%);border-radius:50%}

.side-picture{width:min(clamp(240px,34vw,720px),calc(var(--picture-room,68vh) * 2 / 3))}body:not(.immersive) .side-picture{width:min(clamp(220px,30vw,600px),calc(var(--picture-room,68vh) * 2 / 3))}@media(max-width:700px){.side-picture,body:not(.immersive) .side-picture{width:min(40vw,calc(var(--picture-room,68vh) * 2 / 3))}}
/* In the immersive view, artwork sits above the grid instead of behind it. */
body.immersive .side-picture{z-index:11}
/* Browser fullscreen keeps the grid below pictures and controls above them. */
:root:fullscreen body main{z-index:auto}:root:fullscreen body .stage{z-index:10}:root:fullscreen body .side-picture{z-index:11}:root:fullscreen body header,:root:fullscreen body footer,:root:fullscreen body aside,:root:fullscreen body .room-heading,:root:fullscreen body .character-picker,:root:fullscreen body .stage-controls,:root:fullscreen body .show-options,:root:fullscreen body .now,:root:fullscreen body .timeline,:root:fullscreen body .transport{position:relative;z-index:13}

#chapters-panel{position:relative;z-index:13;margin:16px 0;padding:12px;border:1px solid #25455c;background:#081828}#chapters-panel[hidden]{display:none}#chapters-panel summary{cursor:pointer;color:#b7acff}#chapters{max-height:260px;overflow:auto;display:grid;gap:5px}#chapters button{text-align:left;padding:8px}#chapters button[aria-current="true"]{background:#b7acff;color:#081828}#chapter-current{color:#65d9ff}body.immersive #chapters-panel{visibility:hidden}

#fullscreen-song{display:none;position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:30;max-width:80vw;padding:10px 18px;background:rgba(5,15,28,.82);color:#d4ceff;text-align:center;font-size:clamp(16px,2vw,26px);pointer-events:none;text-shadow:0 2px 4px #000}body.immersive #fullscreen-song:not([hidden]),:root:fullscreen body #fullscreen-song:not([hidden]){display:block}

#fullscreen-controls{display:none;position:fixed;bottom:90px;left:50%;transform:translateX(-50%);z-index:31;gap:12px;padding:8px;background:rgba(5,15,28,.85);max-width:95vw}#fullscreen-controls button{min-height:44px;white-space:nowrap}:root:fullscreen body:not(.immersive) #fullscreen-controls{display:flex}:root:fullscreen body:not(.immersive) #fullscreen-song{max-height:none;overflow:visible}

#fullscreen-song{box-sizing:border-box;overflow-wrap:anywhere;line-height:1.5;max-height:none;overflow:visible}
