/* Newsreader (SIL Open Font License, see fonts/OFL-Newsreader.txt), served from this server */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/newsreader-latin.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/newsreader-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* ALEXNDR — Spotify/Tidal structure, warm dark canvas, glass chrome over a blurred cover glow */
:root {
  --bg: #0f0e0d;
  --ink: #f4efe6;
  --ink-2: rgba(244, 239, 230, 0.72);
  --ink-3: rgba(244, 239, 230, 0.52);
  --accent: #e3a25b;
  --accent-hi: #efb470;
  --accent-ink: #1a1209;
  --line: rgba(255, 255, 255, 0.1);
  --glass: rgba(30, 27, 24, 0.5);
  --glass-strong: rgba(24, 22, 20, 0.68);
  --glass-edge: rgba(255, 255, 255, 0.14);
  --hover: rgba(255, 255, 255, 0.07);
  --radius: 12px;
  --radius-lg: 18px;
  --serif: "Newsreader", ui-serif, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --player-h: 88px;
  --tab-h: 62px;
  --tint: #3a2a1c;
  --gap: 8px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-optical-sizing: auto; min-height: 100dvh; touch-action: manipulation;
  background: var(--bg); color: var(--ink);
  font: 100%/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
/* Ambient glow: the current cover, blurred huge, so the glass has something to bend */
body::before {
  content: ""; position: fixed; inset: -25%; z-index: -2;
  background-image: var(--ambient, none); background-size: cover; background-position: center;
  filter: blur(90px) saturate(160%); opacity: 0.8;
}
body::after { content: ""; position: fixed; inset: 0; z-index: -1; background: radial-gradient(130% 90% at 30% 0%, rgba(15,14,13,0.1), rgba(15,14,13,0.7) 75%); }

img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
svg.stroke { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
main:focus { outline: none; }
[hidden] { display: none !important; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: .75rem 1rem; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(1rem + var(--safe-t)); }

/* ---------- Glass material ---------- */
.panel, .player, .tabbar, .glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(30px) saturate(170%);
  backdrop-filter: blur(30px) saturate(170%);
  border: 1px solid var(--glass-edge);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

/* ---------- App shell ---------- */
.app { min-height: 100dvh; }
.sidebar { display: none; }
main { padding: calc(1rem + var(--safe-t)) 1rem calc(var(--tab-h) + 1.5rem + var(--safe-b)); }
body.has-player main { padding-bottom: calc(var(--tab-h) + 64px + 2rem + var(--safe-b)); }

@media (min-width: 900px) {
  .app {
    display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: var(--gap);
    height: 100dvh; padding: var(--gap) var(--gap) 0;
  }
  body.has-player .app { height: calc(100dvh - var(--player-h)); }
  .sidebar { display: flex; flex-direction: column; gap: var(--gap); min-height: 0; }
  .panel { border-radius: var(--radius); }
  .nav-panel { padding: 1.1rem 0.75rem 0.75rem; }
  .lib-panel { flex: 1; min-height: 0; overflow: auto; padding: 1rem 0.5rem; }
  main {
    min-height: 0; overflow: auto; border-radius: var(--radius); padding: 0 0 3rem;
    background: rgba(20,18,16,0.42); border: 1px solid var(--glass-edge);
    -webkit-backdrop-filter: blur(30px) saturate(160%); backdrop-filter: blur(30px) saturate(160%);
    scrollbar-color: rgba(255,255,255,.25) transparent;
  }
  body.has-player main { padding-bottom: 3rem; }
  .tabbar { display: none; }
}

.wordmark { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .75rem; font-weight: 750; letter-spacing: .3em; text-decoration: none; font-size: .95rem; margin-bottom: .5rem; }
.nav-link {
  display: flex; align-items: center; gap: 1rem; min-height: 44px; padding: 0 .75rem; border-radius: 8px;
  text-decoration: none; font-weight: 650; color: var(--ink-3); transition: color 160ms ease, background 160ms ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link[aria-current="page"] { color: var(--ink); }
.lib-title { font-size: 1rem; font-weight: 700; margin: 0 .5rem .75rem; color: var(--ink-2); }
.lib-list { list-style: none; margin: 0; padding: 0; }
.lib-item {
  display: flex; align-items: center; gap: .75rem; padding: .5rem; border-radius: 8px; text-decoration: none;
  transition: background 140ms ease;
}
.lib-item:hover { background: var(--hover); }
.lib-item[aria-current="page"] { background: rgba(255,255,255,0.11); }
.lib-item img { width: 48px; height: 48px; border-radius: 6px; object-fit: cover; }
.lib-item .lt { font-weight: 600; font-size: .95rem; }
.lib-item .ls { font-size: .82rem; color: var(--ink-3); }
.lib-item.playing .lt { color: var(--accent); }

/* ---------- Views ---------- */
.view { animation: viewIn 380ms cubic-bezier(.2,.8,.2,1) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }
.pad { padding: 0 clamp(1rem, 2.5vw, 1.75rem); }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.sec-title { font-size: 1.45rem; font-weight: 750; letter-spacing: -0.015em; margin: 2.25rem 0 1rem; }

/* Home */
.home-top { padding-top: clamp(1.25rem, 3vw, 2rem); background: linear-gradient(var(--tint) -40%, transparent 300px); }
.greet { font-size: clamp(1.75rem, 3.6vw, 2.4rem); font-weight: 750; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 1.25rem; }
.shortcuts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.shortcut-link { display: flex; align-items: center; gap: .75rem; min-height: 64px; text-decoration: none; border-radius: 8px; }
.shortcut {
  position: relative; display: flex; align-items: center; overflow: hidden;
  border-radius: 8px; background: rgba(255,255,255,0.09);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  transition: background 160ms ease;
}
.shortcut:hover { background: rgba(255,255,255,0.16); }
.shortcut-link { flex: 1; min-width: 0; }
.shortcut:active { transform: scale(.985); }
.shortcut img { width: 64px; height: 64px; object-fit: cover; box-shadow: 4px 0 14px rgba(0,0,0,.35); }
.shortcut .st { font-weight: 700; font-size: .95rem; padding-right: 3.5rem; line-height: 1.2; }
.shortcut .round-play { position: absolute; right: .6rem; width: 44px; height: 44px; opacity: 0; transform: translateY(4px); transition: opacity 180ms ease, transform 180ms ease; }
.shortcut:hover .round-play, .shortcut:focus-within .round-play { opacity: 1; transform: none; }
@media (hover: none) { .shortcut .round-play { display: none; } .shortcut .st { padding-right: .75rem; } }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: .25rem; margin: 0 -.6rem; }
.card { position: relative; padding: .6rem; border-radius: 10px; transition: background 180ms ease; container-type: inline-size; }
.card-link { display: block; text-decoration: none; border-radius: 8px; }
.card:hover { background: var(--hover); }
.card:active { transform: scale(.985); }
.card .art { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 1; box-shadow: 0 16px 36px -16px rgba(0,0,0,.8); }
.card .art img { width: 100%; height: 100%; object-fit: cover; transition: transform 450ms cubic-bezier(.2,.8,.2,1); }
.card:hover .art img { transform: scale(1.03); }
.card .round-play { position: absolute; right: 1.1rem; top: calc(100cqw - 1.1rem - 52px); opacity: 0; transform: translateY(8px); transition: opacity 200ms ease, transform 260ms cubic-bezier(.2,.9,.25,1); }
.card:hover .round-play, .card:focus-within .round-play { opacity: 1; transform: none; }
@media (hover: none) { .card .round-play { opacity: 1; transform: none; } }
.card .ct { font-weight: 700; margin-top: .7rem; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .cs { font-size: .88rem; color: var(--ink-3); margin-top: .15rem; }

.round-play {
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.6);
}
.round-play:hover { background: var(--accent-hi); transform: scale(1.04); }
.round-play:active { transform: scale(.93); transition-duration: 60ms; }
.round-play svg { width: 22px; height: 22px; }
.round-play .i-pause { display: none; }
.round-play.on .i-play { display: none; }
.round-play.on .i-pause { display: block; }

/* Album page */
.album-head {
  display: flex; align-items: flex-end; gap: clamp(1rem, 3vw, 1.75rem);
  padding: clamp(1.5rem, 5vw, 3.5rem) clamp(1rem, 2.5vw, 1.75rem) 1.5rem;
  background: linear-gradient(var(--tint), color-mix(in srgb, var(--tint) 35%, transparent));
}
.album-head img { width: clamp(150px, 22vw, 232px); aspect-ratio: 1; object-fit: cover; border-radius: 8px; box-shadow: 0 24px 60px -10px rgba(0,0,0,.7); flex: none; }
.album-head h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 7vw, 5.5rem); letter-spacing: -0.022em; line-height: .98; margin: .35rem 0 .75rem; }
.album-head .by { font-size: .92rem; color: var(--ink-2); }
.album-head .by b { color: var(--ink); }
.album-body { background: linear-gradient(color-mix(in srgb, var(--tint) 35%, transparent), transparent 240px); padding-top: 1.25rem; }
.action-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.action-row .round-play { width: 56px; height: 56px; }
.icon-btn {
  width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; background: none; color: var(--ink-2);
  transition: color 140ms ease, background 140ms ease, transform 120ms ease;
}
.icon-btn:hover { color: var(--ink); background: var(--hover); }
.icon-btn:active { transform: scale(.9); transition-duration: 60ms; }
.icon-btn[aria-pressed="true"], .icon-btn.active { color: var(--accent); }
.icon-btn.sm svg { width: 20px; height: 20px; }
.icon-btn.lg { width: 60px; height: 60px; color: var(--ink); } .icon-btn.lg svg { width: 32px; height: 32px; }
.icon-btn.xl { width: 76px; height: 76px; background: var(--ink); color: var(--bg); } .icon-btn.xl:hover { background: #fff; color: var(--bg); } .icon-btn.xl svg { width: 34px; height: 34px; }
.action-row .icon-btn svg { width: 28px; height: 28px; }

.tracks { width: 100%; border-collapse: collapse; }
.tracks-head { display: grid; grid-template-columns: 2.5rem 1fr 4rem; gap: 1rem; padding: 0 1rem .5rem; border-bottom: 1px solid var(--line); margin-bottom: .5rem; color: var(--ink-3); font-size: .85rem; }
.tracks-head span:last-child { text-align: right; }
.tracklist { list-style: none; margin: 0; padding: 0; }
.track {
  display: grid; grid-template-columns: 2.5rem 1fr 4rem; align-items: center; gap: 1rem;
  width: 100%; min-height: 56px; padding: .4rem 1rem; border: 0; background: none; cursor: pointer; text-align: left;
  border-radius: 6px; transition: background 120ms ease;
}
.track:active { background: rgba(255,255,255,.12); }
.track:active { background: rgba(255,255,255,.12); }
.track .n { color: var(--ink-3); font-variant-numeric: tabular-nums; text-align: center; position: relative; }
.track .tt { min-width: 0; }
.track .t { font-weight: 550; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track .a { font-size: .85rem; color: var(--ink-3); }
.track .d { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: .9rem; text-align: right; }
.track .hp { display: none; }
@media (hover: hover) {
  .track:hover { background: var(--hover); }
  .track:hover .num { visibility: hidden; }
  .track:hover .hp { display: block; position: absolute; inset: 0; margin: auto; width: 16px; height: 16px; color: var(--ink); }
  .track.playing:hover .hp { display: none; }
  .track.playing:hover .num { visibility: visible; }
}
.track.playing { background: rgba(255,255,255,.06); }
.track.playing .t, .track.playing .num { color: var(--accent); }
.eq { display: none; gap: 2px; height: 14px; align-items: end; justify-content: center; }
body.is-playing .track.playing .num { display: none; }
body.is-playing .track.playing .eq { display: inline-flex; }
.eq i { width: 3px; background: var(--accent); border-radius: 2px; animation: eq 900ms ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -300ms; } .eq i:nth-child(3) { animation-delay: -600ms; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 14px; } }
.album-foot { color: var(--ink-3); font-size: .85rem; margin-top: 1rem; }
.album-desc { color: var(--ink-2); max-width: 62ch; margin-top: 2rem; font-size: 1.02rem; }
.song-note { width: min(100%, 440px); margin: 1.25rem auto 0; color: var(--ink-2); font-size: 1rem; line-height: 1.6; padding: 1rem 1.1rem; border-radius: 12px; background: var(--hover); }
@media (min-width: 900px) { .song-note { grid-column: 1; width: 100%; } }

/* Library (mobile) */
.lib-page .lib-item { padding: .6rem 0; }
.lib-page .lib-item img { width: 64px; height: 64px; }

/* About & privacy */
.about { display: grid; gap: 1.5rem; padding-top: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 1100px) { .about { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.about h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 6vw, 4.5rem); letter-spacing: -0.022em; line-height: 1; margin: .5rem 0 1.25rem; }
.bio p { color: var(--ink-2); font-size: 1.08rem; max-width: 56ch; margin-bottom: 1rem; }
.bio p.lead { color: var(--ink); font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.4rem); line-height: 1.45; }
.box { border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 1.75rem); }
.box + .box { margin-top: 1rem; }
.box h2 { font-size: 1.25rem; font-weight: 750; letter-spacing: -0.01em; }
.box p { color: var(--ink-2); margin: .5rem 0 1.1rem; }
.coffee h2 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; letter-spacing: -0.02em; }
.coffee .btn { width: 100%; }
.fine { font-size: .84rem; color: var(--ink-3); margin-top: .9rem; }
.fine a { color: var(--ink-2); }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; }
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: rgba(255,255,255,.2); transition: background 200ms ease; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; transition: transform 260ms cubic-bezier(.3,1.3,.5,1); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { display: grid; gap: .4rem; margin: 1rem 0; }
.field span { font-size: .9rem; font-weight: 600; }
.field em { font-style: normal; color: var(--ink-3); font-weight: 400; }
.field input { min-height: 48px; padding: 0 1rem; border-radius: 10px; border: 1px solid var(--glass-edge); background: rgba(0,0,0,.25); color: var(--ink); }
.field input::placeholder { color: var(--ink-3); }
.field input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.prose { max-width: 62ch; padding-top: clamp(1.5rem, 4vw, 3rem); }
.prose h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 750; letter-spacing: -0.025em; margin-bottom: 1rem; }
.prose h2 { font-size: 1.1rem; font-weight: 700; margin: 1.75rem 0 .4rem; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: 0 1.4rem; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 700; text-decoration: none; transition: transform 140ms ease, background 160ms ease;
}
.btn:active { transform: scale(.97); transition-duration: 60ms; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hi); }
.btn-ghost { background: none; color: var(--ink-2); border: 1px solid var(--glass-edge); }
.btn-ghost:hover { color: var(--ink); background: var(--hover); }

/* ---------- Player bar ---------- */
.player {
  position: fixed; z-index: 30;
  left: 8px; right: 8px; bottom: calc(var(--tab-h) + 8px + var(--safe-b));
  height: 64px; border-radius: 12px; padding: 0 6px 0 8px;
  display: flex; align-items: center; gap: .25rem;
  background: rgba(34, 30, 27, 0.78);
  -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 16px 40px -12px rgba(0,0,0,.7);
  animation: playerIn 460ms cubic-bezier(.2,.9,.25,1) both;
}
@keyframes playerIn { from { opacity: 0; transform: translateY(16px); } }
.p-progress-mini { position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; background: rgba(255,255,255,.14); border-radius: 2px; overflow: hidden; }
.p-progress-mini span { display: block; height: 100%; width: 0; background: var(--ink); }
.p-now { flex: 1; min-width: 0; display: flex; align-items: center; gap: .7rem; padding: 4px; border: 0; background: none; text-align: left; cursor: pointer; border-radius: 10px; }
.p-now img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex: none; }
.p-text { display: grid; min-width: 0; }
.p-title, .p-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-title { font-weight: 650; font-size: .92rem; }
.p-sub { font-size: .8rem; color: var(--ink-3); }
.p-center, .p-right { display: flex; align-items: center; gap: .15rem; }
.p-buttons { display: flex; align-items: center; gap: .25rem; }
.play-btn { color: var(--ink); }
.play-btn svg { width: 26px; height: 26px; }
.desk { display: none !important; }
.i-pause { display: none; }
body.is-playing [data-toggle] .i-play { display: none; }
body.is-playing [data-toggle] .i-pause { display: block; }

@media (min-width: 900px) {
  .player {
    left: 0; right: 0; bottom: 0; height: var(--player-h); border-radius: 0; padding: 0 1rem;
    border-width: 1px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr);
    background: rgba(18, 16, 14, 0.72); animation: none;
  }
  .p-progress-mini { display: none; }
  .p-now img { width: 56px; height: 56px; }
  .p-title { font-size: .95rem; }
  .p-center { flex-direction: column; gap: .1rem; }
  .p-right { justify-content: flex-end; }
  .desk { display: grid !important; }
  .p-scrub.desk, .vol.desk { display: flex !important; }
  .play-btn { width: 40px; height: 40px; background: var(--ink); color: var(--bg); }
  .play-btn:hover { background: #fff; color: var(--bg); transform: scale(1.05); }
  .play-btn svg { width: 20px; height: 20px; }
  .p-scrub { align-items: center; gap: .6rem; width: 100%; max-width: 620px; }
  .time { font-size: .75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 2.6rem; text-align: center; }
  .vol { align-items: center; width: 150px; }
}

/* ---------- Tab bar (mobile) ---------- */
.tabbar {
  position: fixed; z-index: 25; left: 0; right: 0; bottom: 0;
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-width: 1px 0 0; background: rgba(15,14,13,.82); -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
}
.tabbar a { display: grid; place-items: center; align-content: center; gap: 2px; text-decoration: none; color: var(--ink-3); font-size: .7rem; font-weight: 600; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar svg { width: 24px; height: 24px; }

/* ---------- Ranges ---------- */
.range { -webkit-appearance: none; appearance: none; flex: 1; width: 100%; height: 20px; background: transparent; margin: 0; cursor: pointer; --fill: 0%; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--ink) var(--fill), rgba(255,255,255,.2) var(--fill)); }
.range:hover::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--accent) var(--fill), rgba(255,255,255,.2) var(--fill)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: var(--ink); margin-top: -4px; opacity: 0; transition: opacity 120ms ease; }
.range:hover::-webkit-slider-thumb, .range:focus-visible::-webkit-slider-thumb, .range.big::-webkit-slider-thumb { opacity: 1; }
.range::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255,255,255,.2); }
.range::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--ink); }
.range::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--ink); }
.range.big { height: 28px; }
.range.big::-webkit-slider-runnable-track { height: 5px; }
.range.big::-webkit-slider-thumb { width: 16px; height: 16px; margin-top: -5.5px; }

/* ---------- Sheet (full player) ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.5); opacity: 0; }
.sheet {
  position: fixed; z-index: 50; inset: 0; top: calc(var(--safe-t) + 10px);
  margin: 0 auto; width: min(100%, 1180px);
  border-radius: 26px 26px 0 0; overflow: hidden;
  background: rgba(22, 20, 18, 0.7);
  -webkit-backdrop-filter: blur(60px) saturate(180%); backdrop-filter: blur(60px) saturate(180%);
  border: 1px solid var(--glass-edge); border-bottom: 0;
  transform: translateY(100%); will-change: transform;
  display: flex; flex-direction: column;
}
.sheet-glow { position: absolute; inset: -20%; z-index: -1; background-image: var(--ambient); background-size: cover; filter: blur(70px) saturate(170%); opacity: .7; pointer-events: none; }
.sheet { isolation: isolate; }
.sheet-artist { position: absolute; left: 58px; top: 10px; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; box-shadow: 0 6px 18px -6px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.18); }
.sheet-artist img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet-top { position: relative; }
.sheet-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 6px 10px 0; flex: none; touch-action: none; }
.grabber { display: grid; place-items: center; height: 36px; cursor: grab; }
.grabber span { width: 40px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.35); }
.sheet-from { display: none; }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: .5rem clamp(1.25rem, 6vw, 2.5rem) calc(2rem + var(--safe-b)); display: flex; flex-direction: column; }
.sheet-cover { width: min(100%, 440px, 48vh); aspect-ratio: 1; object-fit: cover; margin: .5rem auto 1.75rem; border-radius: 14px; box-shadow: 0 30px 70px -20px rgba(0,0,0,.9); transition: transform 520ms cubic-bezier(.2,.9,.25,1); touch-action: none; }
body:not(.is-playing) .sheet-cover { transform: scale(.9); }
.sheet-meta { touch-action: none; width: min(100%, 440px); margin: auto auto 0; padding-top: 1rem; }
@media (max-width: 899px) {
  /* Cover on top, title + progress + controls anchored to the bottom (thumb zone), like Spotify/Apple Music */
  .sheet { background: rgba(22, 20, 18, 0.82); }
  .sheet-cover { margin: auto auto 0; }
  .sheet-body { padding-bottom: calc(1.5rem + var(--safe-b)); }
  .controls { margin-bottom: .75rem; }
}
.sheet-meta h2 { font-size: 1.45rem; font-weight: 750; letter-spacing: -0.02em; line-height: 1.2; }
.sheet-meta p { color: var(--ink-2); margin-top: .15rem; }
.scrub, .controls, .sheet-extra { width: min(100%, 440px); margin-left: auto; margin-right: auto; }
.scrub { margin-top: 1.25rem; }
.times { display: flex; justify-content: space-between; align-items: flex-start; color: var(--ink-3); font-size: .78rem; font-variant-numeric: tabular-nums; }
/* Quality between the times, like Tidal: "24-BIT 96KHZ FLAC" (tap to switch lossless/standard) */
.q-line { border: 0; background: none; padding: .1rem .4rem; font: inherit; font-size: .72rem; font-weight: 700; letter-spacing: .06em; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.q-line:disabled { cursor: default; }
.q-line { display: inline-flex; align-items: center; gap: .45rem; }
.hr-mark { display: inline-flex; align-items: center; padding: .05rem .35rem; border: 1px solid var(--accent); border-radius: 4px; color: var(--accent); font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4; }
.controls { display: flex; align-items: center; justify-content: space-between; margin-top: .5rem; margin-bottom: .9rem; }
.sheet-extra { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
/* Lyrics / The story / AirPlay: a smaller row under the controls */
.sheet-extra .chip { min-height: 36px; padding: 0 .9rem; font-size: .84rem; }
.sheet-extra .chip svg { width: 16px; height: 16px; }
/* In a mobile browser (not installed), Safari's toolbar floats over the bottom: keep the controls above it */
@media (pointer: coarse) and (display-mode: browser) {
  .sheet-body { padding-bottom: calc(6.25rem + var(--safe-b)); }
  .sheet-cover { width: min(100%, 440px, 36vh); margin-bottom: 1rem; }
}
.chip { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 1.1rem; border-radius: 999px; border: 1px solid var(--glass-edge); background: rgba(255,255,255,.08); cursor: pointer; font-weight: 600; font-size: .9rem; }
.chip:hover { background: rgba(255,255,255,.15); }
.chip[aria-expanded="true"] { background: var(--ink); color: var(--bg); }
.chip svg { width: 18px; height: 18px; }
.lyrics { width: min(100%, 640px); margin: .5rem auto 1rem; font-family: var(--serif); font-weight: 600; font-size: clamp(1.45rem, 4.5vw, 2rem); line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.lyrics::-webkit-scrollbar { display: none; }
.lyrics p { margin: 0 0 .55em; }
.lyrics .gap { height: .6em; margin: 0; }
.lyrics.is-synced .ln { color: color-mix(in srgb, var(--ink) 38%, transparent); cursor: pointer; transition: color 300ms ease, transform 300ms ease; transform-origin: left center; border-radius: 8px; }
.lyrics.is-synced .ln.past { color: color-mix(in srgb, var(--ink) 55%, transparent); }
.lyrics.is-synced .ln.now { color: var(--ink); }
@media (hover: hover) { .lyrics.is-synced .ln:hover { color: var(--ink-2); } }
.lyrics.is-synced { mask-image: linear-gradient(transparent, #000 12%, #000 80%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 80%, transparent); padding: 18vh 0; }
.q-badge { display: inline-flex; align-items: center; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 5px; border: 1px solid currentColor; color: var(--accent); vertical-align: 2px; margin-left: .35rem; }
.versions-row { width: min(100%, 440px); margin: .9rem auto 0; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.versions-row .vlabel { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-right: .25rem; }
.chip.sm { min-height: 36px; padding: 0 .85rem; font-size: .85rem; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: transparent; }
html[data-theme="light"] .chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.credits dl { margin: 0; }
.credits dt { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: .7rem; }
.credits dt:first-child { margin-top: 0; }
.credits dd { margin: .15rem 0 0; color: var(--ink); font-weight: 600; }
.sheet-cover { cursor: pointer; }
.song-note h3 { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .4rem; }
.song-note p { margin: 0; font-family: var(--serif); font-size: 1.12rem; line-height: 1.55; color: var(--ink); }
.ll { color: var(--accent); font-weight: 700; font-size: .78rem; letter-spacing: .04em; }
/* Mobile: lyrics take the place of the cover, like Apple Music */
@media (max-width: 899px) {
  .sheet.show-lyrics .sheet-cover { display: none; }
  .sheet.show-lyrics .lyrics { flex: 1; min-height: 0; margin-top: 0; }
  .sheet.show-lyrics .sheet-meta { margin-top: 0; }
  .sheet.show-lyrics .sheet-body { overflow: hidden; }
  .lyrics:not(.is-synced) { padding: 1rem 0 2rem; }
}

@media (min-width: 900px) {
  .sheet { top: 0; border-radius: 0; border: 0; width: 100%; }
  .sheet-top { grid-template-columns: 44px 1fr 44px; padding: 14px 18px 0; }
  .grabber { visibility: hidden; }
  .sheet-from { display: block; grid-column: 2; text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
  .sheet-body { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 1fr); grid-template-rows: auto auto auto auto 1fr; column-gap: clamp(2rem, 5vw, 5rem); align-content: center; padding: 1rem clamp(2rem, 6vw, 6rem) 3rem; }
  .sheet-cover { grid-column: 1; grid-row: 1; width: 100%; margin: 0 0 1.5rem; }
  .sheet-meta, .scrub, .controls, .sheet-extra { grid-column: 1; width: 100%; }
  .sheet-extra { justify-content: flex-start; }
  .lyrics { grid-column: 2; grid-row: 1 / span 6; align-self: stretch; margin: 0; max-height: 78vh; }
  .versions-row { grid-column: 1; width: 100%; justify-content: flex-start; }
  .sheet-cover { grid-row: 1; }
}

/* ---------- Liquid glass, v2 ----------
   Clearer tint so the cover glow shows through, a specular rim (light on the top edge, fading out),
   and a floating tab bar like iOS. Reduced transparency (below) still turns all of this solid. */
.player, .tabbar, .sheet, .notice, .panel, .shortcut, .glass { isolation: isolate; }
.panel { position: relative; }
.player::after, .tabbar::after, .sheet::after, .notice::after, .panel::after, .glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 1;
  background: linear-gradient(165deg, rgba(255,255,255,.42), rgba(255,255,255,.08) 32%, rgba(255,255,255,0) 58%, rgba(255,255,255,.14));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.player {
  background: rgba(34, 30, 27, 0.6);
  -webkit-backdrop-filter: blur(44px) saturate(200%) brightness(1.04); backdrop-filter: blur(44px) saturate(200%) brightness(1.04);
  border: 0; border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -1px 0 rgba(255,255,255,.04), 0 18px 44px -14px rgba(0,0,0,.75);
}
.sheet { background: rgba(22, 20, 18, 0.55); border: 0; }
.notice { background: rgba(30, 27, 24, 0.58); border: 0; }
.panel, .glass { background: rgba(30, 27, 24, 0.4); border-color: transparent; }
.shortcut { background: rgba(255,255,255,.1); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); box-shadow: inset 0 1px 0 rgba(255,255,255,.16); }
@media (max-width: 899px) {
  /* Floating tab bar */
  .tabbar {
    left: 12px; right: 12px; bottom: calc(10px + var(--safe-b)); height: var(--tab-h); padding-bottom: 0;
    border: 0; border-radius: 999px;
    background: rgba(24, 22, 20, 0.46);
    -webkit-backdrop-filter: blur(44px) saturate(200%) brightness(1.04); backdrop-filter: blur(44px) saturate(200%) brightness(1.04);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 18px 40px -14px rgba(0,0,0,.75);
  }
  .player { bottom: calc(var(--tab-h) + 18px + var(--safe-b)); left: 12px; right: 12px; }
  main { padding-bottom: calc(var(--tab-h) + 2.25rem + var(--safe-b)); }
  body.has-player main { padding-bottom: calc(var(--tab-h) + 64px + 2.75rem + var(--safe-b)); }
}
html[data-theme="light"] body .player { background: rgba(255, 252, 246, 0.6); }
html[data-theme="light"] body .tabbar { background: rgba(255, 252, 246, 0.34); }
html[data-theme="light"] body .player, html[data-theme="light"] body .tabbar { box-shadow: inset 0 1px 0 rgba(255,255,255,.8), 0 14px 36px -14px rgba(60,40,20,.35); }
html[data-theme="light"] body .sheet, html[data-theme="light"] body .notice { background: rgba(255, 252, 246, 0.62); }
html[data-theme="light"] body .shortcut { background: rgba(255,255,255,.45); }

/* Greeting: no tinted band with a hard bottom edge; the cover glow behind the glass does the colour */
html body .home-top, html[data-theme] body .home-top { background: none; }
.shortcut { border-radius: 10px; }

/* Status-bar strip (phones): content scrolling up blurs away under the clock instead of colliding with it */
@media (max-width: 899px) {
  .app::before {
    content: ""; position: fixed; z-index: 20; left: 0; right: 0; top: 0;
    height: calc(var(--safe-t) + 18px); pointer-events: none;
    background: linear-gradient(rgba(15,14,13,.55), rgba(15,14,13,0));
    -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
    -webkit-mask: linear-gradient(#000 calc(100% - 18px), transparent); mask: linear-gradient(#000 calc(100% - 18px), transparent);
  }
  html[data-theme="light"] .app::before { background: linear-gradient(rgba(243,237,227,.6), rgba(243,237,227,0)); }
}
@media (prefers-reduced-transparency: reduce) { .app::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); } }

/* ---------- Home: radio, favorites, essentials ---------- */
.radio-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; width: 100%; margin-top: 1.75rem; padding: 1rem 1.1rem; border: 0; border-radius: 18px; text-align: left; cursor: pointer; color: inherit;
  background: linear-gradient(135deg, rgba(228,179,122,.22), rgba(228,179,122,.05)); transition: transform 160ms ease; position: relative; overflow: hidden; }
.radio-card:active { transform: scale(.985); }
.radio-art { display: flex; }
.radio-art img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; box-shadow: 0 8px 20px -10px rgba(0,0,0,.8); }
.radio-art img + img { margin-left: -38px; transform: translateY(6px); }
.radio-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.radio-text b { font-size: 1.1rem; }
.radio-text .eyebrow { display: inline-flex; align-items: center; gap: .35rem; color: var(--accent, #e4b37a); }
.radio-text .eyebrow svg { width: 14px; height: 14px; }
.radio-text .muted { font-size: .85rem; color: var(--ink-3); }
.radio-card .round-play { position: static; opacity: 1; transform: none; }
.sec-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.sec-row .sec-title { margin-bottom: 1rem; }
.text-btn { border: 0; background: none; color: var(--ink-2); font: inherit; font-size: .88rem; font-weight: 650; cursor: pointer; padding: .4rem .2rem; }
.text-btn:hover { color: var(--ink); }
.tracklist li.has-fav { display: grid; grid-template-columns: 1fr auto; align-items: center; }
.fav { width: 40px; height: 40px; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink-3); }
.fav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform 200ms cubic-bezier(.2,.9,.3,1.4); }
.fav[aria-pressed="true"] { color: var(--accent, #e4b37a); }
.fav[aria-pressed="true"] svg { fill: currentColor; }
.fav:active svg { transform: scale(.82); }
.sheet-extra .fav { width: auto; height: auto; padding: 0 .9rem; border-radius: 999px; min-height: 34px; }

/* Coming soon, picks, mixes */
.soon-row, .mix-row { display: flex; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -1rem; padding: 0 1rem .5rem; scrollbar-width: none; }
.soon-row::-webkit-scrollbar, .mix-row::-webkit-scrollbar { display: none; }
.soon { background: linear-gradient(135deg, rgba(228,179,122,.16), rgba(228,179,122,.04)); box-shadow: inset 0 0 0 1px rgba(228,179,122,.18); flex: 0 0 min(320px, 82%); scroll-snap-align: start; display: grid; grid-template-columns: 72px 1fr; gap: .9rem; align-items: center; padding: .75rem; border-radius: 16px; text-decoration: none; color: inherit; }
.soon img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; }
.soon > span { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.soon b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.soon .eyebrow { color: var(--accent); }
.soon .muted { font-size: .85rem; color: var(--ink-3); }
.picks-intro { margin: -.4rem 0 .9rem; color: var(--ink-2); max-width: 60ch; }
.pick-note { display: block; font-size: .85rem; color: var(--ink-2); font-style: italic; margin-top: .2rem; white-space: normal; }
.mix { flex: 0 0 auto; width: 168px; scroll-snap-align: start; border: 0; background: none; color: inherit; text-align: left; padding: 0; cursor: pointer; }
.mix-art { position: relative; display: grid; aspect-ratio: 1; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 30px -16px rgba(0,0,0,.8); transition: transform 160ms ease; }
.mix-art.n4 { grid-template-columns: 1fr 1fr; }
.mix-art.n2, .mix-art.n3 { grid-template-columns: 1fr 1fr; }
.mix-art.n3 img:first-child { grid-row: span 2; }
.mix-art img { width: 100%; height: 100%; object-fit: cover; }
.mix-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,0) 60%); }
.mix-name { position: absolute; z-index: 1; left: .7rem; right: .7rem; bottom: .6rem; font-weight: 750; font-size: 1.05rem; color: #fff; letter-spacing: -.01em; }
.mix:active .mix-art { transform: scale(.97); }
.mix-sub { display: block; font-size: .82rem; color: var(--ink-3); margin-top: .45rem; }

/* ---------- First-run notice ---------- */
.notice-wrap { position: fixed; inset: 0; z-index: 70; display: grid; place-items: end center; padding: 1rem 1rem calc(1rem + var(--safe-b)); background: rgba(0,0,0,.45); }
@media (min-width: 640px) { .notice-wrap { place-items: center; } }
.notice {
  width: min(100%, 460px); padding: 1.6rem; border-radius: 22px;
  background: rgba(30,27,24,.72); -webkit-backdrop-filter: blur(40px) saturate(180%); backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-edge); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 40px 80px -30px rgba(0,0,0,.8);
  animation: noticeIn 480ms cubic-bezier(.2,.9,.25,1) both;
}
@keyframes noticeIn { from { opacity: 0; transform: translateY(20px) scale(.98); } }
.notice h2 { font-size: 1.4rem; font-weight: 750; letter-spacing: -0.02em; }
.notice > p { color: var(--ink-2); margin-top: .5rem; }
.notice-actions { display: grid; gap: .5rem; }
/* The anonymous choice is a quiet text link, the main action stays the button */
.text-link { justify-self: center; margin-top: .15rem; padding: .35rem .5rem; border: 0; background: none; font: inherit; font-size: .88rem; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); cursor: pointer; }
.text-link:hover, .text-link:focus-visible { color: var(--ink); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 80; left: 50%; top: calc(14px + var(--safe-t));
  transform: translate(-50%, -10px); opacity: 0; pointer-events: none;
  padding: .7rem 1.1rem; border-radius: 999px; font-size: .9rem; font-weight: 600;
  background: rgba(40,36,32,.82); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--glass-edge); transition: opacity 240ms ease, transform 240ms ease;
  max-width: calc(100% - 2rem); text-align: center;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 899px) {
  .album-head { flex-direction: column; align-items: flex-start; padding-top: 1rem; }
  .album-head img { width: min(62vw, 260px); align-self: center; margin-bottom: .5rem; }
  .tracks-head { display: none; }
  .track { grid-template-columns: 1.75rem 1fr 3.25rem; gap: .75rem; padding: .4rem .25rem; }
  .pad.album-body, .pad { padding: 0 1rem; }
  .shortcuts { grid-template-columns: 1fr; }
  main { padding-left: 0; padding-right: 0; }
}

@media (min-width: 900px) { .tabbar { display: none; } }


/* ---------- Light theme: same idea at dawn (Vrijheid) ---------- */
html[data-theme="light"] {
  --bg: #f3ede3;
  --ink: #1d1813;
  --ink-2: rgba(29, 24, 19, 0.74);
  --ink-3: rgba(29, 24, 19, 0.56);
  --accent: #a85d1f;
  --accent-hi: #96511a;
  --accent-ink: #fffaf2;
  --line: rgba(29, 24, 19, 0.1);
  --glass: rgba(255, 252, 246, 0.55);
  --glass-strong: rgba(255, 252, 246, 0.72);
  --glass-edge: rgba(255, 255, 255, 0.7);
  --hover: rgba(29, 24, 19, 0.06);
}
html[data-theme="light"] body::before { opacity: .55; filter: blur(90px) saturate(130%); }
html[data-theme="light"] body::after { background: radial-gradient(130% 90% at 30% 0%, rgba(243,237,227,.25), rgba(243,237,227,.82) 72%); }
html[data-theme="light"] .panel, html[data-theme="light"] .player, html[data-theme="light"] .tabbar, html[data-theme="light"] .glass {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(60,40,20,.06);
  border-color: rgba(255,255,255,.75);
}
@media (min-width: 900px) {
  html[data-theme="light"] main { background: rgba(255, 252, 246, 0.5); scrollbar-color: rgba(0,0,0,.25) transparent; }
  html[data-theme="light"] .player { background: rgba(250, 246, 239, 0.82); }
}
html[data-theme="light"] .home-top { background: linear-gradient(color-mix(in srgb, var(--tint) 30%, #f3ede3) -40%, transparent 300px); }
html[data-theme="light"] .album-head { background: linear-gradient(color-mix(in srgb, var(--tint) 22%, #f3ede3), color-mix(in srgb, var(--tint) 12%, transparent)); }
html[data-theme="light"] .album-body { background: linear-gradient(color-mix(in srgb, var(--tint) 12%, transparent), transparent 240px); }
html[data-theme="light"] .lib-item[aria-current="page"] { background: rgba(29,24,19,.08); }
html[data-theme="light"] .shortcut { background: rgba(255,255,255,.55); }
html[data-theme="light"] .shortcut:hover { background: rgba(255,255,255,.85); }
html[data-theme="light"] .track:active { background: rgba(29,24,19,.1); }
html[data-theme="light"] .track.playing { background: rgba(29,24,19,.05); }
html[data-theme="light"] .icon-btn.xl:hover, html[data-theme="light"] .play-btn:hover { background: #000; color: var(--bg); }
html[data-theme="light"] .switch span { background: rgba(29,24,19,.18); }
html[data-theme="light"] .field input { background: rgba(255,255,255,.75); border-color: rgba(29,24,19,.14); }
html[data-theme="light"] .player { background: rgba(252, 249, 243, 0.84); box-shadow: inset 0 1px 0 #fff, 0 16px 40px -14px rgba(60,40,20,.35); }
html[data-theme="light"] .p-progress-mini { background: rgba(29,24,19,.12); }
html[data-theme="light"] .tabbar { background: rgba(250, 246, 239, .86); border-color: rgba(29,24,19,.08); }
html[data-theme="light"] .range::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--ink) var(--fill), rgba(29,24,19,.16) var(--fill)); }
html[data-theme="light"] .range:hover::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--accent) var(--fill), rgba(29,24,19,.16) var(--fill)); }
html[data-theme="light"] .range::-moz-range-track { background: rgba(29,24,19,.16); }
html[data-theme="light"] .scrim { background: rgba(60,40,20,.25); }
html[data-theme="light"] .sheet { background: rgba(250, 246, 239, 0.78); border-color: rgba(255,255,255,.8); }
@media (max-width: 899px) { html[data-theme="light"] .sheet { background: rgba(250, 246, 239, 0.88); } }
html[data-theme="light"] .sheet-glow { opacity: .45; }
html[data-theme="light"] .grabber span { background: rgba(29,24,19,.25); }
html[data-theme="light"] .chip { background: rgba(255,255,255,.6); border-color: rgba(29,24,19,.12); }
html[data-theme="light"] .chip:hover { background: rgba(255,255,255,.9); }
html[data-theme="light"] .chip[aria-expanded="true"] { background: var(--ink); color: var(--bg); }
html[data-theme="light"] .notice-wrap { background: rgba(60,40,20,.25); }
html[data-theme="light"] .notice { background: rgba(252, 249, 243, .88); box-shadow: inset 0 1px 0 #fff, 0 40px 80px -30px rgba(60,40,20,.4); }
html[data-theme="light"] .toast { background: rgba(252, 249, 243, .92); box-shadow: 0 10px 30px -10px rgba(60,40,20,.3); }
html[data-theme="light"] .card .art, html[data-theme="light"] .album-head img { box-shadow: 0 18px 40px -18px rgba(60,40,20,.55); }
html[data-theme="light"] .sheet-cover { box-shadow: 0 30px 60px -24px rgba(60,40,20,.55); }

/* Theme picker */
.seg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 999px; background: var(--hover); }
.seg button { min-height: 38px; padding: 0 .9rem; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font-weight: 600; font-size: .88rem; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--glass-strong); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.theme-btn { margin-top: .25rem; }
.theme-btn .lbl { font-size: .9rem; }

/* ---------- Preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .panel, .player, .tabbar, .glass, .sheet, .notice, .toast, main { background: var(--bg) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .player::after, .tabbar::after, .sheet::after, .notice::after, .panel::after, .glass::after { background: var(--glass-edge); }
  body::before, .sheet-glow { opacity: .2; }
}
@media (prefers-contrast: more) {
  :root { --ink-2: #f4efe6; --ink-3: #d9d2c6; --glass-edge: rgba(255,255,255,.55); }
}

/* Account (About) */
.account-box p { margin: .35rem 0 .9rem; color: var(--ink-2); }
.tier-chip { display: inline-flex; margin-left: .35rem; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--hover, rgba(255,255,255,.08)); color: var(--ink); vertical-align: 1px; }
.tier-chip.fan { background: var(--accent); color: var(--accent-ink, #1a1209); }
.early { color: var(--accent); }
