/* Layout and usability polish (loaded after the main stylesheet). */

/* --- sliders: keep the track thin (a later shorthand reset background-clip and made bars fat on phones) --- */
.sk input,.vol input,#isle .sk input{background-clip:content-box;-webkit-background-clip:content-box}
.sk{min-width:0}.sk span{flex:none;min-width:2.8em;text-align:center;font-variant-numeric:tabular-nums}
.sk input{flex:1 1 0;width:auto;min-width:0}
.sk input::-webkit-slider-thumb,.vol input::-webkit-slider-thumb{width:16px;height:16px}
.sk input::-moz-range-thumb,.vol input::-moz-range-thumb{width:16px;height:16px}

/* --- dialogs: centred, scrollable, always below the countdown banner --- */
#modal{padding:calc(var(--tt,0px) + 16px) 16px 16px;overflow:auto;place-items:center}
#modal .panel{width:min(520px,100%);max-height:calc(100dvh - var(--tt,0px) - 32px);overflow:auto;overscroll-behavior:contain;padding:26px}
#modal form{display:grid;gap:12px}
#modal label.mu{display:grid;gap:6px;font-size:13px}
#modal label.mu:has(input[type=checkbox]){display:flex;gap:10px;align-items:center}
#modal input:not([type=checkbox]):not([type=file]):not([type=range]),#modal textarea,#modal select{width:100%}
#modal .pad{flex-wrap:wrap;gap:10px}
.acv{display:flex;gap:16px;align-items:center;margin:2px 0 16px}.acv b{display:block;font-size:18px;margin-bottom:6px}
@media(max-width:820px){
 #modal{place-items:end center;padding:calc(var(--tt,0px) + 10px) 0 0}
 #modal .panel{width:100%;max-height:calc(100dvh - var(--tt,0px) - 10px);border-radius:26px 26px 0 0;padding:22px 18px calc(24px + env(safe-area-inset-bottom))}
}

/* --- lyrics --- */
#lyr{padding:10vh 0 14vh}
#lyr.selmode p{cursor:pointer;opacity:.85;filter:none;border-radius:12px;padding:8px 12px;margin:2px 0}
#lyr.selmode p.sel{background:var(--ac);color:#10101c;opacity:1}
#lysel{position:fixed;left:50%;bottom:calc(env(safe-area-inset-bottom) + 20px);transform:translateX(-50%);z-index:70;display:flex;gap:10px;align-items:center;padding:10px 12px;border-radius:999px;background:var(--bg);border:1px solid var(--gb);box-shadow:0 20px 50px -10px rgba(0,0,0,.7)}
#lysel[hidden]{display:none}

/* --- forms in the owner panel --- */
.cvrow{display:flex;gap:14px;align-items:center}.cvrow>div:last-child{flex:1;min-width:0;display:grid;gap:6px}
.cvp{width:72px;height:72px;border-radius:14px;background:var(--s2) center/cover no-repeat;flex:none}
.fgrid input[type=file]{max-width:100%;font-size:13px}
.arow .cvp{width:46px;height:46px;border-radius:10px}

/* --- profile header, follow --- */
.profile{display:flex;gap:28px;align-items:center;flex-wrap:wrap}
.profile .stats{display:flex;gap:18px;flex-wrap:wrap;margin:8px 0}.profile .stats button{color:inherit}
.profile .pad{display:flex;gap:10px;flex-wrap:wrap}
.btn.following{background:var(--g2);color:var(--tx);border:1px solid var(--gb)}

/* --- chat: song cards --- */
.tcard{display:flex;gap:12px;align-items:center;padding:8px;border-radius:16px;background:rgba(255,255,255,.07);min-width:230px;margin-bottom:4px;cursor:pointer;text-align:left;color:inherit;width:100%}
.tcard .cov{width:48px;height:48px;margin:0;border-radius:10px;flex:none}.tcard b{display:block;font-size:14px}.tcard small{opacity:.7;font-size:12px}
.tcard .tc{flex:1;min-width:0}.tcard .tc *{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sprow{display:flex;gap:12px;align-items:center;width:100%;padding:8px;border-radius:14px;text-align:left;color:inherit}.sprow:hover{background:var(--g1)}
.sprow .cov{width:44px;height:44px;margin:0;border-radius:10px;flex:none}.sprow b{display:block}.sprow small{opacity:.7}

/* --- chat composer on phones --- */
#cf textarea{min-height:44px;border-radius:22px}

/* --- desktop: use big screens well, keep the dock inside narrow desktop windows --- */
@media(min-width:1700px){main{padding-left:max(24px,calc((100vw - 1500px)/2));padding-right:max(24px,calc((100vw - 1500px)/2))}}
@media(min-width:821px) and (max-width:1100px){#dock{max-width:calc(100vw - 24px);overflow-x:auto;scrollbar-width:none}#dock::-webkit-scrollbar{display:none}#dock a{padding:10px 13px;font-size:14px}}
@media(min-width:821px) and (max-height:700px){#fs{padding-top:calc(4vh + var(--tt,0px));padding-bottom:3vh}#lyr{height:30vh}}
@media(max-width:820px){main{padding-bottom:230px}.head,.profile{gap:16px}.profile .av{--s:84px}h1{overflow-wrap:anywhere}}
#lysel button{white-space:nowrap}

/* --- chat: leave room for the countdown banner and the player so the message box is never covered --- */
.chat{height:calc(100dvh - var(--tt,0px) - 104px - 150px);min-height:420px}
@media(max-width:820px){.chat{height:calc(var(--vh,100dvh) - var(--tt,0px) - 64px - 236px);min-height:300px}}
#cf .send{background:var(--ac);color:var(--onac,#10101c)}#cf .send svg{width:20px;height:20px}

/* =====================================================================
   Fresh, clean look: one violet accent (from the logo), calm surfaces,
   less glow, clear sections.
   ===================================================================== */
:root{--bg:#07050f;--tx:#f2eefc;--mu:rgba(242,238,252,.62);--g1:rgba(255,255,255,.08);--g2:rgba(255,255,255,.045);--gb:rgba(255,255,255,.11);--ln:rgba(255,255,255,.07);--ac:#9b78ff;--onac:#0b0618;--s2:#17122a}
:root[data-theme=light]{--bg:#f4f1fb;--tx:#16102a;--mu:rgba(22,16,42,.62);--g1:rgba(255,255,255,.9);--g2:rgba(255,255,255,.65);--gb:rgba(60,40,120,.14);--ln:rgba(60,40,120,.1);--ac:#6b3df0;--onac:#fff;--s2:#e8e2f6}
@media(prefers-color-scheme:light){:root:not([data-theme=dark]){--bg:#f4f1fb;--tx:#16102a;--mu:rgba(22,16,42,.62);--g1:rgba(255,255,255,.9);--g2:rgba(255,255,255,.65);--gb:rgba(60,40,120,.14);--ln:rgba(60,40,120,.1);--ac:#6b3df0;--onac:#fff;--s2:#e8e2f6}}
.btn{background:linear-gradient(135deg,#ab8cff,#7c5cff);color:#0b0618;box-shadow:0 10px 24px -12px rgba(124,92,255,.9)}
:root[data-theme=light] .btn{color:#fff}
.ghost{background:var(--g2);-webkit-backdrop-filter:none;backdrop-filter:none}
.ghost:hover{background:var(--g1);color:var(--tx)}
.ghost.on{border-color:var(--ac);color:var(--tx)}
.lg{display:flex;align-items:center;gap:9px}.lg img{border-radius:9px;display:block}
.brandmark{display:block;margin:0 auto 12px;border-radius:18px;box-shadow:0 14px 40px -16px rgba(124,92,255,.9)}
.ap{text-align:center}.ap form,.ap .fhint,.ap .err{text-align:left}

/* sections */
.sec{margin:34px 0 0}.sh{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 12px}
.sh h2{margin:0;font-size:clamp(20px,2.2vw,26px);letter-spacing:-.01em}.sh .mu{font-size:14px}
h2{margin-top:34px}
.more{margin-top:10px;width:100%;text-align:center;padding:12px}

/* hero */
.stage{min-height:0;padding:clamp(20px,3vw,36px);border-radius:28px;gap:clamp(16px,3vw,36px);background:linear-gradient(135deg,rgba(139,92,246,.2),rgba(255,255,255,.03) 60%);border:1px solid var(--gb)}
.stage h1{font-size:clamp(34px,5vw,64px);line-height:1.02}
.stage #wave{display:none}
.stage .orb{max-width:300px;justify-self:center;width:100%}
.stage .halo{opacity:.35}

/* track rows: flat list, clear hover and current state */
.row{background:transparent;border:0;border-radius:14px;margin:2px 0;padding:6px 10px 6px 6px}
.row:hover{background:var(--g2)}.row.cur{background:var(--g1)}
.row .cov{border-radius:10px}

/* album and artist strips */
.strip.albums,.strip.artists{gap:16px;padding:2px 2px 8px;scroll-snap-type:x proximity}
.acard{flex:0 0 clamp(132px,38vw,172px);scroll-snap-align:start;display:grid;gap:6px;color:inherit;text-decoration:none}
.acard .cov{width:100%;aspect-ratio:1;height:auto;border-radius:16px;display:block}
.acard b,.art b{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:600}
.acard small{color:var(--mu);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.art{flex:0 0 clamp(92px,26vw,116px);scroll-snap-align:start;display:grid;gap:8px;justify-items:center;text-align:center;color:inherit;text-decoration:none}
.art .cov{width:100%;aspect-ratio:1;height:auto;border-radius:50%;display:block}.art b{max-width:100%;font-size:14px}
.arcCta.slim{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px;margin:34px 0 0;border-radius:22px;background:var(--g2);border:1px solid var(--gb)}
.arcCta.slim h3{font-size:22px;margin:0 0 4px}.arcCta.slim p{margin:0;font-size:14px}.arcCta.slim .arr{font-size:26px;color:var(--ac)}
.arcCta.slim svg{display:none}

/* navigation */
#dock{background:rgba(16,11,30,.82);border:1px solid var(--gb)}
:root[data-theme=light] #dock{background:rgba(255,255,255,.86)}
#dock a.on,#dock a[aria-current=page]{color:var(--tx)}

/* mini player: only when something is loaded */
#isle.idle{display:none!important}
#isle{border:1px solid var(--gb);background:rgba(16,11,30,.9)}
:root[data-theme=light] #isle{background:rgba(255,255,255,.92)}
#isle .sk input,.sk input{background:linear-gradient(90deg,var(--ac) var(--p,0%),rgba(255,255,255,.2) var(--p,0%));background-clip:content-box;-webkit-background-clip:content-box}
:root[data-theme=light] .sk input,:root[data-theme=light] #isle .sk input{background:linear-gradient(90deg,var(--ac) var(--p,0%),rgba(60,40,120,.2) var(--p,0%));background-clip:content-box}
#isle .btns .pp{box-shadow:0 8px 20px -10px rgba(124,92,255,.9)}
body:has(#isle.idle) main{padding-bottom:120px}
@media(max-width:820px){body:has(#isle.idle) .chat{height:calc(var(--vh,100dvh) - 64px - 130px)}}
@media(min-width:821px){body:has(#isle.idle) .chat{height:calc(100dvh - 104px - 60px)}}

/* full player */
#fs h1{overflow-wrap:anywhere}
@media(max-width:820px){#fs h1{padding-right:58px;font-size:clamp(30px,9vw,44px)}}
.tabs{display:flex;flex-wrap:wrap;gap:8px;overflow:visible;padding:2px 0;margin:10px 0 14px}
.ctrls{display:grid;gap:12px;padding:16px 18px;border-radius:24px}
.ctrls .sk{width:100%}
.crow2{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;width:100%}
.crow2 .cl{justify-self:start;display:flex}.crow2 .spd{justify-self:end}
.tr{display:flex;align-items:center;gap:12px}
.rb{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;color:var(--tx)}
.rb svg{width:24px;height:24px}
.pbig{width:66px;height:66px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(135deg,#ab8cff,#7c5cff);color:#0b0618;box-shadow:0 12px 28px -12px rgba(124,92,255,.95);flex:none;transition:transform .15s}
.pbig:active{transform:scale(.94)}.pbig svg{width:30px;height:30px;fill:currentColor}
.spd select{padding:8px 12px;border-radius:999px;border:1px solid var(--gb);background:var(--g2);color:var(--tx);font-size:14px}
.crow2 .cl button{width:46px;height:46px}
@media(max-width:360px){.pbig{width:58px;height:58px}.tr{gap:6px}}

/* shell without the countdown banner */
@media(min-width:821px){#dock{top:16px}main{padding-top:104px}}
@media(max-width:820px){main{padding-top:64px}}
@media(max-width:820px){#fs .ctrls{position:sticky;bottom:calc(env(safe-area-inset-bottom) + 10px);z-index:5;background:rgba(14,10,26,.94)}:root[data-theme=light] #fs .ctrls{background:rgba(255,255,255,.95)}}

/* =====================================================================
   Round 3: Spotify-style full player, cleaner mini player and profile,
   artist pages, upload and stats screens, and a lighter, faster UI.
   ===================================================================== */

/* ---- dialogs: visible close button ---- */
#modal .panel{position:relative}
.mx{position:absolute;top:12px;right:12px;z-index:3;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--g1);border:1px solid var(--gb);color:var(--tx);cursor:pointer}
.mx svg{width:20px;height:20px}
#modal .panel>h3:first-of-type{padding-right:48px}

/* ---- full player ---- */
#fs:not([hidden]){position:fixed;inset:0;display:flex;flex-direction:column;align-items:center;gap:0;overflow-y:auto;overflow-x:hidden;padding:max(10px,env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));animation:none;background:linear-gradient(180deg,color-mix(in srgb,hsl(var(--hue) 40% 24%) 70%,var(--bg)) 0%,var(--bg) 62%)}
#fs .fsTop{width:100%;max-width:560px;display:grid;grid-template-columns:48px 1fr 48px;align-items:center;gap:6px;padding:4px 0 10px;flex:none}
#fs .fsb{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;color:var(--tx)}
#fs .fsb svg{width:26px!important;height:26px!important}
#fs .fsFrom{text-align:center;min-width:0}
#fs .fsFrom small{display:block;font-size:11px;letter-spacing:.08em;opacity:.7}
#fs .fsFrom b{display:block;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#fs .fsCover{width:100%;max-width:560px;display:grid;place-items:center;padding:10px 0 18px;flex:none}
#fs .orb{width:min(100%,420px)}
#fs .fsBody{width:100%;max-width:560px;display:grid;gap:14px;min-width:0}
#fs .fsMeta{display:flex;align-items:center;justify-content:space-between;gap:12px}
#fs .fsT{min-width:0}
#fs .fsT h1{font-size:clamp(24px,6.4vw,34px);line-height:1.1;margin:0 0 2px;overflow-wrap:anywhere;padding:0}
#fs .fsT a{color:var(--mu);font-size:16px}
#fs .fsFav button{width:46px;height:46px}
#fs .fsSeek{display:flex;align-items:center;gap:10px;width:100%}
#fs .fsSeek .seekw{flex:1;min-width:0;position:relative}
#fs .fsSeek span{font-size:12px;color:var(--mu);min-width:2.6em;font-variant-numeric:tabular-nums}
#fs .fsSeek input{width:100%}
#fs .fsCtl{display:flex;align-items:center;justify-content:space-between;gap:4px;width:100%;padding:0 4px}
#fs .fsCtl .rb{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;color:var(--tx);opacity:.9}
#fs .fsCtl .rb.on{color:var(--ac);opacity:1}
#fs .fsCtl .rb svg{width:24px;height:24px}
#fs .fsCtl .pbig{width:72px;height:72px;background:transparent;border:2px solid var(--tx);color:var(--tx);box-shadow:none}
#fs .fsCtl .pbig svg{width:30px;height:30px}
#fs .tabs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:6px 0 0;padding:0;overflow:visible}
#fs .tabs .spd{margin-left:auto}
#fs #lyr{height:auto;max-height:none;padding:6px 0 10vh;overflow:visible;-webkit-mask-image:none;mask-image:none}
#fs #lyr p{font-size:clamp(22px,5.6vw,30px);line-height:1.25;font-weight:700;padding:8px 0;opacity:.4;filter:none;transition:opacity .2s,color .2s}
#fs #lyr p.on{opacity:1;color:var(--tx)}
#fs #lyr.plain p{opacity:.92}
#fs .cpane,#fs .qp{max-height:none}
@media(min-width:900px){
 #fs:not([hidden]){display:grid;grid-template-columns:minmax(0,1.05fr) minmax(380px,.95fr);grid-template-rows:auto 1fr;column-gap:clamp(24px,5vw,72px);align-items:start;justify-items:stretch;padding:max(14px,env(safe-area-inset-top)) clamp(20px,5vw,72px) 24px}
 #fs .fsTop{grid-column:1 / -1;max-width:none;justify-self:stretch}
 #fs .fsCover{grid-column:1;grid-row:2;max-width:none;align-self:center;padding:0}
 #fs .orb{width:min(100%,min(520px,62vh))}
 #fs .fsBody{grid-column:2;grid-row:2;max-width:none;align-self:center;max-height:calc(100dvh - 120px);overflow-y:auto;padding-right:4px;scrollbar-width:thin}
 #fs .fsT h1{font-size:clamp(30px,3.2vw,46px)}
}
@media(max-width:360px){#fs .fsCtl .pbig{width:62px;height:62px}#fs .fsCtl .rb{width:42px;height:42px}}

/* ---- mini player: calm, compact, thin progress line ---- */
@media(max-width:820px){
 #isle .sk{display:flex;width:auto}
 #isle .sk input{height:3px;padding:7px 0;background-clip:content-box;-webkit-background-clip:content-box}
 #isle .sk input::-webkit-slider-thumb{width:0;height:0;box-shadow:none}
 #isle .sk input::-moz-range-thumb{width:0;height:0;border:0}
 #isle .btns .pp{width:46px;height:46px}
 #isle .iM{min-width:0}
 #isle .iM .tt{min-width:0}
 #isle .iM .tt b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
}

/* ---- profile ---- */
.profile{display:grid;grid-template-columns:auto 1fr;gap:14px 24px;align-items:center}
.profile>.av,.profile>img.av{grid-row:1 / span 2}
.profile .stats{display:grid;grid-template-columns:repeat(4,minmax(0,auto));justify-content:start;gap:8px 22px;margin:10px 0 12px}
.profile .stats>*{display:grid;text-align:left;font-size:13px;color:var(--mu);padding:0}
.profile .stats b{font-size:20px;color:var(--tx);text-decoration:none;display:block}
.profile .stats button{text-decoration:none}
.profile .pad{display:flex;flex-wrap:wrap;gap:8px}
@media(max-width:820px){
 .profile{grid-template-columns:1fr;justify-items:center;text-align:center;padding:22px 16px}
 .profile>.av,.profile>img.av{grid-row:auto}
 .profile .stats{grid-template-columns:repeat(4,1fr);justify-content:stretch;width:100%;gap:6px}
 .profile .stats>*{text-align:center;justify-items:center;font-size:12px}
 .profile .pad{justify-content:center}
 .profile .pad .btn{flex:1 1 100%}
}

/* ---- artist pages ---- */
.artistHead{display:grid;grid-template-columns:auto 1fr;gap:22px;align-items:center}
.artImg{width:clamp(120px,22vw,220px);aspect-ratio:1;border-radius:50%;background:var(--s2) center/cover no-repeat;display:block}
.artistHead .bio{max-width:60ch;margin:6px 0;line-height:1.55}
@media(max-width:620px){.artistHead{grid-template-columns:1fr;justify-items:center;text-align:center}}
.agrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:22px 14px;margin-top:16px}
.agrid .art{flex:none;width:100%}
.art small{font-size:12px}

/* ---- stats ---- */
.statbig{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.statbig>div{background:var(--g2);border:1px solid var(--gb);border-radius:20px;padding:16px 18px}
.statbig small{display:block;color:var(--mu);font-size:13px}.statbig b{display:block;font-size:clamp(24px,4vw,34px);margin-top:4px}
.sbars{display:flex;align-items:flex-end;gap:6px;height:130px;padding:6px 0 0}
.sbars .sbar{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:6px;min-width:0}
.sbars .sbar i{display:block;width:100%;max-width:26px;border-radius:7px 7px 3px 3px;background:linear-gradient(180deg,#ab8cff,#7c5cff)}
.sbars .sbar span{font-size:11px;color:var(--mu);height:14px}
.sbars.hours{gap:3px;height:100px}.sbars.hours .sbar i{border-radius:4px 4px 2px 2px}

/* ---- lists ---- */
.sprow .cov{flex:none}.sprow b,.sprow small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ---- performance: no heavy effects ---- */
.lite *,.lite *::before,.lite *::after{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
.lite #amb,.lite #ring,.lite #wave{display:none!important}
.lite .halo{display:none}
.lite .orb,.lite .orb *,.lite #isle .cov,.lite .view.anim{animation:none!important}
.lite [data-tilt]{transform:none!important}
.lite #lyr p{filter:none!important}
.lite *{transition-duration:.15s!important}
.row,.acard,.art{contain:layout paint}
#main{contain:layout style}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}

@media(max-width:899px){#fs .orb{width:min(84%,340px)}}
.fgrid input[type=checkbox],#modal input[type=checkbox]{width:auto;flex:none}
.fgrid label.mu:has(input[type=checkbox]){display:flex;gap:10px;align-items:center}

/* =====================================================================
   Round 4: new full player (Spotify-style layout, track-coloured),
   separate lyrics card, rounded-frame aura, hero / library / mini buttons.
   ===================================================================== */

/* ---- full player: colour comes from the cover (--th/--ts/--tl set from JS) ---- */
#fs{--th:var(--hue);--ts:44%;--tl:28%;--tc:hsl(var(--th) var(--ts) var(--tl));--tc2:hsl(var(--th) calc(var(--ts) * .7) 11%);--tc3:hsl(var(--th) 78% 70%);--tx:#fff;--mu:rgba(255,255,255,.68);color:#fff}
#fs:not([hidden]){background:radial-gradient(120% 55% at 50% 0%,var(--tc) 0%,transparent 72%),linear-gradient(180deg,var(--tc2) 0%,#07060b 100%)}
#fs .fsb{color:#fff}
#fs .fsFrom small{opacity:.72}

/* aura behind the cover: soft coloured glow + three pulsing rounded frames (canvas #ring) */
#fs .halo{inset:-8%;border-radius:44px;background:linear-gradient(135deg,hsl(var(--th) 80% 56%/.55),hsl(calc(var(--th) + 45) 80% 52%/.32));filter:blur(38px);transform:scale(calc(1 + var(--pulse) * .22));opacity:.9}
#fs .cov.big{border-radius:30px;box-shadow:0 30px 70px -22px rgba(0,0,0,.85),0 0 0 1px rgba(255,255,255,.14)}

/* title row */
#fs .fsT h1{font-weight:800;letter-spacing:-.02em}
#fs .fsT a{color:var(--mu)}
#fs .fsFav .rb{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;color:#fff}
#fs .fsFav .rb svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:2;stroke-linejoin:round}
#fs .fsFav .rb.liked{color:var(--tc3)}
#fs .fsFav .rb.liked svg{fill:var(--tc3)}

/* seek bar */
#fs .fsSeek input[type=range]{height:6px;border-radius:6px;background:linear-gradient(90deg,#fff var(--p,0%),rgba(255,255,255,.24) var(--p,0%))}
#fs .fsSeek input[type=range]::-webkit-slider-thumb{width:16px;height:16px;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.45),0 0 0 5px rgba(255,255,255,.14)}
#fs .fsSeek input[type=range]::-moz-range-thumb{width:16px;height:16px;background:#fff}
#fs .fsSeek span{color:var(--mu);font-size:12px}

/* controls: five equal columns, can never stack */
#fs .fsCtl{display:grid;grid-template-columns:1fr 1fr auto 1fr 1fr;align-items:center;justify-items:center;width:100%;gap:0;padding:4px 0 2px}
#fs .fsCtl button{position:relative;display:grid;place-items:center;border-radius:50%;color:#fff;transition:transform .15s,opacity .2s,background .2s}
#fs .fsCtl .rb{width:54px;height:54px;opacity:.95}
#fs .fsCtl .rb:active{transform:scale(.88);background:rgba(255,255,255,.1)}
#fs .fsCtl .rb svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#fs .fsCtl .rb[data-act=prev] svg,#fs .fsCtl .rb[data-act=next] svg{width:34px;height:34px;fill:currentColor;stroke:none}
#fs .fsCtl .rb[data-act=shuf],#fs .fsCtl .rb[data-act=rep]{opacity:.62}
#fs .fsCtl .rb.on{opacity:1;color:var(--tc3)}
#fs .fsCtl .rb.on::after{content:"";position:absolute;bottom:4px;left:50%;width:5px;height:5px;margin-left:-2.5px;border-radius:50%;background:var(--tc3)}
#fs .fsCtl .rb[data-act=rep][data-m="1"]::before{content:"1";position:absolute;right:11px;top:9px;font:800 10px 'Instrument Sans',sans-serif;color:var(--tc3)}
#fs .fsCtl .pbig{width:82px;height:82px;border:2.5px solid #fff;background:rgba(255,255,255,.1);box-shadow:0 0 0 7px rgba(255,255,255,.06),0 18px 40px -14px hsl(var(--th) 85% 55%/.85)}
#fs .fsCtl .pbig:hover{background:rgba(255,255,255,.16)}
#fs .fsCtl .pbig:active{transform:scale(.93)}
#fs .fsCtl .pbig svg{width:34px;height:34px;fill:#fff;stroke:none}

/* action pills */
#fs .fsTabs{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:4px 0 0}
#fs .fsPill{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 16px;border-radius:999px;font-size:14px;font-weight:600;color:#fff;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.16);transition:transform .15s,background .2s,color .2s;cursor:pointer}
#fs .fsPill svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#fs .fsPill:hover{background:rgba(255,255,255,.17)}
#fs .fsPill:active{transform:scale(.95)}
#fs .fsPill.on{background:#fff;color:#0b0812;border-color:#fff}
#fs .fsPill.spd{margin-left:0;padding-right:8px}
#fs .fsPill select{background:transparent;border:0;color:inherit;font:inherit;font-weight:600;padding:0 8px 0 0;min-height:0;height:100%;width:auto;appearance:auto;cursor:pointer}
#fs .fsPill select option{color:#111}

/* ---- lyrics card: lyrics only, colour of the track, closes back to the player ---- */
#fs .lyCard{position:fixed;inset:0;z-index:50;display:flex;flex-direction:column;color:#fff;padding:max(12px,env(safe-area-inset-top)) 22px max(16px,env(safe-area-inset-bottom));background:linear-gradient(180deg,var(--tc) 0%,color-mix(in srgb,var(--tc) 62%,#000) 100%);animation:lyIn .32s cubic-bezier(.2,.8,.2,1)}
@keyframes lyIn{from{opacity:0;transform:translateY(26px)}}
#fs .lyHead{display:flex;align-items:center;gap:12px;width:100%;max-width:760px;margin:0 auto}
#fs .lyT{flex:1;min-width:0}
#fs .lyT b{display:block;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#fs .lyT small{display:block;opacity:.75;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#fs .lyCard #lyr{flex:1;min-height:0;width:100%;max-width:760px;margin:0 auto;padding:24vh 2px 30vh;height:auto;max-height:none;overflow-y:auto;overflow-x:hidden;scrollbar-width:none;-webkit-mask-image:linear-gradient(transparent,#000 14%,#000 86%,transparent);mask-image:linear-gradient(transparent,#000 14%,#000 86%,transparent)}
#fs .lyCard #lyr::-webkit-scrollbar{display:none}
#fs .lyCard #lyr p{font-size:clamp(26px,7.2vw,42px);font-weight:800;line-height:1.18;letter-spacing:-.02em;padding:10px 0;color:#fff;opacity:.36;filter:none;transform-origin:left center;transition:opacity .3s,transform .3s}
#fs .lyCard #lyr p.on{opacity:1;transform:scale(1.03)}
#fs .lyCard #lyr.plain p{opacity:.95}
#fs .lyFoot{display:flex;align-items:center;gap:14px;width:100%;max-width:760px;margin:0 auto;padding-top:8px}
#fs .lyPP{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;flex:none;background:#fff;color:#0b0812}
#fs .lyPP svg{width:22px;height:22px;fill:currentColor}
#fs .lyBar{flex:1;height:4px;border-radius:4px;background:rgba(255,255,255,.28);overflow:hidden}
#fs .lyBar i{display:block;height:100%;background:#fff;border-radius:4px}

@media(min-width:900px){
 #fs .fsTabs{justify-content:flex-start}
 #fs .fsCtl{max-width:520px}
}
@media(max-width:360px){#fs .fsCtl .rb{width:46px;height:46px}#fs .fsCtl .pbig{width:70px;height:70px}#fs .fsPill{padding:0 12px}}

/* ---- home hero buttons ---- */
.stage .pad{gap:10px}
.btn.heroPlay{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:54px;padding:0 28px 0 20px;font-size:16px;font-weight:700;background:linear-gradient(135deg,hsl(var(--hue) 90% 74%),hsl(calc(var(--hue) + 38) 85% 63%));color:#140d1f;box-shadow:0 14px 30px -12px hsl(var(--hue) 90% 60%/.9),inset 0 1px 0 rgba(255,255,255,.5)}
.heroPlay svg{width:22px;height:22px;fill:currentColor}
.ghost.heroBtn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 18px;min-width:0;font-weight:600;color:var(--tx);background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.16)}
.heroBtn svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.heroBtn span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:620px){
 .btn.heroPlay{flex:1 1 100%}
 .ghost.heroBtn{flex:1 1 calc(50% - 5px)}
}

/* ---- library actions ---- */
.libActs{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:10px;margin:2px 0 8px}
.la{display:flex;align-items:center;justify-content:center;gap:8px;height:50px;padding:0 12px;border-radius:16px;font-weight:600;font-size:15px;color:var(--tx);background:linear-gradient(160deg,rgba(255,255,255,.11),rgba(255,255,255,.04));border:1px solid rgba(255,255,255,.15);transition:transform .15s,border-color .2s,background .2s;white-space:nowrap}
.la:hover{border-color:var(--ac)}
.la:active{transform:scale(.96)}
.la svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.la.go{background:linear-gradient(135deg,hsl(var(--hue) 88% 72%),hsl(calc(var(--hue) + 38) 82% 62%));color:#140d1f;border-color:transparent;box-shadow:0 12px 26px -14px hsl(var(--hue) 90% 60%/.9)}
.la.go svg{fill:currentColor;stroke:none}
:root[data-theme=light] .la{background:rgba(255,255,255,.72);border-color:rgba(40,30,60,.14)}
@media(max-width:480px){.libActs{grid-template-columns:1fr 1fr}.la.up{grid-column:1 / -1}}

/* ---- mini player: solid, tinted by the track, clean controls, readable progress line ---- */
#isle,.lite #isle{background:color-mix(in srgb,hsl(var(--hue) 60% 52%) 15%,var(--bg));border:1px solid color-mix(in srgb,hsl(var(--hue) 70% 70%) 22%,transparent);box-shadow:0 18px 40px -18px rgba(0,0,0,.8),inset 0 1px 0 rgba(255,255,255,.08)}
:root[data-theme=light] #isle{background:rgba(255,255,255,.94)}
#isle .btns button:not(.pp){color:var(--tx);opacity:.88}
#isle .btns button.on{color:var(--ac);opacity:1}
#isle .btns .pp{background:linear-gradient(135deg,hsl(var(--hue) 88% 74%),hsl(calc(var(--hue) + 38) 82% 63%));color:#140d1f;box-shadow:0 10px 22px -10px hsl(var(--hue) 90% 60%/.9),inset 0 1px 0 rgba(255,255,255,.45)}
#isle .btns .pp svg{width:22px;height:22px;fill:currentColor}
#isle .btns button:not(.pp):active,#isle .vol button:active{background:var(--g1)}
@media(max-width:820px){
 #isle .sk{position:static!important;display:block!important;width:100%;padding:0 6px 2px}
 #isle .sk span{display:none}
 #isle .sk input{display:block;width:100%;height:16px;padding:6.5px 0;border-radius:0;background:linear-gradient(90deg,hsl(var(--hue) 90% 74%) var(--p,0%),rgba(255,255,255,.2) var(--p,0%));background-clip:content-box;-webkit-background-clip:content-box;box-sizing:border-box}
 #isle .sk input::-webkit-slider-thumb{width:0;height:0;box-shadow:none;transition:width .15s,height .15s}
 #isle .sk input:active::-webkit-slider-thumb{width:14px;height:14px;box-shadow:0 0 10px hsl(var(--hue) 90% 70%)}
}

/* ===== v5: platform takes the colours of the playing track ===== */
html.tinted{--bg:hsl(var(--th) calc(var(--ts) * .5) 7%);--ac:hsl(var(--th) 88% 70%)}
html.tinted[data-theme=light]{--bg:hsl(var(--th) 45% 92%);--ac:hsl(var(--th) 70% 36%)}
@media(prefers-color-scheme:light){html.tinted:not([data-theme=dark]){--bg:hsl(var(--th) 45% 92%);--ac:hsl(var(--th) 70% 36%)}}
body{transition:background-color .9s ease}
html.tinted body{background:radial-gradient(110% 60% at 50% -5%,hsl(var(--th) var(--ts) 24%/.7),transparent 72%),radial-gradient(70% 50% at 100% 100%,hsl(calc(var(--th) + 40) var(--ts) 20%/.45),transparent 70%),var(--bg);background-attachment:fixed}
html.tinted[data-theme=light] body{background:radial-gradient(110% 60% at 50% -5%,hsl(var(--th) 70% 80%/.8),transparent 72%),var(--bg);background-attachment:fixed}
html.tinted #isle{background:color-mix(in srgb,hsl(var(--th) var(--ts) 30%) 55%,var(--bg));border-color:hsl(var(--th) 70% 70%/.28)}
html.tinted #dock{background:color-mix(in srgb,hsl(var(--th) var(--ts) 24%) 40%,var(--bg))}
html.tinted #isle .btns .pp{background:linear-gradient(135deg,hsl(var(--th) 88% 74%),hsl(calc(var(--th) + 38) 82% 63%))}

/* ===== full player: ring removed, the cover itself hits with the bass ===== */
#ring{display:none!important}
#fs .fsCover .cov.big{will-change:transform;transform:perspective(800px) rotateX(var(--rx)) rotateY(var(--ry)) scale(calc(1 + var(--pulse) * .075));transition:transform .09s linear,box-shadow .09s linear;box-shadow:0 30px 70px -22px rgba(0,0,0,.85),0 0 0 1px rgba(255,255,255,.14),0 0 calc(var(--pulse) * 70px) calc(var(--pulse) * 10px) hsl(var(--th) 85% 60%/calc(.15 + var(--pulse) * .5))}
#fs .fsSeek{display:none!important}
@media(prefers-reduced-motion:reduce){#fs .fsCover .cov.big{transform:none}}

/* ===== lyrics card: clear close button + calmer footer ===== */
#fs .lyHead{padding-right:56px;min-height:48px}
#fs .lyX{position:absolute;top:max(12px,env(safe-area-inset-top));right:max(16px,env(safe-area-inset-right));width:44px;height:44px;border-radius:50%;display:grid;place-items:center;color:#fff;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.22);z-index:3;cursor:pointer;transition:transform .15s,background .2s}
#fs .lyX svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
#fs .lyX:hover{background:rgba(255,255,255,.28)}#fs .lyX:active{transform:scale(.9)}
#fs .lyFoot{justify-content:center;gap:22px;padding:10px 0 4px;margin-top:4px;position:relative}
#fs .lyFoot::before{content:"";position:absolute;left:-22px;right:-22px;top:-34px;height:34px;background:linear-gradient(transparent,color-mix(in srgb,var(--tc) 62%,#000));pointer-events:none}
#fs .lyPP{width:62px;height:62px;box-shadow:0 12px 28px -10px rgba(0,0,0,.6);transition:transform .15s}
#fs .lyPP:active{transform:scale(.92)}#fs .lyPP svg{width:26px;height:26px}
#fs .lyS{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;color:#fff;opacity:.9;transition:transform .15s,background .2s}
#fs .lyS svg{width:30px;height:30px;fill:currentColor;stroke:none}
#fs .lyS:hover{background:rgba(255,255,255,.14)}#fs .lyS:active{transform:scale(.88)}
#fs .lyCard #lyr{padding:16vh 2px 18vh;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
#fs .lyCard #lyr p{overflow-wrap:anywhere;unicode-bidi:plaintext;text-align:start}
@media(max-height:560px){#fs .lyCard #lyr{padding:8vh 2px 10vh}#fs .lyPP{width:52px;height:52px}}
@media(min-width:900px){#fs .lyCard #lyr p{font-size:clamp(30px,3.4vw,48px)}}

/* ===== v6: roll animation on song change, no colour sweep, smoother frames ===== */
#fT,#fA{display:block;position:relative;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#fT i,#fA i{display:block;font-style:normal;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#fT .ro,#fA .ro{position:absolute;left:0;right:0;top:0;animation:rollOut .5s cubic-bezier(.65,0,.35,1) forwards}
#fT .ri,#fA .ri{animation:rollIn .5s cubic-bezier(.65,0,.35,1) both}
@keyframes rollOut{to{transform:translateY(-120%);opacity:0}}
@keyframes rollIn{from{transform:translateY(120%);opacity:0}}
.iM.sw b,.iM.sw small{animation:none!important}
.iM.sw .cov,#isle.pl .iM.sw .cov{animation:spin 16s linear infinite,swapc .6s cubic-bezier(.34,1.4,.5,1) both}
#isle:not(.pl) .iM.sw .cov{animation:swapc .6s cubic-bezier(.34,1.4,.5,1) both}
@keyframes swapc{from{opacity:0;scale:.5;rotate:-180deg}to{opacity:1;scale:1;rotate:0deg}}
/* background: two layers crossfade, so the hue never sweeps through other colours */
html.tinted body{background:var(--bg)!important}
#tb{position:fixed;inset:0;z-index:-2;pointer-events:none;display:none}
html.tinted #tb{display:block}
#tb i{position:absolute;inset:0;opacity:0;transition:opacity .9s ease;background:radial-gradient(110% 60% at 50% -5%,hsl(var(--th) var(--ts) 24%/.7),transparent 72%),radial-gradient(70% 50% at 100% 100%,hsl(calc(var(--th) + 40) var(--ts) 20%/.45),transparent 70%)}
#tb i.on{opacity:1}
:root[data-theme=light] #tb i{background:radial-gradient(110% 60% at 50% -5%,hsl(var(--th) 70% 80%/.8),transparent 72%)}
@media(prefers-color-scheme:light){:root:not([data-theme=dark]) #tb i{background:radial-gradient(110% 60% at 50% -5%,hsl(var(--th) 70% 80%/.8),transparent 72%)}}
html.tinted #isle,html.tinted #dock{transition:background-color .8s ease,border-color .8s ease}
body{transition:background-color .8s ease}
/* performance: no blur filter on the big canvas, no blend-mode noise layer, hints for moving parts */
#amb{filter:none!important;transform:translateZ(0)}
body::after{mix-blend-mode:normal!important;opacity:.035!important}
#isle,#fs .cov.big,#fs .halo,.orb .halo{will-change:transform}
#isle .iM .cov{will-change:transform}
#dock,#isle{-webkit-backdrop-filter:blur(14px)!important;backdrop-filter:blur(14px)!important}
@media(max-width:820px){#dock,#isle{-webkit-backdrop-filter:blur(10px)!important;backdrop-filter:blur(10px)!important}}
#fs .fsCover .cov.big{transition:transform .12s linear,box-shadow .12s linear}
.cov,.card,.row,button{-webkit-tap-highlight-color:transparent}
@media(prefers-reduced-motion:reduce){#fT .ro,#fA .ro,#fT .ri,#fA .ri{animation:none}}

/* ===== v7: mini player — cover rolls like the text, skip ±10s, better seek line ===== */
#fCov{position:relative;overflow:hidden}
#fCov i{position:absolute;inset:0;display:block;border-radius:inherit}
#fCov .ro{animation:rollOut .5s cubic-bezier(.65,0,.35,1) forwards}
#fCov .ri{animation:rollIn .5s cubic-bezier(.65,0,.35,1) both}
#isle.pl .iM.sw .cov{animation:spin 16s linear infinite!important}
#isle:not(.pl) .iM.sw .cov{animation:none!important}
#isle .sk{display:flex!important;align-items:center;gap:6px;position:static!important;width:100%;padding:0 2px!important}
#isle .sk span{display:block!important;flex:none;min-width:34px;text-align:center;font:600 11px/1 'Instrument Sans',system-ui,sans-serif;color:var(--mu);font-variant-numeric:tabular-nums}
#isle .skw{position:relative;flex:1;min-width:0}
#isle .sk input[type=range]{-webkit-appearance:none;appearance:none;display:block;width:100%;height:30px;margin:0;padding:0!important;border-radius:0;background:transparent!important;cursor:pointer;outline-offset:2px}
#isle .sk input::-webkit-slider-runnable-track{height:6px;border-radius:6px;background:linear-gradient(90deg,hsl(var(--hue) 90% 76%),hsl(calc(var(--hue) + 40) 88% 68%)) 0 0/var(--p,0%) 100% no-repeat,rgba(255,255,255,.2)}
#isle .sk input::-webkit-slider-thumb{-webkit-appearance:none;width:14px!important;height:14px!important;margin-top:-4px;border-radius:50%;border:0;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.5),0 0 0 4px hsl(var(--hue) 90% 70%/.28)!important;transition:transform .15s}
#isle .sk input::-moz-range-track{height:6px;border-radius:6px;background:rgba(255,255,255,.2)}
#isle .sk input::-moz-range-progress{height:6px;border-radius:6px;background:hsl(var(--hue) 90% 74%)}
#isle .sk input::-moz-range-thumb{width:14px!important;height:14px!important;border:0;border-radius:50%;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.5)!important}
#isle .skw.drag input::-webkit-slider-thumb{transform:scale(1.4)}
#isle .skw:hover input::-webkit-slider-thumb{transform:scale(1.2)}
:root[data-theme=light] #isle .sk input::-webkit-slider-runnable-track{background:linear-gradient(90deg,hsl(var(--hue) 70% 46%),hsl(calc(var(--hue) + 40) 70% 52%)) 0 0/var(--p,0%) 100% no-repeat,rgba(60,40,120,.2)}
#sktip{position:absolute;bottom:27px;transform:translateX(-50%);padding:5px 9px;border-radius:9px;background:#fff;color:#0b0812;font:700 12px/1 'Instrument Sans',system-ui,sans-serif;font-variant-numeric:tabular-nums;white-space:nowrap;pointer-events:none;box-shadow:0 6px 18px -4px rgba(0,0,0,.6);z-index:2}
#isle .skb{width:34px;height:34px;flex:none;border-radius:50%;display:grid;place-items:center;color:var(--tx);opacity:.82;transition:transform .15s,background .2s,opacity .2s}
#isle .skb svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
#isle .skb svg text{fill:currentColor;stroke:none;font-family:'Instrument Sans',system-ui,sans-serif}
#isle .skb:hover{opacity:1;background:var(--g1)}#isle .skb:active{transform:scale(.84);background:var(--g1)}
#isle .sk.hit .skw{animation:skhit .35s ease}
@keyframes skhit{40%{transform:scaleY(1.6)}}
@media(max-width:820px){#isle .sk{gap:4px;padding:0 0 2px!important}#isle .sk span{min-width:30px;font-size:10.5px}#isle .skb{width:32px;height:32px}}
@media(max-width:360px){#isle .sk span{min-width:26px;font-size:10px}#isle .skb{width:28px;height:28px}#isle .skb svg{width:20px;height:20px}}
@media(pointer:coarse){#isle .sk input[type=range]{height:34px}}

/* ===== v8: big player — roll on song change, tidy action buttons, no empty gap ===== */
#fs .cov.big{position:relative;overflow:hidden}
#fs .cov.big i{position:absolute;inset:0;display:block;border-radius:inherit}
#fs .cov.big .ro,#fs .fsT .ro{animation:rollOut .55s cubic-bezier(.65,0,.35,1) forwards}
#fs .cov.big .ri,#fs .fsT .ri{animation:rollIn .55s cubic-bezier(.65,0,.35,1) both}
#fs .fsT .rolling{display:block;position:relative;overflow:hidden}
#fs .fsT .rolling i{display:block;font-style:normal}
#fs .fsT .rolling .ro{position:absolute;left:0;right:0;top:0}
#fs .fsPill{position:relative}
#fs .fsPill .cnt{font-style:normal;font-size:11px;font-weight:800;min-width:19px;height:19px;padding:0 5px;border-radius:99px;display:grid;place-items:center;background:var(--tc3);color:#0b0812}
#fs .fsPill.on .cnt{background:#0b0812;color:#fff}
@media(max-width:899px){
 #fs{display:flex;flex-direction:column;align-content:normal;justify-content:flex-start;gap:10px;padding-bottom:max(16px,calc(env(safe-area-inset-bottom) + 10px))}
 #fs .fsTop{flex:none}
 #fs .fsCover{flex:1 1 0;min-height:190px;width:100%;max-width:none;display:grid;place-items:center;padding:0}
 #fs .orb{width:min(80vw,360px,max(190px,calc(100dvh - 505px)))}
 #fs .fsBody{flex:none;margin-top:auto;max-width:none}
 #fs .fsTabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:2px 0 0}
 #fs .fsPill{flex-direction:column;justify-content:center;gap:5px;height:62px;padding:6px 2px;border-radius:18px;font-size:11.5px;font-weight:700;letter-spacing:.01em;min-width:0;text-align:center}
 #fs .fsPill svg{width:21px;height:21px}
 #fs .fsPill span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 #fs .fsPill .cnt{position:absolute;top:5px;right:calc(50% - 26px);min-width:17px;height:17px;font-size:10px}
 #fs .fsPill.spd{padding:6px 2px}
 #fs .fsPill select{padding:0;text-align:center;text-align-last:center;font-size:12px;height:auto;width:auto;max-width:100%}
 #fs .fsPill.spd{gap:2px}
}
@media(max-width:340px){#fs .fsPill{font-size:10.5px;height:58px}}
@media(min-width:900px){#fs .fsTabs{gap:10px}#fs .fsPill{height:44px;padding:0 18px}}

/* ===== lyrics tools: tap-to-sync overlay ===== */
.lybtns{display:flex;flex-wrap:wrap;gap:8px}.lybtns .ghost{cursor:pointer}
#lsy{position:fixed;inset:0;z-index:200;display:flex;flex-direction:column;gap:10px;padding:max(14px,env(safe-area-inset-top)) 16px max(14px,env(safe-area-inset-bottom));background:var(--bg);color:var(--tx)}
#lsy .lsh{display:flex;align-items:center;justify-content:space-between;font-size:20px;font-weight:700}
#lsy .lsx{width:42px;height:42px;border-radius:50%;background:var(--g1);font-size:18px}
#lsy .lsl{flex:1;min-height:0;overflow:auto;display:grid;align-content:start;gap:4px;padding:6px 2px;overscroll-behavior:contain}
#lsy .lsl p{display:flex;gap:12px;align-items:baseline;padding:10px 12px;border-radius:14px;opacity:.5;font-size:18px;line-height:1.5;unicode-bidi:plaintext}
#lsy .lsl p i{font:600 12px/1 ui-monospace,monospace;font-style:normal;opacity:.75;flex:none;min-width:58px;direction:ltr}
#lsy .lsl p.done{opacity:.85}#lsy .lsl p.next{opacity:1;background:var(--g1);outline:2px solid var(--ac)}
#lsy .lsc{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
#lsy .lst{grid-column:1/-1;order:-1;height:74px;border-radius:22px;font-size:20px;font-weight:800;background:linear-gradient(135deg,hsl(var(--hue) 90% 74%),hsl(calc(var(--hue) + 38) 85% 63%));color:#140d1f}
#lsy .lst:disabled{opacity:.4}#lsy .lst:active{transform:scale(.98)}
#lsy .lsc .ghost,#lsy .lsc .btn{height:46px}#lsy .lsc .btn{grid-column:1/-1}

/* ===== fonts: Vazirmatn (Persian, regular to extra-bold) bundled locally ===== */
@font-face{font-family:'Vazirmatn';font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/vazirmatn-arabic-wght-normal.woff2) format('woff2');unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:'Vazirmatn';font-style:normal;font-weight:100 900;font-display:swap;src:url(/fonts/vazirmatn-latin-wght-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
body,button,input,textarea,select{font-family:'Instrument Sans','Vazirmatn',system-ui,sans-serif}
h1,h2,h3,.big,.serif,#dock .lg{font-family:'Bricolage Grotesque','Vazirmatn','Instrument Sans',sans-serif}
.rtl-t{letter-spacing:0!important;font-family:'Vazirmatn','Instrument Sans',system-ui,sans-serif!important;unicode-bidi:plaintext}
html.fa body,html.fa button,html.fa input,html.fa textarea,html.fa select{font-family:'Vazirmatn','Instrument Sans',system-ui,sans-serif}
html.fa h1,html.fa h2,html.fa h3,html.fa .big,html.fa .serif,html.fa #dock .lg{font-family:'Vazirmatn','Bricolage Grotesque',sans-serif;font-weight:800;letter-spacing:0}
html.fa *{letter-spacing:0!important}
html.fa body{line-height:1.7}
html.fa b,html.fa strong,html.fa .btn,html.fa .fsPill{font-weight:700}
html.fa .mu{font-size:13.5px}
/* language switch */
.langsw{display:inline-flex;gap:4px;padding:3px;border-radius:99px;background:var(--g2);border:1px solid var(--ln);margin:6px auto 0}
.langsw button{padding:5px 14px;border-radius:99px;font-size:13px;font-weight:600;color:var(--mu)}
.langsw button.on{background:var(--tx);color:var(--bg)}

/* ===== RTL (Persian): media controls and timelines keep their left-to-right order ===== */
.ltr-t{direction:ltr;unicode-bidi:isolate}
html.fa #isle .sk,html.fa #isle .btns,html.fa #fs .fsCtl,html.fa #fs .lyFoot,html.fa #lsy .lsc{direction:ltr}
html.fa #isle .sk span,html.fa #isle .skw{direction:ltr}
html.fa #fs .lyCard #lyr p{transform-origin:right center}
html.fa #fs .lyCard #lyr p[dir=ltr]{transform-origin:left center}
html.fa #fs .lyCard #lyr p{font-weight:800;line-height:1.55}
html.fa #fs .lyCard #lyr p.rtl-t{line-height:1.7}
html.fa .fsFrom{direction:rtl}
#fs .lyCard #lyr{padding-left:16px!important;padding-right:16px!important}
#fs .lyCard #lyr p{padding-left:2px;padding-right:2px;overflow-wrap:anywhere}

/* ===== v9: smoother scrolling and animation ===== */
/* long lists only paint what is on screen */
.row,.acard,.card{content-visibility:auto;contain-intrinsic-size:auto 72px}
.acard,.card{contain-intrinsic-size:auto 220px}
/* blur is expensive on phones: keep it for the dock, mini player and dialogs only */
@media(max-width:820px){.glass,.panel,.stage,.hero,section,.card,.acard{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}}
/* the compositor animates transform and opacity only */
.card,.acard,.row,button,.fsPill{transition-property:transform,opacity,background-color,border-color,color,box-shadow}
html{scroll-behavior:auto}
main,#fs,#lyr,#lsy .lsl{-webkit-overflow-scrolling:touch}
#lyr p{will-change:opacity,transform}
@media(hover:none){.card:hover,.acard:hover{transform:none!important}}
body{text-rendering:optimizeSpeed}
html.fa body{text-rendering:optimizeLegibility}
@media(prefers-reduced-motion:no-preference){#fs{animation-duration:.4s}}
