:root{
  --bg:#f5f0ea;--bg-2:#eadfd8;--card:rgb(255 253 249 / .82);--card-solid:#fffdfa;
  --text:#1f2937;--muted:#6b7280;--soft:#9ca3af;--line:rgb(31 41 55 / .10);
  --blue:#24479f;--blue-2:#2f65b3;--pink:#f6dfe1;--pink-2:#f3cfd3;--cream:#fff7e8;
  --green:#17835b;--yellow:#ad6b00;--red:#c2414b;--shadow:0 22px 70px rgb(36 71 159 / .12);
  --radius:24px;--radius-sm:16px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;color:var(--text);font:14px/1.5 Inter,"SF Pro Display","Segoe UI",system-ui,"PingFang SC","Microsoft YaHei",sans-serif;background:
  radial-gradient(circle at 12% 8%,rgb(246 223 225 / .95),transparent 28%),
  radial-gradient(circle at 92% 4%,rgb(36 71 159 / .16),transparent 26%),
  linear-gradient(135deg,var(--bg),#f9f5ef 48%,var(--bg-2));}
a{color:inherit;text-decoration:none}button,input{font:inherit}.shell{display:grid;grid-template-columns:250px minmax(0,1fr);gap:22px;max-width:1440px;margin:0 auto;padding:22px}.rail{position:sticky;top:22px;height:calc(100vh - 44px);display:flex;flex-direction:column;gap:22px;padding:18px;border:1px solid var(--line);border-radius:30px;background:rgb(255 253 249 / .70);backdrop-filter:blur(18px);box-shadow:var(--shadow)}.brand{display:flex;align-items:center;gap:12px;padding:8px}.brand-mark{display:grid;place-items:center;width:46px;height:46px;border-radius:17px;color:white;background:linear-gradient(135deg,var(--blue),var(--blue-2));box-shadow:0 12px 30px rgb(36 71 159 / .22);font-size:23px;font-weight:800}.brand b{display:block;font-size:15px}.brand small{display:block;color:var(--muted);font-size:12px;margin-top:2px}.nav-group{display:grid;gap:8px}.nav{display:flex;align-items:center;justify-content:space-between;height:44px;padding:0 14px;border-radius:15px;color:var(--muted);font-weight:650;transition:.16s ease}.nav:hover{background:rgb(36 71 159 / .07);color:var(--blue)}.nav.active{background:var(--blue);color:white;box-shadow:0 12px 24px rgb(36 71 159 / .18)}.monitor-link{margin-top:auto;display:flex;align-items:center;justify-content:center;height:42px;border-radius:15px;color:var(--blue);background:rgb(36 71 159 / .08);font-weight:700}.main{min-width:0}.hero{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px;padding:28px 30px;border-radius:32px;border:1px solid var(--line);background:linear-gradient(135deg,rgb(255 253 249 / .86),rgb(246 223 225 / .72));box-shadow:var(--shadow)}.eyebrow{margin:0 0 8px;color:var(--blue);font-size:12px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.hero h1{margin:0;font-size:34px;line-height:1.1;letter-spacing:-.04em}.hero p:last-child{margin:9px 0 0;color:var(--muted)}.primary-btn{border:0;border-radius:16px;background:var(--blue);color:white;padding:11px 18px;font-weight:800;box-shadow:0 12px 26px rgb(36 71 159 / .20);cursor:pointer}.primary-btn:disabled{opacity:.6}.alert{margin:0 0 16px;padding:12px 14px;border-radius:16px;color:#7a4b00;background:#fff0c7;border:1px solid rgb(173 107 0 / .18)}.hidden{display:none!important}.page{animation:fade .18s ease}@keyframes fade{from{opacity:.45;transform:translateY(4px)}to{opacity:1;transform:none}}.summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.summary-grid.slim{grid-template-columns:repeat(5,minmax(0,1fr))}.card,.panel{border:1px solid var(--line);background:var(--card);backdrop-filter:blur(18px);box-shadow:var(--shadow)}.card{position:relative;overflow:hidden;border-radius:22px;padding:16px;min-height:102px}.card:after{content:"";position:absolute;right:-34px;bottom:-42px;width:105px;height:105px;border-radius:999px;background:rgb(246 207 211 / .55)}.label{position:relative;color:var(--muted);font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.value{position:relative;margin-top:8px;font-size:28px;font-weight:850;letter-spacing:-.04em;color:var(--blue)}.sub{position:relative;margin-top:5px;color:var(--soft);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.split{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:14px}.panel{border-radius:var(--radius);padding:18px}.panel.full{margin-bottom:14px}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.panel-head h2{margin:0;font-size:18px;letter-spacing:-.02em}.panel-head p{margin:4px 0 0;color:var(--muted);font-size:12px}.soft-label{display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:999px;background:rgb(246 223 225 / .75);color:var(--blue);font-weight:750;font-size:12px}.search-head input{width:min(360px,42vw);height:42px;border:1px solid var(--line);border-radius:15px;background:rgb(255 255 255 / .76);padding:0 13px;outline:none}.search-head input:focus{border-color:rgb(36 71 159 / .38);box-shadow:0 0 0 4px rgb(36 71 159 / .08)}.task-list{display:grid;gap:10px}.task{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:14px;border-radius:18px;background:rgb(255 253 249 / .78);border:1px solid var(--line)}.task .title{font-weight:820;font-size:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.meta{margin-top:4px;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.badges{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}.badge{display:inline-flex;align-items:center;gap:6px;min-height:24px;border-radius:999px;padding:3px 9px;background:rgb(36 71 159 / .07);color:var(--blue);border:1px solid rgb(36 71 159 / .10);font-size:12px;font-weight:760;white-space:nowrap}.badge:before{content:"";width:7px;height:7px;border-radius:999px;background:currentColor}.badge.ok{color:var(--green);background:rgb(23 131 91 / .08);border-color:rgb(23 131 91 / .14)}.badge.run,.badge.am{color:var(--blue)}.badge.qobuz{color:#7c3aed;background:rgb(124 58 237 / .08);border-color:rgb(124 58 237 / .14)}.badge.deezer{color:#a21caf;background:rgb(162 28 175 / .08);border-color:rgb(162 28 175 / .14)}.badge.warn{color:var(--yellow);background:rgb(173 107 0 / .08);border-color:rgb(173 107 0 / .14)}.badge.fail{color:var(--red);background:rgb(194 65 75 / .08);border-color:rgb(194 65 75 / .14)}.progress{height:5px;margin-top:10px;border-radius:999px;background:rgb(36 71 159 / .10);overflow:hidden}.progress span{display:block;width:38%;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--blue),var(--pink-2));animation:slide 1.8s ease-in-out infinite}@keyframes slide{50%{transform:translateX(160%);opacity:.58}}.server-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.server-list.compact{grid-template-columns:1fr}.server-card{border:1px solid var(--line);border-radius:20px;background:rgb(255 253 249 / .80);padding:16px}.server-head{display:flex;justify-content:space-between;gap:10px;margin-bottom:14px}.server-name{display:flex;align-items:center;gap:9px;font-weight:850;font-size:16px}.status-dot{width:10px;height:10px;border-radius:999px;background:var(--soft);box-shadow:0 0 0 4px rgb(156 163 175 / .14)}.status-dot.live{background:var(--green);box-shadow:0 0 0 4px rgb(23 131 91 / .14)}.server-meta,.server-foot{color:var(--muted);font-size:12px}.server-meters{display:grid;gap:11px}.meter-row{display:flex;justify-content:space-between;color:var(--muted);font-size:12px}.meter-row b{color:var(--text)}.meter-track{height:8px;margin-top:5px;border-radius:999px;background:rgb(36 71 159 / .10);overflow:hidden}.meter-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--blue),var(--blue-2));transition:width .25s ease}.meter.warn .meter-track span{background:linear-gradient(90deg,#d98a00,#f0b34a)}.meter.danger .meter-track span{background:linear-gradient(90deg,var(--red),#ea7b85)}.meter-sub{margin-top:4px;color:var(--soft);font-size:11px}.server-kv{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:13px}.server-kv div{padding:9px;border-radius:14px;background:rgb(36 71 159 / .045);border:1px solid rgb(36 71 159 / .07)}.server-kv span{display:block;color:var(--muted);font-size:11px}.server-kv b{display:block;margin-top:3px;font-size:12px}.album-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.album{padding:15px;border-radius:18px;border:1px solid var(--line);background:rgb(255 253 249 / .78)}.album .artist{color:var(--muted);font-size:12px}.album .name{margin:5px 0 12px;font-size:15px;font-weight:850;line-height:1.35}.empty{padding:16px;border:1px dashed rgb(36 71 159 / .20);border-radius:18px;color:var(--muted);background:rgb(255 253 249 / .52)}.muted-panel{background:rgb(255 253 249 / .58)}
@media(max-width:1180px){.shell{grid-template-columns:1fr}.rail{position:static;height:auto;flex-direction:row;align-items:center}.nav-group{display:flex}.monitor-link{margin-top:0;margin-left:auto}.split,.server-list{grid-template-columns:1fr}.summary-grid,.summary-grid.slim{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.shell{padding:12px}.rail{border-radius:22px;align-items:stretch;flex-direction:column}.nav-group{display:grid;grid-template-columns:repeat(4,1fr)}.nav{justify-content:center;padding:0 8px}.monitor-link{margin-left:0}.hero{border-radius:24px;padding:22px;align-items:flex-start;flex-direction:column}.hero h1{font-size:28px}.summary-grid,.summary-grid.slim,.album-grid{grid-template-columns:1fr}.task{grid-template-columns:1fr}.badges{justify-content:flex-start}.search-head{flex-direction:column}.search-head input{width:100%}.server-kv{grid-template-columns:repeat(2,minmax(0,1fr))}}
.library-tabs{display:flex;gap:8px;margin:6px 0 14px;padding:6px;border-radius:18px;background:rgb(36 71 159 / .06);width:max-content;max-width:100%;overflow:auto}.tab{border:0;border-radius:13px;background:transparent;color:var(--muted);height:34px;padding:0 14px;font-weight:800;cursor:pointer;white-space:nowrap}.tab.active{background:var(--blue);color:#fff;box-shadow:0 10px 22px rgb(36 71 159 / .18)}.nav-status{margin-bottom:12px}.song-list{display:grid;gap:10px}.song-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 14px;border-radius:18px;border:1px solid var(--line);background:rgb(255 253 249 / .78)}.song-row .title{font-weight:820;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.artist-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.artist-card{display:flex;align-items:center;gap:12px;padding:14px;border-radius:18px;border:1px solid var(--line);background:rgb(255 253 249 / .78)}.artist-avatar{display:grid;place-items:center;width:42px;height:42px;border-radius:15px;background:linear-gradient(135deg,var(--pink),rgb(36 71 159 / .14));color:var(--blue);font-weight:900}.artist-card .name{font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:190px}.nav-album{position:relative}.nav-album:before{content:"";position:absolute;inset:0 auto 0 0;width:4px;border-radius:18px 0 0 18px;background:linear-gradient(var(--blue),var(--pink-2))}@media(max-width:1180px){.artist-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:720px){.artist-grid{grid-template-columns:1fr}.song-row{grid-template-columns:1fr}.library-tabs{width:100%}.tab{flex:1}}
.nav-click{font:inherit;color:inherit;text-align:left;cursor:pointer}.nav-click:hover{border-color:rgb(36 71 159 / .26);box-shadow:0 14px 34px rgb(36 71 159 / .10);transform:translateY(-1px)}.crumbs{display:flex;align-items:center;gap:12px;margin-bottom:14px;padding:12px;border-radius:18px;background:rgb(36 71 159 / .055);border:1px solid rgb(36 71 159 / .08)}.crumbs b{display:block}.crumbs span{display:block;color:var(--muted);font-size:12px;margin-top:2px}.ghost-small{border:1px solid rgb(36 71 159 / .14);background:rgb(255 253 249 / .76);color:var(--blue);border-radius:13px;height:34px;padding:0 12px;font-weight:850;cursor:pointer}.detail-hero{margin-bottom:14px;padding:18px;border-radius:22px;background:linear-gradient(135deg,rgb(246 223 225 / .72),rgb(36 71 159 / .08));border:1px solid var(--line)}.detail-hero h2{margin:0;font-size:24px;letter-spacing:-.03em}.detail-hero p:last-child{margin:7px 0 0;color:var(--muted)}.track-no{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:22px;margin-right:8px;border-radius:999px;background:rgb(36 71 159 / .08);color:var(--blue);font-size:12px;font-weight:850}.empty.subtle{border-style:solid;background:rgb(36 71 159 / .045)}

.search-box{display:flex;gap:8px;align-items:center}.search-box input{width:min(360px,42vw)}.search-btn{height:42px;border:0;border-radius:15px;background:var(--blue);color:#fff;padding:0 16px;font-weight:850;box-shadow:0 10px 22px rgb(36 71 159 / .16);cursor:pointer;white-space:nowrap}.search-btn.loading{opacity:.72;cursor:wait}.search-loading{display:flex;align-items:center;gap:10px;transition:opacity .22s ease}.tiny-spinner{width:14px;height:14px;border-radius:999px;border:2px solid rgb(36 71 159 / .18);border-top-color:var(--blue);animation:spin .85s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.nav-pane,.nav-detail{transition:opacity .22s ease,transform .22s ease}.nav-pane:not(.hidden),.nav-detail:not(.hidden){animation:softIn .24s ease}@keyframes softIn{from{opacity:.45;transform:translateY(4px)}to{opacity:1;transform:none}}@media(max-width:720px){.search-box{width:100%;display:grid;grid-template-columns:1fr auto}.search-box input{width:100%}.search-btn{padding:0 14px}}

.hero-compact{padding:20px 24px;border-radius:26px;background:rgb(255 253 249 / .74);box-shadow:0 16px 48px rgb(36 71 159 / .09)}.hero-compact h1{font-size:30px}.hero-pills{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.status-pill{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 12px;border-radius:999px;background:rgb(36 71 159 / .07);border:1px solid rgb(36 71 159 / .10);color:var(--blue);font-size:12px;font-weight:850;white-space:nowrap}.status-pill:before{content:"";width:7px;height:7px;border-radius:999px;background:currentColor}.status-pill.live{color:var(--green);background:rgb(23 131 91 / .08);border-color:rgb(23 131 91 / .14)}@media(max-width:720px){.hero-compact{padding:18px}.hero-pills{justify-content:flex-start}.hero-compact h1{font-size:26px}}


/* Mobile polish: fix 5-item nav and reduce visual weight on narrow screens. */
@media(max-width:720px){
  body{background:linear-gradient(160deg,#f8f3ed 0%,#fffaf4 48%,#f3e5e2 100%)}
  .shell{display:block;padding:10px;max-width:100%;overflow-x:hidden}
  .rail{position:static;height:auto;border-radius:22px;padding:12px;gap:12px;margin-bottom:12px;background:rgb(255 253 249 / .86)}
  .brand{padding:4px 6px}.brand-mark{width:40px;height:40px;border-radius:15px;font-size:20px}.brand b{font-size:14px}.brand small{font-size:11px}
  .nav-group{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;overflow:visible}
  .nav{height:38px;justify-content:center;padding:0 4px;border-radius:13px;font-size:13px;letter-spacing:-.02em;min-width:0}.nav span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .monitor-link{height:36px;margin:0;border-radius:13px;font-size:13px}
  .hero{margin-bottom:12px}.hero-compact{padding:16px;border-radius:22px;gap:12px;background:rgb(255 253 249 / .82)}.hero-compact h1{font-size:25px}.eyebrow{font-size:10px;margin-bottom:5px}.hero p:last-child{font-size:12px;margin-top:6px;line-height:1.45}.hero-pills{width:100%;justify-content:flex-start}.status-pill{height:28px;font-size:11px;padding:0 10px}
  .panel{border-radius:20px;padding:13px;box-shadow:0 12px 34px rgb(36 71 159 / .08)}.panel.full{margin-bottom:12px}.panel-head{gap:10px;margin-bottom:12px}.panel-head h2{font-size:16px}.panel-head p{font-size:11px;line-height:1.45}
  .summary-grid,.summary-grid.slim{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.card{min-height:84px;border-radius:18px;padding:12px}.card:after{width:72px;height:72px;right:-28px;bottom:-34px}.label{font-size:10px}.value{font-size:22px;margin-top:6px}.sub{font-size:11px;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
  .split,.server-list,.server-list.compact,.album-grid,.artist-grid{grid-template-columns:1fr;gap:10px}.task,.song-row{grid-template-columns:1fr;gap:10px;padding:12px;border-radius:16px}.task .title,.song-row .title{white-space:normal;line-height:1.35}.meta{white-space:normal;line-height:1.4}.badges{justify-content:flex-start}.badge{font-size:11px;min-height:22px;padding:2px 7px}
  .server-card,.album,.artist-card{border-radius:17px;padding:12px}.server-head{margin-bottom:10px}.server-kv{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.server-kv div{padding:8px}.server-kv b{font-size:11px}
  .search-head{align-items:stretch}.search-box{width:100%;grid-template-columns:minmax(0,1fr) auto;gap:7px}.search-box input,.search-head input{height:40px;width:100%;font-size:13px;border-radius:13px}.search-btn{height:40px;border-radius:13px;padding:0 13px;font-size:13px}
  .library-tabs{width:100%;gap:6px;padding:5px;margin:4px 0 12px}.tab{height:32px;padding:0 8px;font-size:13px}
  .detail-hero{border-radius:18px;padding:14px}.detail-hero h2{font-size:20px}.crumbs{border-radius:16px;padding:10px}.ghost-small{height:32px}
}
@media(max-width:390px){
  .nav{font-size:12px;padding:0 2px}.summary-grid,.summary-grid.slim{grid-template-columns:1fr}.status-pill{font-size:10px}.brand small{display:none}
}


/* Mobile priority: show the most important operational content first. */
@media(max-width:720px){
  #overview{display:flex;flex-direction:column;gap:10px}
  #overview .split{display:contents}
  .overview-tasks{order:1;border-color:rgb(36 71 159 / .18);background:rgb(255 253 249 / .90)}
  .overview-tasks .panel-head{margin-bottom:10px}.overview-tasks .soft-label{background:rgb(36 71 159 / .08);color:var(--blue)}
  .overview-cards{order:2;margin-bottom:0}
  .overview-cards .card:first-child{grid-column:1/-1;background:linear-gradient(135deg,rgb(36 71 159 / .10),rgb(246 223 225 / .62));border-color:rgb(36 71 159 / .15)}
  .overview-cards .card:first-child .value{font-size:30px}
  .overview-servers{order:3;opacity:.96}
  .overview-servers .panel-head h2:after{content:" · 次要";font-size:11px;color:var(--soft);font-weight:700}
}


/* Account availability: compact operational cards for AM and Qobuz. */
.overview-accounts{margin-bottom:14px;background:rgb(255 253 249 / .78)}
.account-health-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:stretch}
.account-card{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:20px;background:rgb(255 253 249 / .82);padding:15px;min-height:128px}
.account-card:after{content:"";position:absolute;right:-30px;top:-34px;width:92px;height:92px;border-radius:999px;background:rgb(36 71 159 / .08)}
.account-card.ok{border-color:rgb(23 131 91 / .16);background:linear-gradient(135deg,rgb(255 253 249 / .92),rgb(23 131 91 / .055))}
.account-card.warn{border-color:rgb(173 107 0 / .18);background:linear-gradient(135deg,rgb(255 253 249 / .92),rgb(173 107 0 / .06))}
.account-card.fail{border-color:rgb(194 65 75 / .20);background:linear-gradient(135deg,rgb(255 253 249 / .92),rgb(194 65 75 / .06))}
.account-main{position:relative;display:flex;align-items:center;gap:10px}.account-dot{width:11px;height:11px;border-radius:999px;background:var(--yellow);box-shadow:0 0 0 5px rgb(173 107 0 / .12)}.account-card.ok .account-dot{background:var(--green);box-shadow:0 0 0 5px rgb(23 131 91 / .13)}.account-card.fail .account-dot{background:var(--red);box-shadow:0 0 0 5px rgb(194 65 75 / .13)}
.account-title{color:var(--muted);font-size:12px;font-weight:850;letter-spacing:.04em;text-transform:uppercase}.account-value{margin-top:2px;color:var(--text);font-size:20px;font-weight:900;letter-spacing:-.03em}.account-detail{position:relative;margin-top:12px;color:var(--blue);font-size:13px;font-weight:760;line-height:1.45}.account-meta{position:relative;margin-top:6px;color:var(--soft);font-size:12px;line-height:1.45}.account-health-note{grid-column:1/-1;color:var(--muted);font-size:12px;padding:2px 4px}.account-health-note.warn{color:var(--yellow)}

.account-rows{position:relative;display:grid;gap:7px;margin-top:10px}
.account-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px 10px;border-radius:13px;background:rgb(36 71 159 / .045);border:1px solid rgb(36 71 159 / .07)}
.account-row span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:850;color:var(--text)}
.account-row b{font-size:12px;color:var(--yellow)}
.account-row.ok b{color:var(--green)}
.account-row.fail b{color:var(--red)}
.account-row em{grid-column:1/-1;min-width:0;color:var(--soft);font-style:normal;font-size:11px;line-height:1.35}
@media(max-width:720px){.account-rows{gap:6px;margin-top:8px}.account-row{padding:7px 9px;border-radius:12px}.account-row b{font-size:11px}}
@media(max-width:720px){.overview-accounts{order:2;margin-bottom:0}.account-health-grid{grid-template-columns:1fr;gap:8px}.account-card{min-height:104px;border-radius:17px;padding:12px}.account-value{font-size:18px}.account-detail,.account-meta,.account-health-note{font-size:11px}.overview-cards{order:3}.overview-servers{order:4}}


/* Keep current-task titles visible even when many badges are present. */
.overview-tasks .task{grid-template-columns:minmax(0,1fr);align-items:start}
.overview-tasks .badges{justify-content:flex-start}
.overview-tasks .task .title{white-space:normal;line-height:1.35}
.overview-tasks .meta{white-space:normal;line-height:1.4}


/* Task list change motion: compositor-only opacity/transform. */
.task-enter{animation:taskEnter .24s cubic-bezier(.2,.8,.2,1) both;will-change:opacity,transform}
.task-exit{animation:taskExit .18s ease both;pointer-events:none;will-change:opacity,transform}
@keyframes taskEnter{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@keyframes taskExit{from{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(-6px) scale(.985)}}
@media(prefers-reduced-motion:reduce){.task-enter,.task-exit{animation:none!important;will-change:auto}}




.download-library{
  margin-top:16px;
}
.download-artist-card,.download-album-card{
  cursor:pointer;
  text-align:left;
}
.download-artist-card .badges{
  justify-content:flex-start;
  margin-top:8px;
}
.download-album-card{
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.download-album-card:hover,.download-artist-card:hover{
  transform:translateY(-1px);
}

/* ===== Non-discover styles ===== */






.detail-actions{display:flex;flex-direction:column;align-items:flex-end;gap:10px;min-width:180px}.detail-download-btn{min-width:150px}.detail-actions .badges{justify-content:flex-end}


.album-with-cover{display:grid;grid-template-columns:82px minmax(0,1fr);gap:12px;align-items:center;min-height:112px}
.album-cover{position:relative;width:82px;height:82px;border-radius:16px;overflow:hidden;display:grid;place-items:center;flex:0 0 auto;background:linear-gradient(135deg,var(--pink),rgb(36 71 159 / .14));color:var(--blue);font-size:22px;font-weight:900;box-shadow:inset 0 0 0 1px rgb(36 71 159 / .08)}
.album-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}.album-cover img+span{display:none}.album-cover.missing span{display:block}.album-info{min-width:0}.album-info .name{margin-top:3px}.album-info .badges{margin-top:8px}
@media(max-width:720px){.album-with-cover{grid-template-columns:64px minmax(0,1fr);gap:10px;min-height:86px}.album-cover{width:64px;height:64px;border-radius:13px;font-size:17px}}


.album-detail-hero{display:grid;grid-template-columns:168px minmax(0,1fr);gap:22px;align-items:stretch;padding:20px;background:linear-gradient(135deg,rgb(255 253 249 / .88),rgb(36 71 159 / .075))}
.album-detail-hero .album-cover{width:168px;height:168px;border-radius:24px;font-size:34px;box-shadow:0 18px 42px rgb(36 71 159 / .14),inset 0 0 0 1px rgb(36 71 159 / .08)}
.detail-main{min-width:0;display:flex;flex-direction:column;justify-content:center}.detail-main h2{margin:0;font-size:28px;line-height:1.12;letter-spacing:-.04em}.detail-main p:not(.eyebrow){margin:8px 0 0;color:var(--muted)}.detail-hero-badges{justify-content:flex-start;margin-top:14px}.detail-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:16px}.detail-metric{min-width:0;padding:11px 12px;border-radius:15px;background:rgb(255 253 249 / .72);border:1px solid rgb(36 71 159 / .08)}.detail-metric span{display:block;color:var(--muted);font-size:11px;font-weight:800}.detail-metric b{display:block;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--text)}
.detail-section{margin-top:14px;padding:16px;border:1px solid var(--line);border-radius:22px;background:rgb(255 253 249 / .62)}.detail-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.detail-section-head h3{margin:0;font-size:17px;letter-spacing:-.02em}.detail-section-head p{margin:3px 0 0;color:var(--muted);font-size:12px}.detail-info-list{display:grid;gap:9px}.detail-info-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px 13px;border-radius:16px;background:rgb(255 253 249 / .78);border:1px solid var(--line)}.detail-info-row b{display:block}.detail-info-row span{display:block;margin-top:3px;color:var(--muted);font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:900px){.album-detail-hero{grid-template-columns:124px minmax(0,1fr);gap:16px}.album-detail-hero .album-cover{width:124px;height:124px;border-radius:20px}.detail-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.album-detail-hero{grid-template-columns:1fr;padding:14px}.album-detail-hero .album-cover{width:112px;height:112px;border-radius:18px}.detail-main h2{font-size:22px}.detail-info-row{grid-template-columns:1fr}.detail-section-head{display:block}.detail-metrics{grid-template-columns:1fr}}


.download-track-list{max-height:none}.download-track-row .meta{max-width:720px}.detail-section.compact{background:rgb(255 253 249 / .45)}
@media(max-width:720px){.download-track-row .badges{justify-content:flex-start}}


.auth-login .rail{display:none}.auth-login .shell{grid-template-columns:1fr;max-width:1180px}.login-shell{min-height:calc(100vh - 170px);display:grid;grid-template-columns:minmax(0,1fr) 420px;gap:22px;align-items:center}.login-copy,.login-card{border:1px solid var(--line);background:var(--card);box-shadow:var(--shadow);border-radius:30px}.login-copy{padding:34px}.login-copy h2{margin:0;font-size:34px;line-height:1.12;letter-spacing:-.04em}.login-copy p{color:var(--muted);font-size:15px}.login-rules{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px}.login-rules span{height:32px;display:inline-flex;align-items:center;padding:0 12px;border-radius:999px;background:rgb(36 71 159 / .08);color:var(--blue);font-weight:850}.login-card{padding:24px;display:grid;gap:14px}.login-card h3{margin:0 0 4px;font-size:22px}.login-card label{display:grid;gap:7px;color:var(--muted);font-weight:800}.login-card input{height:44px;border:1px solid var(--line);border-radius:15px;background:rgb(255 255 255 / .82);padding:0 13px;outline:none}.login-card input:focus{border-color:rgb(36 71 159 / .38);box-shadow:0 0 0 4px rgb(36 71 159 / .08)}.logout-link{border:0;cursor:pointer;width:100%}
@media(max-width:860px){.login-shell{grid-template-columns:1fr}.login-copy h2{font-size:28px}}


.login-loading .login-card{position:relative;overflow:hidden}.login-loading .login-card:after{content:"";position:absolute;inset:0;border-radius:30px;background:linear-gradient(110deg,transparent 0%,rgb(255 255 255 / .35) 35%,transparent 70%);transform:translateX(-100%);animation:loginSheen 1.15s ease-in-out infinite;pointer-events:none}.login-spinner{width:15px;height:15px;border-color:rgb(255 255 255 / .35);border-top-color:#fff}.login-card .search-btn{display:inline-flex;align-items:center;justify-content:center;gap:9px}.login-card .search-btn:disabled{opacity:.78;cursor:wait}.beszel-pill{background:rgb(36 71 159 / .08);border:1px solid rgb(36 71 159 / .10);color:var(--blue)}.rail .monitor-link.logout-link{margin-top:auto;background:rgb(194 65 75 / .08);color:var(--red);border:1px solid rgb(194 65 75 / .12)}@keyframes loginSheen{to{transform:translateX(100%)}}


html,body{min-height:100%}
body{background-attachment:fixed;background-color:var(--bg-2)}
.shell{min-height:100vh;align-items:stretch}
.main{min-width:0;display:flex;flex-direction:column;min-height:calc(100vh - 44px)}
.page:not(.hidden){display:flex;flex-direction:column;flex:1;min-height:0}.page>.panel.full{flex:1;margin-bottom:0}
.panel-head.search-head{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,460px);align-items:end;gap:18px;margin-bottom:18px}.panel-head.search-head>div:first-child{min-width:0}.panel-head.search-head h2{font-size:20px}.panel-head.search-head p{max-width:620px;line-height:1.55}.search-box{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px;align-items:center;justify-self:end}.search-box.search-box-single{grid-template-columns:minmax(0,1fr)}.search-head input,.search-box input{width:100%;height:44px;border-radius:16px;background:rgb(255 255 255 / .84)}.search-btn{height:44px;border-radius:16px;min-width:76px}
@media(max-width:980px){.panel-head.search-head{grid-template-columns:1fr;align-items:start}.search-box{justify-self:stretch;max-width:none}.main{min-height:auto}.page>.panel.full{min-height:calc(100vh - 220px)}}
@media(max-width:720px){.panel-head.search-head{gap:12px;margin-bottom:14px}.search-box{grid-template-columns:1fr auto}.search-box.search-box-single{grid-template-columns:1fr}.search-btn{min-width:68px;padding:0 13px}.page>.panel.full{min-height:calc(100vh - 260px)}}


.panel-head.search-head{display:block;margin-bottom:14px}.module-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,520px);align-items:center;gap:18px;margin:0 0 16px;padding:13px;border:1px solid rgb(36 71 159 / .10);border-radius:22px;background:linear-gradient(135deg,rgb(255 253 249 / .86),rgb(36 71 159 / .045));box-shadow:0 12px 34px rgb(36 71 159 / .07)}.toolbar-copy{min-width:0;display:grid;gap:3px}.toolbar-copy b{font-size:13px;color:var(--blue);letter-spacing:.01em}.toolbar-copy span{color:var(--muted);font-size:12px;line-height:1.45}.module-toolbar .search-box{max-width:none;justify-self:stretch}.module-toolbar input{height:46px;background:rgb(255 255 255 / .92);border-color:rgb(36 71 159 / .12)}.module-toolbar .search-btn{height:46px;min-width:82px}.module-toolbar+.nav-status:empty{display:none}.module-toolbar+.summary-grid,.module-toolbar+.task-list{margin-top:2px}
@media(max-width:980px){.module-toolbar{grid-template-columns:1fr;gap:11px}.toolbar-copy span{max-width:720px}.module-toolbar .search-box{width:100%}}
@media(max-width:720px){.module-toolbar{padding:11px;border-radius:18px;margin-bottom:12px}.toolbar-copy b{font-size:12px}.toolbar-copy span{font-size:11px}.module-toolbar input,.module-toolbar .search-btn{height:40px}.module-toolbar .search-btn{min-width:68px}}


.module-toolbar.search-toolbar{display:flex;justify-content:flex-end;align-items:center;margin:-2px 0 18px;padding:10px;border-radius:24px;background:linear-gradient(135deg,rgb(255 253 249 / .62),rgb(255 253 249 / .34));border:1px solid rgb(36 71 159 / .075);box-shadow:0 10px 28px rgb(36 71 159 / .045)}.module-toolbar.search-toolbar .search-box{width:min(100%,560px);margin-left:auto}.module-toolbar.search-toolbar .search-box-single{width:min(100%,460px)}.module-toolbar.search-toolbar input{height:44px;border-radius:999px;padding:0 17px;background:rgb(255 255 255 / .92);border-color:rgb(36 71 159 / .12);box-shadow:inset 0 1px 0 rgb(255 255 255 / .75)}.module-toolbar.search-toolbar .search-btn{height:44px;border-radius:999px;padding:0 19px;min-width:82px}.module-toolbar.search-toolbar input::placeholder{color:rgb(107 114 128 / .74)}
@media(max-width:980px){.module-toolbar.search-toolbar{justify-content:stretch}.module-toolbar.search-toolbar .search-box,.module-toolbar.search-toolbar .search-box-single{width:100%;margin-left:0}}
@media(max-width:720px){.module-toolbar.search-toolbar{padding:8px;border-radius:18px;margin-bottom:14px}.module-toolbar.search-toolbar input,.module-toolbar.search-toolbar .search-btn{height:40px}.module-toolbar.search-toolbar .search-btn{padding:0 14px;min-width:68px}}


.module-toolbar.search-toolbar{position:relative;display:block;width:min(100%,760px);margin:2px auto 20px;padding:0;border:0;border-radius:999px;background:transparent;box-shadow:none}.module-toolbar.search-toolbar:before{content:"";position:absolute;inset:-1px;border-radius:999px;background:linear-gradient(135deg,rgb(36 71 159 / .18),rgb(246 207 211 / .62),rgb(36 71 159 / .08));opacity:.9}.module-toolbar.search-toolbar .search-box{position:relative;width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0;margin:0;padding:5px;border-radius:999px;background:rgb(255 253 249 / .92);box-shadow:0 18px 46px rgb(36 71 159 / .10),inset 0 1px 0 rgb(255 255 255 / .88);backdrop-filter:blur(16px)}.module-toolbar.search-toolbar .search-box-single{grid-template-columns:minmax(0,1fr);width:100%}.module-toolbar.search-toolbar input{height:46px;border:0!important;border-radius:999px;background:transparent!important;box-shadow:none!important;padding:0 18px 0 20px;color:var(--text);font-weight:650}.module-toolbar.search-toolbar input:focus{box-shadow:none!important}.module-toolbar.search-toolbar input::placeholder{color:rgb(107 114 128 / .62);font-weight:600}.module-toolbar.search-toolbar .search-btn{height:46px;min-width:92px;border-radius:999px;padding:0 22px;box-shadow:0 10px 24px rgb(36 71 159 / .18);background:linear-gradient(135deg,var(--blue),var(--blue-2))}.module-toolbar.search-toolbar .search-btn:hover{transform:translateY(-1px);box-shadow:0 14px 28px rgb(36 71 159 / .22)}.panel-head.search-head{margin-bottom:16px;text-align:left}.module-toolbar.search-toolbar+.summary-grid,.module-toolbar.search-toolbar+.task-list,.module-toolbar.search-toolbar+.nav-status{margin-top:0}
@media(max-width:980px){.module-toolbar.search-toolbar{width:100%;margin:0 0 16px}.module-toolbar.search-toolbar .search-box{margin:0}}
@media(max-width:720px){.module-toolbar.search-toolbar{margin-bottom:13px}.module-toolbar.search-toolbar .search-box{padding:4px}.module-toolbar.search-toolbar input{height:40px;padding:0 13px}.module-toolbar.search-toolbar .search-btn{height:40px;min-width:70px;padding:0 14px}}


#albums .summary-grid.slim,#futureecho .summary-grid.slim{margin-bottom:16px}#albums .module-toolbar.search-toolbar,#futureecho .module-toolbar.search-toolbar{margin-bottom:18px}#downloadGrid.artist-grid,#navArtists.artist-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.album-grid,#navAlbums.album-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.download-library{margin-top:0}.album,.artist-card,.song-row{border-color:rgb(36 71 159 / .095);background:linear-gradient(135deg,rgb(255 253 249 / .88),rgb(255 253 249 / .66));box-shadow:0 12px 34px rgb(36 71 159 / .055);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease}.album:hover,.artist-card:hover,.song-row:hover{border-color:rgb(36 71 159 / .20);box-shadow:0 18px 44px rgb(36 71 159 / .10);background:rgb(255 253 249 / .92)}.nav-click:hover{box-shadow:0 18px 44px rgb(36 71 159 / .10)}.album{border-radius:22px;padding:14px}.album-with-cover{grid-template-columns:92px minmax(0,1fr);gap:14px;min-height:124px}.album-cover{width:92px;height:92px;border-radius:19px;box-shadow:0 12px 28px rgb(36 71 159 / .10),inset 0 0 0 1px rgb(36 71 159 / .08)}.album .artist,.album-info .artist{font-size:12px;font-weight:780;color:var(--muted);letter-spacing:.01em}.album .name,.album-info .name{margin:4px 0 0;font-size:16px;font-weight:880;line-height:1.28;letter-spacing:-.02em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.album-info .badges{margin-top:10px;gap:5px}.album-info .meta{margin-top:9px}.nav-album:before{display:none}.nav-album,.download-album-card{position:relative;overflow:hidden}.nav-album:after,.download-album-card:after{content:"";position:absolute;inset:auto 14px 0 14px;height:3px;border-radius:999px;background:linear-gradient(90deg,rgb(36 71 159 / .72),rgb(246 207 211 / .84));opacity:.46}.download-album-card:after{background:linear-gradient(90deg,rgb(36 71 159 / .72),rgb(47 101 179 / .48))}.artist-card{min-height:86px;border-radius:22px;padding:15px}.artist-avatar{width:48px;height:48px;border-radius:17px;box-shadow:inset 0 0 0 1px rgb(36 71 159 / .08)}.download-artist-card .artist-avatar{background:linear-gradient(135deg,rgb(36 71 159 / .14),rgb(246 207 211 / .72))}.artist-card .name{max-width:none;font-size:15px;letter-spacing:-.01em}.song-row{border-radius:20px;padding:14px 15px}.song-row .title{font-size:15px;letter-spacing:-.01em}.library-tabs{margin:0 0 16px;border:1px solid rgb(36 71 159 / .08);background:rgb(255 253 249 / .58);box-shadow:0 10px 26px rgb(36 71 159 / .045)}.nav-status{margin-bottom:14px}.nav-status .empty.subtle{background:rgb(255 253 249 / .62);border-color:rgb(36 71 159 / .09)}
@media(max-width:1180px){#downloadGrid.artist-grid,#navArtists.artist-grid,.album-grid,#navAlbums.album-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){#downloadGrid.artist-grid,#navArtists.artist-grid,.album-grid,#navAlbums.album-grid{grid-template-columns:1fr;gap:10px}.album{border-radius:18px;padding:11px}.album-with-cover{grid-template-columns:74px minmax(0,1fr);gap:11px;min-height:98px}.album-cover{width:74px;height:74px;border-radius:15px}.album .name,.album-info .name{font-size:15px}.artist-card{min-height:76px;border-radius:18px}.song-row{border-radius:18px}}


#albums .summary-grid.slim,#futureecho .summary-grid.slim{width:min(100%,860px);margin:2px auto 14px;justify-content:center;grid-template-columns:repeat(3,minmax(0,1fr))}#futureecho .summary-grid.slim{grid-template-columns:repeat(4,minmax(0,1fr));width:min(100%,980px)}#albums .module-toolbar.search-toolbar,#futureecho .module-toolbar.search-toolbar{margin:0 auto 20px}.panel.full>#downloadSummary,.panel.full>#navSummary{align-self:center}.panel-head.search-head{text-align:center}.panel-head.search-head p{margin-left:auto;margin-right:auto;max-width:680px}.page>.panel.full{display:flex;flex-direction:column}.download-library,.album-grid,.artist-grid,.song-list{width:100%}
@media(max-width:980px){#albums .summary-grid.slim,#futureecho .summary-grid.slim{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.panel-head.search-head{text-align:left}.panel-head.search-head p{margin-left:0;margin-right:0}}
@media(max-width:720px){#albums .summary-grid.slim,#futureecho .summary-grid.slim{grid-template-columns:1fr;margin-bottom:12px}#albums .module-toolbar.search-toolbar,#futureecho .module-toolbar.search-toolbar{margin-bottom:16px}}


.construction-card{min-height:calc(100vh - 170px);display:grid;place-items:center;text-align:center;border:1px solid var(--line);border-radius:34px;background:linear-gradient(135deg,rgb(255 253 249 / .92),rgb(246 223 225 / .78));box-shadow:var(--shadow);padding:42px}
.construction-card h2{margin:0;font-size:42px;letter-spacing:-.05em;color:var(--blue)}.construction-reason{max-width:620px;margin:14px auto 0;color:var(--muted);font-size:16px;line-height:1.7}.construction-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:min(100%,680px);margin:28px auto}.construction-grid div{padding:16px;border-radius:20px;background:rgb(255 253 249 / .72);border:1px solid rgb(36 71 159 / .10)}.construction-grid span{display:block;color:var(--muted);font-size:12px;font-weight:800}.construction-grid b{display:block;margin-top:6px;color:var(--text)}body.maintenance-user .hero,body.maintenance-user .nav-group{display:none}body.maintenance-user .rail{height:auto}body.maintenance-user .shell{max-width:980px;grid-template-columns:1fr}body.maintenance-user .monitor-link{margin-top:0}
@media(max-width:720px){.construction-card{min-height:calc(100vh - 130px);padding:24px;border-radius:24px}.construction-card h2{font-size:30px}.construction-grid{grid-template-columns:1fr}.construction-reason{font-size:14px}}


/* Source tabs in toolbar */

/* Discover sections */

/* Album card (simplified, no source badge) */
.quality-line{margin-top:6px;color:var(--blue);font-size:12px;font-weight:800}

/* Artist card (vertical layout) */

/* Discover empty & pager */

/* Responsive */

/* Track rows */

/* Autocomplete suggest dropdown */
.search-box{position:relative}

/* Clickable artist name */

/* AM-style search results layout */

/* Top Result artist hero card */

/* Songs list */

/* Responsive */

/* ===== AM-style Search Results ===== */

/* Section labels */
.discover-section{margin-bottom:22px}
.discover-section-label{font-size:20px;font-weight:900;color:var(--text);letter-spacing:-.02em;margin-bottom:14px;display:flex;align-items:center;gap:8px}
.discover-section-count{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;border-radius:999px;background:rgb(36 71 159 / .08);color:var(--blue);font-size:11px;font-weight:850;padding:0 6px}

/* Top Result hero */
.discover-top-artist{display:flex;align-items:center;gap:24px;padding:28px;border-radius:24px;border:1px solid var(--line);background:linear-gradient(135deg,rgb(255 253 249 / .95),rgb(246 223 225 / .45));box-shadow:0 16px 40px rgb(36 71 159 / .08);cursor:pointer;transition:all .2s ease;max-width:520px}
.discover-top-artist:hover{border-color:rgb(36 71 159 / .22);box-shadow:0 20px 48px rgb(36 71 159 / .14);transform:translateY(-2px)}
.top-artist-art{width:160px;height:160px;border-radius:20px;overflow:hidden;flex-shrink:0;background:linear-gradient(135deg,var(--pink),rgb(36 71 159 / .12));display:grid;place-items:center}
.top-artist-art img{width:100%;height:100%;object-fit:cover;display:block}
.top-artist-art .artist-placeholder{font-size:52px;color:var(--blue);font-weight:900}
.top-artist-info{min-width:0;display:flex;flex-direction:column;gap:6px}
.top-artist-badge{align-self:flex-start;height:22px;font-size:11px;padding:0 10px}
.top-artist-name{margin:0;font-size:28px;font-weight:900;letter-spacing:-.03em;line-height:1.15}
.top-artist-meta{margin:0;color:var(--muted);font-size:14px}

/* Songs list */
.discover-songs-list{display:flex;flex-direction:column;border-radius:16px;overflow:hidden}
.discover-song-item{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 14px;border-bottom:1px solid rgb(36 71 159 / .06);cursor:pointer;transition:background .12s}
.discover-song-item:last-child{border-bottom:none}
.discover-song-item:hover{background:rgb(36 71 159 / .04)}
.song-art{width:44px;height:44px;border-radius:8px;overflow:hidden;background:linear-gradient(135deg,var(--pink),rgb(36 71 159 / .08));display:grid;place-items:center;flex-shrink:0}
.song-art img{width:100%;height:100%;object-fit:cover;display:block}
.song-art span{font-size:16px;color:var(--blue);font-weight:900}
.song-body{min-width:0;display:flex;flex-direction:column;gap:2px}
.song-title{font-size:14px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.song-sub{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.song-dur{font-size:12px;color:var(--soft);font-variant-numeric:tabular-nums;white-space:nowrap}

/* Albums horizontal scroll */
.discover-album-scroll{display:grid;grid-auto-flow:column;grid-auto-columns:180px;gap:16px;overflow-x:auto;overflow-y:hidden;padding-bottom:8px;scrollbar-width:thin;scrollbar-color:rgb(36 71 159 / .15) transparent}
.discover-album-scroll::-webkit-scrollbar{height:6px}
.discover-album-scroll::-webkit-scrollbar-track{background:transparent}
.discover-album-scroll::-webkit-scrollbar-thumb{background:rgb(36 71 159 / .15);border-radius:999px}

/* Album card (vertical for scroll) */
.discover-album-card{display:flex;flex-direction:column;gap:8px;cursor:pointer;transition:transform .16s}
.discover-album-card:hover{transform:translateY(-3px)}
.album-card-art{position:relative;width:100%;aspect-ratio:1;border-radius:14px;overflow:hidden;background:linear-gradient(135deg,var(--pink),rgb(36 71 159 / .12));display:grid;place-items:center}
.album-card-art img{width:100%;height:100%;object-fit:cover;display:block}
.album-card-art span{font-size:32px;color:var(--blue);font-weight:900}
.album-card-art .badge{position:absolute;bottom:6px;left:6px;height:18px;font-size:9px;padding:0 6px}
.album-card-body{min-width:0;padding:0 2px}
.album-card-title{font-size:13px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.album-card-meta{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}

/* ===== Discover Search Bar (clean AM-style) ===== */

/* Nuclear reset: kill ALL conflicting .module-toolbar.search-toolbar rules for discover */
.module-toolbar.search-toolbar:has(.discover-search-box){
  all:initial!important;
  display:block!important;
  width:min(100%,680px)!important;
  margin:0 auto 18px!important;
  position:relative!important;
  box-sizing:border-box!important;
}
.module-toolbar.search-toolbar:has(.discover-search-box),
.module-toolbar.search-toolbar:has(.discover-search-box) *{
  box-sizing:border-box!important;
}

.discover-search-box{
  display:flex!important;
  align-items:center!important;
  width:100%!important;
  padding:4px!important;
  border-radius:999px!important;
  border:1.5px solid rgb(36 71 159 / .12)!important;
  background:rgb(255 253 249 / .92)!important;
  box-shadow:0 8px 28px rgb(36 71 159 / .06)!important;
  backdrop-filter:blur(12px)!important;
  position:relative!important;
  transition:border-color .2s, box-shadow .2s!important;
}
.discover-search-box:focus-within{
  border-color:rgb(36 71 159 / .28)!important;
  box-shadow:0 8px 32px rgb(36 71 159 / .12)!important;
}

.discover-search-box > input:first-child{
  flex:1 1 auto!important;
  min-width:0!important;
  height:44px!important;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  box-shadow:none!important;
  padding:0 16px!important;
  font-size:14px!important;
  font-weight:600!important;
  color:var(--text)!important;
  outline:none!important;
  font-family:inherit!important;
}
.discover-search-box > input:first-child::placeholder{
  color:rgb(107 114 128 / .55)!important;
  font-weight:500!important;
}

/* Exact toggle pill */
.discover-exact-toggle{
  display:flex!important;
  align-items:center!important;
  gap:5px!important;
  height:34px!important;
  padding:0 12px!important;
  border-radius:999px!important;
  background:rgb(36 71 159 / .06)!important;
  border:1px solid rgb(36 71 159 / .10)!important;
  color:var(--muted)!important;
  font-size:12px!important;
  font-weight:750!important;
  cursor:pointer!important;
  white-space:nowrap!important;
  flex-shrink:0!important;
  transition:all .15s ease!important;
  user-select:none!important;
  font-family:inherit!important;
  line-height:1!important;
}
.discover-exact-toggle:hover{
  background:rgb(36 71 159 / .10)!important;
  color:var(--blue)!important;
}
.discover-exact-toggle:has(input:checked){
  background:var(--blue)!important;
  color:white!important;
  border-color:var(--blue)!important;
}
.discover-exact-toggle input[type="checkbox"]{
  display:none!important;
  width:0!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
}

/* Search button */
.discover-search-box .search-btn{
  height:44px!important;
  min-width:80px!important;
  border-radius:999px!important;
  padding:0 20px!important;
  border:0!important;
  background:linear-gradient(135deg,var(--blue),var(--blue-2))!important;
  color:white!important;
  font-size:14px!important;
  font-weight:800!important;
  cursor:pointer!important;
  white-space:nowrap!important;
  flex-shrink:0!important;
  box-shadow:0 8px 20px rgb(36 71 159 / .18)!important;
  transition:all .15s ease!important;
  font-family:inherit!important;
  line-height:1!important;
}
.discover-search-box .search-btn:hover{
  transform:translateY(-1px)!important;
  box-shadow:0 12px 26px rgb(36 71 159 / .24)!important;
}
.discover-search-box .search-btn:active{
  transform:translateY(0)!important;
}
.discover-search-box .search-btn.loading{
  opacity:.72!important;
  cursor:wait!important;
}

/* Source tabs */
.discover-source-tabs{
  display:flex!important;
  gap:6px!important;
  justify-content:center!important;
  margin:-6px auto 16px!important;
  width:min(100%,680px)!important;
}
.discover-tab{
  border-radius:999px!important;
  height:32px!important;
  padding:0 16px!important;
  font-size:13px!important;
  font-weight:750!important;
  cursor:pointer!important;
  white-space:nowrap!important;
  background:rgb(36 71 159 / .06)!important;
  color:var(--muted)!important;
  border:1px solid rgb(36 71 159 / .08)!important;
  transition:all .15s ease!important;
  font-family:inherit!important;
  line-height:1!important;
}
.discover-tab:hover{
  background:rgb(36 71 159 / .10)!important;
  color:var(--blue)!important;
}
.discover-tab.active{
  background:var(--blue)!important;
  color:white!important;
  border-color:var(--blue)!important;
  box-shadow:0 6px 16px rgb(36 71 159 / .18)!important;
}

/* Suggest dropdown */
.suggest-dropdown{
  position:absolute!important;
  top:calc(100% + 6px)!important;
  left:0!important;
  right:0!important;
  z-index:999!important;
  background:var(--card-solid)!important;
  border:1px solid rgb(36 71 159 / .12)!important;
  border-radius:18px!important;
  box-shadow:0 18px 48px rgb(36 71 159 / .14)!important;
  padding:6px!important;
  max-height:360px!important;
  overflow-y:auto!important;
  backdrop-filter:blur(16px)!important;
  box-sizing:border-box!important;
}
.suggest-dropdown.hidden{display:none!important}

.suggest-item{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  padding:10px 12px!important;
  border-radius:13px!important;
  cursor:pointer!important;
  transition:background .12s!important;
}
.suggest-item:hover,.suggest-item.active{
  background:rgb(36 71 159 / .06)!important;
}

.suggest-icon{
  display:grid!important;
  place-items:center!important;
  width:34px!important;
  height:34px!important;
  border-radius:10px!important;
  font-size:13px!important;
  font-weight:900!important;
  flex-shrink:0!important;
}
.suggest-icon.artist{
  background:linear-gradient(135deg,var(--pink),rgb(36 71 159 / .12))!important;
  color:var(--blue)!important;
}
.suggest-icon.album{
  background:linear-gradient(135deg,rgb(36 71 159 / .10),rgb(36 71 159 / .04))!important;
  color:var(--blue)!important;
}
.suggest-icon.track{
  background:linear-gradient(135deg,rgb(23 131 91 / .10),rgb(23 131 91 / .04))!important;
  color:var(--green)!important;
}

.suggest-text{flex:1;min-width:0}
.suggest-name{
  font-size:13px!important;
  font-weight:750!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}
.suggest-sub{
  font-size:11px!important;
  color:var(--muted)!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  margin-top:1px!important;
}

.suggest-badge{
  height:20px!important;
  padding:0 8px!important;
  border-radius:999px!important;
  font-size:10px!important;
  font-weight:800!important;
  display:inline-flex!important;
  align-items:center!important;
  flex-shrink:0!important;
}
.suggest-badge.artist{
  background:rgb(246 223 225 / .7)!important;
  color:var(--blue)!important;
}
.suggest-badge.album{
  background:rgb(36 71 159 / .07)!important;
  color:var(--blue)!important;
}
.suggest-badge.track{
  background:rgb(23 131 91 / .08)!important;
  color:var(--green)!important;
}

/* Responsive */
@media(max-width:720px){
  .module-toolbar.search-toolbar:has(.discover-search-box){width:100%!important}
  .discover-search-box{padding:3px!important}
  .discover-search-box > input:first-child{height:40px!important;font-size:13px!important;padding:0 12px!important}
  .discover-search-box .search-btn{height:40px!important;min-width:68px!important;padding:0 14px!important;font-size:13px!important}
  .discover-exact-toggle{height:30px!important;padding:0 10px!important;font-size:11px!important}
  .discover-source-tabs{margin-top:-4px!important;margin-bottom:12px!important}
  .discover-tab{height:28px!important;padding:0 12px!important;font-size:12px!important}
  .suggest-dropdown{border-radius:14px!important;max-height:300px!important}
  .suggest-item{padding:8px 10px!important}
}

/* Responsive */
@media(max-width:980px){
  .discover-top-artist{max-width:100%}
  .discover-album-scroll{grid-auto-columns:150px}
}
@media(max-width:720px){
  .discover-top-artist{gap:16px;padding:18px;border-radius:18px}
  .top-artist-art{width:100px;height:100px;border-radius:15px}
  .top-artist-art .artist-placeholder{font-size:34px}
  .top-artist-name{font-size:22px}
  .top-artist-meta{font-size:12px}
  .discover-album-scroll{grid-auto-columns:130px;gap:12px}
  .album-card-art{border-radius:11px}
  .album-card-title{font-size:12px}
  .discover-song-item{grid-template-columns:36px minmax(0,1fr) auto;gap:10px;padding:8px 10px}
  .song-art{width:36px;height:36px;border-radius:7px}
  .song-title{font-size:13px}
  .discover-section-label{font-size:17px}
}

/* Load more button */
.discover-pager{display:flex;justify-content:center;margin-top:18px}
.discover-more-btn{
  height:42px;padding:0 28px;border:1.5px solid rgb(36 71 159 / .14);border-radius:999px;
  background:rgb(255 253 249 / .88);color:var(--blue);font-size:14px;font-weight:800;
  cursor:pointer;transition:all .18s ease;box-shadow:0 6px 18px rgb(36 71 159 / .06);
  backdrop-filter:blur(8px);
}
.discover-more-btn:hover{
  background:var(--blue);color:white;border-color:var(--blue);
  box-shadow:0 10px 24px rgb(36 71 159 / .18);transform:translateY(-1px);
}
.discover-more-btn:active{transform:translateY(0)}
.discover-more-btn:disabled{opacity:.6;cursor:wait;transform:none}


/* Album scroll arrows & snap */
.discover-album-wrap{position:relative}
.discover-album-scroll{scroll-snap-type:x mandatory;scroll-behavior:smooth;-webkit-overflow-scrolling:touch}
.discover-album-card{scroll-snap-align:start}
.scroll-arrow{
  position:absolute;top:50%;transform:translateY(-70%);z-index:10;
  width:40px;height:40px;border-radius:999px;border:1.5px solid rgb(36 71 159 / .12);
  background:rgb(255 253 249 / .92);backdrop-filter:blur(10px);
  color:var(--blue);font-size:22px;font-weight:900;line-height:1;
  display:grid;place-items:center;cursor:pointer;
  box-shadow:0 6px 18px rgb(36 71 159 / .10);
  transition:all .18s ease;opacity:1;
}
.scroll-arrow:hover{
  background:var(--blue);color:white;border-color:var(--blue);
  box-shadow:0 10px 24px rgb(36 71 159 / .20);transform:translateY(-70%) scale(1.08);
}
.scroll-arrow:active{transform:translateY(-70%) scale(.95)}
.scroll-left{left:-16px}
.scroll-right{right:-16px}
.scroll-arrow.hidden-arrow{opacity:0;pointer-events:none;transform:translateY(-70%) scale(.8)}
@media(max-width:720px){
  .scroll-arrow{width:34px;height:34px;font-size:18px}
  .scroll-left{left:-8px}
  .scroll-right{right:-8px}
}
.queue-toast{position:fixed;left:50%;top:26px;z-index:9999;transform:translate(-50%,-10px);padding:11px 18px;border-radius:999px;background:rgb(31 41 55 / .92);color:#fff;font-weight:850;box-shadow:0 18px 44px rgb(31 41 55 / .22);opacity:0;pointer-events:none;transition:opacity .18s ease,transform .18s ease}.queue-toast.show{opacity:1;transform:translate(-50%,0)}.queue-toast.fade-out{opacity:0;transform:translate(-50%,-10px)}
