/* Shared additions leave the original palette available as Classic. */
.brand-logo{width:44px;height:44px;object-fit:contain;border-radius:12px;flex:none}
.theme-picker{display:flex;align-items:center;gap:10px;padding:16px 14px;color:var(--muted);font-size:12px}.theme-picker select{min-width:0;width:110px;padding:8px;border-radius:8px;color:inherit;background:var(--panel);border:1px solid var(--line)}
.playlist-heading{margin-top:32px;gap:20px}.playlist-heading h1{font-size:clamp(30px,5vw,46px);margin:6px 0 12px}.playlist-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0}.playlist-toolbar>span{flex:1}.playlist-status{color:#ffacb9;line-height:1.6}.playlist-status:empty{display:none}.playlist-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(205px,1fr));gap:20px;margin:28px 0}.playlist-card{display:flex;flex-direction:column;align-items:flex-start;gap:12px;text-align:left;padding:20px;border:1px solid var(--line);border-radius:16px;background:var(--panel);min-width:0}.playlist-card b{font-size:19px;overflow-wrap:anywhere}.playlist-card p{margin:0;color:var(--muted);line-height:1.6;overflow-wrap:anywhere}.playlist-art{display:grid;place-items:center;width:100%;aspect-ratio:1.6;border-radius:12px;background:linear-gradient(140deg,#3d4c2a,#191e17);font-size:54px;color:var(--green)}.playlist-empty{padding:36px 20px;border:1px dashed var(--line);border-radius:14px;color:var(--muted);line-height:1.8}.playlist-detail{display:flex;gap:28px;margin:28px 0;align-items:center}.playlist-detail>.playlist-art{width:160px;aspect-ratio:1;flex:none}.playlist-detail h2{font-size:32px;margin:10px 0;overflow-wrap:anywhere}.playlist-detail>div{min-width:0}.playlist-song{display:flex;align-items:center;gap:16px;padding:16px 10px;border-bottom:1px solid var(--line)}.playlist-play{width:36px;height:36px;flex:none;border-radius:50%;background:#ffffff0c;color:var(--green)}.playlist-song-title{flex:1;min-width:0}.playlist-song-title b,.playlist-song-title small{display:block;overflow-wrap:anywhere}.playlist-song-title small{margin-top:6px}.playlist-song-controls{display:flex;gap:6px}.playlist-song-controls .secondary{padding:8px 11px}.playlist-local{margin:36px 0;padding:22px;border:1px solid var(--line);border-radius:16px}.playlist-dialog{width:min(620px,calc(100vw - 24px));max-height:85dvh;padding:28px;overflow:auto}.playlist-dialog h2{font-size:23px}.playlist-dialog form>label{display:block;margin:18px 0 8px;font-size:13px}.playlist-dialog input:not([type=checkbox]),.playlist-dialog textarea,.playlist-dialog select{width:100%;margin-top:8px;padding:12px 14px;border:1px solid var(--line);border-radius:9px;color:inherit;background:var(--bg);font:inherit}.playlist-choices{max-height:32dvh;overflow:auto;margin:14px 0 20px;border-block:1px solid var(--line)}.playlist-choice{display:flex;align-items:center;gap:12px;padding:12px 2px;border-bottom:1px solid var(--line);cursor:pointer}.playlist-choice input{width:18px;height:18px;accent-color:var(--green);flex:none}.playlist-choice b,.playlist-choice small{display:block;overflow-wrap:anywhere}.playlist-choice small{margin-top:4px}.playlist-add-choices{display:flex;flex-direction:column;gap:8px;margin:20px 0;max-height:45dvh;overflow:auto}.playlist-add-option{text-align:left;border:1px solid var(--line);border-radius:9px;padding:14px;background:var(--panel)}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:760px){.theme-picker{padding:8px 4px;gap:6px;font-size:11px}.theme-picker select{width:90px}.playlist-heading{align-items:flex-start;flex-direction:column}.playlist-detail{align-items:flex-start;gap:16px}.playlist-detail>.playlist-art{width:90px;font-size:35px}.playlist-detail h2{font-size:25px}.playlist-song{flex-wrap:wrap;gap:10px}.playlist-song-controls{margin-left:46px}.playlist-dialog{padding:20px}.brand-logo{width:34px;height:34px}.playlist-grid{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}}
html[data-theme=modern]{color-scheme:dark;--bg:#08080c;--panel:#111119;--line:#ffffff12;--muted:#a0a0b4;--green:#61dcfa;--cyan:#36d7ff;--pink:#ff47c9;--violet:#8d60ff;--gold:#ffe55d}
html[data-theme=modern] body{background:radial-gradient(ellipse at 100% 0,#6429a510,transparent 42%),var(--bg);color:#f5f4fc}
html[data-theme=modern] .sidebar{background:#0b0b11;border-right-color:#ffffff0d}
html[data-theme=modern] .brand{letter-spacing:-.9px}html[data-theme=modern] .brand small{color:#aaa3bf}
html[data-theme=modern] .nav{transition:background .18s,color .18s}html[data-theme=modern] .nav.active{background:linear-gradient(100deg,#694aff26,#25d7ff0d);color:#bcaaff;box-shadow:inset 2px 0 #a77cff}
html[data-theme=modern] .hero{border-color:#9c65ff2c;background:radial-gradient(ellipse at 90% 10%,#26cbff18,transparent 45%),radial-gradient(ellipse at 60% 100%,#c62bff15,transparent 55%),linear-gradient(125deg,#171220,#0d111b);box-shadow:0 20px 65px #0004}
html[data-theme=modern] .hero h1 span,html[data-theme=modern] #studio h1 span{background:linear-gradient(100deg,#ffe66b 5%,#ff64c9 38%,#a574ff 63%,#4edfff 95%);background-clip:text;-webkit-background-clip:text;color:transparent}
html[data-theme=modern] .hero .eyebrow{color:#bd9eff}
html[data-theme=modern] .primary{background:linear-gradient(110deg,#7a56ef,#ad50d9);color:#fff;border:1px solid #c599ff55;box-shadow:0 4px 20px #8152de1c;font-weight:700}
html[data-theme=modern] .primary:hover{background:linear-gradient(110deg,#8d6af8,#be66e9)}
html[data-theme=modern] .secondary{background:#181823;border-color:#ffffff16;color:#e0ddec}
html[data-theme=modern] input,html[data-theme=modern] select,html[data-theme=modern] textarea{accent-color:#a783ff}
html[data-theme=modern] .global-search{background:#101018;border-color:#ffffff14}html[data-theme=modern] .global-search:focus-within{border-color:#a783ff88;box-shadow:0 0 0 3px #a783ff0b}
html[data-theme=modern] .record .label{background:conic-gradient(#ffe45e,#ff50cb,#8247ff,#2bd4ff,#ffe45e);color:#120d1b}html[data-theme=modern] .orbit{border-color:#af7cff26}
html[data-theme=modern] .track{border-color:#ffffff0a}html[data-theme=modern] .track:hover{background:#15131f}html[data-theme=modern] .track.playing{background:linear-gradient(100deg,#704ce51b,#20cfff08)}
html[data-theme=modern] .official-badge{background:#7853e11c;color:#c1a2ff;border-color:#9268f52b}html[data-theme=modern] .community-badge{background:#1ed0ed0d;color:#71d8ed}
html[data-theme=modern] .genre-card{background:linear-gradient(135deg,hsl(var(--card-hue) 55% 18%),#10101a);border:1px solid #ffffff10}
html[data-theme=modern] .artist-card,html[data-theme=modern] .studio-card,html[data-theme=modern] .reference-panel,html[data-theme=modern] .playlist-card{background:linear-gradient(145deg,#181320,#101019);border-color:#a674ff20}
html[data-theme=modern] .playlist-art{background:radial-gradient(circle at 80% 10%,#31d8ff2b,transparent 55%),linear-gradient(135deg,#523177,#201435 50%,#172039);color:#c2a2ff}
html[data-theme=modern] .playlist-card:hover{border-color:#aa78ff66;box-shadow:0 8px 28px #0004}
html[data-theme=modern] .view-switch button[aria-pressed=true]{background:#8f61ff20;color:#c8afff}
html[data-theme=modern] .player,html[data-theme=modern] .lyrics-panel{background:#0e0e16f5;border-color:#996bff24;backdrop-filter:blur(18px)}
html[data-theme=modern] dialog{background:#111119;border-color:#9f78ff38;color:#f5f3fc;box-shadow:0 30px 90px #0009}html[data-theme=modern] dialog::backdrop{background:#000a;backdrop-filter:blur(5px)}
html[data-theme=modern] .connection.online{color:#69d9f2;border-color:#41d3ed30}html[data-theme=modern] .genre-symbol{color:#ffd763}
@media(prefers-reduced-motion:reduce){html[data-theme=modern] *{transition:none!important;scroll-behavior:auto!important}}
@media(max-width:760px){.sidebar nav{overflow-x:auto;scrollbar-width:none}.sidebar nav .nav{flex:0 0 auto;width:auto}.theme-picker{position:absolute;right:68px;top:17px;padding:0}.theme-picker select{width:94px}.theme-picker{font-size:0}.theme-picker select{font-size:12px}.sidebar .brand{max-width:calc(100% - 160px);font-size:20px}.sidebar .brand-logo{width:30px;height:30px}.track-actions button[aria-label*="to playlist"]{font-size:11px;padding:6px 4px}}
html[data-theme=modern] .view-switch,html[data-theme=modern] .commerce-dialog input,html[data-theme=modern] .commerce-dialog select,html[data-theme=modern] .commerce-dialog textarea,html[data-theme=modern] .commerce-summary>div,html[data-theme=modern] .token-help{background:#14131e}
html[data-theme=modern] .mini-cover{background:linear-gradient(135deg,#352152,#12303e);color:#c5a7ff}html[data-theme=modern] .queue-toggle,html[data-theme=modern] .lyrics-toggle{background:#241a35;border-color:#a77bff30;color:#b9a0e7}html[data-theme=modern] #toast{background:#231a35;border-color:#9e72ef45;color:#eee7ff}

/* Appearance is a quiet header control, beside payments and the account. */
.header-account .theme-picker{position:static;display:flex;align-items:center;gap:0;margin:0;padding:0;font-size:0;flex:none}
.header-account .theme-picker select{width:94px;min-width:0;margin:0;padding:8px 9px;border:1px solid #ffffff12;border-radius:8px;background:transparent;color:var(--muted);font-size:11px;cursor:pointer}
.header-account .theme-picker select:hover{border-color:#ffffff35;color:inherit}
@media(max-width:760px){.header-account .theme-picker select{width:88px;padding:7px 6px;font-size:10px}.sidebar .brand{max-width:calc(100% - 48px)}}
.load-more{text-align:center;padding:26px 12px}.load-more[hidden]{display:none}.load-more p{color:var(--muted);font-size:12px}.load-more p:empty{display:none}
html[data-theme=modern] .popular-card{background:#111119;border-color:#a780ff24}html[data-theme=modern] .popular-card:hover{background:#181320;border-color:#b994ff55}
html[data-theme=modern] .popular-art{background:radial-gradient(ellipse at 15% 15%,#f752b440,transparent 65%),linear-gradient(135deg,#51317c,#112739)}
html[data-theme=modern] .popular-card:nth-child(2n) .popular-art{background:radial-gradient(ellipse at 80% 10%,#36d7ff40,transparent 65%),linear-gradient(135deg,#1a3f51,#2a1944)}
html[data-theme=modern] .popular-card:nth-child(3n) .popular-art{background:radial-gradient(ellipse at 10% 10%,#ffe55d30,transparent 60%),linear-gradient(135deg,#513052,#261a44)}
html[data-theme=modern] .small-record:after{background:linear-gradient(120deg,#ffe55d,#ff63c8,#a984ff,#54d8fa);color:#170d24}html[data-theme=modern] .card-play{background:#b99aff;color:#130d22}html[data-theme=modern] .popular-bottom{color:var(--muted)}html[data-theme=modern] .rank{color:#f3eaffb3}html[data-theme=modern] .history-empty{background:linear-gradient(120deg,#241632,#111119)}
.player-playlist{display:inline-grid;place-items:center;width:30px;height:32px;padding:5px;flex:none;color:var(--muted);border-radius:7px}.player-playlist:hover{background:#ffffff0a;color:var(--green)}.player-playlist:disabled{opacity:.3;cursor:default}.now .player-like{flex:none}.now>div{min-width:0}
@media(max-width:760px){.player-playlist{width:24px;padding:2px}.now{gap:5px}.player-playlist svg{width:17px;height:17px}}
html[data-theme=classic] .popular-art{background:radial-gradient(ellipse at 20% 15%,#c8eb9e45,transparent 65%),linear-gradient(135deg,#35472d,#152015)}html[data-theme=classic] .popular-card:nth-child(2n) .popular-art{background:radial-gradient(ellipse at 80% 10%,#8da96b40,transparent 65%),linear-gradient(135deg,#293c2a,#101b14)}html[data-theme=classic] .small-record:after{background:#d0f991;color:#1b2718}html[data-theme=classic] .rank{color:#dceccbaf}
