/* My Music — Aurora. Mobile first, with a desktop listening room. */
:root {
  color-scheme: light;
  --bg: #f3f1f7;
  --bg-2: #e9e7f1;
  --card: #ffffff;
  --card-2: #fbfaff;
  --card-3: #efecff;
  --text: #1b1930;
  --dim: #6d6a82;
  --dim-2: #87839b;
  --accent: #715de6;
  --accent-2: #eb756c;
  --accent-3: #39a8cf;
  --danger: #d94f68;
  --line: rgba(28,24,52,.09);
  --line-2: rgba(28,24,52,.15);
  --press: rgba(28,24,52,.055);
  --track: rgba(28,24,52,.12);
  --input-bg: rgba(28,24,52,.045);
  --accent-tint: rgba(113,93,230,.10);
  --accent-glow: rgba(113,93,230,.22);
  --mini-bg: rgba(255,255,255,.94);
  --tab-bg: rgba(255,255,255,.93);
  --cover-shadow: 0 4px 12px rgba(39,29,82,.12);
  --art-shadow: 0 28px 70px rgba(39,29,82,.24);
  --shadow-1: 0 4px 18px rgba(39,29,82,.06);
  --shadow-2: 0 18px 50px rgba(39,29,82,.14);
  --ly-1: rgba(28,24,52,.36);
  --ly-2: rgba(28,24,52,.60);
  --ly-3: #1b1930;
  --ly-glow: rgba(113,93,230,.22);
  --mini: 68px;
  --tab: 64px;
  --dock-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  --ease: cubic-bezier(.22,.75,.16,1);
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0f18;
  --bg-2: #111625;
  --card: #151b2b;
  --card-2: #192136;
  --card-3: #282440;
  --text: #f1efff;
  --dim: #a1a8c0;
  --dim-2: #8590ac;
  --accent: #b49bff;
  --accent-2: #ff8b7d;
  --accent-3: #72d8ff;
  --danger: #ff7188;
  --line: rgba(241,239,255,.08);
  --line-2: rgba(241,239,255,.14);
  --press: rgba(241,239,255,.06);
  --track: rgba(241,239,255,.13);
  --input-bg: rgba(241,239,255,.055);
  --accent-tint: rgba(180,155,255,.12);
  --accent-glow: rgba(180,155,255,.20);
  --mini-bg: rgba(24,30,47,.94);
  --tab-bg: rgba(16,20,33,.94);
  --cover-shadow: 0 5px 16px rgba(0,0,0,.26);
  --art-shadow: 0 30px 76px rgba(0,0,0,.52);
  --shadow-1: 0 5px 18px rgba(0,0,0,.12);
  --shadow-2: 0 20px 56px rgba(0,0,0,.34);
  --ly-1: rgba(241,239,255,.36);
  --ly-2: rgba(241,239,255,.64);
  --ly-3: #fff;
  --ly-glow: rgba(180,155,255,.22);
}
* { box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html, body { height:100%; }
html { background:var(--bg); }
body { margin:0; color:var(--text); background:var(--bg); font:15px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif; overscroll-behavior:none; }
button, input { font:inherit; }
button { padding:0; border:0; background:none; color:inherit; cursor:pointer; touch-action:manipulation; }
svg { display:block; }
button:focus-visible, input:focus-visible, [role="button"]:focus-visible { outline:2px solid var(--accent); outline-offset:4px; }
[hidden] { display:none!important; }
::-webkit-scrollbar { width:5px; }
::-webkit-scrollbar-thumb { background:var(--line-2); border-radius:5px; }
.live-dot { display:inline-block; width:5px; height:5px; border-radius:50%; background:currentColor; flex:none; }

/* Header and home */
#app { position:fixed; inset:0; }
body.in-app { overflow:hidden; }
#scroll { height:100%; overflow-y:auto; -webkit-overflow-scrolling:touch; padding-bottom:calc(var(--tab) + var(--dock-bottom) + 28px); }
body.has-mini #scroll { padding-bottom:calc(var(--tab) + var(--mini) + var(--dock-bottom) + 38px); }
.hero { padding:calc(24px + env(safe-area-inset-top, 0px)) 22px 23px; background:radial-gradient(ellipse at 85% -70%,var(--accent-tint),transparent 78%); }
.hero-top { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.brand-eyebrow { font-size:9px; letter-spacing:.14em; color:var(--dim-2); font-weight:750; margin-bottom:10px; }
.hero h1 { font-size:27px; line-height:1.2; letter-spacing:-.045em; margin:0; font-weight:750; }
.hero .sub { font-size:11px; margin-top:7px; color:var(--dim); }
.avatar { display:grid; place-items:center; width:42px; height:42px; flex:none; border-radius:15px; background:var(--card); border:1px solid var(--line); box-shadow:var(--shadow-1); }
.avatar svg { width:20px; height:20px; fill:var(--accent); }
.avatar:hover { background:var(--accent-tint); }
.theme-sun { display:none; }
[data-theme="dark"] .theme-sun { display:block; }
[data-theme="dark"] .theme-moon { display:none; }
.home-content { display:block; }
#app[data-tab="tabAll"] .home-content, #app[data-tab="tabFav"] .home-content { display:none; }
.listening-card { display:block; position:relative; isolation:isolate; width:calc(100% - 36px); margin:0 18px 16px; min-height:204px; padding:22px; border-radius:26px; color:#fff; text-align:left; overflow:hidden; background:linear-gradient(122deg,#5d45c8,#7960df 64%,#d47898 130%); box-shadow:0 12px 28px rgba(87,60,183,.20); transition:transform .18s var(--ease); }
.listening-card:active { transform:scale(.985); }
.listening-card::before { content:""; position:absolute; inset:0; z-index:-1; background:radial-gradient(ellipse at 98% 2%,rgba(255,255,255,.23),transparent 53%); }
.feature-copy { position:relative; z-index:3; max-width:65%; }
.feature-kicker { display:flex; align-items:center; gap:7px; color:rgba(255,255,255,.75); font-size:8px; font-weight:750; letter-spacing:.16em; white-space:nowrap; }
.feature-copy h2 { font-size:28px; line-height:1.14; letter-spacing:-.055em; margin:14px 0 9px; font-weight:750; }
.feature-copy p { font-size:10px; color:rgba(255,255,255,.77); margin:0; }
.feature-action { display:flex; align-items:center; gap:8px; margin-top:18px; font-size:11px; font-weight:700; white-space:nowrap; }
.feature-action>span:last-child { font-weight:500; color:rgba(255,255,255,.68); font-size:10px; margin-left:4px; }
.feature-play { display:grid; place-items:center; width:27px; height:27px; border-radius:50%; background:#fff; color:#5d45c8; box-shadow:0 4px 12px rgba(33,17,94,.15); }
.feature-play svg { width:12px; height:12px; fill:currentColor; margin-left:2px; }
.record-scene { position:absolute; right:0; top:0; width:45%; height:100%; pointer-events:none; }
.record-disc { position:absolute; right:-25px; top:22px; width:177px; height:177px; border-radius:50%; background:repeating-radial-gradient(circle,#151222 0 2px,#28233c 2.5px 4px,#151222 4.5px 7px); box-shadow:-15px 18px 32px rgba(27,13,77,.35),inset 0 0 0 1px rgba(255,255,255,.16); transform:rotate(-22deg); }
.record-disc::after { content:""; position:absolute; inset:13px; border-radius:50%; background:conic-gradient(from 20deg,transparent 0deg,rgba(255,255,255,.08) 35deg,transparent 65deg,transparent 180deg,rgba(255,255,255,.06) 215deg,transparent 240deg); }
.record-label { position:absolute; inset:58px; border-radius:50%; background:linear-gradient(140deg,#ffb094,#ed758a); display:grid; place-items:center; box-shadow:0 0 0 7px rgba(10,8,25,.25); }
.record-label svg { width:27px; height:27px; fill:white; opacity:.92; }
.record-orbit { position:absolute; border:1px solid rgba(255,255,255,.22); border-radius:50%; transform:rotate(-26deg); }
.orbit-one { width:190px; height:77px; right:-34px; top:46px; }
.orbit-two { width:216px; height:96px; right:-46px; top:37px; opacity:.45; }
.record-caption { position:absolute; right:16px; bottom:18px; font-size:6px; letter-spacing:.15em; color:rgba(255,255,255,.6); white-space:nowrap; }
.quick { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; padding:0 18px 24px; }
.q { display:flex; align-items:center; gap:10px; min-height:72px; padding:13px; border-radius:19px; background:var(--card); border:1px solid var(--line); text-align:left; box-shadow:var(--shadow-1); transition:transform .15s,background .15s; }
.q:active { transform:scale(.98); background:var(--card-2); }
.q .ic { display:grid; place-items:center; width:34px; height:34px; flex:none; border-radius:12px; background:var(--accent-tint)!important; color:var(--accent); }
.q .ic svg { width:18px; height:18px; fill:currentColor; }
#qFav .ic { background:rgba(235,117,108,.10)!important; color:var(--accent-2); }
.q-copy { flex:1; min-width:0; }
.q .t { font-size:12px; font-weight:700; white-space:nowrap; }
.q .d { font-size:9px; margin-top:3px; color:var(--dim); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.q-arrow { width:12px; height:12px; flex:none; fill:var(--dim-2); }
.feat { width:calc(100% - 36px); display:flex; align-items:center; gap:12px; margin:0 18px 16px; padding:12px; text-align:left; background:var(--card); border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow-1); }
.fcov { display:grid; place-items:center; width:50px; height:50px; border-radius:14px; flex:none; background-size:cover; background-position:center; }
.fcov svg { width:23px; height:23px; fill:var(--accent); }
.fcov.has-img svg { display:none; }
.ftext { flex:1; min-width:0; }
.eyebrow { color:var(--accent); font-size:9px; font-weight:700; letter-spacing:.04em; }
.ftitle { font-size:13px; font-weight:650; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:3px; }
.fsub { font-size:10px; color:var(--dim); margin-top:2px; }
.fplay { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; background:var(--accent-tint); color:var(--accent); }
.fplay svg { width:15px; height:15px; fill:currentColor; margin-left:2px; }

/* Library */
.sec { display:flex; align-items:baseline; justify-content:space-between; gap:12px; padding:0 22px 13px; }
.sec h2 { font-size:19px; font-weight:750; letter-spacing:-.025em; margin:0; }
.sec .more { font-size:10px; color:var(--dim); }
.searchwrap { padding:0 18px 14px; }
#search { width:100%; padding:13px 15px 13px 40px; font-size:12px; color:var(--text); background-color:var(--card); border:1px solid var(--line); border-radius:15px; outline:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%238590ac' stroke-width='1.8'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 4.5 4.5'/%3E%3C/svg%3E"); background-size:16px; background-position:14px center; background-repeat:no-repeat; transition:border-color .15s; }
#search::placeholder { color:var(--dim-2); }
#search:focus { border-color:var(--accent); }
/* iOS/Safari 会放大小于 16px 的表单输入框，避免聚焦搜索框时页面局部放大。 */
@media (max-width:959px) {
  #search { font-size:16px; }
}
.list-tools { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:0 22px 12px; }
#app[data-tab="tabHome"] .list-tools { display:none; }
.sort-tabs { display:flex; gap:4px; padding:3px; border-radius:11px; background:var(--input-bg); }
.sort-chip { padding:7px 11px; border-radius:8px; color:var(--dim); font-size:10px; font-weight:650; }
.sort-chip[aria-pressed="true"] { color:var(--accent); background:var(--card); box-shadow:var(--shadow-1); }
.list-tools-note { font-size:9px; color:var(--dim-2); white-space:nowrap; }
.list-tools-note .live-dot { background:var(--accent-3); margin-right:4px; }
.category-tabs { display:flex; gap:6px; overflow-x:auto; padding:0 22px 13px; scrollbar-width:none; }
.category-tabs::-webkit-scrollbar { display:none; }
.category-chip { flex:none; padding:8px 14px; border:1px solid var(--line); border-radius:999px; color:var(--dim); background:var(--card); font-size:10px; font-weight:650; transition:color .15s,background .15s,border-color .15s; }
.category-chip[aria-selected="true"] { color:var(--accent); background:var(--accent-tint); border-color:var(--accent); }
#app[data-tab="tabHome"] .category-tabs { display:none; }
#list { padding:0 12px 10px; }
.group-head { display:flex; align-items:center; gap:8px; padding:16px 10px 8px; font-size:10px; letter-spacing:.08em; color:var(--dim); font-weight:650; }
.group-head:first-child { padding-top:0; }
.group-head .n { margin-left:auto; font-size:9px; letter-spacing:0; color:var(--dim-2); font-weight:400; }
.song { display:flex; align-items:center; gap:12px; padding:9px 9px; border:1px solid transparent; border-radius:17px; margin:1px 0; position:relative; cursor:pointer; transition:background .15s; }
.song:hover { background:var(--press); }
.song.on { background:var(--accent-tint); border-color:var(--line); }
.song-order { display:none; color:var(--dim-2); font-size:11px; font-variant-numeric:tabular-nums; min-width:20px; text-align:center; }
.cov { width:49px; height:49px; border-radius:13px; flex:none; position:relative; overflow:hidden; background-size:cover; background-position:center; box-shadow:var(--cover-shadow); }
.wave { display:none; position:absolute; inset:0; background:rgba(12,15,24,.4); align-items:center; justify-content:center; gap:3px; }
.song.playing .wave { display:flex; }
.wave i { width:3px; height:15px; border-radius:3px; background:white; animation:equalizer .9s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay:.3s; height:22px; }
.wave i:nth-child(3) { animation-delay:.15s; height:11px; }
@keyframes equalizer { 0%,100% { transform:scaleY(.45); } 50% { transform:scaleY(1); } }
.meta { flex:1; min-width:0; }
.name { display:flex; align-items:center; gap:6px; font-size:13px; font-weight:600; }
.song-title { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.song.on .name { color:var(--accent); }
.badge { font-size:8px; font-weight:600; padding:2px 4px; color:var(--accent-2); background:rgba(235,117,108,.10); border-radius:5px; white-space:nowrap; }
.sub { margin-top:4px; font-size:10px; color:var(--dim-2); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dur { font-size:10px; color:var(--dim); flex:none; font-variant-numeric:tabular-nums; }
.more-btn { width:36px; height:40px; flex:none; display:grid; place-items:center; border-radius:12px; }
.more-btn:hover { background:var(--press); }
.more-btn svg { width:16px; height:16px; fill:var(--dim-2); }
.empty { padding:50px 20px; text-align:center; color:var(--dim); font-size:12px; }
.empty .ico { display:grid; place-items:center; width:68px; height:68px; margin:0 auto 18px; background:var(--accent-tint); border:1px solid var(--line); border-radius:22px; }
.empty svg { width:27px; height:27px; fill:var(--accent); }
.empty b { display:block; color:var(--text); font-size:16px; margin-bottom:8px; }
.empty span { font-size:12px; line-height:1.9; }
.retry-button { margin-top:20px; padding:11px 24px; border-radius:12px; background:var(--accent); color:var(--bg); font-weight:650; }

/* Floating mobile navigation and mini player */
#tab { position:fixed; z-index:21; left:12px; right:12px; bottom:var(--dock-bottom); height:var(--tab); display:flex; align-items:center; gap:4px; padding:6px; border-radius:23px; background:var(--tab-bg); border:1px solid var(--line-2); box-shadow:var(--shadow-2); backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px); transition:transform .2s var(--ease); }
.nav-brand, .nav-footer { display:none; }
.tb { flex:1; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:5px; color:var(--dim-2); border-radius:17px; transition:color .15s,background .15s; }
.tb svg { width:20px; height:20px; fill:currentColor; }
.tb span { font-size:9px; font-weight:650; }
.tb.on { color:var(--accent); background:var(--accent-tint); }
#mini { position:fixed; z-index:20; left:12px; right:12px; bottom:calc(var(--tab) + var(--dock-bottom) + 10px); height:var(--mini); display:flex; align-items:center; gap:10px; padding:0 11px; border-radius:21px; background:var(--mini-bg); border:1px solid var(--line-2); box-shadow:var(--shadow-2); backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px); transition:transform .3s var(--ease),opacity .2s; }
#mini.hide { transform:translateY(180px); opacity:0; pointer-events:none; }
.mcov { display:grid; place-items:center; width:44px; height:44px; border-radius:12px; background:var(--accent-tint); flex:none; background-size:cover; background-position:center; }
.mcov svg { width:20px; height:20px; fill:var(--accent); }
.mcov.has-img svg { display:none; }
#mnow { flex:1; min-width:0; cursor:pointer; }
#mnow .t { font-size:12px; font-weight:650; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
#mnow .s { margin-top:3px; font-size:9px; color:var(--dim); font-variant-numeric:tabular-nums; }
.mctl { width:34px; height:40px; display:grid; place-items:center; border-radius:12px; flex:none; }
.mctl:hover { background:var(--press); }
.mctl svg { width:20px; height:20px; fill:var(--text); }
#mtoggle { width:36px; height:36px; border-radius:50%; background:var(--accent-tint); }
#mtoggle svg { width:22px; height:22px; fill:var(--accent); }
#mbar { position:absolute; left:12px; right:12px; bottom:0; height:13px; display:flex; align-items:flex-end; overflow:hidden; border-radius:0 0 12px 12px; touch-action:none; cursor:pointer; }
#mbar .track { position:relative; width:100%; height:2px; background:var(--track); }
#mbar .fill { height:100%; width:0; background:linear-gradient(90deg,var(--accent),var(--accent-2)); }
#mbar.drag .track { height:5px; }
body.kb #tab { transform:translateY(160%); }
body.kb #mini { transform:translateY(300%); }
body.kb #scroll { padding-bottom:28px; }

/* Now playing */
#player { position:fixed; inset:0; z-index:60; display:flex; flex-direction:column; overflow:hidden; background:var(--bg); transform:translateY(100%); visibility:hidden; transition:transform .4s var(--ease),visibility .4s; }
#player.open { transform:translateY(0); visibility:visible; }
#player::before { content:""; position:absolute; inset:0; pointer-events:none; background:radial-gradient(ellipse at 50% 4%,var(--accent-tint),transparent 66%); }
.phead { display:flex; align-items:center; gap:12px; flex:none; position:relative; padding:calc(18px + env(safe-area-inset-top, 0px)) 22px 4px; }
.phead .ic { display:grid; place-items:center; width:40px; height:40px; border-radius:14px; background:var(--card); border:1px solid var(--line); }
.phead svg { width:21px; height:21px; fill:var(--text); }
.ptitle { flex:1; text-align:center; }
.ptitle .a { font-size:9px; font-weight:750; letter-spacing:.21em; color:var(--accent); }
.ptitle .b { font-size:10px; color:var(--dim); margin-top:5px; }
.artwrap { flex:1; position:relative; min-height:0; display:grid; place-items:center; padding:22px 32px; }
.art { position:relative; width:min(100%,330px); aspect-ratio:1; border-radius:30px; overflow:hidden; background:var(--card-2); box-shadow:var(--art-shadow); border:1px solid var(--line-2); transition:transform .35s var(--ease); }
.art.pause { transform:scale(.92); }
.artbg { position:absolute; inset:0; background-size:cover; background-position:center; }
.glow { position:absolute; inset:0; background:linear-gradient(140deg,rgba(255,255,255,.12),transparent 55%); }
.art .disc, .art .glyph { display:none; }
.pinfo { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 28px 4px; flex:none; }
.pmeta { flex:1; min-width:0; }
.pinfo .n { font-size:23px; font-weight:750; letter-spacing:-.04em; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.pinfo .s { margin-top:5px; font-size:11px; color:var(--dim); }
#pfav { width:42px; height:42px; border-radius:14px; background:var(--card); border:1px solid var(--line); }
.seek { padding:15px 28px 4px; flex:none; touch-action:none; }
.bar { display:flex; align-items:center; height:24px; position:relative; cursor:pointer; }
.bar .track { width:100%; height:3px; background:var(--track); border-radius:3px; position:relative; }
.bar .buf { position:absolute; top:0; left:0; height:100%; width:0; border-radius:3px; background:var(--line-2); }
.bar .fill { position:absolute; top:0; left:0; height:100%; width:0; border-radius:3px; background:linear-gradient(90deg,var(--accent),var(--accent-2)); }
.bar .knob { position:absolute; top:50%; left:0; width:11px; height:11px; background:var(--text); border-radius:50%; transform:translate(-50%,-50%); transition:width .15s,height .15s; }
.bar.drag .knob { width:17px; height:17px; }
.times { display:flex; justify-content:space-between; color:var(--dim); font-size:10px; font-variant-numeric:tabular-nums; }
.pctl { display:flex; align-items:center; justify-content:center; gap:8px; padding:12px 20px calc(28px + env(safe-area-inset-bottom, 0px)); flex:none; }
.pc { display:grid; place-items:center; width:50px; height:50px; border-radius:50%; flex:none; transition:background .15s,transform .15s; }
.pc:active { transform:scale(.94); background:var(--press); }
.pc svg { width:27px; height:27px; fill:var(--text); }
.pc.sm { background:var(--card); border:1px solid var(--line); }
.pc.sm svg { width:20px; height:20px; fill:var(--dim); }
.pc.big { width:72px; height:72px; margin:0 6px; background:linear-gradient(135deg,var(--accent),var(--accent-2)); box-shadow:0 12px 28px var(--accent-glow); }
.pc.big svg { width:29px; height:29px; fill:#fff; }
.pc.act svg { fill:var(--accent-2); }
.mode-label { text-align:center; color:var(--dim-2); font-size:9px; letter-spacing:.03em; padding-bottom:calc(12px + env(safe-area-inset-bottom, 0px)); }

/* Lyrics */
#lyricWrap { position:absolute; inset:0; padding:6px 28px; overflow:hidden; display:none; opacity:0; transition:opacity .2s; -webkit-mask-image:linear-gradient(transparent,#000 20%,#000 80%,transparent); mask-image:linear-gradient(transparent,#000 20%,#000 80%,transparent); }
#lyricWrap.show { display:block; }
#lyricWrap.visible { opacity:1; }
#lyricInner { transition:transform .45s var(--ease); }
.ly { font-size:17px; line-height:1.9; padding:5px 0; text-align:center; color:var(--ly-1); transition:color .25s,transform .25s; cursor:pointer; overflow-wrap:anywhere; }
.ly.near { color:var(--ly-2); }
.ly.cur { color:var(--ly-3); font-weight:750; transform:scale(1.04); text-shadow:0 0 22px var(--ly-glow); }
.ly-empty { color:var(--dim); font-size:13px; text-align:center; padding:44px 12px; line-height:2; }

/* Sheet, toast and authentication */
#sheetMask { position:fixed; inset:0; z-index:80; background:rgba(4,6,13,.5); backdrop-filter:blur(5px); opacity:0; pointer-events:none; transition:opacity .25s; }
#sheetMask.on { opacity:1; pointer-events:auto; }
#sheet { position:fixed; left:0; right:0; bottom:0; z-index:81; padding:10px 0 calc(16px + env(safe-area-inset-bottom, 0px)); max-height:78dvh; overflow:auto; background:var(--card); border:1px solid var(--line-2); border-bottom:0; border-radius:28px 28px 0 0; transform:translateY(110%); visibility:hidden; transition:transform .3s var(--ease),visibility .3s; }
#sheet.on { transform:translateY(0); visibility:visible; }
.sheet-grip { width:40px; height:4px; border-radius:4px; background:var(--line-2); margin:0 auto 18px; }
.sheet-head { display:flex; align-items:center; gap:12px; padding:0 22px 17px; }
.sheet-head .c { display:grid; place-items:center; width:45px; height:45px; border-radius:14px; background:var(--accent-tint); flex:none; }
.sheet-head .c svg { width:20px; height:20px; fill:var(--accent); }
.sheet-head .i { min-width:0; flex:1; }
.sheet-head .i .t { font-size:14px; font-weight:650; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.sheet-head .i .s { color:var(--dim); font-size:11px; margin-top:4px; }
.sheet-sep { height:1px; background:var(--line); margin:0 22px 6px; }
.sheet-item { width:100%; display:flex; align-items:center; gap:14px; padding:16px 22px; font-size:13px; text-align:left; }
.sheet-item:hover { background:var(--press); }
.sheet-item svg { width:20px; height:20px; fill:var(--dim); }
.sheet-item.on { color:var(--accent-2); }
.sheet-item.on svg { fill:var(--accent-2); }
.sheet-item .tail { margin-left:auto; color:var(--dim); font-size:11px; }
.sheet-cancel { display:block; margin:10px 18px 0; width:calc(100% - 36px); padding:13px; font-size:13px; color:var(--dim); background:var(--input-bg); border-radius:14px; }
#toast { position:fixed; left:50%; bottom:22%; z-index:95; transform:translate(-50%,12px); padding:11px 18px; max-width:88vw; border-radius:16px; font-size:12px; color:var(--bg); background:var(--text); box-shadow:var(--shadow-2); opacity:0; pointer-events:none; transition:opacity .2s,transform .2s; }
#toast.on { opacity:1; transform:translate(-50%,0); }
#auth { position:fixed; inset:0; display:flex; flex-direction:column; justify-content:center; padding:30px; overflow:auto; background:radial-gradient(ellipse at 20% 10%,var(--accent-tint),transparent 65%),var(--bg); }
.logo { display:grid; place-items:center; width:76px; height:76px; border-radius:24px; background:linear-gradient(135deg,var(--accent),var(--accent-2)); box-shadow:0 16px 34px var(--accent-glow); margin-bottom:28px; }
.logo svg { width:42px; height:42px; }
#auth h1 { font-size:32px; letter-spacing:-.04em; margin:0 0 10px; }
#auth p { color:var(--dim); font-size:13px; margin:0 0 32px; }
#pw { padding:16px; width:100%; border:1px solid var(--line-2); border-radius:15px; background:var(--card); color:var(--text); font-size:16px; }
#go { padding:15px; width:100%; margin-top:12px; border-radius:15px; background:var(--accent); color:var(--bg); font-weight:650; }
#go:disabled { opacity:.5; }
#err { margin-top:12px; min-height:20px; font-size:12px; color:var(--danger); }
#boot { position:fixed; inset:0; display:grid; place-content:center; gap:18px; text-align:center; background:var(--bg); color:var(--dim); font-size:12px; z-index:50; }
.loading-ring { width:32px; height:32px; margin:auto; border:2px solid var(--line-2); border-top-color:var(--accent); border-radius:50%; animation:spin 1s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }

@media (max-width:599px) {
  #scroll { scrollbar-width:none; }
  #scroll::-webkit-scrollbar { width:0; height:0; }
}
@media (max-width:360px) {
  .q { gap:7px; padding:11px; }.q .ic { width:30px; height:30px; }.q-arrow { display:none; }
  .feature-copy h2 { font-size:26px; }.record-disc { right:-45px; }
  .pc { width:43px; height:43px; }.pc.big { width:66px; height:66px; margin:0 4px; }.pctl { gap:6px; }
  .list-tools-note { display:none; }
}
@media (max-height:680px) {
  .artwrap { padding:14px 32px; }.art { width:min(100%,260px); max-height:100%; }
  .pinfo .n { font-size:20px; }.pctl { padding-bottom:calc(16px + env(safe-area-inset-bottom, 0px)); }
}
@media (min-width:600px) and (max-width:959px) {
  #app { max-width:600px; margin:auto; }
  #scroll { scrollbar-gutter: stable both-edges; }
  #tab, #mini { max-width:576px; margin:auto; }
  .hero { padding-left:28px; padding-right:28px; }
  .listening-card { min-height:230px; padding:28px; }
  .feature-copy h2 { font-size:34px; }.record-disc { width:220px; height:220px; right:16px; top:22px; }.record-label { inset:73px; }
  #sheet { max-width:576px; margin:auto; }
}
@media (min-width:960px) {
  #app { max-width:1240px; margin:auto; border-left:1px solid var(--line); border-right:1px solid var(--line); }
  #scroll { padding:0 32px 36px 244px; scrollbar-gutter:stable both-edges; }
  body.has-mini #scroll { padding-bottom:120px; }
  .hero { padding:38px 8px 28px; }
  .hero h1 { font-size:31px; }
  .hero .sub { font-size:12px; }
  .home-content { display:grid; grid-template-columns:minmax(0,1fr) 238px; gap:20px; margin:0 0 32px; }
  .listening-card { grid-column:1; grid-row:1 / span 2; width:100%; min-height:266px; margin:0; padding:30px; border-radius:28px; }
  .feature-copy h2 { font-size:36px; margin-top:22px; }.feature-copy p { font-size:11px; }.feature-action { margin-top:25px; font-size:12px; }.feature-kicker { font-size:9px; }
  .record-disc { right:-14px; top:43px; width:212px; height:212px; }.record-label { inset:70px; }.orbit-one { width:230px; right:-30px; top:90px; }.orbit-two { width:264px; right:-42px; top:80px; }
  .quick { grid-column:2; grid-row:1 / span 2; grid-template-columns:1fr; padding:0; gap:16px; }
  .q { padding:21px; border-radius:22px; }.q .ic { width:44px; height:44px; }.q .ic svg { width:21px; height:21px; }.q .t { font-size:14px; }.q .d { font-size:10px; margin-top:5px; }
  .home-content:has(.feat:not([hidden])) .quick { grid-row:2; }
  .feat { grid-column:2; grid-row:1; width:100%; margin:0; padding:14px; border-radius:22px; }.feat .fcov { width:40px; height:40px; }.feat .fplay { width:28px; height:28px; }.feat .fsub { font-size:9px; }
  .home-content:has(.feat:not([hidden])) .q { padding:14px; min-height:76px; }.home-content:has(.feat:not([hidden])) .q .ic { width:34px; height:34px; }
  .library-section { position:relative; }
  .sec { padding:0 8px 20px; }.sec h2 { font-size:23px; }
  .searchwrap { position:absolute; width:255px; top:-6px; right:0; padding:0; }#search { font-size:11px; }
  .sec .more { margin-left:12px; margin-right:auto; }
  .list-tools { padding:0 8px 18px; }
  #list { padding:0; }.group-head { padding-left:8px; padding-right:10px; }
  .song { padding:11px 13px; gap:17px; }.song-order { display:block; }.cov { width:48px; height:48px; }.name { font-size:14px; }.sub { font-size:10px; }.dur { font-size:11px; width:52px; text-align:right; }.more-btn { width:40px; }
  #tab { position:absolute; inset:0 auto 0 0; width:212px; height:auto; border:0; border-right:1px solid var(--line); border-radius:0; box-shadow:none; backdrop-filter:none; padding:38px 17px 26px; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:8px; background:var(--card); }
  .nav-brand { display:flex; gap:11px; align-items:center; padding:0 8px 34px; }.nav-mark { display:grid; place-items:center; width:36px; height:36px; border-radius:13px; background:linear-gradient(135deg,var(--accent),var(--accent-2)); }.nav-mark svg { width:20px; height:20px; fill:#fff; }.nav-brand b { display:block; font-size:15px; }.nav-brand small { display:block; color:var(--dim-2); font-size:8px; margin-top:3px; letter-spacing:.16em; }
  .tb { flex:none; flex-direction:row; justify-content:flex-start; gap:13px; height:48px; padding:0 16px; border-radius:13px; }.tb svg { width:19px; height:19px; }.tb span { font-size:12px; }
  .nav-footer { display:flex; align-items:center; gap:8px; margin-top:auto; padding:0 15px; font-size:10px; color:var(--dim-2); }.nav-footer .live-dot { background:var(--accent-2); }
  #mini { position:absolute; left:232px; right:20px; bottom:20px; height:76px; padding:0 20px; gap:15px; border-radius:23px; }.mcov { width:48px; height:48px; }#mnow .t { font-size:14px; }#mnow .s { font-size:10px; }.mctl { width:42px; }
  body.kb #tab { transform:none; }body.kb #scroll { padding:0 32px 120px 244px; }
  #player { max-width:1000px; max-height:720px; width:calc(100% - 80px); height:calc(100% - 80px); margin:auto; border:1px solid var(--line-2); border-radius:36px; box-shadow:0 0 0 100vmax rgba(4,6,13,.62); display:grid; grid-template-columns:1.1fr 1fr; grid-template-rows:80px 1fr auto auto; align-content:center; padding:0 26px 30px; }
  .phead { grid-column:1 / -1; grid-row:1; padding:20px 0; }.artwrap { grid-column:1; grid-row:2 / span 3; padding:35px 32px; }.art { width:min(100%,390px); }.pinfo { grid-column:2; grid-row:2; align-self:end; padding:0 20px 25px; }.pinfo .n { font-size:27px; }.seek { grid-column:2; grid-row:3; padding:5px 20px 20px; }.pctl { grid-column:2; grid-row:4; padding:5px 10px 35px; }
  #sheet { max-width:450px; left:auto; right:max(24px,calc((100vw - 1000px)/2)); bottom:24px; border-radius:26px; border-bottom:1px solid var(--line-2); padding-bottom:16px; }
  #auth { width:460px; max-height:600px; inset:0; margin:auto; border:1px solid var(--line-2); border-radius:32px; padding:45px; box-shadow:var(--shadow-2); }
}
@media (min-width:960px) and (max-height:700px) {
  #player { height:calc(100% - 36px); max-height:none; padding-bottom:12px; }
  .artwrap { padding:12px 25px; }.art { width:min(100%,calc(100dvh - 180px)); }
  .pinfo { padding-bottom:12px; }.pctl { padding-bottom:16px; }.phead { padding-top:16px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation-duration:.001ms!important; animation-iteration-count:1!important; transition-duration:.001ms!important; scroll-behavior:auto!important; }
}
