/* Dev station atmosphere and artwork light. Keep decoration off interactive layers. */
.sleeve-ambience{position:absolute;left:0;top:0;width:82%;aspect-ratio:1;z-index:0;pointer-events:none;transform:scale(var(--beat,1));transition:transform .12s ease;isolation:isolate}
.sleeve-ambience:before,.sleeve-ambience:after{content:'';position:absolute;inset:0;border-radius:12%;background-image:var(--sleeve-art);background-size:cover;background-position:center;pointer-events:none}
.sleeve-ambience:before{filter:blur(clamp(80px,9vw,160px)) saturate(1.65) brightness(1.15);transform:scale(1.45);opacity:.52}
.sleeve-ambience:after{filter:blur(9.5px) saturate(1.6) brightness(1.45);transform:scale(1.0285);opacity:.95}
.station-offline .sleeve-ambience{width:100%;height:100%;aspect-ratio:auto;transform:none}
.station-offline .sleeve-ambience:before{opacity:.4}
.sleeve-changing .sleeve-ambience{animation:sleeve-light-change var(--sleeve-time) ease both}
@keyframes sleeve-light-change{0%,100%{opacity:1}35%,60%{opacity:.28}}

/* A framed broadcast masthead: illuminated rim, layered artwork, and a control dock. */
body.station-page .station-hero{--hero-tint:var(--accent);padding:clamp(24px,2.2vw,42px) clamp(24px,2.7vw,48px) 0;gap:24px;border:1px solid color-mix(in srgb,var(--hero-tint) 25%,#464337);border-radius:20px;background:radial-gradient(ellipse at 8% 0%,color-mix(in srgb,var(--hero-tint) 12%,transparent),transparent 55%),linear-gradient(120deg,#111610d6,#090c0abc);box-shadow:0 18px 50px #0005,inset 0 1px 0 #ffffff18,0 0 34px color-mix(in srgb,var(--hero-tint) 6%,transparent);isolation:isolate}
body.station-page .station-hero:before{content:'';position:absolute;inset:0 6% auto;height:2px;background:linear-gradient(90deg,transparent,var(--hero-tint),#fff4,var(--hero-tint),transparent);box-shadow:0 0 18px color-mix(in srgb,var(--hero-tint) 45%,transparent);pointer-events:none}
body.station-page .station-artwork{z-index:-1;opacity:.44;mask-image:linear-gradient(90deg,transparent 12%,#0009 55%,#000);filter:saturate(.85)}
body.station-page .station-heading{position:relative;z-index:1;padding-right:12%;text-shadow:0 2px 12px #000}
body.station-page .station-heading h1{font-size:clamp(28px,2.7vw,48px);line-height:1.22;letter-spacing:-.025em;text-wrap:balance;color:#f6eedc;max-width:30ch}
body.station-page .station-heading>.eyebrow{color:color-mix(in srgb,var(--hero-tint) 24%,#e7d9b9);font-size:clamp(16px,1.05vw,21px);margin-top:12px}
body.station-page .station-heading .intro{font-size:clamp(17px,1.15vw,22px);color:#d4cebf;max-width:66ch;margin-top:8px}
body.station-page .station-toolbar{position:relative;margin-inline:calc(-1 * clamp(24px,2.7vw,48px));padding:16px clamp(24px,2.7vw,48px);background:linear-gradient(90deg,#050908bb,#121711c9);border-top:1px solid #ffffff12;box-shadow:inset 0 1px 0 #0008;gap:14px 20px}
body.station-page .shell .station-toolbar .live-chat-button{border-radius:12px;color:#f0eadb;background:linear-gradient(160deg,color-mix(in srgb,var(--hero-tint) 11%,#172019),#090e0a);border:1px solid color-mix(in srgb,var(--hero-tint) 35%,#343b30);box-shadow:inset 0 1px 0 #ffffff0e,0 4px 10px #0003;transition:background .2s,border-color .2s,box-shadow .2s}
body.station-page .shell .station-toolbar .live-chat-button:hover,body.station-page .shell .station-toolbar .live-chat-button[aria-expanded=true]{background:linear-gradient(160deg,color-mix(in srgb,var(--hero-tint) 22%,#172019),#0a110c);border-color:var(--hero-tint);box-shadow:0 0 18px color-mix(in srgb,var(--hero-tint) 15%,transparent),inset 0 1px 0 #ffffff22}
body.station-page .shell .station-toolbar #chatToggle{color:var(--accent)}
.hero-frequency{position:absolute;right:4%;top:30px;width:180px;height:72px;display:flex;align-items:center;justify-content:space-between;gap:6px;opacity:.14;pointer-events:none;z-index:-1;transform:skewY(-8deg)}
.hero-frequency i{display:block;width:5px;height:25%;border-radius:9px;background:var(--hero-tint);box-shadow:0 0 14px var(--hero-tint)}
.hero-frequency i:nth-child(3n){height:70%}.hero-frequency i:nth-child(4n){height:100%}.hero-frequency i:nth-child(2n){height:50%}
body.station-page:not(.station-offline) .hero-frequency i{animation:hero-signal 4.5s ease-in-out infinite alternate}
.hero-frequency i:nth-child(2n){animation-delay:-2.7s!important}.hero-frequency i:nth-child(3n){animation-delay:-1.2s!important}
@keyframes hero-signal{to{transform:scaleY(.35);opacity:.55}}

/* Every atmosphere defines a palette and motif, also shown in station settings. */
[data-texture=clinical]{--scene-a:#99ef4d;--scene-b:#43d9bd;--scene-base:#07100d;--scene-motif:url('/assets/radio/clinical-dev.svg');--motif-size:470px;--motif-opacity:.16}
[data-texture=girlfriend]{--scene-a:#ff62ba;--scene-b:#47ddf2;--scene-base:#170c24;--scene-motif:url('/assets/radio/girlfriend-dev.svg');--motif-size:450px;--motif-opacity:.22}
[data-texture=synthwave]{--scene-a:#fc56b5;--scene-b:#7168ff;--scene-base:#100a23;--scene-motif:url('/assets/radio/synthwave-dev.svg');--motif-size:850px;--motif-opacity:.3}
[data-texture=jazz]{--scene-a:#e8b86b;--scene-b:#ae7238;--scene-base:#130f0c;--scene-motif:url('/assets/radio/jazz-dev.svg');--motif-size:500px;--motif-opacity:.2}
[data-texture=metal]{--scene-a:#f05746;--scene-b:#8d9fa9;--scene-base:#100c0f;--scene-motif:url('/assets/radio/metal-dev.svg');--motif-size:510px;--motif-opacity:.16}
[data-texture=lofi]{--scene-a:#baa0df;--scene-b:#e9b98c;--scene-base:#14121f;--scene-motif:url('/assets/radio/lofi-dev.svg');--motif-size:470px;--motif-opacity:.21}
body.station-page:is([data-texture=clinical],[data-texture=girlfriend],[data-texture=synthwave],[data-texture=jazz],[data-texture=metal],[data-texture=lofi]){background:radial-gradient(ellipse at 12% 8%,color-mix(in srgb,var(--scene-a) 13%,transparent),transparent 48%),radial-gradient(ellipse at 92% 80%,color-mix(in srgb,var(--scene-b) 11%,transparent),transparent 54%),var(--scene-base)}
body.station-page:is([data-texture=clinical],[data-texture=girlfriend],[data-texture=synthwave],[data-texture=jazz],[data-texture=metal],[data-texture=lofi]):before{background:var(--scene-motif) center top / var(--motif-size) repeat;opacity:var(--motif-opacity);mask-image:linear-gradient(#0009,#000 45%,#0008)}
body:is([data-texture=clinical],[data-texture=girlfriend],[data-texture=synthwave],[data-texture=jazz],[data-texture=metal],[data-texture=lofi]) .fog{opacity:.18}
body:is([data-texture=clinical],[data-texture=girlfriend],[data-texture=synthwave],[data-texture=jazz],[data-texture=metal],[data-texture=lofi]) .spore{background:var(--scene-b);box-shadow:0 0 6px var(--scene-a)}
body.station-page:is([data-texture=clinical],[data-texture=girlfriend],[data-texture=synthwave],[data-texture=jazz],[data-texture=metal],[data-texture=lofi]) .station-hero{--hero-tint:var(--scene-a);background:radial-gradient(ellipse at 8% 0%,color-mix(in srgb,var(--scene-a) 15%,transparent),transparent 60%),linear-gradient(120deg,color-mix(in srgb,var(--scene-base) 86%,transparent),color-mix(in srgb,var(--scene-base) 74%,transparent))}
.style-preview:is([data-texture=clinical],[data-texture=girlfriend],[data-texture=synthwave],[data-texture=jazz],[data-texture=metal],[data-texture=lofi]){background:var(--scene-motif) center/240px,radial-gradient(ellipse at top left,color-mix(in srgb,var(--scene-a) 20%,transparent),transparent 85%),var(--scene-base);border-color:color-mix(in srgb,var(--scene-a) 50%,transparent);min-height:135px;position:relative;isolation:isolate}
.style-preview:is([data-texture=clinical],[data-texture=girlfriend],[data-texture=synthwave],[data-texture=jazz],[data-texture=metal],[data-texture=lofi]) strong{position:relative;z-index:1;color:#fff4df;text-shadow:0 2px 10px #000,0 1px 3px #000}
.style-preview:is([data-texture=clinical],[data-texture=girlfriend],[data-texture=synthwave],[data-texture=jazz],[data-texture=metal],[data-texture=lofi]):before{opacity:.18}

/* Clinical: serum at the ceiling, drifting lab instruments in the margins. */
.atmosphere-scene{display:none;position:fixed;inset:0;overflow:hidden;z-index:1;pointer-events:none;contain:strict}
body.station-page:is([data-texture=clinical],[data-texture=girlfriend]) .atmosphere-scene{display:block}
body[data-texture=clinical] .atmosphere-canopy{position:absolute;inset:0 0 auto;height:135px;background:url('/assets/radio/serum-drips-dev.svg') center top/720px 135px repeat-x;opacity:.35;filter:drop-shadow(0 8px 16px #7bfa3733);transform-origin:top;animation:serum-breathe 12s ease-in-out infinite}
body[data-texture=clinical] .atmosphere-motifs{position:absolute;left:8%;top:18%;width:100px;height:230px;background:var(--scene-motif) left top/470px;opacity:.3;animation:lab-float 18s ease-in-out infinite}
@keyframes serum-breathe{50%{transform:scaleY(.87)}}
@keyframes lab-float{50%{transform:translateY(18px) rotate(6deg)}}
/* Girlfriend: glossy candy light, a checkered ribbon, and drifting hearts. */
body[data-texture=girlfriend] .atmosphere-canopy{position:absolute;right:-80px;top:16%;width:250px;height:100px;border-block:3px solid #ff75c788;background:repeating-conic-gradient(#4fe3f622 0 25%,#ff64b522 0 50%) 0/36px 36px;transform:rotate(-24deg);mask-image:linear-gradient(90deg,transparent,#000 25%,#000 75%,transparent);box-shadow:0 0 32px #fb43b22b}
body[data-texture=girlfriend] .atmosphere-motifs{position:absolute;inset:0;background:radial-gradient(ellipse at 6% 26%,#ff60b323,transparent 23%),radial-gradient(ellipse at 97% 74%,#40ddeb1c,transparent 28%);animation:candy-light 16s ease-in-out infinite alternate}
@keyframes candy-light{to{opacity:.4;transform:translateY(18px)}}
body[data-texture=girlfriend] .station-hero{border-color:#f279bd60}
body[data-texture=girlfriend] .station-heading h1{text-shadow:0 2px 0 #581743,0 0 28px #ff50bb26}
body[data-texture=jazz] .station-hero{border-radius:4px 24px 4px 24px}
body[data-texture=metal] .station-hero{border-radius:5px}
@media(max-width:820px){
 body.station-page .station-hero{border-radius:16px;padding:24px 20px 0;gap:20px}
 body.station-page .station-heading{padding-right:0}
 body.station-page .station-heading h1{font-size:clamp(27px,5.5vw,38px)}
 body.station-page .station-toolbar{margin-inline:-20px;padding:16px 20px}
 .hero-frequency{opacity:.09;right:18px;width:100px}
 .sleeve-ambience:before{filter:blur(65px) saturate(1.5);transform:scale(1.4);opacity:.45}
 .sleeve-ambience:after{filter:blur(7px) saturate(1.5) brightness(1.35);opacity:.9}
 body[data-texture=clinical] .atmosphere-canopy{height:85px;background-size:540px 100px;opacity:.22}
 .atmosphere-motifs{display:none}
 .settings-body .style-preview{display:block}
}
body.lite .sleeve-ambience:before{display:none}
body.lite .sleeve-ambience:after{filter:blur(6px);opacity:.55;transform:scale(1.012)}
body.lite .atmosphere-scene,body.lite .hero-frequency{display:none}
body.lite .sleeve-ambience{animation:none;transform:none;transition:none}
@media(prefers-reduced-motion:reduce){.atmosphere-scene *,.hero-frequency i,.sleeve-ambience{animation:none!important;transition:none!important;transform:none}.sleeve-ambience:before{opacity:.45}}

/* Light extends freely behind the station; text and controls stay above it. */
body.station-page .station-hero,body.station-page .station-topline{position:relative;z-index:4}
body.station-page .player-panel .track-copy,body.station-page .player-panel>.progress-track,body.station-page .player-panel>.time-row,body.station-page .player-panel>.player-footer{position:relative;z-index:3}

/* The sleeve is the song link; its small utility buttons remain separate targets. */
.sleeve-song-link{position:absolute;inset:0;z-index:3;border-radius:inherit;cursor:pointer}
.sleeve-song-link:focus-visible{outline:3px solid var(--accent);outline-offset:-4px}
.sleeve-song-link:after{content:'Open on Suno ↗';position:absolute;left:14px;bottom:14px;padding:6px 12px;border-radius:999px;background:#071009eb;border:1px solid color-mix(in srgb,var(--accent) 65%,transparent);color:#f7eedb;font:600 15px/1.4 var(--font);opacity:0;transition:opacity .2s;pointer-events:none}
.sleeve-song-link:is(:hover,:focus-visible):after{opacity:1}
.album-sleeve .sleeve-controls{z-index:5}
.cover-wrap .vinyl-record{transition:translate .35s ease,box-shadow .35s ease,outline-color .35s ease;outline:2px solid transparent;outline-offset:3px}
.cover-wrap.sleeve-linked:not(.sleeve-changing):has(.sleeve-song-link:is(:hover,:focus-visible)) .vinyl-record{translate:6% 0;outline-color:var(--accent);box-shadow:0 0 20px color-mix(in srgb,var(--accent) 30%,transparent),8px 12px 35px #0007}
.player-panel #trackLink{cursor:default;color:inherit;text-decoration:none}
body.station-page .shell .all-stations-button{border-radius:12px;border:1px solid color-mix(in srgb,var(--accent) 40%,#343b30);color:var(--paper);background:linear-gradient(160deg,color-mix(in srgb,var(--accent) 11%,#172019),#090e0a);box-shadow:inset 0 1px 0 #ffffff0e,0 4px 10px #0003;font-size:16px;padding:10px 16px;min-height:44px}
body.station-page .shell .all-stations-button>span{color:var(--accent)}
body.station-page .shell .all-stations-button:hover,body.station-page .shell .all-stations-button:focus-visible{border-color:var(--accent);background:linear-gradient(160deg,color-mix(in srgb,var(--accent) 22%,#172019),#0a110c);box-shadow:0 0 18px color-mix(in srgb,var(--accent) 15%,transparent),inset 0 1px 0 #ffffff22}
#crossfadeToggle[aria-checked=true]{color:var(--accent);border-color:var(--accent)}
.sleeve-ambience canvas{display:none;position:absolute;inset:0;width:100%;height:100%;border-radius:12%;pointer-events:none}
.sleeve-ambience[data-video=true] canvas{display:block}
.sleeve-ambience[data-video=true]:before,.sleeve-ambience[data-video=true]:after{background-image:none}
.sleeve-video-wide{filter:blur(clamp(80px,9vw,160px)) saturate(1.65) brightness(1.15);transform:scale(1.45);opacity:.52}
.sleeve-video-rim{filter:blur(9.5px) saturate(1.6) brightness(1.45);transform:scale(1.0285);opacity:.95}
@media(max-width:820px){.sleeve-video-wide{filter:blur(65px) saturate(1.5);transform:scale(1.4);opacity:.45}.sleeve-video-rim{filter:blur(7px) saturate(1.5) brightness(1.35);opacity:.9}}
@media(prefers-reduced-motion:reduce){.cover-wrap .vinyl-record,.sleeve-song-link:after{transition:none}.cover-wrap.sleeve-linked:not(.sleeve-changing):has(.sleeve-song-link:is(:hover,:focus-visible)) .vinyl-record{translate:0}}
