.settings-page { max-width:920px;margin:0 auto;padding-bottom:40px; }
.settings-heading { margin:6px 0 30px; }
.settings-heading h1 { margin:8px 0 10px; }
.settings-heading p,.settings-description,.settings-note { color:var(--muted,#999);font-size:14px;line-height:1.55; }
.settings-card { padding:26px 30px;margin-bottom:20px;border:1px solid rgba(255,255,255,.1);border-radius:24px;background:linear-gradient(140deg,rgba(255,255,255,.065),rgba(255,255,255,.018));box-shadow:0 12px 38px rgba(0,0,0,.12); }
.settings-card h2 { margin:0 0 8px;font-size:21px;letter-spacing:-.5px; }
/* Small, real CSS previews stay independent of the currently selected palette. */
.theme-choices { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin-top:24px; }
.theme-choice { position:relative;display:flex;flex-direction:column;min-width:0;padding:8px 8px 12px;border:1px solid #ffffff15;border-radius:17px;background:#ffffff03;cursor:pointer;transition:transform .25s ease,border-color .25s ease,background-color .25s ease; }
.theme-choice:hover { transform:translateY(-3px);background:#ffffff09;border-color:#ffffff40; }
.theme-choice:has(input:checked) { border-color:var(--theme-accent,#eee);background:color-mix(in srgb,var(--theme-accent,#eee) 8%,transparent); }
.theme-choice:has(input:focus-visible) { outline:2px solid var(--theme-accent,#eee);outline-offset:4px; }
.theme-choice input { position:absolute;width:1px;height:1px;opacity:0; }
.theme-preview { position:relative;display:block;isolation:isolate;overflow:hidden;aspect-ratio:1.38;border-radius:10px;background:radial-gradient(ellipse at 100% 0%,var(--preview-glow),transparent 85%),var(--preview-bg);border:1px solid #ffffff0b; }
.theme-preview-side { position:absolute;left:7%;top:10%;bottom:27%;width:19%;border-radius:5px;background:var(--preview-panel);border:1px solid #ffffff18; }
.theme-preview-side::before { content:"";position:absolute;left:22%;right:22%;top:18%;height:2px;border-radius:2px;background:var(--preview-accent);box-shadow:0 9px 0 #ffffff32,0 18px 0 #ffffff1a; }
.theme-preview-wave { position:absolute;left:32%;right:7%;top:16%;bottom:34%;border-radius:10px;background:var(--preview-panel);border:1px solid color-mix(in srgb,var(--preview-accent) 35%,transparent); }
.theme-preview-wave::before,.theme-preview-wave::after { content:"";position:absolute;inset:12%;border:1px solid var(--preview-accent);border-radius:40%;opacity:.5; }
.theme-preview-wave::after { inset:23%;opacity:.25; }
.theme-preview-wave>i { position:absolute;left:50%;top:50%;width:16px;height:16px;border-radius:50%;background:var(--preview-accent);transform:translate(-50%,-50%); }
.theme-preview-wave>i::after { content:"";position:absolute;top:5px;left:6px;border-left:5px solid var(--preview-bg);border-top:3px solid transparent;border-bottom:3px solid transparent; }
.theme-preview-player { position:absolute;inset:79% 7% 8%;border-radius:5px;background:var(--preview-panel);border:1px solid #ffffff18; }
.theme-preview-player::before { content:"";position:absolute;top:30%;left:7%;width:8%;height:40%;border-radius:2px;background:var(--preview-text);opacity:.7; }
.theme-preview-player::after { content:"";position:absolute;top:46%;left:25%;width:59%;height:2px;border-radius:2px;background:var(--preview-accent); }
.theme-preview-check { position:absolute;right:6px;top:6px;display:grid;place-items:center;width:20px;height:20px;border-radius:50%;background:var(--preview-accent);color:var(--preview-bg);opacity:0;transform:scale(.65);transition:opacity .2s,transform .25s;box-shadow:0 2px 8px #0004; }
.theme-preview-check svg { width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round; }
.theme-choice input:checked+.theme-preview .theme-preview-check { opacity:1;transform:scale(1); }
.theme-choice-name { margin:12px 3px 4px;font-size:13px;font-weight:750; }
.theme-choice-note { margin:0 3px;font-size:11px;line-height:1.5;color:var(--mute);min-height:33px; }
.theme-swatches { display:flex;gap:3px;margin:12px 3px 0; }
.theme-swatches i { flex:1;height:7px;border-radius:3px;box-shadow:inset 0 0 0 1px #ffffff0c; }

/* Typed colors interpolate on the root; no page reconstruction or media reset. */
@property --theme-base { syntax:'<color>';inherits:true;initial-value:#070707; }
@property --theme-panel { syntax:'<color>';inherits:true;initial-value:#111111; }
@property --theme-raised { syntax:'<color>';inherits:true;initial-value:#191919; }
@property --theme-accent { syntax:'<color>';inherits:true;initial-value:#f3f3f3; }
@property --theme-text { syntax:'<color>';inherits:true;initial-value:#f3f3f3; }
@property --theme-muted { syntax:'<color>';inherits:true;initial-value:#969696; }
@property --theme-wave-a { syntax:'<color>';inherits:true;initial-value:#101010; }
@property --theme-wave-b { syntax:'<color>';inherits:true;initial-value:#454545; }
@property --theme-wave-light { syntax:'<color>';inherits:true;initial-value:#f3f3f3; }
:root[data-color-theme] { transition:--theme-base .65s ease,--theme-panel .65s ease,--theme-raised .65s ease,--theme-accent .65s ease,--theme-text .65s ease,--theme-muted .65s ease,--theme-wave-a .65s ease,--theme-wave-b .65s ease,--theme-wave-light .65s ease; }
:root[data-color-theme]:not([data-color-theme="mono"]) {
  --bg:var(--theme-base);--bg2:var(--theme-panel);--panel:var(--theme-panel);
  --raise:color-mix(in srgb,var(--theme-panel) 85%,var(--theme-accent));
  --text:var(--theme-text);--mute:var(--theme-muted);--muted:var(--theme-muted);
  --dim:color-mix(in srgb,var(--theme-muted) 75%,var(--theme-base));
  --red:var(--theme-accent);--red-d:var(--theme-accent);--red-glow:color-mix(in srgb,var(--theme-accent) 16%,transparent);
  --hover:color-mix(in srgb,var(--theme-accent) 7%,transparent);--hover2:color-mix(in srgb,var(--theme-accent) 13%,transparent);
  --line:color-mix(in srgb,var(--theme-accent) 13%,transparent);accent-color:var(--theme-accent);
}
:root[data-color-theme]:not([data-color-theme="mono"]) #glass { background:var(--theme-base); }
:root[data-color-theme]:not([data-color-theme="mono"]) #ambient { opacity:1;filter:none; }
:root[data-color-theme]:not([data-color-theme="mono"]) .lg-tint { background:color-mix(in srgb,var(--theme-panel) 72%,transparent)!important; }
:root[data-color-theme]:not([data-color-theme="mono"]) body:not(.np-open) :is(.side,.player,.search,.hist-btns,.queue,.eq-panel) .lg-warp { backdrop-filter:blur(12px) saturate(1.1)!important; }
:root[data-color-theme]:not([data-color-theme="mono"]) :is(.nav a.on,.pls a.on,.chips .chip.on,.player .icon-btn.on) { background:var(--hover2);color:var(--theme-accent); }
:root[data-color-theme]:not([data-color-theme="mono"]) :is(.fab,.play-btn,.btn:not(.ghost),.eq-presets .chip.on) { background:var(--theme-accent);color:var(--theme-accent-ink); }
:root[data-color-theme]:not([data-color-theme="mono"]) :is(.fab,.play-btn,.btn:not(.ghost)):hover { background:color-mix(in srgb,var(--theme-accent) 82%,white); }
:root[data-color-theme]:not([data-color-theme="mono"]) .switch input:checked+i { background:var(--theme-accent); }
:root[data-color-theme]:not([data-color-theme="mono"]) .switch input:checked+i::after { background:var(--theme-base); }
:root[data-color-theme]:not([data-color-theme="mono"]) :is(.settings-card,.creator-card,.tile) { background:linear-gradient(140deg,var(--hover2),transparent),color-mix(in srgb,var(--theme-panel) 65%,transparent);border-color:var(--line); }
:root[data-color-theme]:not([data-color-theme="mono"]) :is(dialog,.menu,.auth-card) { background:var(--theme-panel);color:var(--theme-text);border-color:var(--line); }
:root[data-color-theme]:not([data-color-theme="mono"]) :is(.fld input,.fld textarea,.fld select,.pref-select,.pref-select option) { background:var(--raise);color:var(--theme-text);border-color:var(--line); }
:root[data-color-theme]:not([data-color-theme="mono"]) :is(.fld input,.fld textarea,.pref-select):focus { border-color:var(--theme-accent); }
:root[data-color-theme]:not([data-color-theme="mono"]) .hero.wave-hero { background:radial-gradient(ellipse at 10% 100%,color-mix(in srgb,var(--theme-wave-b) 70%,transparent),transparent 70%),var(--theme-base);border-color:var(--line); }
:root[data-color-theme]:not([data-color-theme="mono"]) .wave-hero::after { background:radial-gradient(ellipse at center,var(--theme-base),color-mix(in srgb,var(--theme-base) 75%,transparent) 20%,transparent 62%); }
:root[data-color-theme]:not([data-color-theme="mono"]) .wave-tunnel { filter:drop-shadow(0 0 9px var(--red-glow)); }
:root[data-color-theme]:not([data-color-theme="mono"]) #radioWaveColor stop { stop-color:var(--theme-accent); }
:root[data-color-theme]:not([data-color-theme="mono"]) #radioWaveColor stop:nth-child(2) { stop-color:var(--theme-wave-b); }
:root[data-color-theme]:not([data-color-theme="mono"]) #radioWaveColor stop:last-child { stop-color:var(--theme-wave-light); }
:root[data-color-theme]:not([data-color-theme="mono"]) .wave-hero h3 { color:var(--theme-text); }
:root[data-color-theme]:not([data-color-theme="mono"]) .wave-hero p { color:var(--theme-muted); }
:root[data-color-theme]:not([data-color-theme="mono"]) .likes-cover { background:linear-gradient(135deg,var(--theme-wave-b),var(--theme-panel),var(--theme-base)); }
:root[data-color-theme]:not([data-color-theme="mono"]) :is(.mobile-nav,.mobile-tools-open .p-right) { background:color-mix(in srgb,var(--theme-panel) 95%,transparent); }
@media(max-width:700px),(max-width:1000px) and (pointer:coarse) {
  :root[data-color-theme]:not([data-color-theme="mono"]) .side { background:var(--theme-panel); }
}
@media(max-width:1100px) { .theme-choices { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:580px) { .theme-choices { grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }.theme-choice-note { min-height:33px; } }
.setting-row { display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 0;border-bottom:1px solid rgba(255,255,255,.065); }
.setting-row:last-child { border-bottom:0;padding-bottom:0; }
.setting-row label:first-child { flex:1; }
.setting-row b,.cursor-hotspot b { display:block;font-size:15px;font-weight:600; }
.setting-row small { display:block;margin-top:6px;color:var(--muted,#999);font-size:13px;line-height:1.5;max-width:430px; }
.setting-row .switch { flex:none; }
.pref-select { min-width:240px;max-width:300px;color-scheme:dark;cursor:pointer; }
.pref-select option { background:#202020;color:#eee; }
.cursor-tools { display:flex;gap:12px;margin:20px 0 8px;flex-wrap:wrap; }
.cursor-upload { cursor:pointer; }
.cursor-size { width:200px; }
.cursor-hotspot { display:flex;align-items:center;justify-content:space-between;gap:28px;padding:24px 0; }
.cursor-hotspot input { width:58px;padding:7px;border:1px solid #ffffff20;border-radius:8px;background:#ffffff08;color:#fff;font:inherit; }
.cursor-hotspot label { font-size:13px;color:#aaa; }
.cursor-preview { position:relative;flex:none;width:128px;height:128px;padding:0;border:1px solid #ffffff20;border-radius:14px;overflow:hidden;background:repeating-conic-gradient(#242424 0% 25%,#333 0% 50%) 0 0 / 16px 16px;cursor:crosshair; }
.cursor-preview img { width:100%;height:100%;object-fit:contain;pointer-events:none; }
.cursor-preview i { position:absolute;transform:translate(-50%,-50%);width:16px;height:16px;border:1px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #000;pointer-events:none; }
.cursor-preview i::before,.cursor-preview i::after { content:"";position:absolute;background:#fff;box-shadow:0 0 2px #000; }
.cursor-preview i::before { width:22px;height:1px;left:-4px;top:7px; }
.cursor-preview i::after { height:22px;width:1px;left:7px;top:-4px; }
.cursor-test { display:flex;align-items:center;gap:14px;padding:18px;border:1px dashed #ffffff20;border-radius:16px;background:#ffffff03; }
.cursor-test span { font-size:13px;color:#999;margin-right:auto; }
.cursor-test input { width:180px; }
.settings-saved { text-align:center;font-size:12px; }
.custom-cursor:not(.motion-cursor-active) { cursor:var(--user-cursor),auto; }
.custom-cursor:not(.motion-cursor-active) :is(a,button,label,input,textarea,select,[data-act],[data-go],[data-artist],[data-album],[data-pl],.row,.card,.switch,.range,.cursor-upload) { cursor:var(--user-cursor),pointer !important; }
.custom-cursor:not(.motion-cursor-active) :is(input:not([type=range]):not([type=checkbox]),textarea) { cursor:var(--user-cursor),text !important; }
.custom-cursor:not(.motion-cursor-active) :disabled { cursor:not-allowed !important; }
.custom-cursor:not(.motion-cursor-active) #prefCursorPreview { cursor:crosshair !important; }
#motionCursor { position:fixed;left:0;top:0;z-index:2147483647;pointer-events:none !important;user-select:none;object-fit:contain;max-width:none;max-height:none;will-change:transform,filter; }
#motionCursor[hidden] { display:none; }
.motion-cursor-active,.motion-cursor-active * { cursor:none !important; }
/* Short-lived blur: only the moving element is filtered, never the entire app. */
.smooth-blur :is(.btn,.icon-btn,.chip,.play-btn,.top-me) { transition:transform 420ms var(--motion-spring),filter 340ms var(--motion-ease),color 260ms var(--motion-ease),background-color 260ms var(--motion-ease),box-shadow 320ms var(--motion-ease); }
.smooth-blur :is(.btn,.icon-btn,.chip,.play-btn,.top-me):active { filter:blur(.8px);transition-duration:100ms; }
.smooth-blur .menu:not(.motion-managed),.smooth-blur .toast:not(.motion-managed),.smooth-blur .auth-card { animation-name:blurSurfaceIn; }
@keyframes blurSurfaceIn { from { opacity:0;transform:translateY(14px) scale(.97);filter:blur(7px); } to { opacity:1;transform:translateY(0) scale(1);filter:blur(0); } }
@media(max-width:1000px) {
  .settings-card { padding:22px; }
  .pref-select { min-width:180px;max-width:240px; }
  .cursor-test { flex-wrap:wrap; }
}
@media(max-width:700px) {
  .setting-row { flex-wrap:wrap;gap:14px; }
  .setting-row:has(select) { flex-direction:column;align-items:stretch; }
  .pref-select { max-width:none;width:100%; }
  .cursor-hotspot { gap:12px; }
  .cursor-test input { flex:1;min-width:100px; }
}
@media(prefers-reduced-motion:reduce) {
  .smooth-blur :is(.btn,.icon-btn,.chip,.play-btn,.top-me):active { filter:none; }
  :root[data-color-theme],.theme-choice,.theme-preview-check { transition:none; }
  .theme-choice:hover { transform:none; }
}
