/* Original palette tokens; Sero Cosmos is selected by default in theme.js. */
:root{
  --wave-guide:#49605755;
  --wave-played-top:#f0dfb9;--wave-played-mid:#bea170;--wave-played-bottom:#e4c992;
  --wave-remaining-top:#8bbfac;--wave-remaining-mid:#466f61;--wave-remaining-bottom:#77a994;
  --wave-cursor:#d9ffed;--prisma-guide:#9fdcc515;
  --prisma-played-hue:40;--prisma-played-span:12;--prisma-remaining-hue:164;--prisma-remaining-span:103;
  --prisma-cursor:#f2dfb9bb;--prisma-cursor-glow:#e4c992;
}
.header-controls{display:flex;align-items:center;gap:.5rem;flex-shrink:0;margin-left:.75rem}
.header-controls .language-picker{margin-left:0}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:2rem;padding:.4rem .65rem;border:1px solid var(--line);border-radius:1rem;font-size:.625rem;color:var(--muted);white-space:nowrap}
.theme-toggle:hover{color:var(--text);border-color:var(--accent)}
.theme-toggle:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.theme-swatch{display:block;width:.8rem;height:.8rem;flex-shrink:0;border-radius:50%;background:linear-gradient(135deg,#a6e5cc 0 48%,#bea170 52%);box-shadow:0 0 0 1px #ffffff20}
html[data-theme=cosmos] .theme-swatch{background:linear-gradient(135deg,#70dbff 0 30%,#ad83ff 50%,#ff9bbd 100%)}
@media(min-width:701px) and (max-width:1500px){.site-header{gap:1.5rem}.site-header nav{gap:1rem}.header-controls{margin-left:0}}
@media(max-width:700px){
  .site-header{gap:.8rem}.header-controls{margin-left:auto;gap:.375rem}
  .theme-toggle{width:2.75rem;height:2.75rem;min-height:2.75rem;padding:.5rem}
  .theme-swatch{width:1rem;height:1rem}#theme-label{display:none}
  .site-header>.header-meta{display:none}
}

/* Projekt Sero's source palette: midnight #030610, cyan, violet and soft pink.
   This is a colour treatment; album images retain the artist's original art. */
html[data-theme=cosmos]{
  --bg:#030610;--panel:#0c1123;--line:#29314b;--text:#e9edff;--muted:#a1a8c2;
  --accent:#70dbff;--accent-rgb:112,219,255;
  --wave-guide:#708bc844;
  --wave-played-top:#f2c9ff;--wave-played-mid:#9f74d9;--wave-played-bottom:#ff9bbd;
  --wave-remaining-top:#a9edff;--wave-remaining-mid:#376eac;--wave-remaining-bottom:#70caff;
  --wave-cursor:#edf3ff;--prisma-guide:#9083ff24;
  --prisma-played-hue:280;--prisma-played-span:48;--prisma-remaining-hue:190;--prisma-remaining-span:80;
  --prisma-cursor:#e4d9ffdd;--prisma-cursor-glow:#ad83ff;
}
html[data-theme=cosmos] body{
  background:radial-gradient(ellipse 70rem 40rem at 5% 0,#123b6724,transparent 72%),radial-gradient(ellipse 60rem 50rem at 98% 16%,#66378820,transparent 75%),var(--bg);
}
html[data-theme=cosmos] .player{background:radial-gradient(ellipse at 100% 0,#ad83ff0b,transparent 60%),linear-gradient(115deg,#10172d,var(--panel) 70%);border-color:#39415d;box-shadow:0 1.375rem 4.0625rem #0003,inset 0 1px #c8b7ff07}
html[data-theme=cosmos] .language-picker select,html[data-theme=cosmos] .theme-toggle{border-color:#6f80b440}
html[data-theme=cosmos] .language-picker option{background:var(--bg);color:var(--text)}
html[data-theme=cosmos] :is(.album-picker select,.manager input:not([type=checkbox]),.manager select,dialog input:not([type=checkbox]),dialog select){background:#090f23;border-color:#435273;color:var(--text)}
html[data-theme=cosmos] .play-button{color:#07253b;box-shadow:0 0 1.5rem #70dbff12}
html[data-theme=cosmos] .play-button:hover{background:#b0ecff}
html[data-theme=cosmos] .primary-button{color:#07253b}
html[data-theme=cosmos] .text-button:hover{color:#d7f5ff}
html[data-theme=cosmos] .format-tag{color:#b5bfdc;border-color:#526080}
html[data-theme=cosmos] .time-row>span:first-child{color:#c1d9f5}
html[data-theme=cosmos] .track-heading .icon-button{color:#a1a8c2}
html[data-theme=cosmos] .search-field input::placeholder,html[data-theme=cosmos] :is(.table-head,.library-bottom,footer,.footer-brand>span){color:#969fbe}
html[data-theme=cosmos] .footer-brand{color:#c4cbe2}
html[data-theme=cosmos] .track-row{border-top-color:#47547955}
html[data-theme=cosmos] .track-row.selected{background:#ad83ff0d;border-top-color:transparent}
html[data-theme=cosmos] .row-statistics{color:#9baaca}
html[data-theme=cosmos] .row-last-played{color:#b8c4df}
html[data-theme=cosmos] .row-previous-played{color:#ccacd8}
html[data-theme=cosmos] .icon-button[aria-pressed=true]{background:#70dbff12}
html[data-theme=cosmos] .status-dot.playing{box-shadow:0 0 0 .25rem #70dbff12}
html[data-theme=cosmos] .wave-modes{border-color:#a08cde40}
html[data-theme=cosmos] .wave-modes button[aria-pressed=true]{color:#d7ccff;background:#ad83ff14}
html[data-theme=cosmos] #wave-mode-prisma[aria-pressed=true]{background:linear-gradient(110deg,#70dbff14,#ad83ff20);box-shadow:inset 0 0 0 1px #ad83ff20}
html[data-theme=cosmos] .wave-mode-description{color:#a5b9de}
html[data-theme=cosmos] .wave-mode-description.two-registers{color:#c2aedc}
html[data-theme=cosmos] #wave-message{background:#0c1123c0}
html[data-theme=cosmos] .waveform[data-seek-state=pending]{box-shadow:inset 0 0 0 1px #70dbff40}
html[data-theme=cosmos] .waveform[data-seek-state=ready]{box-shadow:inset 0 0 0 1px #ad83ffaa,0 0 1rem #ad83ff10}
html[data-theme=cosmos] .artwork-tag{background:#080d2480;border-color:#ad83ff60;color:#d1c5eb}
html[data-theme=cosmos] :is(dialog,.artwork-dialog){background:#0c1123;border-color:#485379}
html[data-theme=cosmos] dialog::backdrop{background:#02040dd9}
html[data-theme=cosmos] .toast{background:#dcd5fa;color:#1b1633}
html[data-theme=cosmos] .secondary-button{border-color:#6c6390}
html[data-theme=cosmos] .current-statistics{border-color:#ad83ff30}
html[data-theme=cosmos] .current-statistics strong{color:#c5d5f4}
html[data-theme=cosmos] .album-intro-card{border-color:#71608d;background:linear-gradient(115deg,#38224470,#0d172b)}
html[data-theme=cosmos] .intro-pending{border-color:#a279b0;background:linear-gradient(115deg,#40264b90,#101a31)}
html[data-theme=cosmos] .intro-card-copy .eyebrow{color:#d2abdf}
html[data-theme=cosmos] .intro-card-copy p{color:#b5a8c5}
html[data-theme=cosmos] .intro-card-play{color:#f3c5e2;border-color:#ad83ff65}
html[data-theme=cosmos] .intro-card-play:hover{background:#ad83ff14}
html[data-theme=cosmos] .intro-art>span{background:#241a36;border-color:#a279b0;color:#f3c5e2}
html[data-theme=cosmos] .intro-active .intro-art{box-shadow:0 0 2rem #ad83ff24}
html[data-theme=cosmos] #intro-progress{background:#2a2e49}
html[data-theme=cosmos] #intro-progress::-webkit-progress-bar{background:#2a2e49}
html[data-theme=cosmos] #intro-progress::-webkit-progress-value{background:#c29bff}
html[data-theme=cosmos] #intro-progress::-moz-progress-bar{background:#c29bff}
html[data-theme=cosmos] #intro-progress-time{color:#c3a4d5}
html[data-theme=cosmos] .encrypted-track{border-top-color:#8873b930}
html[data-theme=cosmos] .encrypted-cover{border-color:#ad83ff40;color:#d0b6ee;background:repeating-linear-gradient(135deg,#ad83ff08 0 .125rem,transparent .125rem .4375rem)}
html[data-theme=cosmos] .cipher-text{color:#c8b6e8!important}
html[data-theme=cosmos] .encrypted-track .row-text small{color:#a292bc}
html[data-theme=cosmos] .intro-captions{border-color:#ad83ff38;background:radial-gradient(ellipse at 50% 100%,#ad83ff10,transparent 70%)}
html[data-theme=cosmos] .caption-toolbar{color:#c4b1de}
html[data-theme=cosmos] .caption-divider{color:#726085}
html[data-theme=cosmos] .captions-toggle{color:#b8abc8;border-color:#ad83ff50}
html[data-theme=cosmos] .captions-toggle[aria-pressed=true]{color:#f1d4f3;background:#ad83ff10;border-color:#ad83ff80}
html[data-theme=cosmos] .captions-toggle:hover{background:#ad83ff18}
html[data-theme=cosmos] #caption-current{color:#f4d6ed;text-shadow:0 .125rem 1.375rem #ad83ff20}
html[data-theme=cosmos] .caption-rest{color:#a588bc}
html[data-theme=cosmos] .screen-wake{border-color:#7389b450}
html[data-theme=cosmos] .screen-wake-message{color:#d1bddf}
html[data-theme=cosmos] .site-counters>div+div{border-color:#ad83ff25}
html[data-theme=cosmos] .site-counters dt{color:#9a9fc5}
html[data-theme=cosmos] .site-counters dd{color:#b4d9f5;text-shadow:0 0 .5625rem #70dbff12}
html[data-theme=cosmos] .site-counters>div:last-child dd{color:#d3b5e1}
html[data-theme=cosmos] :is(.wave-admin,.wave-admin-monitor){background:#10162b}
html[data-theme=cosmos] .wave-admin{border-color:#ad83ff40}
html[data-theme=cosmos] .wave-admin summary{color:#d4dcf5}
html[data-theme=cosmos] :is(.wave-admin select,.wave-admin input[type=text]){background:#080e20;border-color:#60719880;color:var(--text)}
html[data-theme=cosmos] :is(.wave-control,.wave-preset-row>label,.wave-save-row>label){color:#c2c8e2}
html[data-theme=cosmos] :is(.wave-control-groups legend,.wave-control output){color:#dfb6ee}
html[data-theme=cosmos] .wave-control input[type=range]{accent-color:#c29bff}
html[data-theme=cosmos] .wave-control-groups fieldset+fieldset :is(legend,output){color:#a9e7ff}
html[data-theme=cosmos] .wave-control-groups fieldset+fieldset input{accent-color:#70dbff}
html[data-theme=cosmos] .album-summary{background:linear-gradient(120deg,#171d37,#0c1123)}
html[data-theme=cosmos] :is(.history-totals>div,.history-chart){background:#0c1123;border-color:var(--line)}
