:root{color-scheme:light;--text:#24465b;--muted:#58758a;--gold:#a17c2c;--line:#a8bdcc7a;--glass:#f5fbfff0}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{color:var(--text);background:#a8d2e8;font:14px/1.45 system-ui,-apple-system,"Segoe UI",sans-serif}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #437dc1;outline-offset:3px}a{color:inherit;text-decoration:none}button{color:var(--text)}
.radio-world,.sphere-stage{position:fixed;inset:0;width:100%;height:100%;height:100dvh}.sphere-stage{isolation:isolate;overflow:hidden}.scene-art{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 50%;pointer-events:none}.sphere-stage:after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(#13374f12,transparent 16%,transparent 72%,#17354c25)}
#music-sky{position:absolute;left:50%;top:47%;transform:translate(-50%,-50%);width:min(72vh,64vw,680px);height:min(72vh,64vw,680px);pointer-events:none;z-index:1}
.sky-header{position:absolute;inset:max(18px,env(safe-area-inset-top)) max(24px,env(safe-area-inset-right)) auto max(24px,env(safe-area-inset-left));display:flex;justify-content:space-between;align-items:flex-start;gap:16px;pointer-events:none}.brand,.live{pointer-events:auto;background:#f4faffd9;border:1px solid #ffffff80;box-shadow:0 3px 16px #173c5110}.brand{font:25px/1.15 Georgia,serif;border-radius:14px;padding:12px 18px}.brand small{display:block;font:9px/1.5 system-ui;letter-spacing:2px;margin-top:4px;color:var(--muted)}.live{display:flex;align-items:center;gap:7px;border-radius:22px;padding:8px 12px;font-size:10px;max-width:170px}.live i,.visual-note i{flex:none;width:6px;height:6px;border-radius:50%;background:#8399a4}body.station-playing .live i,body.is-playing .visual-note i{background:var(--gold)}
.player{position:absolute;bottom:max(16px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(880px,calc(100% - 40px));padding:14px 20px 10px;background:var(--glass);border:1px solid #ffffffd9;border-radius:22px;box-shadow:0 10px 36px #12324b33}.dock-main{display:flex;align-items:center;gap:20px;min-width:0}.play-button{display:flex;align-items:center;justify-content:center;gap:9px;flex:none;min-width:142px;min-height:48px;border:1px solid #d7b86e;border-radius:28px;background:#dfedf9;font-size:12px;font-weight:600}.play-button:hover{background:#f7fcff}#play-icon{font-size:15px}.track-info{flex:1;min-width:0}.eyebrow{display:block;font-size:8px;letter-spacing:1.6px;color:var(--gold);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}h1{font:normal 23px/1.2 Georgia,serif;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin:4px 0 2px}.artist{margin:0;font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dock-menu{display:flex;gap:7px;flex:none}.dock-menu button{display:flex;align-items:center;gap:6px;border:1px solid var(--line);background:#ffffffa8;padding:9px 10px;border-radius:18px;font-size:10px;min-height:40px}.dock-menu button>span:first-child{font-size:19px;line-height:1}.dock-menu button:hover{background:#fff}.timeline{display:flex;align-items:center;gap:9px;margin-top:10px;color:var(--muted);font-size:9px;font-variant-numeric:tabular-nums}.timeline span{min-width:27px}.timeline span:last-child{text-align:right}progress{display:block;appearance:none;border:0;flex:1;min-width:0;width:100%;height:3px;border-radius:3px;background:#b8cbd8;overflow:hidden}progress::-webkit-progress-bar{background:#b8cbd8}progress::-webkit-progress-value{background:#6c9aad}progress::-moz-progress-bar{background:#6c9aad}.message{font-size:10px;color:var(--muted);line-height:1.3;margin:6px 0 0;height:1.3em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center}
.floating-panel{position:fixed;inset:auto max(20px,env(safe-area-inset-right)) max(164px,calc(env(safe-area-inset-bottom) + 148px)) auto;margin:0;width:min(390px,calc(100vw - 32px));max-height:min(68dvh,620px);padding:0;border:1px solid #fff;border-radius:20px;background:#f5fbfff5;color:var(--text);box-shadow:0 14px 60px #17394b40;overflow:hidden}.floating-panel[open]{display:flex;flex-direction:column}.floating-panel::backdrop{background:#13324714}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;padding:15px 18px;border-bottom:1px solid var(--line)}h2{font:normal 22px/1.2 Georgia,serif;margin:0}.close-button{font-size:25px;line-height:1;width:34px;height:34px;border:1px solid var(--line);border-radius:50%;background:#ffffffac;flex:none}.panel-body{overflow:auto;overscroll-behavior:contain;min-height:0;padding:4px 18px 16px;scrollbar-width:thin}.history{list-style:none;margin:0;padding:0}.history li{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.history .number{font:12px Georgia;color:var(--gold);flex:none;width:20px}.history .song{display:flex;flex-direction:column;min-width:0;gap:2px}.history strong{font-size:13px;font-weight:500;overflow-wrap:anywhere}.history small,.history .length{font-size:11px;color:var(--muted)}.history .length{margin-left:auto;flex:none}.history .empty{font-size:12px;color:var(--muted)}.settings-content{padding-top:18px;font-size:12px}.volume-control{display:flex;gap:12px;align-items:center;margin:9px 0 22px}.volume-control button{border:0;background:none;font-size:23px;width:30px;padding:0;flex:none}.volume-control input{flex:1;min-width:35px;accent-color:var(--gold)}.volume-control output{width:34px;text-align:right;color:var(--muted);font-size:11px}.visual-setting{display:flex;justify-content:space-between;align-items:center;gap:12px}.visual-setting button{border:1px solid #c5ad76;border-radius:18px;background:#e0eef9;padding:8px 11px;font-size:11px}.visual-setting button[aria-pressed=false]{background:#eef3f5;color:var(--muted)}.visual-note{display:flex;gap:7px;align-items:center;color:var(--muted);font-size:10px;margin:10px 0 20px}.meta{display:flex;flex-wrap:wrap;gap:8px;color:var(--muted);font-size:11px}.meta span:empty{display:none}.technical{display:flex;justify-content:space-between;gap:14px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}.playlist-link{display:inline-block;color:#446e8a;margin-top:18px;font-size:12px}
@media(max-width:650px){.sky-header{inset:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) auto max(12px,env(safe-area-inset-left));gap:8px}.brand{font-size:21px;padding:10px 12px;border-radius:12px}.brand small{font-size:7px;letter-spacing:1.4px}.live{font-size:9px;padding:7px 9px;max-width:132px}#music-sky{top:43%;width:min(90vw,60vh);height:min(90vw,60vh)}.player{width:calc(100% - 24px);bottom:max(12px,env(safe-area-inset-bottom));padding:12px 13px 9px;border-radius:18px}.dock-main{gap:11px}.play-button{min-width:46px;width:46px;height:46px;min-height:46px;padding:0}#play-label,.menu-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}.dock-menu{gap:4px}.dock-menu button{width:34px;min-height:36px;justify-content:center;padding:4px}.eyebrow{font-size:7px;letter-spacing:1px}h1{font-size:19px}.artist{font-size:10px}.message{font-size:9px}.timeline{margin-top:9px}.floating-panel{right:12px;bottom:max(150px,calc(env(safe-area-inset-bottom) + 136px));max-height:calc(100dvh - 174px);width:min(390px,calc(100vw - 24px))}}
@media(max-height:500px) and (orientation:landscape){.sky-header{inset:8px max(14px,env(safe-area-inset-right)) auto max(14px,env(safe-area-inset-left))}.brand{font-size:18px;padding:7px 11px}.brand small{display:none}.live{font-size:9px;padding:5px 9px}#music-sky{top:43%;width:72vh;height:72vh}.player{bottom:max(8px,env(safe-area-inset-bottom));padding:8px 15px 6px;max-width:760px}.dock-main{gap:12px}.play-button{min-height:38px;height:38px}h1{font-size:19px;margin:1px 0}.eyebrow{display:none}.timeline{margin-top:5px}.message{margin-top:3px;font-size:9px}.floating-panel{bottom:max(112px,calc(env(safe-area-inset-bottom) + 104px));max-height:calc(100dvh - 128px)}.panel-header{padding:8px 14px}h2{font-size:19px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important}}

/* UI3: reveal the scene through the dock while retaining dark text contrast. */
.player{--glass:#f5fbffc9;--muted:#36546a;--gold:#6b4a10}
/* Separate approved portrait artwork can be connected later. Empty slot is transparent. */
:root{--portrait-scene-image:none}
.portrait-art{display:none;position:absolute;inset:0;pointer-events:none;background-image:var(--portrait-scene-image);background-size:cover;background-position:center}
@media(max-width:650px) and (orientation:portrait){.portrait-art{display:block}}

/* Mobile art-direction and touch UI. Both variants share one audio element/context. */
:root{--radio-safe-top:env(safe-area-inset-top,0px);--radio-safe-bottom:env(safe-area-inset-bottom,0px);--radio-safe-left:env(safe-area-inset-left,0px);--radio-safe-right:env(safe-area-inset-right,0px)}
.scene-picture{position:absolute;inset:0;display:block}
@media(max-width:820px) and (orientation:portrait){
 .sky-header{inset:max(8px,var(--radio-safe-top)) max(10px,var(--radio-safe-right)) auto max(10px,var(--radio-safe-left));align-items:center;gap:8px}
 .brand{font-size:18px;line-height:1.2;padding:8px 10px;border-radius:12px;max-width:calc(100% - 112px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.brand small{display:none}
 .live{font-size:8px;padding:7px 9px;max-width:112px;white-space:nowrap;overflow:hidden}.live span{overflow:hidden;text-overflow:ellipsis}
 .player{bottom:max(4px,var(--radio-safe-bottom));left:calc((100% + max(6px,var(--radio-safe-left)) - max(6px,var(--radio-safe-right))) / 2);width:calc(100% - max(6px,var(--radio-safe-left)) - max(6px,var(--radio-safe-right)));padding:6px 8px;border-radius:16px}
 .dock-main{gap:8px}.play-button{width:44px;min-width:44px;height:44px;min-height:44px}.track-info{min-width:0}.track-info .eyebrow{display:none}h1{font-size:16px;margin:1px 0 2px}.artist{font-size:10px}
 .dock-menu{gap:4px}.dock-menu button{width:44px;height:44px;min-height:44px;padding:4px;justify-content:center}.dock-menu button>span:first-child{font-size:21px}
 #play-label,.menu-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;clip-path:inset(50%);overflow:hidden;white-space:nowrap}
 .timeline{position:absolute;left:16px;right:16px;top:0;transform:translateY(-50%);margin:0;gap:0;line-height:0}.timeline progress{height:2px}.timeline span{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
 .player .message{position:absolute;bottom:calc(100% + 7px);left:50%;transform:translateX(-50%);margin:0;padding:4px 8px;width:max-content;max-width:calc(100vw - 24px);height:auto;border:1px solid #ffffffb8;border-radius:12px;background:#f5fbffe3;font-size:9px}
 body.is-playing .player .message{width:1px;height:1px;padding:0;border:0;clip-path:inset(50%);overflow:hidden}
 .floating-panel{right:max(6px,var(--radio-safe-right));bottom:calc(max(4px,var(--radio-safe-bottom)) + 70px);width:min(390px,calc(100vw - max(6px,var(--radio-safe-left)) - max(6px,var(--radio-safe-right))));max-height:calc(100dvh - max(4px,var(--radio-safe-bottom)) - max(8px,var(--radio-safe-top)) - 82px)}
 .panel-header{padding:10px 14px}h2{font-size:20px}.close-button{width:44px;height:44px}.panel-body{padding-left:14px;padding-right:14px}
 /* Cover mapping for1080x1920: quiet center(540,650),outer radius~245 source pixels. */
 body.portrait-ready #music-sky{--mobile-art-height:max(100dvh,calc(100vw * 16 / 9));left:50%;top:calc(50dvh - var(--mobile-art-height) * .1614583333);width:calc(var(--mobile-art-height) * .32);height:calc(var(--mobile-art-height) * .32)}
}
@media(max-width:950px) and (max-height:500px) and (orientation:landscape){
 .sky-header{top:max(6px,var(--radio-safe-top));left:max(10px,var(--radio-safe-left));right:max(10px,var(--radio-safe-right))}
 .player{bottom:max(5px,var(--radio-safe-bottom));left:calc((100% + max(10px,var(--radio-safe-left)) - max(10px,var(--radio-safe-right))) / 2);width:calc(100% - max(10px,var(--radio-safe-left)) - max(10px,var(--radio-safe-right)))}
 .floating-panel{right:max(10px,var(--radio-safe-right));bottom:calc(max(5px,var(--radio-safe-bottom)) + 104px);max-height:calc(100dvh - max(5px,var(--radio-safe-bottom)) - max(6px,var(--radio-safe-top)) - 114px)}
}

/* UI sky palette: exact requested cyan for meters, pale gold for decoration.
   Text uses darker shades on translucent panels to retain reading contrast. */
:root{--text:#163e59;--muted:#34596f;--gold:#fff0b3;--gold-ink:#80621b;--line:#72b9df99;--accent:#00aaff}
button:focus-visible,a:focus-visible,input:focus-visible{outline-color:#006b9f}
.brand,.live{background:#eff9ffed}
.player{--muted:#2d566f;--gold:#fff0b3;--gold-ink:#6b4a10}
.play-button,.visual-setting button{background:#d9f2ff;border-color:var(--gold)}
.play-button:hover{background:#effaff}
.dock-menu button:hover,.close-button:hover{background:#e3f5ff}
.eyebrow{color:#80621b;font-size:10px;font-weight:600;letter-spacing:1.3px;text-shadow:none}
.history .number{color:var(--gold-ink)}
body.station-playing .live i,body.is-playing .visual-note i{background:var(--gold);box-shadow:0 0 0 1px #897021}
progress{background:#1b526e}
progress::-webkit-progress-bar{background:#1b526e}
progress::-webkit-progress-value{background:var(--accent)}
progress::-moz-progress-bar{background:var(--accent)}
.volume-control input{accent-color:#00aaff}
.floating-panel{background:#f0fafff5}
.visual-setting button[aria-pressed=false]{background:#eaf1f6;color:var(--muted)}
.playlist-link{color:#006b9f}
