:root{--bg:#0b0c0f;--panel:#121419;--soft:#1b1e25;--text:#f7f7f8;--muted:#949aa6;--line:#292d35;--accent:#1ed760;--bar:rgba(15,17,21,.94)}[data-theme=light]{--bg:#f4f4f3;--panel:#fff;--soft:#eceeec;--text:#151715;--muted:#70756f;--line:#dddeda;--bar:rgba(255,255,255,.94)}*{box-sizing:border-box}html,body{height:100%}body{margin:0;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;overflow:hidden}button,input{font:inherit}.skip{position:fixed;left:12px;top:-60px;z-index:100;background:var(--text);color:var(--bg);padding:10px 14px;border-radius:8px}.skip:focus{top:12px}.app{height:100%;display:grid;grid-template-columns:220px minmax(0,1fr);grid-template-rows:minmax(0,1fr) 92px}.sidebar{grid-row:1;display:flex;flex-direction:column;padding:28px 18px 20px;border-right:1px solid var(--line)}.logo{display:flex;align-items:center;gap:11px;color:inherit;text-decoration:none;padding:0 10px 28px}.logo span{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:#07140b}.logo svg{width:19px;fill:currentColor}.logo svg path{fill:none;stroke:currentColor;stroke-width:2}.sidebar nav{display:grid;gap:6px}.nav{height:46px;display:flex;align-items:center;gap:13px;border:0;border-radius:10px;padding:0 12px;background:transparent;color:var(--muted);font-weight:650;cursor:pointer}.nav:hover,.nav.active{background:var(--soft);color:var(--text)}.nav svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.sidebar-foot{margin-top:auto}.content{min-width:0;overflow:auto;padding:34px 5vw 44px;background:radial-gradient(circle at 25% 12%,rgba(30,215,96,.10),transparent 34%)}.top{display:flex;align-items:center;justify-content:space-between;gap:20px}.kicker{font-size:11px;letter-spacing:.2em;color:var(--accent);font-weight:800}.top h1{font-size:clamp(26px,3vw,42px);margin:7px 0 0;letter-spacing:-.04em}.pill,.soft,.circle,.icon,.play,.speed{border:0;color:var(--text);cursor:pointer}.pill{height:42px;border-radius:999px;background:var(--soft);padding:0 15px;display:flex;align-items:center;gap:8px}.pill svg{width:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}.pill span{display:grid;place-items:center;min-width:22px;height:22px;border-radius:99px;background:var(--panel);font-size:11px}.stage{min-height:calc(100% - 84px);display:grid;grid-template-columns:minmax(280px,480px) minmax(260px,1fr);grid-template-rows:1fr auto;align-items:center;gap:34px 7vw;padding-top:24px}.art-wrap{position:relative;width:min(42vw,460px);aspect-ratio:1;margin:auto}.ambient{position:absolute;inset:8%;background:#1ed760;filter:blur(70px);opacity:.20;border-radius:50%;transform:scale(.95)}.art-wrap img{position:relative;width:100%;height:100%;object-fit:cover;border-radius:14px;box-shadow:0 28px 70px rgba(0,0,0,.38)}.meta{align-self:end;padding-bottom:6vh}.meta>p{margin:0;color:var(--muted)}.meta h2{font-size:clamp(38px,5vw,76px);line-height:1.02;letter-spacing:-.055em;margin:14px 0 16px;max-width:760px}.meta-actions{display:flex;align-items:center;gap:12px;margin-top:28px}.circle,.icon{width:42px;height:42px;display:grid;place-items:center;border-radius:50%;background:transparent}.circle{border:1px solid var(--line)}.circle svg,.icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.soft{height:42px;padding:0 18px;border-radius:999px;background:var(--text);color:var(--bg);font-weight:750}.lyrics{grid-column:2;padding:0 0 4vh;max-height:220px;overflow:auto}.lyrics p{font-size:clamp(19px,2vw,30px);font-weight:700;line-height:1.45;color:var(--muted);margin:10px 0}.lyrics p.active{color:var(--text)}.queue{position:fixed;z-index:40;right:0;top:0;bottom:92px;width:min(420px,92vw);padding:28px;background:var(--panel);border-left:1px solid var(--line);transform:translateX(105%);transition:transform .25s ease;display:flex;flex-direction:column}.queue.open{transform:none}.queue header{display:flex;justify-content:space-between;align-items:flex-start}.queue small{color:var(--muted)}.queue h2{margin:5px 0 0}.queue ol{padding:0;margin:24px 0;overflow:auto}.queue li{list-style:none}.queue li button{width:100%;display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px;align-items:center;border:0;border-radius:10px;padding:8px;background:transparent;color:inherit;text-align:left;cursor:pointer}.queue li button:hover,.queue li.active button{background:var(--soft)}.queue li img{width:48px;height:48px;border-radius:6px;object-fit:cover}.queue li b,.queue li span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.queue li span{color:var(--muted);font-size:12px;margin-top:3px}.empty{margin:auto;text-align:center;display:flex;flex-direction:column;align-items:center;color:var(--muted)}.empty svg{width:64px;fill:none;stroke:currentColor;stroke-width:2}.empty b{color:var(--text);margin:16px 0 6px}.backdrop{position:fixed;z-index:35;inset:0 0 92px;background:rgba(0,0,0,.5);opacity:0;pointer-events:none;transition:.2s}.backdrop.show{opacity:1;pointer-events:auto}.player{grid-column:1/-1;z-index:50;display:grid;grid-template-columns:minmax(220px,1fr) minmax(360px,1.5fr) minmax(220px,1fr);gap:24px;align-items:center;padding:12px 24px calc(12px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:var(--bar);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}.mini{display:flex;align-items:center;gap:11px;min-width:0}.mini img{width:56px;height:56px;border-radius:7px;object-fit:cover}.mini div{min-width:0}.mini b,.mini span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mini span{color:var(--muted);font-size:12px;margin-top:4px}.buttons{display:flex;align-items:center;justify-content:center;gap:14px}.play{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:var(--text);color:var(--bg)}.play svg{width:22px;fill:currentColor}.timeline{display:grid;grid-template-columns:38px 1fr 38px;align-items:center;gap:8px;font-size:10px;color:var(--muted)}.timeline span:last-child{text-align:right}input[type=range]{appearance:none;-webkit-appearance:none;width:100%;height:18px;background:transparent;cursor:pointer}input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:9px;background:linear-gradient(90deg,var(--text) 0 var(--fill,0%),var(--line) var(--fill,0%))}input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:12px;border-radius:50%;background:var(--text);margin-top:-4px;opacity:0}input[type=range]:hover::-webkit-slider-thumb,input[type=range]:focus-visible::-webkit-slider-thumb{opacity:1}.extras{display:flex;align-items:center;justify-content:flex-end;gap:7px}.extras input{max-width:100px}.speed{height:32px;min-width:40px;border-radius:8px;background:var(--soft);font-size:12px}.mq{display:none}.toast{position:fixed;z-index:80;left:50%;bottom:108px;transform:translate(-50%,10px);background:var(--text);color:var(--bg);padding:10px 14px;border-radius:9px;font-size:13px;opacity:0;transition:.2s;pointer-events:none}.toast.show{opacity:1;transform:translate(-50%,0)}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid color-mix(in srgb,var(--accent) 50%,transparent);outline-offset:2px}@media(max-width:850px), (orientation:landscape) and (max-width:1100px) and (max-height:600px){body{overflow:auto}.app{grid-template-columns:1fr;grid-template-rows:auto 88px;min-height:100%}.sidebar{display:none}.content{padding:22px 18px 38px}.top h1{font-size:28px}.pill{font-size:0}.pill span{font-size:11px}.stage{display:flex;flex-direction:column;gap:24px;padding-top:28px}.art-wrap{width:min(78vw,420px)}.meta{align-self:stretch;text-align:center;padding:0}.meta h2{font-size:clamp(30px,10vw,52px);margin:12px 0 10px}.meta-actions{justify-content:center}.lyrics{width:100%;padding:10px 0 30px;text-align:center}.player{position:sticky;bottom:0;grid-template-columns:minmax(0,1fr) auto;padding:10px 12px calc(10px + env(safe-area-inset-bottom));gap:8px}.transport{display:flex;align-items:center}.buttons{gap:0}.buttons #modeBtn,.buttons #prevBtn{display:none}.timeline{position:fixed;left:0;right:0;bottom:calc(82px + env(safe-area-inset-bottom));display:block;height:5px}.timeline span{display:none}.timeline input{height:12px;display:block}.mini img{width:48px;height:48px}.extras{display:none}.play{background:transparent;color:var(--text)}.mq{display:grid}.queue{bottom:88px}.backdrop{bottom:88px}}@media(max-height:720px) and (min-width:851px){.art-wrap{width:min(35vw,350px)}.meta h2{font-size:52px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* v4 interaction and visual polish */
.content{position:relative;background:radial-gradient(circle at 22% 12%,rgba(30,215,96,.13),transparent 33%),radial-gradient(circle at 82% 80%,rgba(70,105,255,.07),transparent 30%)}
.content:before{content:"";position:fixed;inset:0 0 92px 220px;pointer-events:none;opacity:.18;background-image:radial-gradient(rgba(255,255,255,.18) .55px,transparent .55px);background-size:20px 20px;mask-image:linear-gradient(to bottom,black,transparent 72%);-webkit-mask-image:linear-gradient(to bottom,black,transparent 72%)}
.art-wrap{perspective:900px}.art-wrap img{transition:transform .28s ease,box-shadow .28s ease}.art-wrap:hover img{box-shadow:0 36px 85px rgba(0,0,0,.48)}
.art-wrap.playing img{animation:cover-breathe 5s ease-in-out infinite}.art-wrap.playing .ambient{opacity:.34;transform:scale(1.05)}.ambient{transition:opacity .5s,transform .5s}
@keyframes cover-breathe{50%{transform:scale(1.008)}}
.nav,.pill,.soft,.circle,.icon,.play,.speed,.queue li button{transition:background-color .16s,color .16s,transform .14s,opacity .16s}.nav:active,.pill:active,.soft:active,.circle:active,.icon:active,.speed:active{transform:scale(.94)}.play:hover{transform:scale(1.07)}.play:active{transform:scale(.96)}
.circle:hover,.icon:hover{background:var(--soft)}.soft:hover{opacity:.88}.pill:hover{background:var(--line)}
.favorite-on{color:var(--accent)!important;border-color:var(--accent)!important}.favorite-on svg{fill:currentColor!important}.meta{position:relative}.more-menu{position:absolute;z-index:12;left:120px;top:calc(100% - 5vh);width:180px;padding:6px;background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:0 18px 48px rgba(0,0,0,.32)}.more-menu button{display:block;width:100%;padding:11px 12px;border:0;border-radius:8px;text-align:left;background:transparent;color:var(--text);cursor:pointer}.more-menu button:hover{background:var(--soft)}
.queue li{animation:item-in .25s both}.queue li:nth-child(2){animation-delay:.03s}.queue li:nth-child(3){animation-delay:.06s}.queue li:nth-child(4){animation-delay:.09s}@keyframes item-in{from{opacity:0;transform:translateX(8px)}}
.lyrics p{transition:color .25s,transform .25s,opacity .25s}.lyrics p.active{transform:translateX(8px)}

.shake{animation:shake .28s}@keyframes shake{25%{transform:translateX(-5px)}50%{transform:translateX(5px)}75%{transform:translateX(-3px)}}
@media(max-width:850px), (orientation:landscape) and (max-width:1100px) and (max-height:600px){.content:before{inset:0 0 88px 0}.more-menu{left:50%;top:100%;transform:translateX(-50%)}.meta h2{overflow-wrap:anywhere}.art-wrap:hover img{}.lyrics p.active{transform:none}}
@media(prefers-reduced-motion:reduce){.art-wrap.playing img{animation:none}.queue li{animation:none}}

/* v5 targeted fixes: consistent cover and no lyric horizontal scrollbar */
.art-wrap{border-radius:14px;isolation:isolate}
.art-wrap>img{display:block;border-radius:14px!important;clip-path:inset(0 round 14px);-webkit-clip-path:inset(0 round 14px);background:#e9edf5}
[data-theme="light"] .art-wrap>img,[data-theme="dark"] .art-wrap>img{border-radius:14px!important;background:#e9edf5}
.lyrics{overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.lyrics::-webkit-scrollbar{width:6px;height:0}
.lyrics::-webkit-scrollbar-track{background:transparent}
.lyrics::-webkit-scrollbar-thumb{background:var(--line);border-radius:999px}
.lyrics p,.lyrics p.active{max-width:100%;transform:none!important}
@media(max-width:850px), (orientation:landscape) and (max-width:1100px) and (max-height:600px){.art-wrap>img{border-radius:14px!important;clip-path:inset(0 round 14px);-webkit-clip-path:inset(0 round 14px)}}

/* v6 default artwork refinement */
.art-wrap>img{background:#15181d!important}
[data-theme="light"] .art-wrap>img,[data-theme="dark"] .art-wrap>img{background:#15181d!important}

/* v7 circular rotating record */
.art-wrap{border-radius:50%!important;overflow:visible;isolation:isolate}
.art-wrap>img{border-radius:50%!important;clip-path:circle(50%)!important;-webkit-clip-path:circle(50%)!important;background:transparent!important;animation:record-spin 18s linear infinite;animation-play-state:paused;will-change:transform;box-shadow:0 28px 75px rgba(0,0,0,.42)}
.art-wrap.playing>img{animation-play-state:running}
.art-wrap:hover>img{box-shadow:0 34px 86px rgba(0,0,0,.50)}
.art-wrap:after{content:"";position:absolute;z-index:2;left:50%;top:50%;width:16px;height:16px;border-radius:50%;transform:translate(-50%,-50%);background:var(--bg);box-shadow:0 0 0 3px rgba(255,255,255,.24);pointer-events:none}
[data-theme="light"] .art-wrap>img{filter:drop-shadow(0 24px 34px rgba(27,36,29,.18))}
[data-theme="dark"] .art-wrap>img{filter:drop-shadow(0 25px 38px rgba(0,0,0,.42))}
@keyframes record-spin{to{transform:rotate(360deg)}}
@media(max-width:850px), (orientation:landscape) and (max-width:1100px) and (max-height:600px){.art-wrap>img{border-radius:50%!important;clip-path:circle(50%)!important;-webkit-clip-path:circle(50%)!important}}
@media(prefers-reduced-motion:reduce){.art-wrap>img{animation:none!important}}

/* v8 clean record center: the spindle is drawn only once inside the SVG */
.art-wrap:after{display:none!important}

/* v10: explicit icons, state feedback and visible theme transition */
:root{--sidebar:#090b0e;--player:#0e1014;--active:#1d2129;--theme-flash:rgba(30,215,96,.14)}
[data-theme=light]{--sidebar:#f7f8f6;--player:#ffffff;--active:#e5e9e4;--theme-flash:rgba(29,158,77,.11)}
body,.sidebar,.content,.player,.nav,.pill,.soft,.circle,.queue{transition:background-color .32s ease,color .25s ease,border-color .25s ease}
.sidebar{background:var(--sidebar)}.player{background:var(--player)}.nav.active{background:var(--active)}
[data-theme=light] .content{background:radial-gradient(circle at 22% 12%,rgba(29,158,77,.14),transparent 33%),radial-gradient(circle at 82% 80%,rgba(102,126,255,.08),transparent 30%),#f4f6f3}
[data-theme=light] .content:before{opacity:.10;background-image:radial-gradient(rgba(15,24,17,.28) .55px,transparent .55px)}
.action-nav{position:relative;width:100%;grid-template-columns:24px 1fr auto;display:grid;text-align:left}.nav-icon{display:grid;place-items:center;width:22px;height:22px}.nav-icon svg{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.theme-switch{width:34px;height:19px;padding:2px;border-radius:999px;background:var(--line);transition:background .25s}.theme-switch i{display:block;width:15px;height:15px;border-radius:50%;background:var(--muted);transition:transform .25s,background .25s}[data-theme=light] .theme-switch{background:rgba(29,158,77,.28)}[data-theme=light] .theme-switch i{transform:translateX(15px);background:#1d9e4d}
@keyframes theme-pop{50%{transform:rotate(24deg) scale(1.25)}}@keyframes switch-pulse{50%{box-shadow:0 0 0 6px var(--theme-flash)}}
.app.theme-changing:after{content:"";position:fixed;z-index:90;inset:0;pointer-events:none;background:var(--theme-flash);animation:theme-wash .4s ease-out forwards}@keyframes theme-wash{from{opacity:1}to{opacity:0}}
.mode-control{position:relative}.mode-control>svg{display:none}.mode-control #modeIcon{display:grid;place-items:center}.mode-control #modeIcon svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.mode-control.mode-pulse{animation:mode-pulse .32s ease}@keyframes mode-pulse{50%{transform:scale(.82)}}
.mode-badge{position:absolute;left:50%;bottom:calc(100% + 10px);transform:translate(-50%,6px);white-space:nowrap;padding:7px 10px;border-radius:8px;background:var(--text);color:var(--bg);font-size:11px;font-weight:700;opacity:0;pointer-events:none;transition:.18s}.mode-badge.show{opacity:1;transform:translate(-50%,0)}
.icon:hover,.action-nav:hover{color:var(--text)}.mode-control:hover{color:var(--accent)}
@media(max-width:850px), (orientation:landscape) and (max-width:1100px) and (max-height:600px){.mode-badge{display:none}.app.theme-changing:after{bottom:88px}}
@media(prefers-reduced-motion:reduce){body,.sidebar,.content,.player,.nav,.theme-switch,.theme-switch i{transition:none!important}.app.theme-changing:after{display:none}}

/* v11: shortcut feature removed; music library gets deliberate transitions */
.queue{visibility:hidden;opacity:0;transform:translateX(calc(100% + 28px)) scale(.985);transform-origin:right center;transition:transform .42s cubic-bezier(.22,1,.36,1),opacity .24s ease,visibility 0s linear .42s;box-shadow:-30px 0 80px rgba(0,0,0,.28)}
.queue.open{visibility:visible;opacity:1;transform:translateX(0) scale(1);transition:transform .42s cubic-bezier(.22,1,.36,1),opacity .24s ease,visibility 0s}
.queue.preparing{visibility:visible;opacity:0;transform:translateX(calc(100% + 28px)) scale(.985)}
.backdrop{transition:opacity .32s ease,backdrop-filter .32s ease;-webkit-backdrop-filter:blur(0);backdrop-filter:blur(0)}
.backdrop.show{-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}





to{opacity:0;transform:translateX(100%)}}
}
.queue header{opacity:0;transform:translateY(-7px);transition:.25s ease .12s}.queue.open header{opacity:1;transform:none}
.queue.open li{animation:item-in .35s cubic-bezier(.22,1,.36,1) both}

}
body.queue-open .content{transform:scale(.995);filter:saturate(.86);transition:transform .36s ease,filter .36s ease}
.content{transition:background-color .32s ease,color .25s ease,border-color .25s ease,transform .36s ease,filter .36s ease}
@media(max-width:850px), (orientation:landscape) and (max-width:1100px) and (max-height:600px){.queue{transform:translateY(26px) scale(.985);inset:74px 12px 104px;width:auto;border:1px solid var(--line);border-radius:18px}.queue.open{transform:translateY(0) scale(1)}.queue.preparing{transform:translateY(26px) scale(.985)}}
@media(prefers-reduced-motion:reduce){.queue,.backdrop,.queue header,.content{transition:none!important}}

/* v12: simplified icon system and complete mobile controls */
.top-actions{display:flex;align-items:center;gap:9px}.mobile-top-btn{display:none}
.mobile-top-btn{width:42px;height:42px;border:0;border-radius:50%;background:var(--soft);color:var(--text);place-items:center;cursor:pointer}.mobile-top-btn svg{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.icon svg,.pill svg,.nav svg,.circle svg{shape-rendering:geometricPrecision}.icon svg{width:19px;height:19px}.play svg{width:20px;height:20px}

@media(max-width:850px), (orientation:landscape) and (max-width:1100px) and (max-height:600px){
 .mobile-top-btn{display:grid}
 .buttons #modeBtn,.buttons #prevBtn{display:grid!important}
 .buttons{gap:1px}.buttons .icon{width:38px;height:38px}.play{width:44px;height:44px}
 .mode-control .mode-badge{display:none}
 .top{align-items:flex-start}.top-actions{margin-top:2px}.pill{width:42px;padding:0;justify-content:center}.pill>span{position:absolute;transform:translate(13px,-13px);min-width:17px;width:17px;height:17px}.pill{position:relative}
}
@media(max-width:390px){.buttons .icon{width:34px;height:38px}.mini img{width:44px;height:44px}.mini b{font-size:13px}.mini span{font-size:11px}.player{padding-left:9px;padding-right:9px}}

/* v13: mobile controls are separated into two calm rows */
@media(max-width:850px), (orientation:landscape) and (max-width:1100px) and (max-height:600px){
 .app{grid-template-rows:auto 142px}
 .player{height:142px;display:grid;grid-template-columns:1fr;grid-template-rows:54px 64px;gap:5px;padding:9px 16px calc(10px + env(safe-area-inset-bottom));align-items:center}
 .mini{grid-column:1;grid-row:1;padding-bottom:7px;border-bottom:1px solid var(--line)}
 .mini img{width:45px;height:45px}.mini b{font-size:14px}.mini span{font-size:11px}
 .transport{grid-column:1;grid-row:2;display:block;width:100%}
 .buttons{display:grid;grid-template-columns:42px 46px 58px 46px 42px;justify-content:center;align-items:center;gap:clamp(8px,4vw,18px);width:100%}
 .buttons #modeBtn,.buttons #prevBtn,.buttons #nextBtn{display:grid!important}
 .buttons .icon{width:42px;height:42px;border-radius:50%}
 .buttons .icon:hover,.buttons .icon:active{background:var(--soft)}
 .play{width:54px;height:54px;background:var(--text);color:var(--bg);box-shadow:0 7px 22px rgba(0,0,0,.22)}
 .play svg{width:22px;height:22px}
 .timeline{bottom:calc(137px + env(safe-area-inset-bottom))}
 .queue{bottom:142px;inset:74px 12px calc(154px + env(safe-area-inset-bottom))}
 .backdrop{bottom:142px}
 .toast{bottom:calc(158px + env(safe-area-inset-bottom))}
}
@media(max-width:390px){
 .player{padding-left:12px;padding-right:12px}
 .buttons{grid-template-columns:38px 42px 52px 42px 38px;gap:clamp(5px,3vw,12px)}
 .buttons .icon{width:38px;height:38px}.play{width:50px;height:50px}
}

/* v14 mobile full-screen swipe player */
.mobile-player{display:none}
@media(max-width:850px), (orientation:landscape) and (max-width:1100px) and (max-height:600px){
 body{overflow:hidden}.sidebar,.content,.player{display:none!important}.app{display:block;height:100%;min-height:0}.mobile-player{display:flex;height:100dvh;min-height:100%;flex-direction:column;background:linear-gradient(180deg,color-mix(in srgb,var(--accent) 12%,var(--bg)) 0,var(--bg) 34%);color:var(--text);overflow:hidden;padding:calc(10px + env(safe-area-inset-top)) 18px calc(16px + env(safe-area-inset-bottom))}
 .mobile-head{height:52px;flex:0 0 52px;display:grid;grid-template-columns:44px 1fr 44px;align-items:center}.page-dots{display:flex;justify-content:center;gap:7px}.page-dots i{width:6px;height:6px;border-radius:99px;background:var(--muted);opacity:.45;transition:.22s}.page-dots i.active{width:20px;opacity:1;background:var(--text)}
 .m-icon,.m-control,.m-play{border:0;background:transparent;color:var(--text);display:grid;place-items:center;cursor:pointer}.m-icon{width:42px;height:42px;border-radius:50%}.m-icon:active,.m-control:active,.m-play:active{transform:scale(.9)}.m-icon svg,.m-control svg,#mThemeIcon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.mobile-head>.m-icon:last-child{justify-self:end}
 .swipe-viewport{flex:1;min-height:0;overflow:hidden;touch-action:pan-y}.swipe-track{width:200%;height:100%;display:grid;grid-template-columns:repeat(2,1fr);transform:translateX(0);transition:transform .36s cubic-bezier(.22,1,.36,1)}.swipe-track.dragging{transition:none}.swipe-page{width:100%;min-width:0;height:100%;padding:10px 4px 0;overflow:auto}.m-eyebrow{display:block;font-size:12px;font-weight:750;letter-spacing:.14em;color:var(--muted);margin:8px 0 18px}
 .now-page{display:flex;flex-direction:column}.m-cover-wrap{width:min(78vw,360px);aspect-ratio:1;margin:0 auto;border-radius:10px;overflow:hidden;box-shadow:0 24px 60px rgba(0,0,0,.42)}.m-cover-wrap img{width:100%;height:100%;display:block;object-fit:cover;border-radius:10px}.m-cover-wrap.playing img{animation:record-spin 18s linear infinite}
 .m-copy{margin-top:24px}.m-copy h1{font-size:clamp(25px,7.4vw,35px);line-height:1.15;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.m-copy p{font-size:15px;color:var(--muted);margin:8px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.m-lyric-preview{height:58px;margin-top:20px;display:flex;flex-direction:column;gap:7px}.m-lyric-preview strong,.m-lyric-preview span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.m-lyric-preview strong{font-size:16px}.m-lyric-preview span{font-size:14px;color:var(--muted)}
 .m-progress{margin-top:auto}.m-progress input,.m-volume-panel input{appearance:none;-webkit-appearance:none;width:100%;height:18px;background:transparent}.m-progress input::-webkit-slider-runnable-track,.m-volume-panel input::-webkit-slider-runnable-track{height:4px;border-radius:9px;background:linear-gradient(90deg,var(--text) 0 var(--fill,0%),var(--line) var(--fill,0%))}.m-progress input::-webkit-slider-thumb,.m-volume-panel input::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;margin-top:-5px;border-radius:50%;background:var(--text)}.m-progress>div{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}
 .m-controls{height:78px;display:grid;grid-template-columns:42px 58px 72px 58px 42px;align-items:center;justify-content:space-between;margin-top:8px}.m-control{width:42px;height:42px;border-radius:50%}.m-control.large{width:58px;height:58px}.m-control.large svg{width:34px;height:34px}.m-play{width:68px;height:68px;border-radius:18px;background:var(--text);color:var(--bg);box-shadow:0 10px 26px rgba(0,0,0,.24)}.m-play svg{width:31px;height:31px;fill:currentColor;stroke:none}
 
 .lyrics-page{display:flex;flex-direction:column}.m-lyrics{flex:1;overflow:auto;text-align:left;padding:8vh 6px 18vh}.m-lyrics p{font-size:clamp(23px,7vw,32px);font-weight:720;line-height:1.45;color:var(--muted);margin:22px 0;transition:.24s}.m-lyrics p.active{color:var(--text);transform:scale(1.02);transform-origin:left center}
 .m-volume-panel{position:fixed;z-index:80;left:18px;right:18px;bottom:calc(102px + env(safe-area-inset-bottom));height:60px;padding:9px 14px;display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:16px;background:var(--panel);box-shadow:0 18px 50px rgba(0,0,0,.38);opacity:0;transform:translateY(9px);transition:.18s;pointer-events:none}.m-volume-panel.show{opacity:1;transform:none;pointer-events:auto}.m-volume-panel[hidden]{display:none}.m-volume-panel input{flex:1}
 .queue{bottom:0;inset:calc(70px + env(safe-area-inset-top)) 12px calc(18px + env(safe-area-inset-bottom));z-index:100}.backdrop{bottom:0;z-index:95}
}
@media(max-width:390px){.mobile-player{padding-left:14px;padding-right:14px}.m-cover-wrap{width:min(72vw,300px)}.m-copy{margin-top:18px}.m-lyric-preview{margin-top:14px}.m-controls{grid-template-columns:38px 50px 62px 50px 38px}.m-control.large{width:50px;height:50px}.m-play{width:60px;height:60px}.m-control.large svg{width:29px;height:29px}}
@media(max-height:700px) and (max-width:850px){.m-cover-wrap{width:min(57vh,280px)}.m-copy{margin-top:12px}.m-lyric-preview{margin-top:10px;height:48px}.m-controls{height:64px}.m-play{width:58px;height:58px}}

/* v16: smooth and visible mobile theme transition */
@media(max-width:850px), (orientation:landscape) and (max-width:1100px) and (max-height:600px){
 .mobile-player,.mobile-head,.swipe-page,.m-icon,.m-control,.m-play,.m-volume-panel,.m-copy p,.m-lyric-preview span,.m-progress>div{transition:background-color .42s cubic-bezier(.22,1,.36,1),color .34s ease,border-color .34s ease,box-shadow .34s ease}
 .mobile-player{position:relative;background:linear-gradient(180deg,color-mix(in srgb,var(--accent) 12%,var(--bg)) 0,var(--bg) 34%)}
 [data-theme=light] .mobile-player{background:linear-gradient(180deg,#e4f4e8 0,#f4f6f3 35%,#f7f8f6 100%)}
 [data-theme=dark] .mobile-player{background:linear-gradient(180deg,#071c13 0,#090c0d 35%,#07090c 100%)}
 .mobile-theme-wash{position:absolute;z-index:120;left:18px;top:calc(10px + env(safe-area-inset-top));width:42px;height:42px;border-radius:50%;pointer-events:none;opacity:0;transform:scale(0);background:var(--bg);mix-blend-mode:normal}
 .mobile-player.theme-transitioning .mobile-theme-wash{animation:mobile-theme-wipe .52s cubic-bezier(.22,1,.36,1)}
 @keyframes mobile-theme-wipe{0%{opacity:.38;transform:scale(.2)}55%{opacity:.18;transform:scale(32)}100%{opacity:0;transform:scale(36)}}
 .mobile-player.theme-transitioning #mThemeIcon{animation:mobile-theme-icon .46s cubic-bezier(.22,1,.36,1)}
 @keyframes mobile-theme-icon{0%{transform:rotate(0) scale(1)}45%{transform:rotate(55deg) scale(.72);opacity:.45}100%{transform:rotate(0) scale(1);opacity:1}}
 #mThemeIcon{display:grid;place-items:center;transition:transform .25s ease,opacity .25s ease}
 #mTheme:active{background:var(--soft)}
 [data-theme=light] .m-cover-wrap{box-shadow:0 22px 55px rgba(27,45,32,.20)}
 [data-theme=dark] .m-cover-wrap{box-shadow:0 24px 60px rgba(0,0,0,.46)}
}
@media(prefers-reduced-motion:reduce){.mobile-player.theme-transitioning .mobile-theme-wash,.mobile-player.theme-transitioning #mThemeIcon{animation:none!important}}

/* v17: queue performance pass - transform and opacity only */
.queue{will-change:transform;contain:layout paint style;backface-visibility:hidden;-webkit-backface-visibility:hidden;transform:translate3d(calc(100% + 24px),0,0);opacity:1;transition:transform .28s cubic-bezier(.2,.8,.2,1),visibility 0s linear .28s;box-shadow:-12px 0 32px rgba(0,0,0,.22)}
.queue.preparing{visibility:visible;transform:translate3d(calc(100% + 24px),0,0);opacity:1}
.queue.open{visibility:visible;transform:translate3d(0,0,0);opacity:1;transition:transform .28s cubic-bezier(.2,.8,.2,1),visibility 0s}
.backdrop{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;will-change:opacity;transition:opacity .2s linear;background:rgba(0,0,0,.42)}
.backdrop.show{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
body.queue-open .content{transform:none!important;filter:none!important}
.queue header,.queue.open header{opacity:1;transform:none;transition:none}
@media(max-width:850px), (orientation:landscape) and (max-width:1100px) and (max-height:600px){
 .queue{inset:calc(70px + env(safe-area-inset-top)) 0 0 28px;width:auto;border:0;border-left:1px solid var(--line);border-radius:20px 0 0 0;transform:translate3d(100%,0,0);box-shadow:-10px 0 28px rgba(0,0,0,.24)}
 .queue.preparing{transform:translate3d(100%,0,0)}
 .queue.open{transform:translate3d(0,0,0)}
 .backdrop{background:rgba(0,0,0,.36)}
}

/* v18: centered mobile queue sheet with smooth staged visibility */
@media(max-width:850px), (orientation:landscape) and (max-width:1100px) and (max-height:600px){
 .queue{
  position:fixed!important;
  z-index:100;
  left:12px!important;
  right:12px!important;
  top:auto!important;
  bottom:calc(12px + env(safe-area-inset-bottom))!important;
  width:auto!important;
  height:min(72dvh,620px)!important;
  padding:22px!important;
  border:1px solid var(--line)!important;
  border-radius:24px!important;
  background:var(--panel)!important;
  visibility:hidden;
  opacity:0;
  transform:translate3d(0,34px,0) scale(.97)!important;
  transform-origin:center bottom;
  transition:transform .38s cubic-bezier(.16,1,.3,1),opacity .24s ease,visibility 0s linear .38s!important;
  box-shadow:0 24px 80px rgba(0,0,0,.42)!important;
  contain:layout paint style;
  will-change:transform,opacity;
 }
 .queue.preparing{
  visibility:visible;
  opacity:0;
  transform:translate3d(0,34px,0) scale(.97)!important;
 }
 .queue.open{
  visibility:visible;
  opacity:1;
  transform:translate3d(0,0,0) scale(1)!important;
  transition:transform .38s cubic-bezier(.16,1,.3,1),opacity .24s ease,visibility 0s!important;
 }
 .backdrop{
  position:fixed;
  z-index:95;
  inset:0!important;
  background:rgba(0,0,0,.52)!important;
  opacity:0;
  transition:opacity .26s ease!important;
 }
 .backdrop.show{opacity:1}
 .queue header{padding-bottom:14px;border-bottom:1px solid var(--line)}
 .queue ol{margin-top:14px}
 
 
}
@media(max-width:390px){
 .queue{left:8px!important;right:8px!important;bottom:calc(8px + env(safe-area-inset-bottom))!important;height:min(76dvh,610px)!important;border-radius:21px!important;padding:19px!important}
}

/* v19: remove mobile tap highlight without removing keyboard accessibility */
@media(max-width:850px), (orientation:landscape) and (max-width:1100px) and (max-height:600px){
 html,body,.mobile-player,.mobile-player *{
  -webkit-tap-highlight-color:transparent!important;
 }
 button,a,input,label,[role="button"],.swipe-viewport,.swipe-page{
  -webkit-tap-highlight-color:transparent!important;
  -webkit-touch-callout:none;
 }
 button,a,[role="button"]{
  appearance:none;
  -webkit-appearance:none;
  user-select:none;
  -webkit-user-select:none;
 }
 button:focus:not(:focus-visible),a:focus:not(:focus-visible),input:focus:not(:focus-visible),[role="button"]:focus:not(:focus-visible){
  outline:none!important;
  box-shadow:none!important;
 }
 button:active,a:active,[role="button"]:active{
  -webkit-tap-highlight-color:transparent!important;
 }
}

/* v20: prevent sticky touch focus and pressed states on mobile */
@media(max-width:850px), (orientation:landscape) and (max-width:1100px) and (max-height:600px){
 button,a,[role="button"]{
  transition:transform .14s ease,background-color .18s ease,color .18s ease,opacity .18s ease;
 }
 button.touch-released,a.touch-released,[role="button"].touch-released{
  transform:none!important;
 }
 button:focus,a:focus,[role="button"]:focus{
  outline:none;
 }
 button:focus-visible,a:focus-visible,[role="button"]:focus-visible{
  outline:3px solid color-mix(in srgb,var(--accent) 50%,transparent);
  outline-offset:2px;
 }
}


/* v25: API-only baseline, desktop lyrics moved up, mobile artwork fixed */
@media(min-width:851px){
 .stage{
  grid-template-columns:minmax(280px,480px) minmax(360px,1fr)!important;
  grid-template-rows:auto minmax(220px,1fr)!important;
  align-items:start!important;
  align-content:center!important;
  column-gap:7vw!important;
  row-gap:18px!important;
  padding-top:24px!important;
 }
 .art-wrap{
  grid-column:1!important;
  grid-row:1 / 3!important;
  align-self:center!important;
 }
 .meta{
  grid-column:2!important;
  grid-row:1!important;
  align-self:end!important;
  padding-bottom:0!important;
 }
 .lyrics{
  grid-column:2!important;
  grid-row:2!important;
  align-self:start!important;
  width:100%!important;
  max-height:min(35vh,340px)!important;
  margin:0!important;
  padding:0 22px 18px 0!important;
 }
 .lyrics p:first-child{margin-top:0!important}
 .art-wrap>img{
  border-radius:50%!important;
  clip-path:circle(50%)!important;
  -webkit-clip-path:circle(50%)!important;
  transform-origin:50% 50%!important;
  animation:record-spin 18s linear infinite!important;
  animation-play-state:paused!important;
  will-change:transform;
 }
 .art-wrap.playing>img{animation-play-state:running!important}
}
@media(max-width:850px), (orientation:landscape) and (max-width:1100px) and (max-height:600px){
 .m-cover-wrap{
  width:min(72vw,340px)!important;
  aspect-ratio:1!important;
  border-radius:50%!important;
  overflow:hidden!important;
  box-shadow:0 22px 58px rgba(0,0,0,.38)!important;
 }
 .m-cover-wrap>img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  border-radius:50%!important;
  clip-path:circle(50%)!important;
  -webkit-clip-path:circle(50%)!important;
  transform-origin:50% 50%!important;
  animation:record-spin 18s linear infinite!important;
  animation-play-state:paused!important;
  will-change:transform;
 }
 .m-cover-wrap.playing>img{animation-play-state:running!important}
}
@media(max-width:390px){.m-cover-wrap{width:min(68vw,286px)!important}}
@media(max-height:700px) and (max-width:850px){.m-cover-wrap{width:min(52vh,264px)!important}}

/* v26: zero-footprint scrollbars and isolated mobile range gestures */
html,body,.content,.lyrics,.queue,.queue ol,.swipe-page,.m-lyrics{
 scrollbar-width:none!important;
 -ms-overflow-style:none!important;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.content::-webkit-scrollbar,
.lyrics::-webkit-scrollbar,
.queue::-webkit-scrollbar,
.queue ol::-webkit-scrollbar,
.swipe-page::-webkit-scrollbar,
.m-lyrics::-webkit-scrollbar{
 width:0!important;
 height:0!important;
 display:none!important;
}
@media(max-width:850px), (orientation:landscape) and (max-width:1100px) and (max-height:600px){
 .m-progress,
 .m-progress input[type="range"],
 .m-volume-panel,
 .m-volume-panel input[type="range"]{
  touch-action:none!important;
  overscroll-behavior:contain!important;
 }
 .m-progress input[type="range"],
 .m-volume-panel input[type="range"]{
  cursor:grab;
 }
 .m-progress input[type="range"]:active,
 .m-volume-panel input[type="range"]:active{
  cursor:grabbing;
 }
}

/* v27: desktop sidebar removed */
@media(min-width:851px){
 .app{grid-template-columns:minmax(0,1fr)!important}
 .content{grid-column:1!important;padding-left:5vw!important;padding-right:5vw!important}
 .content:before{inset:0 0 92px 0!important}
 .player{grid-column:1!important}
 .top-brand{display:flex;align-items:center;gap:14px}
 .brand-mark{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:#07140b;flex:0 0 auto}
 .brand-mark svg{width:21px;height:21px;fill:currentColor}
 .brand-mark svg path{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
 .desktop-theme-btn{height:42px;display:flex;align-items:center;gap:9px;padding:0 12px;border:0;border-radius:999px;background:var(--soft);color:var(--text);cursor:pointer}
 .desktop-theme-btn>span:first-child{display:grid;place-items:center;width:20px;height:20px}
 .desktop-theme-btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
 .desktop-theme-btn:active{transform:scale(.96)}
}
@media(max-width:850px), (orientation:landscape) and (max-width:1100px) and (max-height:600px){.desktop-theme-btn,.top-brand{display:none!important}}

/* v28: icon-only theme control and centered desktop composition */
@media(min-width:851px){
 .top,
 .stage{
  width:min(100%,1540px)!important;
  margin-left:auto!important;
  margin-right:auto!important;
 }
 .stage{
  grid-template-columns:minmax(360px,520px) minmax(420px,680px)!important;
  justify-content:center!important;
  column-gap:clamp(70px,7vw,140px)!important;
 }
 .desktop-theme-btn{
  width:42px!important;
  min-width:42px!important;
  height:42px!important;
  padding:0!important;
  justify-content:center!important;
  border-radius:50%!important;
  background:transparent!important;
  border:1px solid var(--line)!important;
  overflow:hidden;
 }
 .desktop-theme-btn:hover{background:var(--soft)!important}
 .desktop-theme-btn #themeIcon{
  width:22px!important;
  height:22px!important;
  display:grid!important;
  place-items:center!important;
  transform-origin:center;
 }
 .desktop-theme-btn #themeIcon svg{width:20px!important;height:20px!important}
 #themeBtn.theme-pop #themeIcon{animation:theme-icon-swap .42s cubic-bezier(.22,1,.36,1)!important}
 @keyframes theme-icon-swap{
  0%{transform:rotate(0) scale(1);opacity:1}
  42%{transform:rotate(70deg) scale(.58);opacity:.28}
  100%{transform:rotate(0) scale(1);opacity:1}
 }
}

/* v30: mobile lyric page title and synchronized scrolling */
@media(max-width:850px), (orientation:landscape) and (max-width:1100px) and (max-height:600px){
 .lyrics-page{overflow:hidden!important;padding-top:4px!important}
 .m-lyrics-head{flex:0 0 auto;padding:4px 6px 14px;border-bottom:1px solid var(--line)}
 .m-lyrics-head .m-eyebrow{margin:0 0 10px}
 .m-lyrics-head h2{margin:0;font-size:clamp(22px,6.5vw,30px);line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .m-lyrics-head p{margin:7px 0 0;color:var(--muted);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .m-lyrics{min-height:0;padding:9vh 6px 20vh!important;scroll-behavior:smooth;overscroll-behavior:contain}
 .m-lyrics p{transition:color .24s ease,transform .24s ease,opacity .24s ease}
}

/* v31: two-page mobile player and user-controlled lyric browsing */
@media(max-width:850px), (orientation:landscape) and (max-width:1100px) and (max-height:600px){
 .swipe-track{width:200%!important;grid-template-columns:repeat(2,1fr)!important}
 .swipe-page{width:100%!important}
 .m-lyrics{-webkit-overflow-scrolling:touch;touch-action:pan-y!important;overflow-y:auto!important}
 .lyrics-page{touch-action:pan-y!important}
}

/* v36: softer mobile lyric preview transitions */
@media(max-width:850px), (orientation:landscape) and (max-width:1100px) and (max-height:600px){
 .m-lyric-preview{overflow:hidden!important}
 .m-lyric-preview strong,.m-lyric-preview span{
  display:block;
  will-change:transform,opacity;
  transform:translateZ(0);
  backface-visibility:hidden;
 }
}

/* v39: corrected desktop footer and expanded lyrics */
@media(min-width:851px){
 .meta{align-self:start!important;padding-bottom:0!important}
 .lyrics{max-height:min(50vh,480px)!important;padding-top:0!important}
 .player{height:92px!important;display:grid!important;grid-template-columns:minmax(220px,320px) minmax(620px,1fr) minmax(220px,320px)!important;grid-template-rows:1fr!important;align-items:center!important;padding:10px 24px!important;gap:24px!important}
 .mini{min-width:0!important}
 .transport{width:100%!important;max-width:900px!important;margin:0 auto!important;display:grid!important;grid-template-rows:42px 24px!important;gap:2px!important;align-self:center!important}
 .transport .buttons{height:42px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:12px!important}
 .timeline{width:100%!important;display:grid!important;grid-template-columns:38px 42px minmax(260px,1fr) 42px 38px!important;align-items:center!important;gap:8px!important}
 .timeline>span{font-size:11px!important;color:var(--muted)!important;font-variant-numeric:tabular-nums;text-align:center}
 .timeline>.icon{width:34px!important;height:34px!important;display:grid!important;place-items:center!important;color:var(--text)!important;background:transparent!important;border:0!important}
 .timeline>.icon:hover{background:var(--soft)!important}
 .mode-control{color:var(--text)!important;background:transparent!important;box-shadow:none!important}
 .player-spacer{display:block}
 .desktop-volume{position:relative;display:grid;place-items:center;width:38px;height:38px}
 .desktop-volume-panel{position:absolute;left:50%;bottom:44px;width:42px;height:142px;border:1px solid var(--line);border-radius:22px;background:var(--player);box-shadow:0 16px 38px rgba(0,0,0,.34);opacity:0;transform:translate(-50%,8px);transition:opacity .18s ease,transform .18s ease;z-index:30}
 .desktop-volume-panel.show{opacity:1;transform:translate(-50%,0)}
 .desktop-volume-panel[hidden]{display:none!important}
 .desktop-volume-panel input{position:absolute;left:50%;top:50%;width:112px;height:18px;margin:0;transform:translate(-50%,-50%) rotate(-90deg);appearance:none;-webkit-appearance:none;background:transparent}
 .desktop-volume-panel input::-webkit-slider-runnable-track{height:4px;border-radius:999px;background:linear-gradient(90deg,var(--text) 0 var(--fill,0%),var(--line) var(--fill,0%))}
 .desktop-volume-panel input::-webkit-slider-thumb{-webkit-appearance:none;width:14px;height:14px;margin-top:-5px;border-radius:50%;background:var(--text)}
 .desktop-volume-panel input::-moz-range-track{height:4px;border:0;border-radius:999px;background:var(--line)}
 .desktop-volume-panel input::-moz-range-progress{height:4px;border-radius:999px;background:var(--text)}
 .desktop-volume-panel input::-moz-range-thumb{width:14px;height:14px;border:0;border-radius:50%;background:var(--text)}
}

/* v40: remove circular hover fill from desktop timeline edge controls */
@media(min-width:851px){
 .timeline>.icon,
 .timeline>.icon:hover,
 .timeline>.icon:focus,
 .timeline>.icon:focus-visible,
 .timeline>.icon:active,
 .desktop-volume:hover,
 .desktop-volume:focus-within{
  background:transparent!important;
  box-shadow:none!important;
  outline:none!important;
  border-color:transparent!important;
 }
 .timeline>.icon svg{transition:opacity .18s ease,transform .18s ease}
 .timeline>.icon:hover svg,.timeline>.icon:focus-visible svg{opacity:.72;transform:scale(1.04)}
}

/* v41: explicitly remove hover fill from nested desktop volume button */
@media(min-width:851px){
 #modeBtn,#modeBtn:hover,#modeBtn:focus,#modeBtn:focus-visible,#modeBtn:active,
 #muteBtn,#muteBtn:hover,#muteBtn:focus,#muteBtn:focus-visible,#muteBtn:active{
  background-color:transparent!important;
  background-image:none!important;
  box-shadow:none!important;
  border-color:transparent!important;
  outline:none!important;
 }
 #modeBtn::before,#modeBtn::after,#muteBtn::before,#muteBtn::after{display:none!important}
 #modeBtn:hover svg,#modeBtn:focus-visible svg,#muteBtn:hover svg,#muteBtn:focus-visible svg{
  opacity:.72;
  transform:scale(1.04);
 }
}

/* v42: theme and playlist controls moved to desktop footer */
@media(min-width:851px){
 .top-actions{display:none!important}
 .player-spacer{display:flex!important;align-items:center;justify-content:flex-end;gap:10px}
 .footer-action{width:40px;height:40px;padding:0;border:0;border-radius:50%;display:grid;place-items:center;background:transparent;color:var(--text);cursor:pointer}
 .footer-action:hover,.footer-action:focus,.footer-action:focus-visible,.footer-action:active{background:transparent!important;box-shadow:none!important;border-color:transparent!important;outline:none!important}
 .footer-action svg{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:opacity .18s ease,transform .18s ease}
 .footer-action:hover svg,.footer-action:focus-visible svg{opacity:.72;transform:scale(1.04)}
 #themeIcon{display:grid;place-items:center}
 #themeBtn.theme-pop #themeIcon{animation:theme-icon-swap .42s cubic-bezier(.22,1,.36,1)!important}
}

/* v44: reliable queue enter animation and trigger toggle */
@media(min-width:851px){
 .queue{
  visibility:hidden!important;
  opacity:0!important;
  transform:translate3d(calc(100% + 28px),0,0)!important;
  transition:transform .34s cubic-bezier(.16,1,.3,1),opacity .22s ease,visibility 0s linear .34s!important;
 }
 .queue.preparing{
  visibility:visible!important;
  opacity:0!important;
  transform:translate3d(calc(100% + 28px),0,0)!important;
 }
 .queue.open{
  visibility:visible!important;
  opacity:1!important;
  transform:translate3d(0,0,0)!important;
  transition:transform .34s cubic-bezier(.16,1,.3,1),opacity .22s ease,visibility 0s!important;
 }
}

/* v45: precomposited queue, no first-open paint stall */
@media(min-width:851px){
 .queue{
  display:flex!important;
  visibility:visible!important;
  pointer-events:none!important;
  opacity:0!important;
  transform:translate3d(calc(100% + 28px),0,0)!important;
  transition:transform .36s cubic-bezier(.16,1,.3,1),opacity .24s ease!important;
  will-change:transform,opacity!important;
  contain:layout style!important;
 }
 .queue.open{
  pointer-events:auto!important;
  opacity:1!important;
  transform:translate3d(0,0,0)!important;
 }
 .queue.preparing{display:flex!important;visibility:visible!important}
}

/* v46: precomposited mobile queue, matching desktop first-open behavior */
@media(max-width:850px), (orientation:landscape) and (max-width:1100px) and (max-height:600px){
 .queue{
  display:flex!important;
  visibility:visible!important;
  pointer-events:none!important;
  opacity:0!important;
  transform:translate3d(0,34px,0) scale(.97)!important;
  transition:transform .38s cubic-bezier(.16,1,.3,1),opacity .24s ease!important;
  will-change:transform,opacity!important;
  contain:layout style!important;
 }
 .queue.open{
  pointer-events:auto!important;
  opacity:1!important;
  transform:translate3d(0,0,0) scale(1)!important;
 }
}

/* v47: keep long desktop song titles on one line without page overflow */
@media(min-width:851px){
 .content,.stage,.meta{min-width:0!important}
 .stage{min-height:0!important;height:calc(100% - 84px)!important;overflow:hidden!important}
 .meta{width:100%!important;overflow:hidden!important}
 .meta h2{
  display:block!important;
  width:100%!important;
  max-width:100%!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  overflow-wrap:normal!important;
  word-break:keep-all!important;
 }
 .lyrics{min-height:0!important}
}

/* v48: reliable desktop disc rotation */
@media(min-width:851px){
 .art-wrap>img{
  animation-name:record-spin!important;
  animation-duration:18s!important;
  animation-timing-function:linear!important;
  animation-iteration-count:infinite!important;
  animation-play-state:paused!important;
  transform-origin:50% 50%!important;
  will-change:transform;
 }
 .art-wrap.playing>img{
  animation-play-state:running!important;
 }
}

/* v49: remove transform overrides that blocked desktop keyframe rotation */
@media(min-width:851px){
 .art-wrap>img{
  animation:record-spin 18s linear infinite!important;
  animation-play-state:paused!important;
  transform-origin:center center!important;
 }
 .art-wrap.playing>img{animation-play-state:running!important}
 
}

/* v50: preserve rotation on hover and disable cover dragging */
#cover,#mCover,#miniCover{
 -webkit-user-drag:none!important;
 user-select:none!important;
 -webkit-user-select:none!important;
 -webkit-touch-callout:none!important;
}
@media(min-width:851px){
 .art-wrap>img,
 .art-wrap:hover>img{
  animation:record-spin 18s linear infinite!important;
  animation-play-state:paused!important;
  transform-origin:50% 50%!important;
 }
 .art-wrap.playing>img,
 .art-wrap.playing:hover>img{
  animation-play-state:running!important;
 }
 .art-wrap:hover>img{
  box-shadow:0 34px 86px rgba(0,0,0,.50)!important;
 }
}

/* v51: atmospheric mobile landscape layout */
@media(orientation:landscape) and (max-width:1100px) and (max-height:600px){
 html,body,.app{height:100%;height:100dvh;overflow:hidden!important}
 .mobile-player{
  display:grid!important;
  grid-template-rows:54px minmax(0,1fr)!important;
  padding:env(safe-area-inset-top) max(18px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(18px,env(safe-area-inset-left))!important;
  background:
   radial-gradient(circle at 20% 50%,rgba(30,215,96,.14),transparent 36%),
   radial-gradient(circle at 80% 30%,rgba(104,94,255,.10),transparent 32%),
   var(--bg)!important;
 }
 .mobile-head{height:54px!important;padding:0!important;align-self:start}
 .swipe-viewport{min-height:0!important;height:100%!important}
 .swipe-track{height:100%!important}
 .swipe-page{height:100%!important;min-height:0!important;padding:4px 3vw 10px!important}
 .now-page{
  display:grid!important;
  grid-template-columns:minmax(210px,40vw) minmax(280px,1fr)!important;
  grid-template-rows:auto auto auto 1fr!important;
  column-gap:clamp(28px,5vw,72px)!important;
  align-content:center!important;
  align-items:center!important;
 }
 .m-cover-wrap{
  grid-column:1!important;
  grid-row:1 / 5!important;
  width:min(62vh,38vw,390px)!important;
  align-self:center!important;
  margin:auto!important;
  box-shadow:0 24px 76px rgba(0,0,0,.48)!important;
 }
 .m-copy{grid-column:2!important;grid-row:1!important;margin:0 0 6px!important;min-width:0}
 .m-copy h1{font-size:clamp(24px,4vw,43px)!important;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .m-copy p{font-size:14px!important;margin-top:7px!important}
 .m-lyric-preview{grid-column:2!important;grid-row:2!important;margin:8px 0 14px!important;height:54px!important;min-width:0}
 .m-progress{grid-column:2!important;grid-row:3!important;margin:0!important;width:100%}
 .m-controls{grid-column:2!important;grid-row:4!important;margin:6px 0 0!important;height:68px!important;align-self:start!important;max-width:560px;width:100%}
 .m-play{width:62px!important;height:62px!important}
 .m-control.large{width:54px!important;height:54px!important}
 .page-dots{top:22px!important}
 .lyrics-page{padding:0 7vw 12px!important}
 .m-lyrics-head{padding-top:0!important;padding-bottom:9px!important}
 .m-lyrics-head h2{font-size:clamp(22px,3.3vw,34px)!important}
 .m-lyrics{padding:7vh 11vw 18vh!important;font-size:clamp(18px,2.5vw,25px)!important}
 .queue{height:min(82dvh,520px)!important;left:max(18px,env(safe-area-inset-left))!important;right:max(18px,env(safe-area-inset-right))!important}
}
@media(orientation:landscape) and (max-width:1100px) and (max-height:430px){
 .mobile-head{height:44px!important}
 .mobile-player{grid-template-rows:44px minmax(0,1fr)!important}
 .m-cover-wrap{width:min(56vh,32vw,260px)!important}
 .now-page{grid-template-columns:minmax(180px,34vw) minmax(280px,1fr)!important;column-gap:26px!important}
 .m-copy h1{font-size:clamp(21px,3.5vw,34px)!important}
 .m-lyric-preview{height:46px!important;margin:4px 0 8px!important}
 .m-controls{height:58px!important;margin-top:2px!important}
 .m-play{width:54px!important;height:54px!important}
 .m-control.large{width:48px!important;height:48px!important}
}


/* v53: complete mobile landscape composition */
@media(orientation:landscape) and (min-width:851px) and (max-width:1100px) and (max-height:600px){
 body{overflow:hidden!important}
 .sidebar,.content,.player{display:none!important}
 .app{display:block!important;height:100dvh!important;min-height:0!important}
 .mobile-player{display:grid!important;height:100dvh!important;min-height:0!important;overflow:hidden!important}
}
@media(orientation:landscape) and (max-width:1100px) and (max-height:600px){
 .mobile-player{
  grid-template-rows:48px minmax(0,1fr)!important;
  padding:max(4px,env(safe-area-inset-top)) max(18px,env(safe-area-inset-right)) max(8px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left))!important;
 }
 .mobile-head{height:48px!important;min-height:48px!important}
 .mobile-brand{gap:9px!important}
 .mobile-brand span{width:32px!important;height:32px!important}
 .mobile-brand b{font-size:15px!important}
 .mobile-brand small{font-size:9px!important}
 .mobile-top-btn{width:38px!important;height:38px!important}
 .swipe-viewport,.swipe-track,.swipe-page{height:100%!important;min-height:0!important}
 .now-page{
  display:grid!important;
  grid-template-columns:minmax(190px,36vw) minmax(0,1fr)!important;
  grid-template-rows:auto 52px 38px 68px!important;
  column-gap:clamp(30px,6vw,76px)!important;
  align-content:center!important;
  align-items:center!important;
  padding:0 clamp(12px,3vw,42px) 6px!important;
  overflow:hidden!important;
 }
 .m-cover-wrap{
  grid-column:1!important;grid-row:1 / 5!important;
  width:min(60vh,34vw,330px)!important;
  max-width:100%!important;margin:auto!important;
  border-radius:50%!important;overflow:hidden!important;
 }
 .m-cover-wrap>img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;border-radius:50%!important}
 .m-copy{grid-column:2!important;grid-row:1!important;margin:0!important;min-width:0!important;align-self:end!important}
 .m-copy h1{font-size:clamp(25px,4vw,42px)!important;line-height:1.12!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
 .m-copy p{font-size:14px!important;margin:7px 0 0!important}
 .m-lyric-preview{grid-column:2!important;grid-row:2!important;height:52px!important;margin:8px 0 0!important;gap:6px!important;min-width:0!important}
 .m-lyric-preview strong{font-size:16px!important}
 .m-lyric-preview span{font-size:13px!important}
 .m-progress{grid-column:2!important;grid-row:3!important;margin:0!important;width:100%!important;align-self:center!important}
 .m-progress input{height:16px!important}
 .m-progress>div{font-size:11px!important}
 .m-controls{
  grid-column:2!important;grid-row:4!important;
  display:grid!important;grid-template-columns:40px 50px 62px 50px 40px!important;
  width:100%!important;max-width:540px!important;height:64px!important;
  margin:2px 0 0!important;gap:clamp(8px,2vw,20px)!important;
  align-self:start!important;justify-content:space-between!important;
 }
 .m-control{width:40px!important;height:40px!important;background:transparent!important}
 .m-control.large{width:50px!important;height:50px!important}
 .m-play{width:60px!important;height:60px!important;border-radius:18px!important;background:var(--text)!important;color:var(--bg)!important}
 .m-controls svg{width:22px!important;height:22px!important}
 .m-play svg{width:28px!important;height:28px!important}
 .page-dots{top:17px!important}
 .lyrics-page{padding:0 8vw 8px!important}
 .m-lyrics-head{padding:0 4px 8px!important}
 .m-lyrics{padding:5vh 8vw 16vh!important}
 .queue{height:min(82dvh,500px)!important}
}
@media(orientation:landscape) and (max-width:1100px) and (max-height:430px){
 .mobile-player{grid-template-rows:42px minmax(0,1fr)!important}
 .mobile-head{height:42px!important;min-height:42px!important}
 .now-page{grid-template-columns:minmax(170px,32vw) minmax(0,1fr)!important;grid-template-rows:auto 46px 34px 58px!important;column-gap:26px!important}
 .m-cover-wrap{width:min(56vh,30vw,240px)!important}
 .m-copy h1{font-size:clamp(22px,3.5vw,34px)!important}
 .m-lyric-preview{height:46px!important;margin-top:4px!important}
 .m-controls{height:56px!important;grid-template-columns:36px 46px 56px 46px 36px!important}
 .m-control{width:36px!important;height:36px!important}.m-control.large{width:46px!important;height:46px!important}.m-play{width:54px!important;height:54px!important}
}

/* v54: three-line lyric preview with relaxed landscape spacing */
@media(max-width:850px), (orientation:landscape) and (max-width:1100px) and (max-height:600px){
 .m-lyric-preview{height:78px!important;gap:5px!important}
 .m-lyric-preview strong,.m-lyric-preview span{line-height:1.22!important}
 .m-lyric-preview span:last-child{font-size:13px;color:color-mix(in srgb,var(--muted) 72%,transparent)}
}
@media(orientation:landscape) and (max-width:1100px) and (max-height:600px){
 .now-page{
  grid-template-columns:minmax(180px,33vw) minmax(0,1fr)!important;
  grid-template-rows:auto 72px 34px 62px!important;
  column-gap:clamp(28px,5vw,64px)!important;
 }
 .m-cover-wrap{width:min(56vh,31vw,300px)!important}
 .m-copy{align-self:center!important}
 .m-copy h1{font-size:clamp(23px,3.45vw,36px)!important;line-height:1.08!important}
 .m-copy p{font-size:13px!important;margin-top:5px!important}
 .m-lyric-preview{height:72px!important;margin:4px 0 0!important;gap:4px!important}
 .m-lyric-preview strong{font-size:15px!important}
 .m-lyric-preview span{font-size:12px!important}
 .m-progress{align-self:end!important}
 .m-controls{height:60px!important;margin-top:0!important}
}
@media(orientation:landscape) and (max-width:1100px) and (max-height:430px){
 .now-page{grid-template-columns:minmax(160px,29vw) minmax(0,1fr)!important;grid-template-rows:auto 62px 31px 52px!important}
 .m-cover-wrap{width:min(52vh,27vw,220px)!important}
 .m-copy h1{font-size:clamp(20px,3.1vw,30px)!important}
 .m-copy p{font-size:12px!important;margin-top:3px!important}
 .m-lyric-preview{height:62px!important;gap:2px!important;margin-top:2px!important}
 .m-lyric-preview strong{font-size:14px!important}.m-lyric-preview span{font-size:11px!important}
 .m-controls{height:50px!important}
}

/* v55: roomier three-line lyric preview */
@media(max-width:850px), (orientation:landscape) and (max-width:1100px) and (max-height:600px){
 .m-lyric-preview{
  height:94px!important;
  gap:9px!important;
 }
 .m-lyric-preview strong{
  font-size:18px!important;
  line-height:1.28!important;
 }
 .m-lyric-preview span{
  font-size:15px!important;
  line-height:1.28!important;
 }
 .m-lyric-preview span:last-child{
  font-size:14px!important;
 }
}
@media(orientation:landscape) and (max-width:1100px) and (max-height:600px){
 .now-page{
  grid-template-columns:minmax(175px,31vw) minmax(0,1fr)!important;
  grid-template-rows:auto 100px 36px 60px!important;
  column-gap:clamp(36px,6vw,76px)!important;
 }
 .m-cover-wrap{width:min(54vh,29vw,286px)!important}
 .m-copy{align-self:end!important;margin-bottom:10px!important}
 .m-copy h1{font-size:clamp(22px,3.2vw,34px)!important}
 .m-copy p{font-size:13px!important;margin-top:7px!important}
 .m-lyric-preview{
  height:100px!important;
  margin:8px 0 0!important;
  gap:9px!important;
  align-self:start!important;
 }
 .m-lyric-preview strong{font-size:18px!important;line-height:1.28!important}
 .m-lyric-preview span{font-size:15px!important;line-height:1.28!important}
 .m-lyric-preview span:last-child{font-size:14px!important}
 .m-progress{align-self:center!important}
 .m-controls{height:58px!important;margin-top:4px!important}
}
@media(orientation:landscape) and (max-width:1100px) and (max-height:430px){
 .now-page{
  grid-template-columns:minmax(150px,27vw) minmax(0,1fr)!important;
  grid-template-rows:auto 82px 30px 50px!important;
  column-gap:32px!important;
 }
 .m-cover-wrap{width:min(49vh,25vw,205px)!important}
 .m-copy{margin-bottom:5px!important}
 .m-copy h1{font-size:clamp(20px,2.9vw,28px)!important}
 .m-lyric-preview{height:82px!important;gap:6px!important;margin-top:4px!important}
 .m-lyric-preview strong{font-size:16px!important;line-height:1.22!important}
 .m-lyric-preview span{font-size:13px!important;line-height:1.22!important}
 .m-lyric-preview span:last-child{font-size:12px!important}
 .m-controls{height:48px!important;margin-top:2px!important}
}

/* v56: smooth bounded two-page mobile swipe */
@media(max-width:850px), (orientation:landscape) and (max-width:1100px) and (max-height:600px){
 .swipe-viewport{overflow:hidden!important;overscroll-behavior-x:none!important;touch-action:pan-y!important}
 .swipe-track{
  transform:translate3d(0,0,0);
  transition:transform .3s cubic-bezier(.22,1,.36,1)!important;
  will-change:transform;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
  contain:layout paint;
 }
 .swipe-track.dragging{transition:none!important}
 .swipe-page{transform:translateZ(0);backface-visibility:hidden;-webkit-backface-visibility:hidden}
}

/* v57: allow horizontal page swipe directly on the lyric body */
@media(max-width:850px), (orientation:landscape) and (max-width:1100px) and (max-height:600px){
 .lyrics-page,.m-lyrics{
  touch-action:pan-y!important;
  overscroll-behavior-x:none!important;
 }
}
