/* JMEL Music — Apple-style dark. Neutrals + one chosen accent;
   album artwork is the only other colour. */
:root {
  --bg: #07090d;
  --s1: #121317;          /* sidebar, bars */
  --s2: #1c1c1e;          /* cards, menus */
  --s3: #2c2c2e;          /* tonal buttons, hover */
  --s4: #3a3a3c;
  --line: #26272b;
  --line-2: #38383a;
  --text: #f5f5f7;
  --text-2: #98989d;
  --text-3: #8a8a90;
  --accent: #c7c7cc;
  --accent-2: #dddde3;    /* accent as text on dark (AA) */
  --accent-rgb: 199 199 204;
  --accent-ink: #07090d;
  --danger: #ff453a;
  --shadow: 0 12px 40px rgba(0, 0, 0, .5);
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --side-w: 248px;
  --bar-h: 88px;
  --tab-h: 56px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-d: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: dark;
}


* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.4 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg.i { width: 22px; height: 22px; flex: none; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgb(var(--accent-rgb) / .4); }
.tnum { font-variant-numeric: tabular-nums; }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.muted { color: var(--text-2); }

/* ───────────── Shell ───────────── */
.app {
  height: 100dvh;
  display: grid;
  grid-template-columns: var(--side-w) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) var(--bar-h);
}
.app.signed-out { display: block; }

.side {
  grid-row: 1; grid-column: 1;
  display: flex; flex-direction: column;
  padding: 20px 12px 12px;
  background: var(--s1);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 12px 22px; font: 650 17px/1 var(--font-d); letter-spacing: -.01em; }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; overflow: hidden; background: #090b10; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand small { display: block; font: 500 12px/1.2 var(--font); color: var(--text-2); margin-top: 3px; letter-spacing: 0; }

.nav-item {
  display: flex; align-items: center; gap: 13px;
  height: 40px; padding: 0 12px; margin: 1px 0; border-radius: 9px;
  color: var(--text); font-weight: 500; font-size: 15px;
}
.nav-item svg { color: var(--accent-2); width: 21px; height: 21px; }
.nav-item:hover { background: rgba(255,255,255,.05); }
.nav-item.on { background: var(--s3); }
.nav-sep { height: 1px; background: var(--line); margin: 12px 12px; }
.nav-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 4px 12px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.nav-head .icon-btn { width: 30px; height: 30px; color: var(--accent-2); }
.nav-pl { height: 36px; font-size: 14.5px; color: var(--text); }
.nav-pl.muted { color: var(--text-2); }
.side-foot { margin-top: auto; padding-top: 12px; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 6px 4px 6px 12px; border-radius: 9px; font-size: 14px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--s4); display: grid; place-items: center; font-weight: 650; font-size: 13px; flex: none; }
.side-user .grow { flex: 1; min-width: 0; }

.main {
  grid-row: 1; grid-column: 2;
  overflow-y: auto; overflow-x: hidden;
  position: relative;
  overscroll-behavior: contain;
}
.main::-webkit-scrollbar { width: 12px; }
.main::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 12px; border: 3px solid transparent; background-clip: padding-box; }
.page { padding: 0 40px 56px; min-height: calc(100% - 44px); position: relative; }
/* which version this is (stamped at deploy) */
.build-foot { padding: 12px 40px 22px; text-align: center; font-size: 12px; color: var(--text-3); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.build-link { color: inherit; padding: 6px 10px; border-radius: 8px; transition: color .2s var(--ease), background-color .2s var(--ease); }
.build-link:hover, .build-link:focus-visible { color: var(--text); background: var(--s2); }
#wnBody { max-width: 760px; }
.wn-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.wn-card { padding: 16px 18px; border-radius: var(--r-l); background: linear-gradient(145deg, #ffffff08, transparent 65%), var(--s2); border: 1px solid var(--line); }
.wn-card-t { font: 650 16px/1.25 var(--font-d); letter-spacing: -.01em; margin-bottom: 6px; }
.wn-card p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.45; }
.wn-release { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.wn-rel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wn-rel-head h2 { font: 700 26px/1.15 var(--font-d); letter-spacing: -.02em; margin: 0; }
.wn-rel-t { margin-left: 10px; font: 600 15px var(--font); color: var(--accent-2); letter-spacing: 0; }
.wn-date { color: var(--text-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.wn-intro { color: var(--text-2); font-size: 15px; margin: 8px 0 4px; }
.wn-group h3 { font: 600 13px var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 22px 0 8px; }
.wn-group ul { margin: 0; padding-left: 20px; }
.wn-group li { color: var(--text); font-size: 15px; line-height: 1.5; margin: 4px 0; }
.wn-group li::marker { color: var(--text-3); }
.wn-all { margin-top: 44px; }
.wn-all .section-head { align-items: baseline; }
.wn-count { color: var(--text-3); font-size: 14px; font-variant-numeric: tabular-nums; }
.wn-day { margin-top: 24px; content-visibility: auto; contain-intrinsic-size: auto 260px; }
.wn-day h3 { font: 600 13px var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin: 0 0 6px; }
.wn-ver { border-top: 1px solid var(--line); }
.wn-ver > summary { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; min-height: 44px; box-sizing: border-box; padding: 11px 2px; cursor: pointer; list-style: none; }
.wn-ver > summary::-webkit-details-marker { display: none; }
.wn-ver > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.wn-v { font: 600 13px var(--font); font-variant-numeric: tabular-nums; color: var(--text-2); }
.wn-t { font-size: 15px; line-height: 1.35; color: var(--text); overflow-wrap: anywhere; }
.wn-ver.quiet .wn-t, .wn-ver.quiet .wn-v { color: var(--text-3); }
.wn-ver.major .wn-v, .wn-ver.major .wn-t { color: var(--accent-2); font-weight: 650; }
.wn-here { font-size: 12px; color: var(--accent-2); white-space: nowrap; }
.wn-detail { padding: 0 2px 14px 72px; color: var(--text-2); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.wn-detail p { margin: 0 0 8px; }
.wn-detail ul { margin: 0 0 10px; padding-left: 18px; }
.wn-detail li { margin: 3px 0; }
.wn-detail li.deep { margin-left: 16px; }
.wn-detail li::marker { color: var(--text-3); }
.wn-detail h4 { font: 600 14px/1.3 var(--font); color: var(--text); margin: 12px 0 4px; }
.wn-detail .wn-files { color: var(--text-3); font-size: 12px; margin: 10px 0 0; }
.wn-quiet { color: var(--text-3); font-size: 14px; }
@media (max-width: 760px) { .wn-detail { padding-left: 2px; } }
/* backwards, not both: a held final frame isolates the page from every backdrop blur inside it */
.page-enter { animation: page-in .28s var(--ease) backwards; }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 12px;
  height: 68px; margin: 0 -40px; padding: 0 40px;
  transition: background .2s, box-shadow .2s;
}
.topbar.stuck { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.topbar .title-sm { font: 600 17px/1 var(--font-d); opacity: 0; transition: opacity .2s; }
.topbar.stuck .title-sm { opacity: 1; }
.topbar .grow { flex: 1; min-width: 0; }
.topbar .icon-btn { color: var(--accent-2); }
.topbar .avatar { color: var(--text); }

.search-field {
  display: flex; align-items: center; gap: 9px;
  height: 40px; width: min(400px, 100%); padding: 0 12px;
  border-radius: 10px; background: var(--s2);
  color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line);
}
.search-field:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent); }
.search-field svg { width: 19px; height: 19px; }
.search-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 15px; color: var(--text); }
.search-field input::placeholder { color: var(--text-2); }
.search-field kbd { font: 600 11.5px var(--font); color: var(--text-2); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; }

h1.page-title { font: 700 34px/1.1 var(--font-d); letter-spacing: -.022em; margin: 4px 0 4px; }
.page-sub { color: var(--text-2); font-size: 15px; margin: 0 0 26px; }
.section { margin-top: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.section-head h2 { font: 650 22px/1.2 var(--font-d); letter-spacing: -.015em; margin: 0; }
.section-head .link { color: var(--accent-2); font-size: 15px; font-weight: 500; }
.section-head .link:hover { text-decoration: underline; }
.section-head .note { color: var(--text-2); font-size: 14px; }

/* ───────────── Buttons ─────────────
   One system everywhere. Primary: the accent, solid, with a soft glow and a
   hairline of light on top. Secondary: translucent white, white content (the
   accent is kept for what matters most). Text buttons are pills; every button
   presses in with the same small spring. */
:root { --btn-tonal: rgba(255, 255, 255, .09); --btn-tonal-h: rgba(255, 255, 255, .14); --btn-hair: inset 0 0 0 .5px rgba(255, 255, 255, .09);
  --btn-lift: inset 0 1px 0 rgba(255, 255, 255, .2), 0 8px 22px -10px rgb(var(--accent-rgb) / .75); --spring: cubic-bezier(.3, 1.4, .5, 1); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; min-width: 116px; padding: 0 22px; border-radius: 20px;
  font-weight: 590; font-size: 14.5px; letter-spacing: -.008em;
  transition: transform .18s var(--spring), background .18s, box-shadow .18s, filter .18s;
}
@media (max-width: 760px) { .btn { height: 44px; border-radius: 22px; font-size: 15px; } }
.btn:active { transform: scale(.96); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--btn-lift); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-tonal { background: var(--btn-tonal); color: var(--text); box-shadow: var(--btn-hair); }
.btn-tonal:hover { background: var(--btn-tonal-h); }
.btn-tonal svg { color: var(--text); }
.btn-quiet { color: var(--accent-2); min-width: 0; padding: 0 14px; }
.btn-quiet:hover { background: rgba(255,255,255,.05); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.icon-btn {
  position: relative;
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-grid; place-items: center; flex: none;
  color: var(--text-2); transition: color .15s, background .15s, transform .12s;
}
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,.07); }
.icon-btn:active { transform: scale(.9); }
.icon-btn, .deck-btn, .newbar-play, .card-play, .chip { transition: color .15s, background .18s, box-shadow .18s, opacity .2s, transform .18s var(--spring); }
:is(.btn, .icon-btn, .deck-btn, .newbar-play, .card-play, .chip, .ag):focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
/* Play/pause: the two glyphs morph (turn, scale, fade) on a spring; a soft
   bubble swells under the finger. */
.pp { position: relative; isolation: isolate; }
.pp .pp-i { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .2s ease, transform .42s var(--spring); }
.pp .pp-pause, .pp.is-on .pp-play { opacity: 0; transform: scale(.35) rotate(-90deg); }
.pp.is-on .pp-pause { opacity: 1; transform: none; }
.pp::before { content: ""; position: absolute; inset: -4px; z-index: -1; border-radius: 50%; background: rgba(255, 255, 255, .14); opacity: 0; transform: scale(.4);
  transition: opacity .3s ease, transform .45s var(--spring); }
.pp:active::before { opacity: 1; transform: scale(1); transition-duration: .12s, .2s; }
.pp:active { transform: scale(.88); }
/* every list row and card presses in a touch */
.t-row, .card, .cat-row, .deck-card { transition: background .18s, transform .22s var(--spring); }
.t-row:active, .cat-row:active { transform: scale(.992); }
.card:active { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) { .pp .pp-i, .pp::before { transition: none; } .t-row:active, .cat-row:active, .card:active, .pp:active { transform: none; } }
.icon-btn.on { color: var(--accent-2); }
.icon-btn.liked { color: var(--accent-2); }

/* ───────────── Artwork ───────────── */
.art {
  position: relative; aspect-ratio: 1; width: 100%;
  border-radius: var(--r-s); overflow: hidden;
  background: linear-gradient(145deg, #ffffff08, transparent 65%), var(--s2);
}
.art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.1); pointer-events: none; }
.art img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .3s; }
.art img.ok { opacity: 1; }
img.now { transition: none !important; } /* already loaded: no fade on a redraw */
.art.ph { display: grid; place-items: center; background: linear-gradient(160deg, #3a3a3c, #232325); }
.art.ph svg { width: 38%; height: 38%; color: #8e8e93; }
.art.round { border-radius: 50%; }
.art.round.ph span { font: 600 clamp(16px, 36%, 72px)/1 var(--font-d); color: #c7c7cc; }
.art.round.ph img { position: absolute; inset: 0; }

/* ───────────── Home hero (neutral card) ───────────── */
.hero {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); grid-template-rows: 1fr auto;
  grid-template-areas: "art meta" "art btns"; column-gap: 32px;
  padding: 24px; margin-top: 8px;
  border-radius: var(--r-l); background: var(--s2);
}
.hero > .art-hit { grid-area: art; cursor: pointer; align-self: center; }
.hero .hero-meta { grid-area: meta; align-self: end; }
.hero > .btn-row { grid-area: btns; align-self: start; margin-top: 4px; }
.eyebrow .q { margin-left: 2px; }
.hero .art { border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.hero-meta { min-width: 0; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hero h2 { font: 700 36px/1.08 var(--font-d); letter-spacing: -.025em; margin: 10px 0 6px; overflow-wrap: anywhere; }
.hero p { margin: 0 0 20px; color: var(--text-2); font-size: 16px; }
.hero p a { color: var(--accent-2); }

/* ───────────── Shelves + cards ───────────── */
.shelf-wrap { position: relative; margin: 0 -40px; }
.shelf {
  display: grid; grid-auto-flow: column; grid-auto-columns: 180px; gap: 20px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  padding: 2px 40px 8px; scroll-padding: 0 40px; scrollbar-width: none;
}
.shelf::-webkit-scrollbar { display: none; }
.shelf > * { scroll-snap-align: start; }
.shelf-nav { position: absolute; top: 70px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  background: var(--s3); color: var(--text); display: grid; place-items: center; box-shadow: var(--shadow);
  opacity: 0; transition: opacity .2s; }
.shelf-nav.l { left: 18px; } .shelf-nav.r { right: 18px; }
.shelf-wrap:hover .shelf-nav:not([hidden]) { opacity: 1; }
.shelf-nav[hidden] { display: none; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 28px 20px; }

.card { display: block; min-width: 0; cursor: pointer; border-radius: 10px; }
.card .art { transition: filter .2s; }
.card:hover .art { filter: brightness(.82); }
.card-play {
  position: absolute; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: var(--btn-lift), 0 6px 16px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(8px);
}
.card-play svg { width: 20px; height: 20px; margin-left: 2px; }
.card:hover .card-play, .card:focus-within .card-play { opacity: 1; transform: none; }
.card-play:active { transform: scale(.92); }
.card-t { margin-top: 9px; font-weight: 550; font-size: 14.5px; line-height: 1.35; letter-spacing: -.01em; }
.card-s { margin-top: 1px; color: var(--text-2); font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.card.artist { text-align: center; }
.card.artist .card-s { justify-content: center; }

/* Quality marks — gray, like Apple's Lossless badge. */
.q { display: inline-flex; align-items: center; gap: 3px; height: 18px; padding: 0 6px; border-radius: 4px;
  font: 600 10.5px/1 var(--font); letter-spacing: .02em; white-space: nowrap;
  color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.q svg { width: 11px; height: 11px; }
.q.hr { color: var(--text); box-shadow: inset 0 0 0 1px #5a5a5e; }
.q.lossy { box-shadow: none; padding: 0; color: var(--text-3); font-weight: 500; }

/* ───────────── Track list ───────────── */
.tracks { --track-row-height: 58px; --cols: 44px minmax(0, 1.4fr) minmax(0, 1fr) 112px 92px 36px 56px 36px; }
.t-window { height: calc(var(--track-count) * var(--track-row-height)); position: relative; overflow-anchor: none; }
.t-window-rows { position: absolute; top: 0; left: 0; right: 0; transform: translateY(calc(var(--track-start) * var(--track-row-height))); }
.t-window-rows > .t-row { height: var(--track-row-height); }
.t-window-rows > .t-row:last-child:not([data-last])::after { display: block; }
.tracks.no-album { --cols: 44px minmax(0, 1fr) 92px 36px 56px 36px; }
.t-head, .t-row { display: grid; grid-template-columns: var(--cols); align-items: center; column-gap: 14px; }
.t-head {
  height: 36px; padding: 0 10px;
  color: var(--text-2); font-size: 12.5px; font-weight: 500;
  position: sticky; top: 68px; z-index: 3; background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.t-head button { text-align: left; color: inherit; font-weight: inherit; }
.t-head button.on { color: var(--text); }
.t-head .r { text-align: right; justify-self: end; }
.t-row {
  height: 58px; padding: 0 10px; border-radius: var(--r-m); cursor: default; position: relative;
  content-visibility: auto; contain-intrinsic-size: auto 58px;
}
.t-row::after { content: ""; position: absolute; left: 68px; right: 10px; bottom: 0; height: 1px; background: var(--line); }
.tracks.numbered .t-row::after { left: 58px; }
.t-row:last-child::after { display: none; }
.t-row:hover { background: var(--fill-1); }
.t-row:hover::after { opacity: 0; }
.t-num { color: var(--text-2); text-align: center; font-size: 14.5px; position: relative; height: 40px; display: grid; place-items: center; }
.t-num .pb { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; color: var(--text); }
.t-num .pb svg { width: 18px; height: 18px; }
.t-num .pb .pb-pause { display: none; }
body:not(.paused) .t-row.playing .pb .pb-play { display: none; }
body:not(.paused) .t-row.playing .pb .pb-pause { display: block; }
.t-row { cursor: pointer; }
.player, .mini { cursor: pointer; }
.player button, .player a, .player .bar, .mini button { cursor: pointer; }
.t-row:hover .t-num .n { opacity: 0; }
.t-row:hover .t-num .pb { opacity: 1; }
.t-row:hover .t-num .eq { opacity: 0; }
.t-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.t-main .art { width: 42px; flex: none; border-radius: 5px; }
.t-title { font-size: 15px; font-weight: 500; color: var(--text); }
.t-sub { font-size: 13.5px; color: var(--text-2); margin-top: 1px; }
.t-sub a:hover, .t-alb a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.t-alb, .t-date { color: var(--text-2); font-size: 14px; }
.t-dur { color: var(--text-2); text-align: right; font-size: 14px; }
.t-row .icon-btn { width: 34px; height: 34px; }
.t-row .icon-btn svg { width: 20px; height: 20px; }
.t-row .t-like, .t-row .t-more { opacity: 0; }
.t-row:hover .t-like, .t-row:hover .t-more, .t-row .t-like.liked { opacity: 1; }
.t-row .t-more { color: var(--accent-2); }
.t-row.playing .t-num .n { opacity: 0; }

/* Playlist editing: the handle owns the drag; the rest of the list scrolls normally. */
.pl-order-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.pl-order-copy h2 { margin: 0; font: 650 21px/1.25 var(--font-d); letter-spacing: -.025em; }
.pl-order-copy small { display: block; margin-top: 3px; color: var(--text-2); font-size: 13px; }
.pl-order-tools .btn { height: 40px; padding: 0 15px; font-size: 13px; }
.pl-order-tools .btn:disabled { opacity: .4; box-shadow: none; cursor: default; }
.pl-order-tools.editing { position: sticky; top: 0; z-index: 4; padding: 12px 0; background: var(--glass-bar); -webkit-backdrop-filter: var(--glass-fx); backdrop-filter: var(--glass-fx); border-bottom: 1px solid var(--line); }
.pl-order-actions { display: flex; gap: 8px; }
.pl-order-message { flex-basis: 100%; font-size: 13px; line-height: 1.5; color: var(--text-2); }
.pl-order-message .link { color: var(--accent-2); }
.pl-order-list { position: relative; }
.pl-order-row { display: grid; grid-template-columns: 28px minmax(0, 1.4fr) minmax(0, 1fr) 56px 44px; align-items: center; gap: 14px; height: 58px; padding: 0 10px; border-radius: 9px; border-bottom: 1px solid var(--line); background: var(--bg); }
.pl-order-n, .pl-order-album, .pl-order-duration { color: var(--text-2); font-size: 13px; }
.pl-order-n { text-align: center; }
.pl-order-duration { text-align: right; }
.pl-order-handle { width: 44px; height: 44px; display: grid; place-items: center; color: var(--text-2); cursor: grab; touch-action: none; border-radius: 9px; }
.pl-order-handle:hover, .pl-order-handle:focus-visible { color: var(--text); background: var(--s2); }
.pl-order-handle .i { width: 20px; height: 20px; }
.pl-order-handle:disabled { opacity: .4; cursor: default; }
.pl-order-row.lifting { opacity: .2; background: var(--s3); }
.pl-order-row.pl-order-ghost { position: fixed; z-index: 85; pointer-events: none; background: var(--s3); border-color: var(--line-2); box-shadow: 0 12px 32px #0008, inset 0 0 0 1px var(--line-2); }
.pl-order-dragging, .pl-order-dragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
@media (max-width: 760px) {
  .pl-order-tools.editing { top: var(--safe-t); }
  .pl-order-copy h2 { font-size: 19px; }
  .pl-order-copy small { font-size: 12px; }
  .pl-order-tools.editing .pl-order-copy { flex-basis: 100%; }
  .pl-order-actions { margin-left: auto; }
  .pl-order-tools .btn { min-height: 42px; }
  .pl-order-row { grid-template-columns: 22px minmax(0, 1fr) 44px; gap: 8px; height: 64px; padding: 0; }
  .pl-order-album, .pl-order-duration { display: none; }
}

.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; background: var(--accent-2); border-radius: 1px; height: 100%; transform-origin: 50% 100%; transform: scaleY(.3); animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.35s; } .eq i:nth-child(3) { animation-delay: -.7s; } .eq i:nth-child(4) { animation-delay: -.2s; }
.paused .eq i { animation-play-state: paused; }
@keyframes eq { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }
.eq-live .eq i { animation: none; height: 100%; transform-origin: 50% 100%; transform: scaleY(var(--eq0, .3)); }
.eq-live .eq i:nth-child(2) { transform: scaleY(var(--eq1, .3)); }
.eq-live .eq i:nth-child(3) { transform: scaleY(var(--eq2, .3)); }
.eq-live .eq i:nth-child(4) { transform: scaleY(var(--eq3, .3)); }
.t-row .eq { position: absolute; }

.list-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 20px; }
.chip { height: 34px; padding: 0 14px; border-radius: 17px; background: var(--fill-2); color: var(--text);
  font-weight: 500; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { background: var(--fill-3); }
.chip.on { background: var(--text); color: #000; box-shadow: none; }
.filter-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; }
.chip-x { display: inline-grid; place-items: center; margin-left: 6px; margin-right: -6px; width: 20px; height: 20px; border-radius: 50%; color: inherit; }
.chip-x svg { width: 12px; height: 12px; }
.sort-chips { display: none; }

/* ───────────── Collection header (album / artist / playlist) ───────────── */
.coll { display: flex; align-items: flex-end; gap: 30px; padding: 8px 0 26px; }
.coll > .art, .coll > .art-hit { width: 232px; flex: none; }
.coll .art { border-radius: 10px; box-shadow: 0 14px 40px rgba(0,0,0,.5); }
.coll.artist .art { border-radius: 50%; }
.coll-meta { min-width: 0; padding-bottom: 6px; }
.coll h1 { font: 700 clamp(30px, 4vw, 44px)/1.08 var(--font-d); letter-spacing: -.025em; margin: 6px 0 6px; overflow-wrap: anywhere; }
.coll-artist { font-size: 22px; font-weight: 500; color: var(--accent-2); display: inline-block; margin-bottom: 8px; }
a.coll-artist:hover { text-decoration: underline; }
.coll-line { color: var(--text-2); font-size: 14.5px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.coll-actions { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.coll-actions .icon-btn { width: 44px; height: 44px; background: var(--btn-tonal); color: var(--text); box-shadow: var(--btn-hair); }
.coll-actions .icon-btn:hover { background: var(--btn-tonal-h); }
.fav-art { display: grid; place-items: center; background: linear-gradient(160deg, #3a3a3c, #232325); }
.fav-art svg { width: 40%; height: 40%; color: var(--accent-2); }

/* ───────────── Player bar (desktop) ───────────── */
.player {
  grid-column: 1 / -1; grid-row: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 620px) minmax(0, 1fr); align-items: center; gap: 20px;
  padding: 0 20px; border-top: 1px solid var(--line); background: var(--s1);
  position: relative; z-index: 20;
}
.p-now { display: flex; align-items: center; gap: 13px; min-width: 0; }
.p-now .art-hit { width: 56px; flex: none; cursor: pointer; }
.p-now .art { border-radius: 6px; }
.p-now .meta { min-width: 0; }
.p-now .t { font-weight: 500; font-size: 15px; cursor: pointer; }
.p-now .a { color: var(--text-2); font-size: 13.5px; margin-top: 1px; }
.p-now .a a:hover { color: var(--text); text-decoration: underline; }
.p-mid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.p-ctrls { display: flex; align-items: center; gap: 16px; }
.p-ctrls .icon-btn { color: var(--text); }
.p-ctrls .mode { color: var(--text-2); }
.p-ctrls .mode.on { color: var(--accent-2); }
.p-ctrls .pp { width: 44px; height: 44px; }
.p-ctrls .pp svg { width: 30px; height: 30px; }
.p-ctrls .skip svg { width: 24px; height: 24px; }
.p-ctrls .mode svg { width: 19px; height: 19px; }
.p-ctrls .jump svg { width: 22px; height: 22px; }
.np-ctrls .jump { width: 52px; height: 52px; }
.np-ctrls .jump svg { width: 30px; height: 30px; }
.np-t a:hover { text-decoration: underline; }
.np-vol { display: none; }
.p-prog { display: flex; align-items: center; gap: 10px; width: 100%; }
.p-prog .tm { font-size: 12px; color: var(--text-2); width: 42px; }
.p-prog .tm.l { text-align: right; }
.p-right { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.p-right .q-link { margin-right: 8px; }
.vol { display: flex; align-items: center; gap: 2px; }
.vol .bar { width: 100px; }
.p-empty { color: var(--text-2); font-size: 14px; }

/* Slider */
.bar { position: relative; flex: 1; height: 16px; display: flex; align-items: center; cursor: pointer; touch-action: none; }
.bar .track { position: relative; width: 100%; height: 4px; border-radius: 4px; background: var(--s4); overflow: hidden; transition: height .15s; }
.bar .buf { position: absolute; inset: 0 auto 0 0; background: rgba(255,255,255,.1); width: 0; }
.bar .fill { position: absolute; inset: 0 auto 0 0; background: #c7c7cc; width: 0; }
.bar .knob { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); left: 0; opacity: 0; transition: opacity .15s; pointer-events: none; }
.bar:hover .track, .bar.drag .track { height: 6px; }
.bar:hover .fill, .bar.drag .fill { background: #fff; }
.bar:hover .knob, .bar.drag .knob { opacity: 1; }

/* ───────────── Now playing ───────────── */
.np {
  position: fixed; inset: 0; z-index: 60; overflow: hidden; isolation: isolate;
  background: rgb(var(--np-rgb, 28 28 30));
  transform: translateY(100%); visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s linear .45s, background-color .8s;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
}
.np.open { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s, background-color .8s; }
/* Once the sheet is up (body.np-under, set after its slide), the page under it is not drawn and nothing in it moves:
   its record, lamp, glass bars and blurred buttons otherwise cost as much as the sheet itself, unseen. */
body.np-under:has(#np.open) :is(.side, .main, .player, .mini, .tabbar, .wash) { visibility: hidden; }
body.np-under:has(#np.open) :is(.main, .side) * { animation-play-state: paused !important; }
body.np-under:has(#np.open) .app::after { display: none; }
.np.dragging { transition: none; }
/* Living background: a 48 px cover scaled up (soft without any blur filter),
   three copies swirling slowly around different centres. Only transforms
   animate, so it stays smooth on phones. */
.np-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; transition: opacity 1.2s ease; }
.np-bg span { position: absolute; left: 50%; top: 50%; width: 34vmax; height: 34vmax; margin: -17vmax 0 0 -17vmax; border-radius: 50%;
  background-size: cover; background-position: center; will-change: transform; -webkit-mask: radial-gradient(closest-side, #000 55%, transparent); mask: radial-gradient(closest-side, #000 55%, transparent); }
.np-bg::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .38); }
.np-bg span:nth-child(1) { animation: sw1 46s linear infinite; }
.np-bg span:nth-child(2) { animation: sw2 63s linear infinite; opacity: .85; }
.np-bg span:nth-child(3) { animation: sw3 79s linear infinite; opacity: .7; }
@keyframes sw1 { from { transform: translate(-28%, -22%) rotate(0deg) scale(3.4); } to { transform: translate(-28%, -22%) rotate(360deg) scale(3.4); } }
@keyframes sw2 { from { transform: translate(30%, 26%) rotate(360deg) scale(2.8); } to { transform: translate(30%, 26%) rotate(0deg) scale(2.8); } }
@keyframes sw3 { from { transform: translate(12%, -34%) rotate(0deg) scale(2.2); } to { transform: translate(12%, -34%) rotate(-360deg) scale(2.2); } }
.np:not(.open) .np-bg span { animation-play-state: paused; }
.np-bg.b { opacity: 0; }
.np-bg.b.show { opacity: 1; }
.np::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .16); }
.np-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.np-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(14px + var(--safe-t)) 22px 6px; }
.np-top .ctx { text-align: center; min-width: 0; }
.np-top .ctx small { display: block; font-size: 12px; font-weight: 500; color: rgba(255,255,255,.6); }
.np-top .ctx div { font-weight: 600; font-size: 14px; margin-top: 2px; }
.np-top .ctx a:hover { text-decoration: underline; }
.np-top .icon-btn { color: #fff; background: rgba(255,255,255,.12); }
.np-top .icon-btn:hover { background: rgba(255,255,255,.2); }
.np-grip { display: none; }
.np-top-r { display: flex; gap: 8px; }
.cast-btn[hidden] { display: none; }
/* Buffering: a thin spinning ring around the play buttons */
.buffering .pp::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--accent-2); animation: spin .9s linear infinite; }
.buffering #miniPP::before { inset: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.np-body {
  display: grid; min-height: 0;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "art panel" "info panel";
  column-gap: 56px; padding: 8px 48px 36px;
}
.np-artwrap { grid-area: art; display: flex; align-items: flex-end; justify-content: center; min-height: 0; }
.np-art { width: min(100%, 50vh, 540px); transition: transform .45s var(--ease); }
.np-art .art { border-radius: 12px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.np.is-paused .np-art { transform: scale(.88); }
.np-info { grid-area: info; justify-self: center; width: min(100%, 50vh, 540px); margin-top: 28px; }
.np-titlerow { display: flex; align-items: center; gap: 12px; }
.np-titlerow .grow { flex: 1; min-width: 0; }
.np-t { font: 650 24px/1.2 var(--font-d); letter-spacing: -.015em; }
.np-a { font-size: 18px; color: rgba(255,255,255,.66); margin-top: 2px; }
.np-a a:hover { color: #fff; text-decoration: underline; }
.np-titlerow .icon-btn { width: 44px; height: 44px; color: #fff; background: rgba(255,255,255,.12); }
.np-titlerow .icon-btn svg { width: 22px; height: 22px; }
#npLike { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.np-prog { margin-top: 20px; }
.np-prog .bar .track { background: rgba(255,255,255,.22); height: 6px; }
.np-prog .bar .fill { background: rgba(255,255,255,.85); }
.np-prog .bar:hover .track, .np-prog .bar.drag .track { height: 8px; }
.np-times { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 12.5px; color: rgba(255,255,255,.58); }
.np-q { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.72); padding: 2px 8px; border-radius: 5px; background: rgba(255,255,255,.1); }
.np-q svg { width: 13px; height: 13px; }
.np-ctrls { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; padding: 0 4px; }
.np-ctrls .icon-btn { color: #fff; }
.np-ctrls .icon-btn:hover { background: rgba(255,255,255,.1); }
.np-ctrls .mode { width: 46px; height: 46px; color: rgba(255,255,255,.55); }
.np-ctrls .mode svg { width: 22px; height: 22px; }
.np-ctrls .mode.on { color: #fff; background: rgba(255,255,255,.16); }
.np-ctrls .skip { width: 66px; height: 66px; }
.np-ctrls .skip svg { width: 38px; height: 38px; }
.np-ctrls .pp { width: 78px; height: 78px; }
.np-ctrls .pp svg { width: 52px; height: 52px; }
.np-foot { display: none; }

.np-panel { grid-area: panel; display: flex; flex-direction: column; min-height: 0; background: rgba(0,0,0,.24); border-radius: 16px; overflow: hidden; }
.np-tabs { display: flex; gap: 2px; margin: 10px; padding: 2px; border-radius: 9px; background: rgba(255,255,255,.08); }
.np-tabs button { flex: 1; height: 32px; border-radius: 7px; color: rgba(255,255,255,.75); font-weight: 600; font-size: 13.5px; }
.np-tabs button.on { background: rgba(255,255,255,.2); color: #fff; }
.np-pane { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 18px; scrollbar-width: thin; }
.np-pane h3 { margin: 14px 10px 6px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.6); display: flex; justify-content: space-between; align-items: center; }
.np-pane h3 button { color: #fff; font-size: 13px; font-weight: 600; padding: 4px 8px; border-radius: 6px; }
.np-pane h3 button:hover { background: rgba(255,255,255,.1); }
.q-row { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 8px; border-radius: 8px; cursor: pointer; }
@media (hover: hover) and (pointer: fine) { .q-row:hover { background: var(--fill-1); } }
.q-row:active { background: var(--fill-2); }
.q-row .art { width: 40px; flex: none; border-radius: 5px; }
.q-row .m { flex: 1; min-width: 0; }
.q-row .t { font-weight: 500; font-size: 14.5px; }
.q-row .a { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 1px; }
.q-row .icon-btn { width: 32px; height: 32px; opacity: 0; color: rgba(255,255,255,.7); }
.q-row .icon-btn svg { width: 18px; height: 18px; }
.q-row:hover .icon-btn { opacity: 1; }
.q-row.cur { background: linear-gradient(90deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .05)); } /* the playing row, as in every list */
.q-row.cur .t { color: #fff; font-weight: 600; }
.np .eq i { background: #fff; }
.q-row.drag-over { box-shadow: inset 0 2px 0 #fff; }
.q-row.dragging { opacity: .4; }
.q-empty, .ly-empty { padding: 36px 18px; text-align: center; color: rgba(255,255,255,.6); font-size: 14.5px; line-height: 1.55; }
.ly-empty svg { width: 34px; height: 34px; margin: 0 auto 10px; opacity: .7; }

.lyrics { padding: 18px 12px 40vh; }
/* Synced lyrics, Apple Music style */
.np-pane.ly-mode { overflow: hidden; position: relative; -webkit-mask: linear-gradient(transparent, #000 9%, #000 84%, transparent); mask: linear-gradient(transparent, #000 9%, #000 84%, transparent); }
.lyrics2 { padding: 0 14px; }
/* Inactive lines use plus-lighter so they take on the background's colour
   (Apple's vibrancy); the current line is plain white. */
.lyrics2 .ly { font: 700 28px/1.2 var(--font-d); letter-spacing: -.022em; color: rgba(255, 255, 255, .4); mix-blend-mode: plus-lighter;
  margin: 0 0 28px; cursor: pointer; transform-origin: 0 50%;
  transition: transform .95s cubic-bezier(.16, 1, .3, 1), color .45s ease, filter .6s ease; will-change: transform; }
.lyrics2 .ly.on { transition: transform .95s cubic-bezier(.16, 1, .3, 1), color .12s ease-out, filter .25s ease; }
.lyrics2 .ly:hover { color: rgba(255, 255, 255, .6); }
.lyrics2 .ly.on { color: #fff; mix-blend-mode: normal; }
.lyrics2.browsing .ly { color: rgba(255, 255, 255, .62); }
.lyrics2.browsing .ly.on { color: #fff; }
.lyrics2 .ly-src { transition: transform .8s cubic-bezier(.19, .9, .24, 1); }
.ly-dots { height: 30px; display: flex; align-items: center; }
.ly-dots .dw { display: inline-flex; gap: 9px; transform-origin: 0 50%; }
.ly-dots { mix-blend-mode: normal !important; }
.ly-dots i { width: 11px; height: 11px; border-radius: 50%; background: #fff; opacity: .3; }
.ly-dots.on { opacity: 1; }
.ly-dots.on .dw { animation: breathe 2.2s ease-in-out infinite; }
.ly-dots.on i { animation: dotfill calc(var(--dur) / 3) linear both; }
.ly-dots.on i:nth-child(2) { animation-delay: calc(var(--dur) / 3); }
.ly-dots.on i:nth-child(3) { animation-delay: calc(var(--dur) * 2 / 3); }
@keyframes dotfill { from { opacity: .3; } to { opacity: 1; } }
@keyframes breathe { 50% { transform: scale(1.18); } }
.ly { font: 700 26px/1.3 var(--font-d); letter-spacing: -.012em; color: rgba(255,255,255,.3); margin: 0 0 18px; cursor: pointer; transition: color .3s; }
.ly:hover { color: rgba(255,255,255,.55); }
.ly.on { color: #fff; }
.ly.past { color: rgba(255,255,255,.42); }
.ly-src { font-size: 12.5px; color: rgba(255,255,255,.45); margin-top: 28px; }
.lyrics.unsynced .ly { color: rgba(255,255,255,.88); cursor: default; font-size: 21px; font-weight: 600; }
.lyrics .ly[dir], .lyrics2 .ly[dir] { unicode-bidi: plaintext; text-align: start; overflow-wrap: anywhere; }
.lyrics2 .ly[dir="rtl"] { transform-origin: right center; }
.lyrics-options { padding: 8px 10px 12px; min-width: 250px; max-width: 340px; }
.lyrics-status { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; color: rgba(255,255,255,.58); font-size: 12px; line-height: 1.4; }
.lyrics-status b { color: rgba(255,255,255,.92); font-weight: 600; margin-left: 3px; }
.lyrics-native-note { margin: 6px 0 0; color: rgba(255,255,255,.65); font-size: 12px; line-height: 1.4; }
.lyrics-job { flex-basis: 100%; }
.lyrics-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.lyrics-actions .btn { min-height: 44px; padding: 6px 12px; font-size: 14px; }
.lyrics-actions select { width: 100%; min-width: 0; max-width: 100%; height: 44px; padding: 0 10px; color: #fff; background: #242529; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; font: inherit; font-size: 13px; }
.modal.lyrics-editor { width: min(800px, calc(100vw - 32px)); max-height: min(860px, calc(100dvh - 40px)); padding: 22px; display: flex; flex-direction: column; overflow: hidden; gap: 10px; }
.lyrics-editor [hidden] { display: none !important; }
.ly-editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex: none; }
.ly-editor-head h3 { margin-bottom: 3px; }
.ly-editor-head p { margin: 0; font-size: 14px; color: var(--text-2); overflow-wrap: anywhere; }
.ly-editor-head .icon-btn { flex: none; width: 36px; height: 36px; font-size: 26px; }
.modal.lyrics-editor > .ly-editor-scope { margin: 0; font-size: 12px; color: var(--text-3); }
.ly-editor-tabs { display: flex; flex: none; padding: 3px; border-radius: 11px; background: var(--s3); }
.ly-editor-tabs button { flex: 1; padding: 9px; border-radius: 8px; color: var(--text-2); font-weight: 600; }
.ly-editor-tabs button[aria-pressed="true"] { background: var(--s2); color: var(--text); box-shadow: 0 1px 4px #0004; }
.ly-editor-words, .ly-editor-timing { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.ly-editor-words { display: flex; flex-direction: column; gap: 8px; }
.ly-editor-words label { font-size: 13px; font-weight: 600; }
.ly-editor-words textarea { width: 100%; min-height: 220px; height: 38dvh; flex: 1 0 160px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--s2); color: var(--text); font: 16px/1.65 var(--font); unicode-bidi: plaintext; text-align: start; }
.ly-editor-files { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 0 4px; }
.ly-editor-files .btn { min-width: 0; min-height: 38px; padding: 7px 12px; }
.ly-editor-count { margin-left: auto; color: var(--text-3); font-size: 12px; }
.ly-editor-transport { position: sticky; top: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-bottom: 9px; background: var(--s1); z-index: 1; }
.ly-editor-transport output { color: var(--text-2); font: 13px/1.4 ui-monospace, monospace; font-variant-numeric: tabular-nums; margin-right: auto; }
.ly-editor-transport .btn { min-width: 0; padding: 8px 12px; }
.ly-editor-shift { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--text-2); }
.ly-editor-shift button:not(.link) { min-width: 32px; min-height: 34px; border-radius: 8px; padding: 6px; background: var(--s3); color: var(--text); }
.ly-editor-shift b { min-width: 45px; text-align: center; font-variant-numeric: tabular-nums; }
.ly-editor-shift .link { margin-left: auto; font-size: 12px; padding: 8px 0; }
.ly-editor-timing-note { color: var(--text-3); font-size: 12px; line-height: 1.45; margin: 10px 0; }
.ly-editor-line { display: grid; grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 8px; padding: 10px 8px; border-radius: 10px; border: 1px solid transparent; }
.ly-editor-line.selected { background: var(--s2); border-color: var(--line); }
.ly-editor-number { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.ly-editor-line-words { line-height: 1.55; font-size: 15px; overflow-wrap: anywhere; unicode-bidi: plaintext; text-align: start; }
.ly-editor-line-controls { display: flex; gap: 5px; align-items: center; }
.ly-editor-line-controls input { width: 100px; height: 38px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--s3); color: var(--text); font: 13px ui-monospace,monospace; text-align: center; }
.ly-editor-line-controls button { width: 38px; min-height: 38px; border-radius: 8px; background: var(--s3); color: var(--text); font-size: 12px; }
.ly-editor-line-controls button:disabled { opacity: .35; }
.ly-editor-pages { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0 2px; font-size: 12px; color: var(--text-3); }
.ly-editor-pages .btn { min-width: 0; padding: 8px 12px; min-height: 36px; }
.ly-editor-footer { flex: none; display: flex; flex-wrap: wrap; gap: 7px; padding-top: 10px; border-top: 1px solid var(--line); }
.modal.lyrics-editor .ly-editor-footer .btn { min-width: 0; min-height: 40px; padding: 9px 12px; font-size: 13px; }
.ly-editor-error { padding: 10px 12px; border-radius: 9px; background: var(--s3); color: var(--text); font-size: 13px; line-height: 1.5; flex: none; max-height: 100px; overflow-y: auto; }
.ly-editor-conflict { flex: none; max-height: 24dvh; overflow-y: auto; border: 1px solid var(--line); padding: 10px; border-radius: 10px; }
.ly-editor-compare { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; }
.ly-editor-compare > b, .ly-editor-compare details { flex-basis: 100%; }
.ly-editor-compare pre { font: 14px/1.6 var(--font); white-space: pre-wrap; unicode-bidi: plaintext; text-align: start; }
@media (max-width: 760px) {
  .modal.lyrics-editor { width: 100%; max-height: 94dvh; padding: 18px 14px calc(14px + var(--safe-b)); gap: 9px; }
  .ly-editor-line { grid-template-columns: 22px minmax(0,1fr); padding: 9px 5px; }
  .ly-editor-line-controls { grid-column: 2; }
  .ly-editor-line-controls input { flex: 1; max-width: 150px; }
  .ly-editor-footer .grow { display: none; }
  .modal.lyrics-editor .ly-editor-footer .btn { flex: 1 1 auto; }
  .lyrics-actions .btn, .lyrics-actions select { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .lyrics-editor, .ly-editor-line { animation: none !important; transition: none !important; } }

.details { padding: 4px 6px; }
.kv { display: grid; grid-template-columns: 112px minmax(0, 1fr); font-size: 14px; margin: 0; }
.kv dt { color: rgba(255,255,255,.55); padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.kv dd { margin: 0; padding: 9px 0; color: #fff; overflow-wrap: anywhere; border-bottom: 1px solid rgba(255,255,255,.08); }
.path { font: 12.5px/1.45 ui-monospace, "SF Mono", Menlo, monospace; color: rgba(255,255,255,.82); }
.signal { margin: 8px 0 14px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.08); }
.signal .row { display: flex; align-items: baseline; gap: 10px; font-size: 14px; line-height: 1.4; }
.signal .row + .row { margin-top: 9px; }
.signal .k { flex: none; width: 58px; color: rgba(255,255,255,.55); }
.signal b { font-weight: 600; }

/* ───────────── Menus, sheets, modals, toasts ───────────── */
.scrim { position: fixed; inset: 0; z-index: 80; background: transparent; }
.scrim.dim { background: rgba(0,0,0,.5); animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.menu {
  position: fixed; z-index: 81; min-width: 248px; max-width: 320px; max-height: calc(100dvh - 24px); overflow-y: auto; padding: 6px;
  background: var(--s2); border-radius: 12px; box-shadow: 0 16px 50px rgba(0,0,0,.6), inset 0 0 0 1px var(--line-2);
  animation: pop .14s var(--ease) both; transform-origin: var(--origin, top right);
}
@keyframes pop { from { opacity: 0; transform: scale(.97); } }
.menu-h { display: flex; align-items: center; gap: 12px; padding: 8px 10px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.menu-h .art { width: 42px; flex: none; border-radius: 5px; }
.menu-h .t { font-weight: 600; font-size: 14.5px; }
.menu-h .a { color: var(--text-2); font-size: 13px; }
.menu button { display: flex; align-items: center; gap: 12px; width: 100%; height: 40px; padding: 0 10px; border-radius: 7px; text-align: left; font-size: 14.5px; color: var(--text); }
.menu button:hover { background: var(--s3); }
.menu button svg { width: 19px; height: 19px; color: var(--text-2); }
.menu .sep { height: 1px; background: var(--line-2); margin: 6px 4px; }
.menu .danger, .menu .danger svg { color: var(--danger); }
.menu .sub-h { padding: 8px 10px 4px; color: var(--text-2); font-size: 12.5px; font-weight: 600; }

.modal { position: fixed; z-index: 81; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(440px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px); overflow-y: auto; background: var(--s2); border-radius: 16px; padding: 24px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line-2); animation: pop .18s var(--ease) both; }
.modal h3 { margin: 0 0 6px; font: 650 20px/1.25 var(--font-d); }
.modal > p { margin: 0 0 18px; color: var(--text-2); }
.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 6px; }
.field input { width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; border: 0; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--bg); outline: none; font-size: 16px; }
.field input:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }
.modal .btn-row { justify-content: flex-end; margin-top: 10px; }
.modal .btn { min-width: 96px; }
.modal .details { padding: 0; }
.home-edit-button { flex: none; min-height: 44px; gap: 7px; padding: 0 13px; }
.topbar .home-edit-button { min-width: 0; }
.home-editor { width: min(560px, calc(100vw - 32px)); animation-name: home-editor-pop; }
@keyframes home-editor-pop { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } }
.home-edit-list { max-height: min(52dvh, 480px); overflow-y: auto; overscroll-behavior: contain; }
.home-edit-row { display: flex; align-items: center; gap: 8px; min-height: 70px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.home-edit-choice { display: flex; flex: 1; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; }
.home-edit-choice > span { min-width: 0; }
.home-edit-choice b { display: block; font-size: 14px; font-weight: 600; }
.home-edit-choice small { display: block; margin-top: 3px; color: var(--text-2); font-size: 12px; line-height: 1.4; }
.home-edit-moves { display: flex; flex: none; }
.home-edit-moves .icon-btn { width: 44px; height: 44px; }
.home-edit-moves .icon-btn:disabled { opacity: .22; cursor: default; }
.home-move-up .i { transform: rotate(180deg); }
.home-edit-footer { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.home-edit-footer .grow { flex: 1; }
.home-edit-footer .btn { min-width: 0; min-height: 44px; padding: 0 14px; }
.home-save-status { color: var(--text-2); font-size: 12px; margin: -12px 0 18px; }
.modal .kv dt { color: var(--text-2); border-color: var(--line-2); }
.modal .kv dd { color: var(--text); border-color: var(--line-2); }
.modal .signal { background: var(--s3); }
.modal .signal .k { color: var(--text-2); }

/* Jam: the one-time hint by its button (points at it from below on desktop, from above on phones) */
.jam-tip { position: fixed; z-index: 70; max-width: min(280px, calc(100vw - 32px)); padding: 10px 14px; border-radius: 12px; background: var(--s3); box-shadow: var(--shadow); font-size: 13.5px; line-height: 1.4; color: var(--text-2); pointer-events: none; animation: pop .2s var(--ease) both; transform-origin: top right; }
.jam-tip b { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.jam-tip::after { content: ""; position: absolute; right: 28px; top: -5px; width: 10px; height: 10px; background: inherit; border-radius: 2px; transform: rotate(45deg); }

/* Jam lives in the playlist heading; active sessions and invitations expand below it. */
#homeJam { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; }
#homeJam:empty { display: none; }
.jh-row { --jh: #15171a; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 70px; padding: 11px 14px 11px 12px; border-radius: 16px;
  background: var(--jh); box-shadow: var(--btn-hair); text-align: left; transition: background .18s, transform .15s var(--spring); }
.jh-row[hidden] { display: none; }
.jh-start:hover, .jh-live:hover { --jh: #1c1e22; }
.jh-start:active, .jh-live:has(.jh-main:active) { transform: scale(.985); }
.jh-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; align-self: stretch; text-align: left; border-radius: 12px; }
.jh-avs { display: flex; flex: none; }
.jh-av { width: 44px; height: 44px; border-radius: 50%; font-size: 17px; box-shadow: 0 0 0 3px var(--jh); transition: box-shadow .18s; }
.jh-avs .jh-av + .jh-av { margin-left: -12px; }
.jh-plus { display: grid; place-items: center; background: var(--s3); color: var(--text); }
.jh-plus svg { width: 20px; height: 20px; }
.jh-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.jh-m b { font-weight: 650; font-size: 15.5px; letter-spacing: -.005em; }
.jh-m small { font-size: 13px; line-height: 1.35; color: var(--text-2); }
.jh-acts { display: flex; gap: 8px; flex: none; }
.jh-btn { height: 40px; padding: 0 18px; border-radius: 20px; flex: none; background: var(--btn-tonal); box-shadow: var(--btn-hair); font-weight: 600; font-size: 14px;
  transition: background .15s, transform .15s var(--spring), opacity .15s; }
.jh-btn:hover { background: var(--btn-tonal-h); }
.jh-btn:active { transform: scale(.95); }
.jh-btn:disabled { opacity: .55; cursor: default; transform: none; }
.jh-join { background: var(--text); color: #000; box-shadow: none; }
.jh-join:hover { background: #fff; }
@media (max-width: 760px) {
  .jh-row { padding: 10px 12px 10px 10px; gap: 12px; }
  .jh-main { gap: 12px; }
  .jh-btn { height: 44px; padding: 0 16px; }
  .jh-inv { flex-wrap: wrap; }
  .jh-inv .jh-acts { flex-basis: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .jh-row, .jh-btn, .jh-av { transition: none; }
  .jh-start:active, .jh-live:has(.jh-main:active), .jh-btn:active { transform: none; }
}

/* ───────────── Empty / loading ───────────── */
.empty { text-align: center; padding: 72px 20px; color: var(--text-2); max-width: 460px; margin: 0 auto; }
.empty svg { width: 44px; height: 44px; color: var(--text-3); margin: 0 auto 14px; }
.empty h3 { color: var(--text); font: 650 20px/1.2 var(--font-d); margin: 0 0 8px; }
.skel { background: linear-gradient(90deg, #15161a, #1d1e22, #15161a); background-size: 200% 100%; animation: skel 1.4s linear infinite; border-radius: var(--r-s); }
@keyframes skel { to { background-position: -200% 0; } }

/* ───────────── Search ───────────── */
.search-big { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 12px; background: var(--s2); margin: 6px 0 28px; box-shadow: inset 0 0 0 1px var(--line); max-width: 680px; }
.search-big:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent); }
.search-big svg { width: 21px; height: 21px; color: var(--text-2); }
.search-big input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; font-size: 17px; }
.search-big input::placeholder { color: var(--text-2); }
.search-big input::-webkit-search-cancel-button { filter: invert(.6); }
.top-result { display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: var(--r-l); background: var(--s2); cursor: pointer; position: relative; min-height: 228px; }
.top-result:hover { background: #222224; }
.top-result .art { width: 104px; border-radius: 8px; }
.top-result .art.round { border-radius: 50%; }
.top-result .t { font: 700 28px/1.12 var(--font-d); letter-spacing: -.02em; }
.top-result .s { color: var(--text-2); margin-top: 6px; font-size: 14.5px; display: flex; gap: 8px; align-items: center; }
.top-result .card-play { opacity: 1; left: auto; right: 20px; bottom: 20px; width: 48px; height: 48px; background: var(--accent); }
.top-result .card-play svg { width: 22px; height: 22px; }
.search-cols { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 28px; }
.mini-list .tracks { --cols: minmax(0, 1fr) 36px 52px 36px; }
.mini-list .t-head, .mini-list .t-num, .mini-list .t-q { display: none; }
.mini-list .t-row::after { left: 64px; }
button.link { font: inherit; }
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tile { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-m); background: var(--s2); cursor: pointer; }
.tile:hover { background: #242426; }
.tile .art { width: 64px; flex: none; border-radius: 6px; }
.tile b { display: block; font-weight: 600; font-size: 16px; }
.tile small { display: block; color: var(--text-2); font-size: 13.5px; margin-top: 2px; }

/* ───────────── Login ───────────── */
.login { position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; background: var(--bg); }
.login-card { width: min(380px, 100%); }
.login-card .brand { padding: 0 0 30px; flex-direction: column; text-align: center; gap: 14px; font-size: 22px; }
.login-card .brand-mark { width: 64px; height: 64px; border-radius: 16px; }

/* A quiet invitation to bring Narya onto the phone's Home Screen. */
.install-banner { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 32px; gap: 8px; align-items: center;
  margin: 10px 0 14px; padding: 5px 7px 5px 11px; border: 1px solid #f3dfb020; border-radius: 14px;
  background: radial-gradient(ellipse at 0 100%, #f3dfb00b, transparent 65%), #121419; animation: install-arrive .65s var(--ease) both; }
.install-emblem { position: relative; display: grid; place-items: center; width: 30px; height: 36px; animation: install-lift 2.6s var(--ease) 2; }
.install-emblem .brand-mark { width: 30px; height: 30px; border-radius: 9px; border: 1px solid #f3dfb024; }
.install-kicker { display: block; color: #d6c59d; font-size: 9px; line-height: 1.4; font-weight: 700; letter-spacing: .18em; }
.install-copy { min-width: 0; }
.install-copy b { display: block; font-size: 12px; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.install-copy p { margin: 2px 0 0; color: var(--text-2); font-size: 10px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.install-action { display: flex; align-items: center; justify-content: center; gap: 4px; min-width: 44px; min-height: 44px; padding: 0 4px; color: var(--accent-2); font-size: 12px; font-weight: 650; }
.install-action .i { width: 14px; height: 14px; }
.install-dismiss { width: 32px; height: 44px; color: var(--text-3); }
.install-dismiss .i { width: 15px; height: 15px; }
.install-sheet { text-align: center; }
.install-sheet-logo { display: grid; place-items: center; margin: 4px 0 22px; }
.install-sheet-logo .brand-mark { width: 76px; height: 76px; border-radius: 21px; box-shadow: 0 18px 44px #0008; }
.install-sheet h3 { margin: 12px 0; font-size: 28px; line-height: 1.1; letter-spacing: -.04em; }
.install-sheet > p { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.install-steps { display: grid; gap: 16px; padding: 0; margin: 25px 0; list-style: none; text-align: left; }
.install-steps li { display: flex; align-items: flex-start; gap: 12px; color: var(--text-2); font-size: 13px; line-height: 1.6; }
.install-steps li > span { display: grid; place-items: center; width: 27px; height: 27px; flex: none; border-radius: 50%; background: var(--s3); color: var(--text); font-weight: 650; font-size: 12px; }
.install-steps b { color: var(--text); }
.install-steps .i { display: inline-block; vertical-align: middle; width: 17px; height: 17px; }
.install-sheet > .btn { width: 100%; }
@keyframes install-arrive { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes install-lift { 0%, 100% { transform: none; } 45% { transform: translateY(-5px) rotate(-4deg); } 65% { transform: translateY(-4px) rotate(2deg); } }
@media (min-width: 761px), (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) { #homeInstall { display: none; } }
@media (prefers-reduced-motion: reduce) { .install-banner, .install-emblem { animation: none; } }
.login-card .brand small { font-size: 15px; margin-top: 6px; }
.login-card .btn { width: 100%; height: 48px; margin-top: 10px; font-size: 16px; }
.login-err { color: #ff6961; font-size: 14px; min-height: 20px; margin: 12px 0 0; text-align: center; }

/* ───────────── Responsive ───────────── */
.tabbar, .mini { display: none; }
.only-mobile { display: none !important; }

@media (max-width: 1100px) {
  .np-body { grid-template-columns: minmax(0, 1fr) minmax(320px, 370px); column-gap: 36px; padding: 8px 32px 30px; }
  .tracks { --cols: 44px minmax(0, 1.4fr) minmax(0, 1fr) 92px 36px 56px 36px; }
  .tracks .t-date, .tracks .h-date { display: none; }
}
@media (max-width: 960px) {
  :root { --side-w: 212px; }
  .player { grid-template-columns: minmax(0, 1fr) minmax(280px, 1.3fr) auto; }
  .vol { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .only-mobile { display: inline-grid !important; }
  .only-desktop { display: none !important; }
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .side, .player { display: none; }
  .main { grid-column: 1; padding-bottom: calc(var(--tab-h) + var(--safe-b) + 80px); }
  .page { padding: 0 20px 24px; }
  .build-foot { padding: 8px 20px 0; }
  .topbar { margin: 0 -20px; padding: var(--safe-t) 12px 0; height: calc(52px + var(--safe-t)); }
  .topbar .search-field { display: none; }
  h1.page-title { font-size: 34px; }
  .section { margin-top: 34px; }
  .section-head h2 { font-size: 22px; }
  .shelf-wrap { margin: 0 -20px; }
  .shelf { grid-auto-columns: 150px; gap: 14px; padding: 2px 20px 6px; scroll-padding: 0 20px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 16px; }
  .card-play { display: none; }
  .card:hover .art { filter: none; }

  .hero { grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto; grid-template-areas: "art meta" "btns btns"; column-gap: 16px; row-gap: 14px; padding: 14px; }
  .hero .hero-meta { align-self: center; }
  .hero h2 { font-size: 22px; margin: 4px 0 2px; }
  .hero p { margin: 0; font-size: 14.5px; }
  .hero .eyebrow { font-size: 12.5px; }
  .hero > .btn-row { flex-wrap: nowrap; margin: 0; gap: 10px; }
  .hero .btn { flex: 1; min-width: 0; height: 42px; }
  .section-head .note { display: none; }

  .coll { flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 4px 0 20px; }
  .coll > .art, .coll > .art-hit { width: min(68vw, 270px); }
  .coll h1 { font-size: 24px; margin: 4px 0 2px; }
  .coll .eyebrow { justify-content: center; }
  .coll-artist { font-size: 19px; margin-bottom: 4px; }
  .coll-line { justify-content: center; font-size: 13.5px; }
  .coll-actions { width: 100%; justify-content: stretch; gap: 14px; margin-top: 16px; }
  .coll-actions .btn { flex: 1; min-width: 0; height: 46px; }
  .coll-actions .icon-btn { flex: none; width: 46px; height: 46px; }

  .t-head { display: none; }
  .tracks, .tracks.no-album { --track-row-height: 64px; --cols: minmax(0, 1fr) 40px; }
  .tracks .t-num, .tracks .t-alb, .tracks .t-date, .tracks .t-q, .tracks .t-like, .tracks .t-dur { display: none; }
  .tracks.numbered { --cols: 26px minmax(0, 1fr) 40px; }
  .tracks.numbered .t-num { display: grid; }
  .t-row { height: 64px; padding: 0; border-radius: 0; contain-intrinsic-size: auto 64px; }
  .t-row::after { left: 62px; right: 0; }
  .tracks.numbered .t-row::after { left: 38px; }
  .t-row:hover { background: none; }
  .t-row:active { background: rgba(255,255,255,.06); }
  .t-row .t-more { opacity: 1; }
  .t-main .art { width: 50px; }
  .t-title { font-size: 16px; }
  .t-sub { font-size: 14px; }
  .t-row:hover .t-num .n { opacity: 1; }
  .t-row:hover .t-num .pb { opacity: 0; }
  .t-row:hover .t-num .eq { opacity: 1; }
  .sort-chips { display: flex; overflow-x: auto; flex-wrap: nowrap; margin: 0 -20px 14px; padding: 0 20px; scrollbar-width: none; }
  .sort-chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }

  .search-cols { grid-template-columns: minmax(0, 1fr); }
  .search-big { margin: 4px 0 22px; height: 44px; }
  .tile-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }

  /* Tab bar */
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
    background: var(--s1); border-top: 1px solid var(--line);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-2); font-size: 11px; font-weight: 500; }
  .tabbar a svg { width: 25px; height: 25px; }
  .tabbar a.on { color: var(--accent-2); }

  /* Mini player */
  .mini {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 8px; right: 8px; z-index: 31;
    bottom: calc(var(--tab-h) + var(--safe-b) + 8px); height: 62px; padding: 0 6px 0 8px;
    border-radius: 14px; overflow: hidden; background: var(--s3);
    box-shadow: 0 8px 28px rgba(0,0,0,.5);
    transition: transform .35s var(--ease), opacity .25s;
  }
  .mini.hide { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .mini .art-hit { width: 46px; flex: none; }
  .mini .art { border-radius: 6px; }
  .mini .meta { flex: 1; min-width: 0; }
  .mini .t { font-weight: 500; font-size: 15px; }
  .mini .a { font-size: 13.5px; color: var(--text-2); margin-top: 1px; }
  .mini .icon-btn { width: 44px; height: 44px; color: #fff; }
  .mini .icon-btn svg { width: 28px; height: 28px; }
  /* One evenly spaced group of controls; × set apart and quieter */
  .mini { gap: 10px; padding-right: 4px; }
  .mini-ctrls { display: flex; align-items: center; flex: none; }
  .mini-ctrls .icon-btn { width: 38px; height: 44px; border-radius: 10px; }
  .mini-ctrls .icon-btn svg { width: 23px; height: 23px; }
  .mini-ctrls .pp svg { width: 29px; height: 29px; }
  .mini .mini-x { width: 30px; height: 44px; color: var(--text-3); position: relative; }
  .mini .mini-x::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
  .np-ctrls .jump { width: 48px; height: 48px; }
  .np-ctrls .jump svg { width: 28px; height: 28px; }
  .mini .mini-x svg { width: 16px; height: 16px; margin-left: 4px; }
  .mini-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255,255,255,.1); }
  .mini-prog i { display: block; height: 100%; width: 0; background: #fff; }


  /* Now playing as a full-screen sheet */
  .np-top { padding: calc(10px + var(--safe-t)) 14px 0; }
  .np-grip { display: block; position: absolute; left: 50%; top: calc(6px + var(--safe-t)); width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: rgba(255,255,255,.35); }
  .np-top .icon-btn { background: none; width: 44px; height: 44px; }
  .np-top .icon-btn svg { width: 26px; height: 26px; }
  .np-body {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas: "art" "info"; padding: 0 28px; column-gap: 0;
  }
  .np-artwrap { align-items: center; }
  .np-art { width: min(100%, 48vh); }
  .np-info { width: 100%; margin-top: 10px; }
  .np-t { font-size: 21px; }
  .np-a { font-size: 17px; }
  .np-titlerow .icon-btn { width: 40px; height: 40px; }
  .np-prog { margin-top: 18px; }
  .np-ctrls { margin-top: 8px; }
  .np-ctrls .pp { width: 76px; height: 76px; }
  .np-foot { display: flex; justify-content: space-around; padding: 4px 28px calc(12px + var(--safe-b)); }
  .np-foot .icon-btn { width: 46px; height: 46px; color: rgba(255,255,255,.7); }
  .np-foot .icon-btn svg { width: 24px; height: 24px; }
  .np-foot .icon-btn.on { color: #fff; background: rgba(255,255,255,.16); }
  .np-panel { grid-area: art; display: none; background: none; border-radius: 0; margin: 0 -14px; }
  .np-tabs { display: none; }
  .np.has-panel .np-panel { display: flex; }
  .np.has-panel .np-artwrap { display: none; }
  .lyrics { padding: 8px 14px 30vh; }
  .ly { font-size: 26px; }
  .lyrics2 { padding: 0 26px; }
  .lyrics2 .ly { font-size: 31px; margin-bottom: 30px; }
  .q-row .icon-btn { opacity: 1; }

  .menu.sheet { left: 8px !important; right: 8px; top: auto !important; bottom: calc(8px + var(--safe-b)); max-width: none; min-width: 0; max-height: 78dvh; border-radius: 16px; padding: 8px; animation: sheet-up .28s var(--ease) both; }
  .menu.sheet button { height: 48px; font-size: 16px; }
  @keyframes sheet-up { from { transform: translateY(100%); } }
  .modal { top: auto; bottom: 0; transform: translateX(-50%); width: 100%; max-height: 88dvh; border-radius: 16px 16px 0 0; padding: 22px 20px calc(18px + var(--safe-b)); animation: sheet-up .28s var(--ease) both; }
  .modal.home-editor { animation-name: home-editor-up; }
  @keyframes home-editor-up { from { opacity: 0; transform: translate(-50%, 100%); } }
}


/* ───────────── Get music (Soulseek) ───────────── */
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font: 600 12px/20px var(--font); text-align: center; }
.nav-badge:empty { display: none; }
.seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); }
.seg a { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 18px; border-radius: 7px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.seg a.on { background: var(--s4); color: var(--text); }
.seg-n { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; line-height: 18px; text-align: center; }
.seg-n:empty { display: none; }
.get-search { margin: 18px 0 10px; max-width: 760px; padding-right: 6px; }
.get-search .btn { height: 36px; min-width: 0; padding: 0 18px; border-radius: 8px; }
.get-meta { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13.5px; margin: 0 0 18px; }
.get-meta b { color: var(--text); font-weight: 600; }
.get-meta .link { color: var(--accent-2); font-size: 13.5px; margin-left: 4px; }
.dot-ok { width: 8px; height: 8px; border-radius: 50%; background: #30d158; }
.get-hint { display: grid; gap: 4px; max-width: 760px; margin-top: 8px; }
.hint-row { display: flex; gap: 16px; padding: 16px 18px; border-radius: 14px; background: var(--s2); }
.hint-row > svg { width: 24px; height: 24px; color: var(--accent-2); margin-top: 1px; }
.hint-row b { display: block; font-weight: 600; font-size: 15px; }
.hint-row span { display: block; color: var(--text-2); font-size: 14px; margin-top: 2px; }
.get-prog { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 14px; margin-bottom: 14px; }
.get-prog-bar { width: 160px; height: 4px; border-radius: 2px; background: var(--s4); overflow: hidden; }
.get-prog-bar i { display: block; height: 100%; background: var(--accent); transition: width 1.2s linear; }
.get-count { font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.get-filter { display: flex; align-items: center; gap: 8px; height: 38px; max-width: 360px; padding: 0 12px; margin: -6px 0 16px; border-radius: 10px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); }
.get-filter[hidden] { display: none; }
.get-filter svg { width: 17px; height: 17px; }
.get-filter input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 14.5px; color: var(--text); }
.rels, .dls { display: flex; flex-direction: column; gap: 10px; }
.rel, .dl { background: var(--s2); border-radius: 14px; overflow: hidden; }
.rel-main { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; cursor: pointer; transition: background .15s; }
.rel-main:hover { background: #212124; }
.rel-art { width: 52px; height: 52px; border-radius: 10px; background: var(--s3); display: grid; place-items: center; flex: none; }
.rel-art svg { width: 24px; height: 24px; color: var(--text-3); }
.rel-art.ll svg { color: var(--accent-2); }
.rel-meta { min-width: 0; }
.rel-t { font-size: 15.5px; font-weight: 600; }
.rel-s { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.rel-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 7px; font-size: 12.5px; color: var(--text-2); }
.rel-tags .ok { color: #30d158; }
.rel-tags .inlib { color: var(--accent-2); font-weight: 600; }
.rel-dl { min-width: 128px; }
.rel-dl[disabled], .rel-alt .btn[disabled] { opacity: 1; cursor: default; }
.btn.done { color: var(--text-2); }
.rel-alts { border-top: 1px solid var(--line); padding: 8px 16px 10px 82px; font-size: 13.5px; }
.rel-alts > .link { color: var(--accent-2); font-weight: 600; font-size: 13.5px; padding: 4px 0; }
.rel-alt { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto auto; gap: 14px; align-items: center; min-height: 44px; }
.rel-alt .ok { color: #30d158; }
.rel-alt .btn { height: 34px; min-width: 104px; padding: 0 14px; font-size: 14px; }
.dl-toggle { color: var(--accent-2); font-size: 13.5px; font-weight: 600; margin-top: 8px; }
.rel-files { border-top: 1px solid var(--line); padding: 6px 12px 10px 82px; }
.rel-file { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto auto 34px; gap: 12px; align-items: center; min-height: 40px; font-size: 14px; }
.rel-file .n { color: var(--text-3); text-align: right; }
.rel-file .icon-btn { width: 34px; height: 34px; color: var(--accent-2); }
.rel-file .icon-btn svg { width: 19px; height: 19px; }
.rel-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 0 4px; font-size: 13px; }
.rel-foot .link { color: var(--accent-2); font-size: 13.5px; font-weight: 600; }
.dl { padding: 14px 16px; }
.dl-top { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.dl-state { font-size: 13px; color: var(--text-2); margin-top: 5px; display: flex; align-items: center; gap: 5px; }
.dl-state svg { width: 15px; height: 15px; }
.dl-state .ok { color: #30d158; display: inline-flex; align-items: center; gap: 4px; }
.dl-state .bad, .dl-file.bad .muted { color: var(--danger); }
.pbar { height: 4px; border-radius: 2px; background: var(--s4); overflow: hidden; margin: 14px 0 2px; }
.pbar i { display: block; height: 100%; background: var(--accent); transition: width .8s ease; }
.pbar.done i { background: #30d158; }
.dl-files { margin-top: 8px; }
.dl-file { display: grid; grid-template-columns: minmax(0, 1fr) auto 32px; gap: 10px; align-items: center; min-height: 34px; font-size: 13.5px; }
.dl-file .icon-btn { width: 30px; height: 30px; }
.dl-file .icon-btn svg { width: 16px; height: 16px; }
.card-panel { max-width: 480px; margin-top: 18px; padding: 26px; border-radius: 16px; background: var(--s2); }
.card-panel h3 { font: 650 20px/1.25 var(--font-d); margin: 14px 0 6px; }
.card-panel > p { color: var(--text-2); margin: 0 0 18px; }
.card-panel .fine { font-size: 12.5px; color: var(--text-3); margin: 14px 0 0; }
.panel-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.panel-icon svg { width: 26px; height: 26px; }
.chip svg { width: 16px; height: 16px; }
@media (max-width: 760px) {
  .seg { display: flex; }
  .seg a { flex: 1; justify-content: center; }
  .get-search .btn { display: none; }
  .rel-main, .dl-top { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 12px 14px; }
  .dl-top { padding: 0; }
  .rel-art { width: 44px; height: 44px; }
  .rel-dl, .dl-top .btn { grid-column: 1 / -1; width: 100%; height: 42px; }
  .rel-files { padding: 4px 8px 10px 14px; }
  .rel-alts { padding: 8px 14px 10px; }
  #getChips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 16px; padding: 0 20px; scrollbar-width: none; }
  #getChips::-webkit-scrollbar { display: none; }
  .rel .rel-t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .rel-alt { grid-template-columns: minmax(0, 1fr) auto auto; }
  .rel-alt > :nth-child(3), .rel-alt > :nth-child(4) { display: none; }
  .rel-file { grid-template-columns: 22px minmax(0, 1fr) auto 34px; }
  .rel-file > :nth-child(3) { display: none; }
  .tabbar a { font-size: 10.5px; }
}



/* ───────────── Home quick tiles ───────────── */
.qtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin: 6px 0 30px; }
.qtile { position: relative; display: flex; align-items: center; gap: 14px; height: 64px; padding-right: 12px; border-radius: 10px; background: var(--s2); overflow: hidden; text-align: left; transition: background .15s; }
.qtile:hover { background: var(--s3); }
.qart { width: 64px; height: 64px; flex: none; display: grid; place-items: center; background: var(--s3); color: var(--text-2); }
.qart img { width: 100%; height: 100%; object-fit: cover; }
.qart svg { width: 26px; height: 26px; }
.qart.fav-art svg { color: var(--accent-2); width: 28px; height: 28px; }
.qname { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qplay { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.qplay svg { width: 18px; height: 18px; }
.qtile:hover .qplay, .qtile:focus-within .qplay { opacity: 1; }
@media (max-width: 760px) {
  .qtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 24px; }
  .qtile { height: 56px; gap: 10px; padding-right: 8px; }
  .qart { width: 56px; height: 56px; }
  .qname { font-size: 14px; }
  .qplay { display: none; }
}


/* ───────────── People + your account (F21) ───────────── */
.avatar { overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.mid { width: 38px; height: 38px; font-size: 15px; }
.avatar.big { width: 48px; height: 48px; font-size: 19px; }
.avatar.xl { width: 104px; height: 104px; font-size: 42px; font-weight: 600; }
.people { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.person { display: grid; grid-template-columns: 48px minmax(0, 1fr) 40px; gap: 14px; align-items: center; padding: 12px 10px 12px 14px; border-radius: 14px; background: var(--s2); }
.pn { font-weight: 600; font-size: 15.5px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.ps { color: var(--text-2); font-size: 13.5px; margin-top: 2px; }
.pa { color: var(--text-3); font-size: 13px; margin-top: 3px; line-height: 1.35; }
.role { font-size: 11.5px; font-weight: 600; color: var(--accent-2); box-shadow: inset 0 0 0 1px var(--accent); border-radius: 5px; padding: 1px 6px; flex: none; }
.you { font-size: 11.5px; font-weight: 600; color: var(--text-2); background: var(--s4); border-radius: 5px; padding: 1px 6px; flex: none; }
.person .icon-btn { color: var(--text-2); }
.login-share { background: var(--s3); border-radius: 12px; padding: 16px; margin-bottom: 8px; }
.kv-mini { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 8px 12px; font-size: 14.5px; margin-bottom: 14px; }
.kv-mini span { color: var(--text-2); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 600; overflow-wrap: anywhere; }
.login-share .fine { font-size: 12.5px; color: var(--text-2); margin: 12px 0 0; }
.share-song { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; }
.share-song .art { width: 64px; flex: none; border-radius: 8px; }
.share-m { display: flex; flex-direction: column; min-width: 0; }
.share-m b { font-size: 16px; }
.share-m span { color: var(--text-2); font-size: 14px; }
.share-art { width: 40px; flex: none; }
.share-art .art { width: 40px; border-radius: 6px; }
/* Under a playlist: songs to get | songs you have that fit */
.pl-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; align-items: start; }
.pl-more.one { grid-template-columns: minmax(0, 1fr); }
.pl-more .cat-list { max-width: none; }
.pl-half-sub { margin: -6px 0 12px; font-size: 14px; }
.lib-row { grid-template-columns: 48px minmax(0, 1fr) auto auto; }
.lib-row .pl-add { color: var(--text-2); }
.lib-row .pl-add:hover { color: var(--text); }
@media (max-width: 1100px) { .pl-more { grid-template-columns: minmax(0, 1fr); } }

/* An import after Create: what happens to every song */
.imp-prog .eyebrow { color: var(--text-2); font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.imp-title { font: 700 26px/1.2 var(--font-d); margin: 4px 0 6px; overflow-wrap: anywhere; }
.imp-bar { height: 5px; border-radius: 3px; background: rgba(255,255,255,.09); overflow: hidden; margin: 10px 0 14px; max-width: 520px; }
.imp-bar span { display: block; height: 100%; border-radius: 3px; background: var(--text); transition: width .6s ease; }
.imp-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 4px; }
.imp-filter .tnum { color: var(--text-3); margin-left: 2px; }
.imp-filter .chip.on .tnum { color: inherit; opacity: .7; }
.imp-row.prog { grid-template-columns: 30px 48px minmax(0, 1fr) auto auto; }
.imp-st { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); min-width: 0; max-width: 260px; justify-self: end; }
.imp-st > .i { width: 17px; height: 17px; flex: none; }
.imp-st.in { color: var(--text-2); } .imp-st.in > .i { color: #30d158; }
.imp-st.missed { color: var(--text-3); }
.imp-st .ring, .imp-strip .ring { width: 18px; height: 18px; flex: none; transform: rotate(-90deg); }
.imp-st .ring circle, .imp-strip .ring circle { fill: none; stroke-width: 4; }
.imp-st .ring .bg, .imp-strip .ring .bg { stroke: rgba(255,255,255,.15); }
.imp-st .ring .fg, .imp-strip .ring .fg { stroke: var(--text); stroke-linecap: round; stroke-dasharray: 100; transition: stroke-dashoffset .5s ease; }
.ring.spin { animation: ring-spin 1.1s linear infinite; }
@keyframes ring-spin { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
.imp-strip { display: inline-flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--s3); color: var(--text); font: inherit; font-size: 13.5px; cursor: pointer; }
.imp-strip b { color: var(--text-2); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .ring.spin { animation: none; } }
@media (max-width: 760px) {
  .imp-row.prog { grid-template-columns: 44px minmax(0, 1fr) auto; row-gap: 2px; }
  .imp-row.prog .imp-n { display: none; }
  .imp-row.prog .imp-st { grid-column: 2; grid-row: 2; justify-self: start; max-width: 100%; font-size: 12.5px; }
  .imp-row.prog .imp-act { grid-column: 3; grid-row: 1 / 3; }
  .imp-title { font-size: 23px; }
}
.imp-note-line { display: flex; align-items: flex-start; gap: 8px; color: var(--text-2); font-size: 13.5px; margin: 0 0 14px; }
.imp-note-line .i { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.inv-link { background: var(--s3); border-radius: 12px; padding: 14px 16px; margin: 0 0 16px; font-size: 13.5px; line-height: 1.45; user-select: all; -webkit-user-select: all; }
.modal .fine { font-size: 13px; color: var(--text-3); margin: -6px 0 14px; }
.field .opt { font-style: normal; color: var(--text-3); font-weight: 400; }
.field-hint { display: block; color: var(--text-3); font-size: 12.5px; margin-top: 6px; }
.menu-note { max-width: 260px; margin: 8px 10px 4px; color: var(--text-3); font-size: 12.5px; line-height: 1.4; }
.acct-h { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 0 0 8px 4px; max-width: 760px; }
.acct-group { max-width: 640px; background: var(--s2); border-radius: 14px; margin: 0 0 24px; overflow: hidden; }
#invBox .acct-group { max-width: 760px; }
.acct-row { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 10px 14px 10px 16px; background: none; border: 0; color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: background .18s ease; }
.acct-row + .acct-row::before { content: ''; position: absolute; top: 0; left: 52px; right: 0; height: 1px; background: var(--line-2); }
button.acct-row:hover { background: rgba(255,255,255,.04); }
button.acct-row:active { background: rgba(255,255,255,.07); }
.acct-row > .i:first-child { width: 22px; height: 22px; flex: none; color: var(--text-2); }
.acct-row .grow { flex: 1; min-width: 0; }
.acct-row .grow b { display: block; font-weight: 560; font-size: 15.5px; }
.acct-row .grow small { display: block; color: var(--text-2); font-size: 13px; line-height: 1.45; margin-top: 3px; overflow-wrap: anywhere; }
.acct-row .chev { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.acct-row.danger b, .acct-row.danger > .i { color: var(--danger); }
@media (max-width: 760px) { .accent-options { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.inv-row { cursor: default; }
.inv-row .btn.sm, .imp-act .btn.sm { height: 34px; padding: 0 14px; font-size: 13.5px; min-width: 0; }
.acct-hero { display: flex; align-items: center; gap: 22px; margin: 6px 0 26px; }
.acct-photo { position: relative; flex: none; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.acct-photo:active { transform: scale(.96); }
.acct-cam { position: absolute; right: -2px; bottom: 2px; width: 34px; height: 34px; border-radius: 50%; background: var(--s4); color: var(--text); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg); }
.acct-cam .i { width: 17px; height: 17px; }
.acct-id { min-width: 0; }
.acct-id h1 { font: 700 30px/1.15 var(--font-d); margin: 0; overflow-wrap: anywhere; }
.acct-sub { color: var(--text-2); font-size: 14.5px; margin-top: 7px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.acct-since { color: var(--text-3); font-size: 13.5px; margin-top: 4px; }
.acct-week { max-width: 640px; margin: 0 0 26px; }
.acct-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 22px; }
.acct-stat { background: var(--s2); border-radius: 14px; padding: 14px 16px; min-height: 74px; }
.acct-stat b { display: block; font: 650 22px/1.2 var(--font-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct-stat span { color: var(--text-2); font-size: 13px; }
.acct-top { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.acct-tile { display: flex; flex-direction: column; gap: 6px; padding: 0; border: 0; background: none; color: var(--text-2); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; min-width: 0; }
.acct-tile .art { width: 100%; border-radius: 8px; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.acct-tile:hover .art { transform: scale(1.03); }
.join-card .brand { padding-bottom: 24px; }
.join-card .brand small { line-height: 1.4; }
.btn-link { display: block; margin: 14px auto 0; padding: 8px 12px; border: 0; background: none; color: var(--accent-2); font: inherit; font-size: 15px; cursor: pointer; }
.login-err.note { color: var(--text-2); }
@media (max-width: 760px) {
  .person { grid-template-columns: 44px minmax(0, 1fr) 40px; gap: 12px; }
  .acct-hero { gap: 18px; }
  .avatar.xl { width: 88px; height: 88px; font-size: 36px; }
  .acct-id h1 { font-size: 26px; }
  .acct-stats { gap: 8px; }
  .acct-stats { grid-template-columns: 1.45fr 1fr 1fr; }
  .acct-stat { padding: 12px; }
  .acct-stat b { font-size: 18px; }
  .acct-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}


/* ───────────── An import running in the background (top banner) ───────────── */
.impbar { position: fixed; z-index: 79; top: calc(10px + env(safe-area-inset-top)); left: 50%; width: min(540px, calc(100% - 24px)); display: flex; align-items: center; background: rgba(28,28,30,.97); border-radius: 16px; box-shadow: 0 14px 40px rgba(0,0,0,.5), inset 0 0 0 .5px rgba(255,255,255,.1); overflow: hidden; transform: translate(-50%, calc(-100% - 24px)); opacity: 0; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s ease; }
.impbar.on { transform: translate(-50%, 0); opacity: 1; }
body:has(#np.open) .impbar { opacity: 0; pointer-events: none; transform: translate(-50%, calc(-100% - 24px)); } /* Now Playing stays clean */
.impbar-in { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 11px 4px 13px 14px; border: 0; background: none; color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.impbar-ic { width: 34px; height: 34px; border-radius: 50%; background: var(--s3); display: grid; place-items: center; flex: none; }
.impbar-ic .i { width: 18px; height: 18px; }
.impbar-ic.spin .i { animation: imp-bob 1.6s ease-in-out infinite; }
.impbar-ic.ok { background: var(--text); color: var(--bg); }
@keyframes imp-bob { 50% { transform: translateY(2px); } }
.impbar-m { display: flex; flex-direction: column; min-width: 0; }
.impbar-t { font-weight: 600; font-size: 14.5px; }
.impbar-s { color: var(--text-2); font-size: 12.5px; margin-top: 1px; }
.impbar-x { flex: none; width: 40px; height: 40px; margin-right: 6px; border: 0; background: none; color: var(--text-2); display: grid; place-items: center; cursor: pointer; border-radius: 50%; }
.impbar-x:hover { background: rgba(255,255,255,.06); }
.impbar-x .i { width: 16px; height: 16px; }
.impbar-p { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.07); }
.impbar-p::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--p); background: var(--text); transition: width .6s ease; }
@media (min-width: 761px) { .impbar { left: calc(50% + var(--side-w) / 2); width: min(540px, calc(100% - var(--side-w) - 52px)); } } /* centred over the page, not the sidebar */
@media (prefers-reduced-motion: reduce) { .impbar { transition: opacity .2s; } .impbar-ic.spin .i { animation: none; } }

/* ───────────── Your taste: first sign-in (F7) ───────────── */
.onb { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgba(4,5,8,.72); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); opacity: 0; transition: opacity .32s ease; }
.onb.on { opacity: 1; }
.onb-card { display: flex; flex-direction: column; width: min(760px, 100%); height: min(780px, 100%); background: var(--s1, #111216); border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.55), inset 0 0 0 1px rgba(255,255,255,.06); overflow: hidden; transform: translateY(18px) scale(.985); transition: transform .42s var(--ease); }
.onb.on .onb-card { transform: none; }
/* white, never the accent, inside the setup */
.onb :focus-visible { outline: 2px solid rgba(245,245,247,.75); outline-offset: 2px; }
.onb :is(input, textarea):focus-visible { outline: none; } /* their field shows focus */
/* Back · progress · Skip. The frame stays between steps, so these move rather than blink. */
.onb-top { display: grid; grid-template-columns: 72px 1fr 72px; align-items: center; min-height: 60px; padding: 8px 22px 0; }
.onb-back { width: 44px; height: 44px; color: var(--text); transition: opacity .22s ease, visibility .22s, background .15s, transform .15s var(--spring); }
.onb-back.off { opacity: 0; visibility: hidden; }
.onb-dots { display: flex; justify-content: center; gap: 6px; }
.onb-dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--s4); transition: width .4s var(--ease), background .3s ease; }
.onb-dots span.done { background: var(--text-3); }
.onb-dots span.on { width: 22px; background: var(--text); }
.onb-skip { justify-self: end; height: 44px; padding: 0 14px; border-radius: 22px; color: var(--text-2); font-size: 15px; font-weight: 500; transition: color .15s, background .15s, transform .15s var(--spring); }
.onb-skip:active { transform: scale(.94); }
@media (hover: hover) { .onb-skip:hover { color: var(--text); background: rgba(255,255,255,.06); } }
.onb-body { --pt: 6px; flex: 1; overflow-y: auto; padding: var(--pt) 36px 28px; overscroll-behavior: contain; }
.onb-step.fwd { animation: onb-in .38s var(--ease) both; }
.onb-step.back { animation: onb-in-back .38s var(--ease) both; }
@keyframes onb-in { from { opacity: 0; transform: translateX(18px); } }
@keyframes onb-in-back { from { opacity: 0; transform: translateX(-18px); } }
.onb-body h2 { font: 700 30px/1.15 var(--font-d); letter-spacing: -.022em; margin: 10px 0 8px; }
.onb-lede { color: var(--text-2); font-size: 15.5px; line-height: 1.45; margin: 0 0 16px; max-width: 540px; text-wrap: pretty; }
/* Search: stuck to the top while the list scrolls under a soft edge. */
.onb-sbar { position: sticky; top: calc(-1 * var(--pt)); z-index: 2; margin: 0 0 18px; padding-top: 6px; background: var(--s1); }
.onb-sbar::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 16px; background: linear-gradient(var(--s1), rgba(18,19,23,0)); pointer-events: none; }
.onb-search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 0 0 14px; border-radius: 12px; background: var(--s3); transition: box-shadow .2s ease; }
.onb-search > .i { width: 18px; height: 18px; color: var(--text-2); flex: none; }
.onb-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); font: inherit; font-size: 16px; outline: none; }
.onb-search input::placeholder { color: var(--text-3); }
.onb-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.onb-search:focus-within { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); }
.onb-x { flex: none; width: 44px; height: 100%; display: grid; place-items: center; border-radius: 0 12px 12px 0; transition: opacity .15s ease, transform .15s var(--spring); }
.onb-x span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--text-3); color: var(--s3); }
.onb-x .i { width: 12px; height: 12px; stroke-width: 3; }
.onb-x:active { transform: scale(.88); }
.onb-search input:placeholder-shown ~ .onb-x { opacity: 0; visibility: hidden; }
/* Genres: a picked chip fills white and makes room for its tick without changing width (no reflow). */
.onb-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.onb-chip { display: inline-flex; align-items: center; height: 44px; padding: 0 21px; border: 0; border-radius: 22px; background: var(--s3); color: var(--text); font: inherit; font-size: 15px; font-weight: 550; letter-spacing: -.005em; cursor: pointer; transition: background .2s ease, color .2s ease, padding .26s var(--ease), transform .15s var(--spring); }
.onb-chip .i { width: 0; height: 15px; margin-right: 0; opacity: 0; transition: width .26s var(--ease), margin .26s var(--ease), opacity .2s ease; }
.onb-chip:active { transform: scale(.95); }
.onb-chip.on { padding: 0 12px 0 10px; background: var(--text); color: var(--bg); }
.onb-chip.on .i { width: 15px; margin-right: 5px; opacity: 1; }
.onb-chip.add { padding: 0 18px 0 14px; background: none; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); }
.onb-chip.add .i { width: 16px; margin-right: 6px; opacity: 1; }
@media (hover: hover) { .onb-chip:not(.on):hover { background: var(--s4); } .onb-chip.add:hover { background: rgba(255,255,255,.05); color: var(--text); } }
/* Artists */
.onb-artists { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 20px 14px; }
.onb-ar { display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 0; border: 0; border-radius: 12px; background: none; color: var(--text-2); font: inherit; font-size: 13.5px; cursor: pointer; min-width: 0; -webkit-user-select: none; user-select: none; transition: color .2s ease; }
.onb-ar:focus-visible { outline-offset: 4px; }
.onb-pic { position: relative; width: 100%; max-width: 120px; border-radius: 50%; transition: transform .2s var(--spring), box-shadow .22s ease; }
.onb-pic .art { width: 100%; }
@media (hover: hover) { .onb-ar:hover { color: var(--text); } .onb-ar:hover .onb-pic { transform: scale(1.03); } }
.onb-ar:active .onb-pic { transform: scale(.95); }
.onb-ar.on .onb-pic { box-shadow: 0 0 0 3px var(--s1), 0 0 0 5.5px var(--text); }
.onb-tick { position: absolute; right: 2px; bottom: 2px; width: 28px; height: 28px; border-radius: 50%; background: var(--text); color: var(--bg); display: grid; place-items: center; box-shadow: 0 0 0 3px var(--s1); opacity: 0; transform: scale(.6); transition: opacity .2s ease, transform .25s var(--spring); }
.onb-tick .i { width: 16px; height: 16px; }
.onb-ar.on .onb-tick { opacity: 1; transform: none; }
.onb-ar.on .onb-name { color: var(--text); font-weight: 600; }
.onb-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.onb-more { display: flex; justify-content: center; margin-top: 24px; }
.onb-sec { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 30px 0 14px; }
.onb-sec:first-child { margin-top: 0; }
.onb-sec h3 { font: 650 18px/1.2 var(--font-d); letter-spacing: -.012em; margin: 0; }
.onb-sec .onb-fine { margin: 0; }
.onb-fine { color: var(--text-3); font-size: 13px; margin: 10px 0 0; }
/* Playlists: one calm field that says what it recognised, the three ways under it. */
.onb-paste { display: block; border-radius: 16px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line-2); cursor: text; transition: box-shadow .2s ease, opacity .2s ease; }
.onb-paste:focus-within { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); }
.onb-paste.err { box-shadow: inset 0 0 0 1.5px var(--danger); }
.onb-paste.busy { opacity: .55; cursor: progress; }
.onb-paste textarea { display: block; width: 100%; min-height: 124px; max-height: 260px; field-sizing: content; padding: 16px 18px 4px; border: 0; border-radius: 16px 16px 0 0; background: none; color: var(--text); font: inherit; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; resize: none; outline: none; }
.onb-paste textarea::placeholder { color: var(--text-3); }
.onb-pbar { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 2px 8px 8px 18px; }
.onb-kind { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; }
.onb-kind .i { width: 18px; height: 18px; flex: none; }
.onb-kind span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.onb-kind b { color: var(--text); font-weight: 600; }
.onb-kind kbd { margin-right: 2px; padding: 2px 6px; border-radius: 6px; background: var(--s3); box-shadow: inset 0 -1px 0 rgba(0,0,0,.35); color: var(--text-2); font: 600 12.5px/1.3 var(--font); }
.onb-hint { color: var(--text-3); }
.onb-paste.ok .onb-kind .i { color: var(--text); }
.onb-pb { position: relative; flex: none; height: 34px; padding: 0 16px; border-radius: 17px; background: var(--btn-tonal); box-shadow: var(--btn-hair); color: var(--text); font-size: 14px; font-weight: 600; transition: background .15s, transform .15s var(--spring); }
.onb-pb::after { content: ''; position: absolute; inset: -5px -4px; } /* a 44 px target */
.onb-pb:active { transform: scale(.94); }
@media (hover: hover) { .onb-pb:hover { background: var(--btn-tonal-h); } }
.onb-err { display: flex; align-items: flex-start; gap: 8px; margin: 12px 2px 0; color: #ff6961; font-size: 14px; line-height: 1.4; }
.onb-err[hidden] { display: none; }
.onb-err .i { width: 18px; height: 18px; flex: none; color: var(--danger); }
.onb-cap { margin: 28px 0 12px; color: var(--text-3); font-size: 13px; font-weight: 500; }
.onb-ways { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.onb-ways li { display: flex; align-items: center; gap: 12px; min-width: 0; transition: opacity .25s ease; }
.onb-ways.has li:not(.on) { opacity: .4; }
.onb-wi { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); transition: background .25s ease, color .25s ease, box-shadow .25s ease; }
.onb-wi .i { width: 22px; height: 22px; }
.onb-ways li.on .onb-wi { background: var(--text); color: var(--bg); box-shadow: none; }
.onb-ways b { display: block; font-size: 14.5px; font-weight: 600; }
.onb-ways small { display: block; margin-top: 2px; color: var(--text-3); font-size: 12.5px; line-height: 1.35; }
.onb-ways + .onb-fine { margin-top: 24px; }
/* Footer: the one primary button, white like everything picked. */
.onb-foot { padding: 14px 36px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.onb-foot .btn { gap: 0; min-width: 210px; height: 50px; border-radius: 25px; font-size: 16px; transition: transform .15s var(--spring), background .2s, opacity .2s; }
.onb-foot .btn-primary { background: var(--text); color: var(--bg); box-shadow: 0 10px 28px -14px rgba(0,0,0,.9); }
@media (hover: hover) { .onb-foot .btn-primary:hover { filter: none; background: #fff; } }
.onb-foot .btn:disabled { opacity: .55; cursor: progress; transform: none; }
.onb-n { font-weight: 500; opacity: .62; white-space: pre; }
@media (max-width: 760px) {
  .onb { padding: 0; }
  .onb-card { width: 100%; height: 100%; border-radius: 0; padding-top: env(safe-area-inset-top); }
  .onb-top { min-height: 56px; padding: 4px 6px 0; }
  .onb-body { --pt: 2px; padding: var(--pt) 20px 22px; }
  .onb-body h2 { font-size: 28px; margin-top: 6px; }
  .onb-lede { font-size: 15px; }
  .onb-chips { gap: 8px; }
  .onb-artists { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 12px; }
  .onb-paste textarea { min-height: 108px; }
  .onb-ways { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .onb-foot { padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); }
  .onb-foot .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .onb, .onb-card, .onb-chip, .onb-chip .i, .onb-pic, .onb-tick, .onb-dots span, .onb-back, .onb-ways li, .onb-wi, .onb-paste { transition: none; }
  .onb-step.fwd, .onb-step.back { animation: none; }
  .onb-chip:active, .onb-ar:active .onb-pic, .onb-ar:hover .onb-pic, .onb-pb:active, .onb-skip:active, .onb-x:active { transform: none; }
}

/* ───────────── Discover (catalog) ───────────── */
.cat-list { display: flex; flex-direction: column; max-width: 860px; }
.cat-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; min-height: 64px; padding: 0 6px; border-radius: 10px; }
.cat-row:hover { background: rgba(255,255,255,.04); }
.pv-btn { position: relative; display: block; border-radius: 6px; overflow: hidden; }
.cat-art { width: 48px; height: 48px; display: grid; place-items: center; background: var(--s3); color: var(--text-3); border-radius: 6px; overflow: hidden; }
.cat-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-art svg { width: 22px; height: 22px; }
.pv-ic { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; opacity: 0; transition: opacity .15s; }
.pv-ic svg { width: 20px; height: 20px; }
.pv-ic .pv-pause { display: none; }
.pv-btn:hover .pv-ic, .pv-btn.on .pv-ic { opacity: 1; }
.pv-btn.on .pv-ic svg:first-child { display: none; }
.pv-btn.on .pv-ic .pv-pause { display: block; }
.cat-t { font-size: 15px; font-weight: 500; }
.cat-s { font-size: 13.5px; color: var(--text-2); margin-top: 1px; }
.cat-d { color: var(--text-2); font-size: 13.5px; }
.cat-get { min-width: 0; height: 36px; padding: 0 14px; font-size: 14px; }
.cat-get svg { width: 17px; height: 17px; }
.cat-card .pv-btn, .cat-card .cat-art.big, .cat-card .cat-art { width: 100%; height: auto; aspect-ratio: 1; border-radius: 8px; }
.cat-card .cat-art { aspect-ratio: 1; }
.cat-card .pv-big .pv-ic svg { width: 34px; height: 34px; }
.cat-card .cat-get { margin-top: 10px; width: 100%; }
.cat-loading { display: flex; align-items: center; gap: 10px; color: var(--text-2); font-size: 14px; margin-top: 36px; }
.cat-loading svg { width: 18px; height: 18px; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.no-local { font-size: 15px; margin: 0 0 4px; }
.section.first { margin-top: 18px; }
button.link { display: inline-flex; align-items: center; gap: 6px; }
button.link svg { width: 16px; height: 16px; }
.get-target { display: flex; align-items: center; gap: 10px; max-width: 760px; margin: 16px 0 -4px; padding: 10px 8px 10px 14px; border-radius: 12px; background: var(--s2); box-shadow: inset 0 0 0 1px var(--accent); font-size: 14.5px; }
.get-target > svg { width: 20px; height: 20px; color: var(--accent-2); flex: none; }
.get-target span { flex: 1; }
.get-target .icon-btn { width: 32px; height: 32px; }
.get-meta { flex-wrap: wrap; }
.get-dlpl { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 13.5px; margin: -10px 0 18px; }
.get-dlpl svg { width: 16px; height: 16px; }
.get-dlpl .link { color: var(--accent-2); font-size: 13.5px; font-weight: 600; }
.get-meta > svg { width: 16px; height: 16px; color: var(--text-2); }
.get-sep { width: 1px; height: 14px; background: var(--line-2); margin: 0 6px; }
/* A Get row fills with its download (same fill as the playing row, in the accent). */
.cat-row { position: relative; isolation: isolate; overflow: hidden; }
.cat-row .ag-fill::before { width: calc(var(--gp, 0) * 1%); opacity: 1; transition: width .6s var(--ease), opacity .6s;
  background: linear-gradient(90deg, rgb(var(--accent-rgb) / .05), rgb(var(--accent-rgb) / .17)); }
.cat-row:not(.getting):not(.got) .ag-fill::before { opacity: 0; }
.cat-row.getting .ag-fill::before { animation: ag-breathe 2.4s ease-in-out infinite; }
.cat-row.got .ag-fill::before { opacity: 0; transition: opacity 1.6s ease .8s; }
@keyframes ag-breathe { 50% { opacity: .65; } }
.ag-acts { display: flex; align-items: center; gap: 2px; justify-self: end; }
.ag-quick { display: flex; align-items: center; }
.ag-quick:empty { display: none; }
.ag-quick .icon-btn { width: 34px; height: 34px; color: var(--text-2); animation: ag-in .35s var(--ease) both; }
.ag-quick .icon-btn:hover { color: var(--text); }
.ag-quick .liked { color: var(--accent-2); }
@keyframes ag-in { from { opacity: 0; transform: scale(.7); } }
@media (prefers-reduced-motion: reduce) { .cat-row.getting .ag-fill::before, .ag-quick .icon-btn { animation: none; } }
/* Search: songs you can Get line up with your library's rows above them. */
.search-songs .cat-list { max-width: none; }
.search-songs .cat-row { grid-template-columns: 42px minmax(0, 1fr) 56px auto; padding: 0 0 0 68px; }
.search-songs .cat-art { width: 42px; height: 42px; }
.search-songs .cat-d { justify-self: end; }
.dl-actions { display: flex; gap: 8px; }
.dl-actions .btn { min-width: 0; padding: 0 14px; height: 38px; font-size: 14px; }
@media (max-width: 760px) {
  .cat-row, .search-songs .cat-row { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; padding: 0; }
  .search-songs .cat-art { width: 48px; height: 48px; }
  .cat-d { display: none; }
  .pv-ic { opacity: .9; background: rgba(0,0,0,.3); }
  .get-sep { display: none; }
  .dl-actions { grid-column: 1 / -1; }
  .dl-actions .btn { flex: 1; }
}


/* ───────────── Mixes, autoplay, sleep ───────────── */
.mix-art { display: grid; grid-template-columns: 1fr 1fr; }
.mix-art img { opacity: 1; width: 100%; height: 100%; object-fit: cover; }
.ap-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 14px 4px 4px; padding: 12px 12px; border-radius: 12px; background: rgba(255,255,255,.07); cursor: pointer; }
.ap-row b { display: block; font-weight: 600; font-size: 14.5px; }
.ap-row small { display: block; font-size: 12.5px; color: rgba(255,255,255,.6); margin-top: 2px; }
.np-sleep { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 2px 9px; border-radius: 10px; background: rgba(255,255,255,.14); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.np-sleep[hidden] { display: none; }
.np-sleep svg { width: 13px; height: 13px; }


/* ───────────── Now Playing, Apple layout ───────────── */
.np-more2 { display: none; }
.np-head2 { display: none; }
.q-pills { display: flex; gap: 8px; padding: 12px 8px 4px; }
.q-pill { flex: 1; height: 38px; border-radius: 10px; background: rgba(255,255,255,.1); color: rgba(255,255,255,.85); display: grid; place-items: center; transition: background .2s, color .2s; }
.q-pill svg { width: 21px; height: 21px; }
.q-pill.on { background: rgba(255,255,255,.88); color: #111; }
.q-from { padding: 10px 10px 0; font-size: 13px; color: rgba(255,255,255,.6); }
.q-from b { color: #fff; font-weight: 600; }
@media (max-width: 760px) {
  .np-top { min-height: calc(26px + var(--safe-t)); padding: var(--safe-t) 14px 0; }
  .np-top > .icon-btn, .np-top .ctx, .np-top-r { display: none; }
  .np-grip { display: block; position: absolute; left: 50%; top: calc(2px + var(--safe-t)); width: 64px; height: 22px; margin-left: -32px; background: none; border-radius: 0; }
  .np-grip::after { content: ""; position: absolute; left: 14px; right: 14px; top: 8px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.4); }
  .np-more2 { display: inline-grid; }
  .np-titlerow .icon-btn { width: 34px; height: 34px; background: rgba(255,255,255,.14); }
  .np-titlerow .icon-btn svg { width: 19px; height: 19px; }
  .np-ctrls { justify-content: space-evenly; }
  .np-ctrls .mode { display: none; }
  .np.has-panel .np-titlerow { display: none; }
  .np.has-panel .np-head2 { display: flex; align-items: center; gap: 12px; padding: 10px 18px 12px; }
  .np-head2 .art-hit { width: 54px; flex: none; }
  .np-head2 .art { border-radius: 7px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
  .np-head2 .grow { flex: 1; min-width: 0; }
  .np-head2 .t { font-weight: 650; font-size: 16px; }
  .np-head2 .a { font-size: 14.5px; color: rgba(255,255,255,.66); margin-top: 1px; }
  .np-head2 .icon-btn { width: 34px; height: 34px; color: #fff; background: rgba(255,255,255,.14); }
  .np-head2 .icon-btn svg { width: 19px; height: 19px; }
  .np-head2 .icon-btn.liked { color: var(--accent-2); }
  .np-foot { justify-content: space-evenly; }
}



/* ───────────── Replay ───────────── */
.rp-tiles { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; max-width: 980px; align-items: stretch; }
.rp-tiles > .rp-tile { margin: 0; justify-content: flex-start; }
.rp-tile { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: 16px; background: var(--s2); min-width: 0; }
.rp-tile b { font: 700 40px/1.05 var(--font-d); letter-spacing: -.02em; }
.rp-tile.hero b { font-size: 52px; color: var(--text); }
.rp-k { font-size: 13px; font-weight: 600; color: var(--text-2); }
.rp-s { font-size: 13.5px; color: var(--text-2); }
.rp-meter { height: 6px; border-radius: 3px; background: var(--s4); overflow: hidden; margin: 4px 0 2px; }
.rp-meter i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.rp-hours { display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 2px; align-items: end; height: 150px; max-width: 980px; padding: 0 2px; border-bottom: 1px solid var(--line-2); }
.rp-bar { height: 100%; display: flex; align-items: flex-end; cursor: default; outline-offset: 0; }
.rp-bar i { display: block; width: 100%; max-width: 22px; margin: 0 auto; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 0; transition: filter .15s; }
.rp-bar:hover i, .rp-bar:focus i { filter: brightness(1.25); }
.rp-axis { display: flex; justify-content: space-between; max-width: 980px; padding: 6px 2px 0; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.rp-tip { position: fixed; z-index: 96; transform: translate(-50%, -100%); padding: 6px 10px; border-radius: 8px; background: var(--s3); color: var(--text); font-size: 13px; font-weight: 600; pointer-events: none; box-shadow: var(--shadow); white-space: nowrap; }
.rp-tip[hidden] { display: none; }
.rp-list { display: flex; flex-direction: column; max-width: 760px; }
.rp-row { display: grid; grid-template-columns: 28px 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 64px; padding: 0 8px; border-radius: 10px; cursor: pointer; }
.rp-row:hover { background: rgba(255,255,255,.045); }
.rp-row .art { width: 48px; border-radius: 6px; }
.rp-n { font: 700 18px var(--font-d); color: var(--text-2); text-align: center; }
.rp-m .t { font-weight: 550; font-size: 15px; }
.rp-m .a { font-size: 13.5px; color: var(--text-2); margin-top: 1px; }
.rp-c { font-size: 13.5px; color: var(--text-2); }
.rp-artist { position: relative; }
.rp-rank { position: absolute; z-index: 2; left: 6px; top: 6px; width: 28px; height: 28px; border-radius: 50%; background: var(--s3); color: var(--text); font: 700 14px/28px var(--font-d); text-align: center; }
@media (max-width: 760px) {
  .rp-tiles { grid-template-columns: 1fr 1fr; }
  .rp-tile.hero { grid-column: 1 / -1; }
  .rp-tile b { font-size: 30px; }
  .rp-tile.hero b { font-size: 44px; }
  .rp-hours { height: 120px; }
}

/* the release year, quietly after the artist */
.yr { opacity: .62; font-variant-numeric: tabular-nums; }


/* ───────────── Get: one pill, start to finish ─────────────
   Get (translucent, accent label) → working: the same pill goes quiet and
   says where it is ("Finding", "37 %", "Adding") while its row fills → Play
   (solid accent). It never shrinks into a circle and never shows a spinner. */
.ag { position: relative; display: inline-grid; place-items: center; flex: none; height: 30px; min-width: 70px; padding: 0 16px; border-radius: 15px;
  background: var(--btn-tonal); box-shadow: var(--btn-hair); color: var(--accent-2); font: 700 14px/1 var(--font-d); letter-spacing: .01em;
  font-variant-numeric: tabular-nums; overflow: hidden; transition: background .3s, color .3s, box-shadow .3s, transform .18s var(--spring); }
.ag:hover { background: var(--btn-tonal-h); }
.ag:active { transform: scale(.94); }
.ag-l { grid-area: 1 / 1; white-space: nowrap; }
.ag-l-play, .ag-l-fail, .ag-l-work { display: none; }
.ag .ring { display: none; }
.ag.busy, .ag.dl, .ag:disabled { min-width: 84px; background: rgba(255, 255, 255, .06); color: var(--text-2); cursor: default; }
.ag.busy:active, .ag.dl:active, .ag:disabled:active { transform: none; }
.ag.busy .ag-l-get, .ag.dl .ag-l-get { display: none; }
.ag.busy .ag-l-work, .ag.dl .ag-l-work { display: inline; }
/* a soft sheen crosses the quiet pill while it works */
.ag.busy::after, .ag.dl::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .1) 50%, transparent 70%);
  transform: translateX(-100%); animation: ag-sheen 1.8s ease-in-out infinite; }
@keyframes ag-sheen { to { transform: translateX(100%); } }
.ag.done { background: var(--accent); color: var(--accent-ink); box-shadow: var(--btn-lift); }
.ag.done:hover { filter: brightness(1.08); }
.ag.done .ag-l-get, .ag.fail .ag-l-get { display: none; }
.ag.done .ag-l-play, .ag.fail .ag-l-fail { display: inline-flex; align-items: center; gap: 5px; }
.ag-l-play svg { width: 12px; height: 12px; }
.ag.fail { color: var(--accent-2); }
.ag.sm { height: 28px; min-width: 62px; padding: 0 13px; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .ag.busy::after, .ag.dl::after { animation: none; opacity: 0; } }
.ag-demo { pointer-events: none; }
.ag-status { font-size: 12.5px; color: var(--accent-2); margin-top: 2px; }
.ag-status:empty { display: none; }
.ag-tip, .ag-explain { display: flex; align-items: center; gap: 14px; max-width: 760px; margin: 0 0 14px; padding: 14px 16px; border-radius: 12px;
  background: var(--s2); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); font-size: 14px; line-height: 1.45; }
.ag-tip b, .ag-explain b { color: var(--text); }
.ag-tip p { flex: 1; margin: 0; }
.ag-tip .link { color: var(--accent-2); font-weight: 600; font-size: 14px; flex: none; }
.ag-explain { margin-top: 18px; }
.ag-explain .fine { margin-top: 4px; font-size: 13px; color: var(--text-3); }
.find-note { margin: 14px 2px; font-size: 14px; }
.ag-jobs { margin-top: 6px; }
@media (max-width: 760px) {
  .ag-tip, .ag-explain { padding: 12px 14px; font-size: 14.5px; }
  .ag-tip { flex-wrap: wrap; gap: 6px 12px; }
  .ag-tip p { flex-basis: 100%; }
  .ag-tip .ag-demo, .ag-explain .ag-demo { display: none; }
}
.cat-card-row { display: flex; align-items: center; gap: 8px; margin-top: 9px; }
.cat-card-row .card-t { margin-top: 0; }
.cat-album-get { color: var(--accent-2); font-size: 13px; font-weight: 600; margin-top: 6px; }

/* ───────────── Offline ───────────── */
.t-row.offline .t-title::after { content: ""; display: inline-block; width: 13px; height: 13px; margin-left: 7px; vertical-align: -1px; border-radius: 50%;
  background: var(--accent-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2307090d' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M12 6v9m-4-4 4 4 4-4'/%3E%3C/svg%3E") center / 11px no-repeat; }
.off-btn { position: relative; }
.off-btn .on-ic { display: none; }
.off-btn.on { color: var(--accent-2); }
.off-btn.on > svg:first-child { display: none; }
.off-btn.on .on-ic { display: block; }
.off-btn.busy::before { content: ""; position: absolute; inset: 3px; border-radius: 50%;
  background: conic-gradient(var(--accent) var(--p, 0%), transparent 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); }
.coll-actions .off-btn { display: inline-grid; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 680px; padding: 14px 16px; border-radius: 12px; background: var(--s2); margin: 0 0 22px; cursor: pointer; }
.switch-row b { display: block; font-weight: 600; }
.switch-row small { display: block; color: var(--text-2); font-size: 13.5px; margin-top: 2px; }
.switch { appearance: none; -webkit-appearance: none; flex: none; width: 51px; height: 31px; border-radius: 16px; background: var(--s4); position: relative; cursor: pointer; transition: background .2s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform .2s var(--ease); }
.switch:checked { background: #30d158; }
.switch:checked::after { transform: translateX(20px); }
.offline-pill { position: fixed; z-index: 40; top: calc(10px + var(--safe-t)); left: 50%; transform: translate(-50%, -150%); display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 18px; background: var(--s3); color: var(--text); font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow); transition: transform .35s var(--ease); pointer-events: none; white-space: nowrap; }
.offline-pill svg { width: 16px; height: 16px; color: var(--accent-2); }
.is-offline .offline-pill { transform: translate(-50%, 0); }
.is-offline .t-row:not(.offline) { opacity: .4; }
.is-offline .card { opacity: .55; }


/* ───────────── Motion ───────────── */
.vt .np { transition: none !important; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-group(np-art) { animation-duration: .46s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); z-index: 100; }
::view-transition-old(np-art), ::view-transition-new(np-art) { animation-duration: .46s; height: 100%; object-fit: cover; }
::view-transition-group(np) { animation: none; }
::view-transition-new(np) { animation: np-up .46s cubic-bezier(.2, .8, .2, 1) both; }
::view-transition-old(np) { animation: np-down .4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes np-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes np-down { from { transform: none; } to { transform: translateY(100%); } }
.mini .meta, #miniArt { will-change: transform; }
.card:active .art, .t-row:active { transform: scale(.985); transition: transform .1s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ── Now Playing on desktop: one centred stage. The cover turns over to show
   Up Next or Details; lyrics slide in beside it, straight on the background. */
.np-dt { display: none; }
.np-back h3 { margin: 14px 10px 6px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.6); display: flex; justify-content: space-between; align-items: center; }
.np-back h3 button { color: #fff; font-size: 13px; font-weight: 600; padding: 4px 8px; border-radius: 6px; }
.np-back h3 button:hover { background: rgba(255,255,255,.1); }
@media (max-width: 760px) {
  .np-stage, .np-card, .np-card-in { display: contents; }
  .np-back { display: none; }
}
@media (min-width: 761px) {
  .np-body { display: flex; align-items: center; justify-content: center; padding: 0 56px 34px; }
  .np-stage { --stage: min(600px, calc(100vh - 392px), calc(100vw - 112px)); flex: 0 0 auto; width: var(--stage); display: flex; flex-direction: column; transition: width .6s var(--ease); }
  .np.ly-on .np-stage { --stage: min(540px, calc(100vh - 392px), 38vw); }
  .np-artwrap { display: block; }
  .np-card { position: relative; width: 100%; aspect-ratio: 1; perspective: 2000px; transition: transform .45s var(--ease); }
  .np.is-paused:not(.flipped) .np-card { transform: scale(.9); }
  .np.is-paused .np-art { transform: none; }
  .np-card-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
  .np.flipped .np-card-in { transform: rotateY(180deg); }
  .np-face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; border-radius: 14px; }
  .np-art.np-face, .np.is-paused .np-art.np-face { width: auto; transform: rotateY(0deg); }
  /* Safari can ignore backface-visibility here, so each face also hides once
     the card passes edge-on (~0.1 s into this curve). */
  .np-art.np-face { transition: visibility 0s .1s; }
  .np.flipped .np-art.np-face { visibility: hidden; }
  .np-back { visibility: hidden; transition: visibility 0s .1s; }
  .np.flipped .np-back { visibility: visible; }
  .np-art .art { border-radius: 14px; }
  .np-back { transform: rotateY(180deg); background: rgba(0, 0, 0, .36); box-shadow: 0 24px 60px rgba(0,0,0,.42); overflow-y: auto; padding: 6px 10px 14px; scrollbar-width: thin; overscroll-behavior: contain; }
  .np-back .details { padding: 10px 8px; }
  .np-info { width: 100%; margin-top: 24px; }
  .np-t { font-size: 28px; }
  .np-a { font-size: 19px; }
  .np-titlerow { gap: 10px; }
  .np-titlerow .icon-btn { width: 44px; height: 44px; flex: none; }
  .np-titlerow .icon-btn.on { background: rgba(255,255,255,.92); color: #111; }
  .np-dt { display: inline-grid; }
  .np-prog { margin-top: 18px; }
  .np-ctrls { margin-top: 10px; }
  .np-vol { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: rgba(255,255,255,.6); }
  .np-vol .icon-btn { width: 32px; height: 32px; color: rgba(255,255,255,.6); }
  .np-vol .icon-btn:hover { color: #fff; }
  .np-vol svg { width: 18px; height: 18px; }
  .np-vol-hi { display: grid; place-items: center; width: 32px; }
  .np-vol .bar { flex: 1; }
  .np-vol .bar .track { background: rgba(255,255,255,.22); }
  .np-vol .bar .fill { background: rgba(255,255,255,.8); }
  .np-ctrls .skip { width: 70px; height: 70px; }
  .np-ctrls .skip svg { width: 40px; height: 40px; }
  .np-ctrls .pp { width: 90px; height: 90px; }
  .np-ctrls .pp svg { width: 58px; height: 58px; }
  /* lyrics: no panel, no tabs — straight on the moving background */
  .np-panel { flex: 0 1 0; min-width: 0; max-width: 0; margin-left: 0; opacity: 0; align-self: stretch; background: none; border-radius: 0; overflow: hidden; pointer-events: none;
    transition: flex-basis .6s var(--ease), max-width .6s var(--ease), margin .6s var(--ease), opacity .45s ease; }
  .np.ly-on .np-panel { flex-basis: min(44vw, 640px); max-width: 640px; margin-left: clamp(36px, 5vw, 110px); opacity: 1; pointer-events: auto; }
  .np-tabs, .np-head2 { display: none; }
  .np-panel .np-pane { padding: 0; }
  .np-panel .lyrics2 { padding: 0 6px; }
  .np-panel .lyrics2 .ly { font-size: clamp(28px, 2.5vw, 40px); margin-bottom: 30px; }
  .np-panel .ly-empty { margin-top: 30vh; }
}
@media (min-width: 761px) and (prefers-reduced-motion: reduce) {
  .np-card-in, .np-stage, .np-panel { transition: none; }
}

/* Hover hints: what an icon button does */
.hint { position: fixed; z-index: 200; left: 0; top: 0; max-width: 280px; padding: 5px 9px; border-radius: 7px; background: #2c2c2e; color: #f2f2f7;
  font-size: 12.5px; font-weight: 500; line-height: 1.3; box-shadow: 0 6px 18px rgba(0,0,0,.45); pointer-events: none; opacity: 0; transform: translateY(2px);
  transition: opacity .12s ease, transform .12s ease; }
.hint.on { opacity: 1; transform: none; }

/* ── Home: quick access tiles with mini mosaics ── */
.qtile .qmeta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qtile .qname { display: block; -webkit-line-clamp: unset; }
.qsub { font-size: 12.5px; color: var(--text-2); }
.qmosaic { display: grid; grid-template-columns: 1fr 1fr; width: 100%; height: 100%; }
.qmosaic img { width: 100%; height: 100%; object-fit: cover; }
.qtile.fav-empty .qart svg { color: var(--accent-2); }
.qtile .qplay.is-current { opacity: 1; }

/* A play button for the thing that's playing shows the beat bars instead */
.nowbtn .eq { display: none; height: 16px; }
.nowbtn .eq i { background: #fff; }
.nowbtn.is-playing > svg { display: none; }
.nowbtn.is-playing .eq { display: inline-flex; }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.newbar { display: flex; align-items: center; gap: 16px; max-width: 780px; margin: 0 0 30px; padding: 12px 16px 12px 12px; border-radius: 14px; background: var(--s2); }
.newbar .art-hit { width: 72px; flex: none; cursor: pointer; }
.newbar .art { border-radius: 8px; }
.newbar-m { flex: 1; min-width: 0; }
.newbar-t { font: 650 19px/1.25 var(--font-d); letter-spacing: -.01em; margin-top: 4px; }
.newbar-s { color: var(--text-2); font-size: 14px; margin-top: 1px; }
.newbar-play { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: var(--btn-lift); }
.newbar-play:active { transform: scale(.93); }
.newbar-play svg { width: 22px; height: 22px; }

/* Home: covers drifting by (pause under the pointer or a finger) */
.marquee { overflow: hidden; padding: 2px 0 8px; -webkit-mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.marquee + .marquee { margin-top: 4px; }
.mq-track { display: flex; width: max-content; animation: mq var(--dur, 90s) linear infinite; }
.marquee.rev .mq-track { animation-direction: reverse; }
.marquee:hover .mq-track, .marquee.hold .mq-track, .marquee:focus-within .mq-track { animation-play-state: paused; }
.mq-half { display: flex; gap: 18px; padding-right: 18px; }
.mq-half > .card { width: 168px; flex: none; }
.marquee.rev .mq-half > .card { width: 136px; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } .marquee { overflow-x: auto; } }

/* ───────────── The playing row ─────────────
   The same quiet treatment as the playlist list: a fill that grades from left to right, the title white, the beat
   bars where the number was, the time in the accent. Nothing drifts and nothing is written per frame. */
.t-row.playing { background: linear-gradient(90deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .05)); }
.t-row.playing::after, .t-row:has(+ .t-row.playing)::after { display: none; }
.t-row.playing .t-title { color: #fff; font-weight: 600; }
.t-row.playing .t-sub, .t-row.playing .t-sub a, .t-row.playing .t-alb { color: rgba(255, 255, 255, .7); }
.t-row.playing .t-dur { color: var(--accent-2); }
.t-row.playing .t-more { color: #fff; }
.t-row.playing .eq i { background: var(--accent-2); }
body.paused .t-row.playing .eq i { animation: none; transform: scaleY(.3); } /* paused: the bars rest low, as in the list */

/* A Get row fills with its download, in the accent. */
.ag-fill { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; pointer-events: none; }
.ag-fill::before { content: ""; position: absolute; inset: 0 auto 0 0;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }

@media (max-width: 760px) {
  .qplay { display: grid; opacity: 1; width: 32px; height: 32px; background: none; color: var(--text); }
  .qplay svg { width: 16px; height: 16px; }
  .qplay.is-current { background: var(--accent); color: var(--accent-ink); }
  .newbar { padding: 10px 12px 10px 10px; gap: 12px; margin-bottom: 24px; }
  .newbar .art-hit { width: 60px; }
  .newbar-t { font-size: 17px; }
  .mq-half > .card { width: 136px; }
  .marquee.rev .mq-half > .card { width: 112px; }
}

/* Background effect menu */
.menu .mi-2 { display: flex; flex-direction: column; gap: 1px; min-width: 0; text-align: left; }
.menu .mi-2 small { color: var(--text-2); font-size: 12px; font-weight: 400; line-height: 1.3; white-space: normal; }
.menu button.on { color: var(--accent-2); }
.menu button:has(> .mi-2) { height: auto; min-height: 40px; align-items: flex-start; padding-top: 9px; padding-bottom: 9px; }
.menu button:has(> .mi-2) > svg { margin-top: 1px; }
.ly-note { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.1); font-size: 14px; font-weight: 500; color: rgba(255,255,255,.85); }
.ly-note svg { width: 18px; height: 18px; flex: none; }

/* Getting bar: what automatic Get is doing, above the player */
/* the preview bar: what's previewing, Find, Stop — above the player (and above the Get bar) */
.pvbar { position: fixed; z-index: 46; left: 50%; bottom: calc(var(--bar-h) + 12px); width: min(520px, calc(100vw - 24px)); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .25s, bottom .3s var(--ease); }
body.has-getbar .pvbar { bottom: calc(var(--bar-h) + 84px); }
.pvbar.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.pvbar-in { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 14px; border-radius: 14px; background: #2c2c2e; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.pvbar-ic { color: var(--accent-2); display: grid; place-items: center; }
.pvbar-ic svg { width: 20px; height: 20px; }
.pvbar-m { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pvbar-t { font-weight: 600; font-size: 14.5px; }
.pvbar-s { font-size: 12.5px; color: var(--text-2); }
.pvbar-stop { min-width: 0; height: 34px; padding: 0 14px; font-size: 14px; }
.getbar { position: fixed; z-index: 45; left: 50%; bottom: calc(var(--bar-h) + 12px); width: min(520px, calc(100vw - 24px)); transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: transform .3s var(--ease), opacity .25s; }
.getbar.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.getbar-in { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px 10px 10px; border-radius: 14px; background: #2c2c2e; box-shadow: 0 10px 30px rgba(0,0,0,.5); text-align: left; }
.getbar-ic { position: relative; width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--accent-2); }
.getbar-ic .ring { position: absolute; inset: 0; width: 36px; height: 36px; transform: rotate(-90deg); }
.getbar-ic .ring circle { fill: none; stroke-width: 3; }
.getbar-ic .ring .bg { stroke: rgba(255,255,255,.15); }
.getbar-ic .ring .fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; transition: stroke-dashoffset .5s ease; }
.getbar-ic.ok { background: var(--accent); color: var(--accent-ink); }
.getbar-ic svg:not(.ring) { width: 18px; height: 18px; }
.getbar-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.getbar-t { font-weight: 600; font-size: 14.5px; }
.getbar-s { font-size: 12.5px; color: var(--text-2); }
@media (max-width: 760px) { .getbar { bottom: calc(var(--tab-h) + var(--safe-b) + 80px); } }

/* ── Home decks: a playlist (or Favourites) as a row of song cards ── */
.deck-sec { margin-top: 6px; }
.deck-head { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; }
.deck-title { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.deck-thumb { width: 44px; height: 44px; flex: none; border-radius: 8px; overflow: hidden; background: var(--s3); display: grid; place-items: center; color: var(--accent-2); }
.deck-thumb .art { border-radius: 0; }
.deck-thumb svg { width: 20px; height: 20px; }
.deck-name { display: flex; align-items: center; gap: 4px; min-width: 0; font: 700 22px/1.2 var(--font-d); letter-spacing: -.015em; }
.deck-name svg { width: 20px; height: 20px; flex: none; color: var(--text-2); transition: transform .2s var(--ease), color .2s; }
.deck-title:hover .deck-name svg { transform: translateX(3px); color: var(--text); }
.deck-n { font-size: 13px; color: var(--text-2); white-space: nowrap; }
.deck-btn { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--btn-tonal); box-shadow: var(--btn-hair); color: var(--text); transition: background .15s, transform .12s; }
.deck-btn:hover { background: var(--btn-tonal-h); }
/* the three floating buttons in the deck's corner (frosted over the living background) */
.deck-empty { grid-column: 1 / -1; align-self: center; padding: 26px 8px; color: var(--text-2); font-size: 14.5px; }
.deck-flow .deck-empty { width: min(300px, 80vw); text-align: center; }
.deck-ctls { position: absolute; top: 14px; right: 16px; z-index: 6; display: flex; align-items: center; gap: 8px; }
.deck-ctls .deck-btn { width: 40px; height: 40px; background: rgba(16, 17, 21, .36); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
.deck-ctls .deck-btn:hover { background: rgba(255, 255, 255, .16); }
.deck-ctls .deck-btn.primary { background: var(--accent); }
.deck-switch { padding: 0; overflow: hidden; color: #ff375f; }
.deck-switch .art { width: 40px; height: 40px; border-radius: 50%; }
.deck-switch img { border-radius: 0; }
.deck-switch::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); pointer-events: none; }
.deck-btn:active { transform: scale(.93); }
.deck-btn svg { width: 18px; height: 18px; }
.deck-btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--btn-lift); }
.deck-btn .eq { display: none; height: 14px; }
.deck-btn .eq i { background: currentColor; }
.deck-btn.is-playing > svg { display: none; }
.deck-btn.is-playing .eq { display: inline-flex; }
.shelf.deck { grid-auto-columns: 184px; gap: 18px; scroll-snap-type: x proximity; }
.deck-card { min-width: 0; cursor: pointer; }
.deck-card.skel { height: 232px; border-radius: 12px; background: var(--s2); }
.dc-art { position: relative; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(255,255,255,.06); transition: transform .25s var(--ease), box-shadow .35s ease; }
.dc-art .art { border-radius: 12px; }
.deck-card:hover .dc-art { box-shadow: 0 0 0 1px rgba(255,255,255,.14); } /* no lift: nothing on the site rises under the pointer */
.dc-play { position: absolute; right: 9px; bottom: 9px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgb(var(--accent-rgb) / .92); color: var(--accent-ink); box-shadow: 0 6px 16px rgba(0,0,0,.35); opacity: 0; transform: translateY(6px) scale(.94); transition: opacity .2s, transform .2s var(--ease); }
.dc-play svg { width: 18px; height: 18px; }
.dc-play .eq { display: none; height: 14px; }
.dc-play .eq i { background: currentColor; }
.deck-card:hover .dc-play, .deck-card.on .dc-play { opacity: 1; transform: none; }
.deck-card.is-playing .dc-play > svg { display: none; }
.deck-card.is-playing .dc-play .eq { display: inline-flex; }
/* the playing card: a soft glow in the song's own colours, nothing loud */
.deck-card.on .dc-art { box-shadow: 0 0 0 1px rgb(var(--tone0, var(--accent-rgb)) / .55), 0 16px 38px rgb(var(--tone0, var(--accent-rgb)) / .32); }
.dc-t { font-weight: 600; font-size: 14.5px; margin-top: 10px; }
.deck-card.on .dc-t { color: var(--accent-2); }
.dc-s { font-size: 13px; color: var(--text-2); margin-top: 1px; }
.deck-hint { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-size: 14px; margin: -4px 0 26px; }
.deck-hint svg { width: 16px; height: 16px; color: var(--accent-2); }
@media (max-width: 760px) {
  /* a medium card in the middle, neighbours peeking — swipe to play the next */
  .deck-name { font-size: 19px; }
  .deck-thumb { width: 40px; height: 40px; }
  .deck-btn { width: 36px; height: 36px; }
  .deck-wrap .shelf-nav { display: none; }
  .shelf.deck { grid-auto-columns: min(50vw, 230px); gap: 12px; scroll-snap-type: x mandatory; padding: 2px calc((100% - min(50vw, 230px)) / 2) 6px; scroll-padding: 0; }
  .shelf.deck > .deck-card { scroll-snap-align: center; }
  .deck-card .dc-play { opacity: 1; transform: none; width: 38px; height: 38px; }
  .dc-t { font-size: 15px; text-align: center; }
  .dc-s { font-size: 13.5px; text-align: center; }
}
/* Home's row arrows sit inside the content gutters. Both rows stay identical. The edge fades live in design.css. */
#homeDiscover, #homeRecent { --home-shelf-gutter: 40px; }
#homeDiscover .shelf-nav.l, #homeRecent .shelf-nav.l { left: calc(var(--home-shelf-gutter) + 10px); }
#homeDiscover .shelf-nav.r, #homeRecent .shelf-nav.r { right: calc(var(--home-shelf-gutter) + 10px); }
@media (max-width: 760px) {
  #homeDiscover, #homeRecent { --home-shelf-gutter: 20px; }
}
/* the moving strip: smooth (own layer), still while you touch it or a preview plays */
.mq-track { will-change: transform; }
.marquee { contain: paint; }
.marquee.previewing .mq-track { animation-play-state: paused; }

/* Beat bars tucked into the corner of the small artwork while music plays */
.p-now .art-hit, #miniArt { position: relative; }
.art-eq { position: absolute; left: 4px; bottom: 4px; display: none; padding: 3px 4px 3px; border-radius: 5px; background: rgba(0,0,0,.55); }
.art-eq .eq { height: 9px; gap: 1.5px; }
.art-eq .eq i { width: 2px; background: #fff; border-radius: 1px; }
body:not(.paused) .art-eq { display: inline-flex; }
/* Getting bar: close button */
.getbar { display: flex; align-items: stretch; }
.getbar-in { flex: 1; min-width: 0; }
.getbar-x { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #3a3a3c; color: var(--text); box-shadow: 0 4px 12px rgba(0,0,0,.4); }
.getbar-x svg { width: 13px; height: 13px; }

/* Downloads history */
.dl-day { display: flex; align-items: baseline; gap: 10px; margin: 22px 0 6px; font-size: 15px; font-weight: 700; }
.dl-day span { font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.t-when { color: var(--text-3); }
@media (min-width: 1101px) { .t-when { display: none; } } /* the date column shows it there */
.dl-dead { display: flex; flex-direction: column; gap: 2px; }
.dl-dead-row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; background: var(--s2); font-size: 14px; color: var(--text-2); }
.dl-dead-row .ell { flex: 1; min-width: 0; }
.dl-dead-row b { color: var(--text); font-weight: 600; }

/* Finished Get: the pill is the song's play/pause */
.ag-l-eq { display: none; }
.ag-l-eq .eq { height: 13px; }
.ag-l-eq .eq i { background: currentColor; }
.ag.done.is-playing .ag-l-play { display: none; }
.ag.done.is-playing .ag-l-eq { display: inline-flex; }
/* Mini player: hold, then slide to scrub */
.mini-scrub { position: absolute; left: 50%; top: -46px; transform: translateX(-50%); padding: 7px 14px; border-radius: 18px; background: #2c2c2e; box-shadow: 0 8px 22px rgba(0,0,0,.5); font-size: 15px; white-space: nowrap; pointer-events: none; }
.mini-scrub b { font-variant-numeric: tabular-nums; }
.mini-scrub span { color: var(--text-2); font-variant-numeric: tabular-nums; }
.mini.scrubbing { overflow: visible; }
.mini.scrubbing .mini-prog { height: 4px; }
.mini.scrubbing .meta, .mini.scrubbing #miniArt { opacity: .55; transition: opacity .2s; }

/* Discover row: drifts on its own, scrolls by hand; the previewed card is marked */
.shelf.drift { scroll-snap-type: none; }
.cat-card:has(.pv-btn.on) .cat-art { box-shadow: 0 0 0 2px var(--accent-2), 0 12px 28px rgb(var(--accent-rgb) / .25); }
.cat-card:has(.pv-btn.on) .card-t { color: var(--accent-2); }
#discNote { display: flex; align-items: center; gap: 12px; }
.pv-now { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-2); font-weight: 600; }
.pv-now svg { width: 15px; height: 15px; }

/* ── Cover Flow: the Home playlists ─────────────────────────────────────
   deckFlow() gives every card --d (signed distance from the middle, in
   card widths) and --a (its size); everything below is driven by those. */
.deck-wrap { --cw: 112px; position: relative; isolation: isolate; }
.shelf.deck.deck-flow { grid-auto-columns: var(--cw); gap: 0; padding: 12px calc(50% - var(--cw) / 2) 34px; scroll-padding: 0;
  scroll-snap-type: x mandatory; perspective: 1100px; position: relative; z-index: 1; }
/* the card itself stays put (it's what scroll-snap measures); its cover takes the 3D turn */
.deck-flow > .deck-card { scroll-snap-align: center; position: relative; transform: none; }
.deck-flow .dc-art, .deck-flow .deck-card:hover .dc-art { will-change: transform;
  transform: perspective(1000px) translateX(calc(var(--d, 0) * -22%)) rotateY(clamp(-50deg, calc(var(--d, 0) * -28deg), 50deg)) scale(calc(1 - var(--a, 0) * .15)); }
.deck-flow .dc-t, .deck-flow .dc-s { display: none; }
.deck-flow .dc-art { border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.55);
  -webkit-box-reflect: below 6px linear-gradient(transparent 66%, rgba(255,255,255,.18)); }
.deck-flow .dc-art .art { border-radius: 14px; }
.deck-flow .dc-art img { transition: filter .35s ease; }
.deck-flow .deck-card.dc-side .dc-art img { filter: blur(1.6px) saturate(.85); }
.deck-flow .deck-card.dc-far .dc-art img { filter: blur(4px) saturate(.7); }
.deck-flow .dc-art::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #05070a; pointer-events: none;
  opacity: calc(min(var(--a, 0), 2.2) * .3); }
.deck-flow .deck-card.on .dc-art { box-shadow: 0 18px 44px rgba(0,0,0,.55), 0 0 0 1px rgb(var(--tone0, var(--accent-rgb)) / .5); }
/* the middle cover breathes with the bass while it plays */
.deck-flow .deck-card.is-playing.dc-mid .dc-art { transform: perspective(1000px) translateX(calc(var(--d, 0) * -22%)) rotateY(calc(var(--d, 0) * -28deg)) scale(calc(1 + var(--eq0, 0) * .028)); transition: transform .12s linear; }
/* only the middle cover has the play button */
.deck-flow .dc-play { top: calc(var(--cw) - 50px); bottom: auto; right: 10px; z-index: 2; } /* outside the cover, so it isn't reflected */
.deck-flow .deck-card:not(.dc-mid) .dc-play { opacity: 0 !important; pointer-events: none; }
.deck-sec + .deck-hint, .deck-cap + .deck-hint { margin-top: 10px; }
.deck-flow .deck-card.dc-mid .dc-play { opacity: 1; transform: none; }
/* a glow of the middle cover's colours behind the row; it breathes with the music */
.deck-glow { position: absolute; inset: -30% -10%; z-index: 0; pointer-events: none; overflow: hidden; border-radius: 20px; }
.deck-glow canvas { position: absolute; left: 0; top: 50%; width: 100%; aspect-ratio: 1; opacity: 0;
  transform: translate(0, -50%); animation: amb-drift 32s ease-in-out infinite alternate; transition: opacity .7s ease; }
.deck-glow canvas.in { opacity: .55; }
.deck-wrap.live .deck-glow canvas.in { opacity: calc(.5 + .12 * var(--eq0, .3)); transition: opacity .25s linear; }
body.paused .deck-glow canvas { animation-play-state: paused; }
/* the song in the middle, under the row */
.deck-cap { text-align: center; margin-top: -54px; position: relative; z-index: 2; min-height: 44px; opacity: 0; transform: translateY(4px); transition: opacity .3s ease, transform .3s ease; }
.deck-cap.in { opacity: 1; transform: none; }
.deck-cap .t { font: 650 17px/1.25 var(--font-d); }
.deck-cap .s { font-size: 14px; color: var(--text-2); margin-top: 2px; }
.deck-nav { position: absolute; top: calc(22px + var(--cw) / 2 - 20px); z-index: 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(44,44,46,.85); color: var(--text); box-shadow: 0 6px 18px rgba(0,0,0,.45); opacity: 0; transition: opacity .2s; }
.deck-nav svg { width: 20px; height: 20px; }
.deck-nav.l { left: 18px; } .deck-nav.r { right: 18px; }
.deck-wrap:hover .deck-nav { opacity: 1; }
@media (max-width: 760px) {
  .deck-wrap { --cw: min(31vw, 132px); }
  .shelf.deck.deck-flow { padding: 8px calc(50% - var(--cw) / 2) 30px; }
  /* the playlist is a card of its own: its living background stays inside it */
  .deck-sec:not(.spot) { position: relative; isolation: isolate; overflow: hidden; border-radius: 20px; padding: 16px 14px 20px; background: #0b0e13; }
  .deck-sec:not(.spot) .deck-ctls { top: 50%; right: 10px; gap: 6px; flex-direction: column; transform: translateY(-50%); }
  .deck-sec:not(.spot) .shelf.deck.deck-flow { padding-top: 2px; padding-bottom: 26px; }
  .deck-sec:not(.spot) .deck-ctls .deck-btn { width: 36px; height: 36px; }
  .deck-sec:not(.spot) .deck-switch .art { width: 36px; height: 36px; }
  .deck-sec:not(.spot) .deck-glow { inset: -40% -20%; }
  .deck-cap { margin-top: -22px; min-height: 38px; }
  .deck-cap .t { font-size: 15px; }
  .deck-nav { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .deck-flow .dc-art, .deck-flow .deck-card:hover .dc-art { transform: scale(calc(1 - var(--a, 0) * .12)); }
}

/* ── The middle cover's control: one element that morphs ─────────────────
   Paused: a frosted 62 px circle in the middle of the cover. Playing: the same
   element opens (clip-path inset → inset) into a frosted band over the bottom
   half, where the beat is drawn (see coreFrame). */
.deck-flow .dc-core { position: absolute; left: 0; top: 22px; width: var(--cw); height: var(--cw); z-index: 2; padding: 0; border-radius: 14px; color: #fff;
  clip-path: inset(calc(50% - 31px) calc(50% - 31px) calc(50% - 31px) calc(50% - 31px) round 31px);
  background: linear-gradient(to top, rgba(6,8,12,.5), rgba(6,8,12,.28));
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  transition: clip-path .6s cubic-bezier(.2, .9, .25, 1), background .45s ease, opacity .3s ease; }
.deck-flow .deck-card > .dc-core { top: 0; } /* the card's cover starts at its top */
.deck-flow .deck-card:not(.dc-mid) .dc-core { opacity: 0; pointer-events: none; }
.dc-glyph { position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; transform: translate(-50%, -50%); display: grid; place-items: center;
  transition: opacity .25s ease, transform .45s cubic-bezier(.2, .9, .25, 1); }
.dc-glyph svg { width: 26px; height: 26px; grid-area: 1 / 1; }
.dc-glyph svg:first-child { margin-left: 3px; } /* the play triangle's optical centre */
.dc-glyph .dc-pause { opacity: 0; }
.deck-flow .dc-core:hover .dc-glyph { transform: translate(-50%, -50%) scale(1.08); }
.dc-core .dc-beat { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 50%; opacity: 0; transition: opacity .45s ease .15s; }
/* playing: open into the band, the glyph gives way to the music */
.deck-flow .deck-card.is-playing.dc-mid .dc-core { clip-path: inset(50% 0 0 0 round 0 0 14px 14px);
  background: linear-gradient(to top, rgba(6,8,12,.66), rgba(6,8,12,0) 85%); transform: scale(calc(1 + var(--eq0, 0) * .028)); transform-origin: 50% 50%;
  -webkit-backdrop-filter: blur(9px) saturate(1.3); backdrop-filter: blur(9px) saturate(1.3);
  -webkit-mask: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.55) 66%, #000 82%); mask: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.55) 66%, #000 82%); }
.deck-flow .deck-card.is-playing.dc-mid .dc-glyph { opacity: 0; transform: translate(-50%, 40%) scale(.6); }
.deck-flow .deck-card.is-playing.dc-mid .dc-beat { opacity: 1; }
.deck-flow .deck-card.is-playing .dc-core:hover { background: linear-gradient(to top, rgba(6,8,12,.7), rgba(6,8,12,.12)); }

/* Mini player: teach the gestures the first few times */
.mini.hint-nudge .meta, .mini.hint-nudge #miniArt { animation: mini-nudge 1.5s cubic-bezier(.3, .7, .3, 1) .1s; }
@keyframes mini-nudge { 0%, 100% { transform: none; } 22% { transform: translateX(-22px); } 45% { transform: translateX(10px); } 66% { transform: translateX(-5px); } }
.mini-tip { position: fixed; z-index: 46; left: 12px; right: 12px; bottom: calc(var(--tab-h) + var(--safe-b) + 82px); display: flex; align-items: center; gap: 12px;
  padding: 11px 12px 11px 14px; border-radius: 14px; background: #2c2c2e; box-shadow: 0 10px 28px rgba(0,0,0,.5); font-size: 13.5px; line-height: 1.35; color: var(--text-2);
  opacity: 0; transform: translateY(8px); transition: opacity .3s ease, transform .3s ease; }
.mini-tip.on { opacity: 1; transform: none; }
.mini-tip b { color: var(--text); font-weight: 600; }
.mini-tip span { flex: 1; }
.mini-tip button { flex: none; color: var(--accent-2); font-weight: 600; font-size: 14px; padding: 6px 4px; }
@media (min-width: 761px) { .mini-tip { display: none; } }
/* the mini player is a gesture surface: no text selection or callouts on long-press */
.mini, .mini * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

/* ── The featured song's control: a frosted button with a progress ring ──
   The ring draws --np-p (the playing song's progress) and glows in the cover's
   colour on the beat; play and pause turn into each other. */
.ring-ctl { position: relative; width: 58px; height: 58px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; padding: 0;
  background: rgba(14,16,20,.4); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 10px 26px rgba(0,0,0,.38), inset 0 0 0 1px rgba(255,255,255,.14); transition: transform .25s var(--ease), background .2s, box-shadow .3s; }
.ring-ctl:hover { background: rgba(14,16,20,.52); }
.ring-ctl:active { transform: scale(.94); }
.rc-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; pointer-events: none; }
.rc-ring circle { fill: none; stroke-width: 2.4; }
.rc-ring .bg { stroke: rgba(255,255,255,.16); opacity: 0; transition: opacity .35s ease; }
.rc-ring .fg { stroke: #fff; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0;
  transition: stroke-dashoffset .35s linear, opacity .35s ease, filter .12s linear;
  filter: drop-shadow(0 0 calc(2px + 7px * var(--eq0, 0)) rgb(var(--tone0, 255 255 255) / .95)); }
.rc-g { grid-area: 1 / 1; display: grid; place-items: center; transition: opacity .25s ease, transform .4s cubic-bezier(.2, .9, .25, 1.2); }
.rc-g svg { width: 24px; height: 24px; }
.rc-play svg { margin-left: 3px; }
.rc-pause { opacity: 0; transform: scale(.5) rotate(-90deg); }
.on .ring-ctl .rc-ring .bg { opacity: 1; }
.on .ring-ctl .rc-ring .fg { opacity: 1; stroke-dashoffset: calc(100 - var(--np-p, 0) * 100); }
.is-playing .ring-ctl .rc-play { opacity: 0; transform: scale(.5) rotate(90deg); }
.is-playing .ring-ctl .rc-pause { opacity: 1; transform: none; }
.is-playing .ring-ctl { box-shadow: 0 10px 26px rgba(0,0,0,.38), 0 0 calc(10px + 18px * var(--eq0, 0)) rgb(var(--tone0, var(--accent-rgb)) / .35), inset 0 0 0 1px rgba(255,255,255,.18); }

/* Cover Flow (phone): the control sits low on the middle cover */
.deck-flow .deck-card > .ring-ctl { position: absolute; left: 50%; top: calc(var(--cw) - 74px); margin-left: -29px; z-index: 2; }
.deck-flow .deck-card:not(.dc-mid) > .ring-ctl { opacity: 0; pointer-events: none; transform: scale(.8); }
.deck-flow .deck-card > .ring-ctl { transition: opacity .3s ease, transform .3s var(--ease), background .2s, box-shadow .3s; }

/* ── Spotlight (desktop): the featured song big, the playlist beside it ── */
.spot { position: relative; isolation: isolate; overflow: hidden; border-radius: 22px; padding: 20px; margin: 6px 0 30px; background: #0b0e13;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.spot-bg { position: absolute; inset: -25%; z-index: -1; pointer-events: none; }
.spot-bg canvas { position: absolute; left: 0; top: 50%; width: 100%; aspect-ratio: 1; opacity: .9;
  transform: translate(0, -50%); animation: amb-drift 32s ease-in-out infinite alternate; }
@keyframes amb-drift { from { transform: translate(-3%, -54%) scale(1.08) rotate(-2deg); } to { transform: translate(3%, -46%) scale(1.2) rotate(2deg); } }
body.paused .spot-bg canvas { animation-play-state: paused; }
.spot-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 20% 30%, rgba(8,10,14,.1), rgba(8,10,14,.62) 60%, rgba(8,10,14,.82)); }
.spot.live .spot-bg canvas { opacity: calc(.82 + .12 * var(--eq0, .3)); transition: opacity .25s linear; }
.spot .deck-head { margin-bottom: 12px; }
.spot .deck-btn { background: rgba(255,255,255,.12); }
.spot .deck-btn:hover { background: rgba(255,255,255,.2); }
.spot .deck-btn.primary { background: var(--accent); }
.spot-body { display: grid; grid-template-columns: minmax(340px, 38%) minmax(0, 1fr); gap: 22px; align-items: center; }
.spot-hero { display: flex; align-items: center; gap: 16px; min-width: 0; }
.spot-hero .spot-art { width: 176px; flex: none; border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .5); }
.spot-hero .spot-art .art { border-radius: 12px; }
.spot-hero .spot-meta { margin-top: 0; }
.spot-hero .spot-t { font-size: 24px; }
.spot-hero .spot-s { font-size: 15px; }
.spot-hero .spot-ctl { margin-top: 10px; }
.spot .spot-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 12px; }
.spot-lw { position: relative; margin-right: 52px; min-width: 0; } /* a gutter for the side buttons */
.spot .deck-ctls { flex-direction: column; top: 50%; right: 16px; transform: translateY(-50%); }
/* subtle arrows: there's more above / below (the list scrolls; a click moves three rows) */
.sl-arrow { position: absolute; left: 50%; z-index: 2; width: 34px; height: 18px; margin-left: -17px; display: grid; place-items: center; border-radius: 9px;
  color: rgba(255, 255, 255, .8); background: rgba(16, 17, 21, .42); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity .25s, background .15s, transform .2s var(--spring); }
.sl-arrow svg { width: 14px; height: 14px; }
.sl-arrow.up { top: -12px; } .sl-arrow.up svg { transform: rotate(-90deg); }
.sl-arrow.down { bottom: -12px; } .sl-arrow.down svg { transform: rotate(90deg); }
.spot-lw:has(.spot-list.scrolled) .sl-arrow.up, .spot-lw:has(.spot-list:not(.at-end)) .sl-arrow.down { opacity: .55; pointer-events: auto; }
.spot-lw:hover .sl-arrow { background: rgba(16, 17, 21, .6); }
.spot-lw:has(.spot-list.scrolled):hover .sl-arrow.up, .spot-lw:has(.spot-list:not(.at-end)):hover .sl-arrow.down { opacity: .9; }
.sl-arrow:active { transform: scale(.9); }
/* six songs at a time (three rows, as tall as the big cover); the rest scroll inside the list */
.spot .spot-list { max-height: 148px; overflow-y: auto; overscroll-behavior: contain; scroll-snap-type: y proximity; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 16px), transparent); mask-image: linear-gradient(#000 calc(100% - 16px), transparent); }
.spot .spot-list::-webkit-scrollbar { display: none; }
.spot .spot-list > .spot-item { scroll-snap-align: start; }
.spot .spot-list.scrolled:not(.at-end) { -webkit-mask-image: linear-gradient(transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(transparent, #000 16px, #000 calc(100% - 16px), transparent); }
.spot .spot-list.at-end.scrolled { -webkit-mask-image: linear-gradient(transparent, #000 16px); mask-image: linear-gradient(transparent, #000 16px); }
.spot .spot-list.at-end:not(.scrolled) { -webkit-mask-image: none; mask-image: none; }
.spot .spot-item { grid-template-columns: 38px minmax(0, 1fr) auto; gap: 11px; padding: 5px 10px 5px 5px; border-radius: 10px; }
.spot .si-art { width: 38px; }
.spot .si-art .art { border-radius: 6px; }
.spot .si-t { font-size: 14px; }
.spot .si-s { font-size: 12.5px; }
.spot-hero .spot-t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.15; }
.spot .spot-list::-webkit-scrollbar { display: none; }
.spot-hero { transition: opacity .18s ease, transform .18s ease; }
.spot-hero.swap { opacity: 0; transform: translateY(6px); }
.spot-art { position: relative; border-radius: 16px; overflow: hidden; cursor: pointer; box-shadow: 0 26px 60px rgba(0,0,0,.55); transition: transform .5s var(--ease); }
.spot-art .art { border-radius: 16px; }
.spot-art.skel { aspect-ratio: 1; background: rgba(255,255,255,.06); }
.spot.live .spot-art { transform: scale(calc(1 + var(--eq0, 0) * .018)); transition: transform .12s linear; will-change: transform; }
.spot-meta { margin-top: 18px; min-width: 0; }
.spot-t { font: 700 24px/1.2 var(--font-d); letter-spacing: -.015em; }
.spot-s { font-size: 16px; color: rgba(255,255,255,.66); margin-top: 3px; }
.spot-s a:hover { color: #fff; text-decoration: underline; }
.spot-ctl { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.spot-q .q { background: rgba(255,255,255,.1); }
.spot-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; align-content: start; position: relative;
  max-height: min(calc(32vw + 150px), 560px); overflow-y: auto; scrollbar-width: none; padding: 4px 2px 18px;
  -webkit-mask: linear-gradient(transparent, #000 14px, #000 calc(100% - 34px), transparent); mask: linear-gradient(transparent, #000 14px, #000 calc(100% - 34px), transparent); }
.spot-list::-webkit-scrollbar { display: none; }
.spot-item { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 10px 7px 7px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.spot-item:hover { background: rgba(255,255,255,.08); }
.spot-item.on { background: rgba(255,255,255,.12); }
.spot-item.skel { height: 60px; background: rgba(255,255,255,.04); }
.si-art { position: relative; width: 46px; }
.si-art .art { border-radius: 7px; }
.si-eq { position: absolute; inset: 0; display: none; place-items: center; border-radius: 7px; background: rgba(0,0,0,.45); }
.si-eq .eq { height: 14px; }
.si-eq .eq i { background: #fff; }
.spot-item.on .si-eq { display: grid; }
.si-m { display: flex; flex-direction: column; min-width: 0; }
.si-t { font-weight: 600; font-size: 14.5px; }
.spot-item.on .si-t { color: #fff; }
.si-s { font-size: 13px; color: rgba(255,255,255,.6); margin-top: 1px; }
.si-d { font-size: 12.5px; color: rgba(255,255,255,.5); }
@media (max-width: 1100px) { .spot-list { grid-template-columns: minmax(0, 1fr); } }

/* ───────────── Cover picker (song details) ───────────── */
.cover-pick { display: flex; align-items: center; gap: 12px; margin: 8px 0 10px; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.08); }
.cp-art { width: 52px; flex: none; }
.cp-art .art { border-radius: 7px; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.cp-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.cp-txt b { font-weight: 600; }
.cp-info { font-size: 12.5px; line-height: 1.35; color: rgba(255,255,255,.55); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cp-btn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px 0 11px; border-radius: 17px; background: rgba(255,255,255,.12); color: #fff; font-weight: 600; font-size: 13.5px; transition: background .15s, transform .12s; }
.cp-btn:hover { background: rgba(255,255,255,.18); }
.cp-btn:active { transform: scale(.96); }
.cp-btn svg { width: 16px; height: 16px; }
.cp-flip { width: 38px; height: 38px; padding: 0; justify-content: center; border-radius: 50%; }
.cp-flip svg { width: 20px; height: 20px; transition: transform .5s var(--spring); }
.cp-flip:hover svg { transform: rotate(-30deg); }
.cp-flip.busy svg, .np-flipcover.busy svg { animation: cp-flip 1s cubic-bezier(.6, 0, .4, 1) infinite; }
.np-flipcover svg { transition: transform .5s var(--spring); }
.np-flipcover:hover svg { transform: rotate(-30deg); }
@keyframes cp-flip { 50% { transform: perspective(60px) rotateY(180deg); } 100% { transform: perspective(60px) rotateY(360deg); } }
.cp-btn.busy { cursor: progress; }
.cp-btn.busy svg { animation: cp-spin .9s linear infinite; }
@keyframes cp-spin { to { transform: rotate(360deg); } }
.modal .cover-pick { background: var(--s2); }
.modal .cp-info { color: var(--text-2); }
.modal .cp-btn { background: var(--s3); color: var(--accent-2); }
.modal .cp-btn:hover { background: var(--s4); }
.q-more { display: flex; margin: 14px auto 6px; min-width: 0; height: 38px; font-size: 14px; }

.ag-status { color: var(--text-2); }

/* lyrics timing nudge (per song, this device) */
.ly-nudge { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
/* Lyrics timing by the player controls: only while synced lyrics are on screen */
.np-lyoff { display: none; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; color: var(--text-2); font-size: 13px; }
.np:has(#npPane.ly-mode) .np-lyoff { display: flex; }
.np-lyoff-l { margin-right: 2px; }
.np-lyoff button { min-width: 30px; height: 30px; padding: 0 10px; border-radius: 15px; background: rgba(255, 255, 255, .1); color: var(--text); font-weight: 700; line-height: 1; transition: background .15s, transform .18s var(--spring); }
.np-lyoff button:hover { background: rgba(255, 255, 255, .18); }
.np-lyoff button:active { transform: scale(.92); }
.np-lyoff b { min-width: 52px; text-align: center; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.np-lyoff .np-lyoff-reset { font-weight: 600; font-size: 12.5px; color: var(--text-2); }
.ly-nudge button { width: 24px; height: 24px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: inherit; font-weight: 700; line-height: 1; transition: background .15s, transform .18s var(--spring); }
.ly-nudge button:hover { background: rgba(255, 255, 255, .18); }
.ly-nudge button:active { transform: scale(.9); }
.ly-nudge b { min-width: 46px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }

/* Home: sections below the fold aren't styled or laid out until they scroll near (PERF-01) */
.page:has(#homeDecks) > .section:not(.deck-sec) { content-visibility: auto; contain-intrinsic-size: auto 340px; }

/* Reduce motion (B5): lyrics don't cascade or blur; living backgrounds stand still */
@media (prefers-reduced-motion: reduce) {
  .lyrics2 .ly { transition: none !important; transition-delay: 0s !important; filter: none !important; }
  .spot-bg canvas, .deck-glow canvas { animation: none !important; }
  .spot.live .spot-bg { transform: none !important; }
}

/* keyboard focus is visible on every made-up button; a focused row shows its play glyph (B4) */
[role="button"]:focus-visible, [role="menuitem"]:focus-visible, .rp-bar:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; border-radius: 8px; }
.t-row:focus-within .t-num .pb { opacity: 1; }
.t-row:focus-within .t-num .n { opacity: 0; }

/* Playlist import (F2) */
.imp-open { min-width: 0; height: 36px; padding: 0 16px; font-size: 14px; }
.imp-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 6px 0 18px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .045); box-shadow: var(--btn-hair); }
.imp-name input { font-size: 18px; font-weight: 650; }
.imp-sum { color: var(--text-2); font-size: 14px; }
.imp-sum b { color: var(--text); }
.imp-row { display: grid; grid-template-columns: 22px 30px 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 62px; padding: 0 6px; border-radius: 10px; }
.imp-row:hover { background: rgba(255, 255, 255, .04); }
.imp-sel { width: 18px; height: 18px; accent-color: var(--accent); }
.imp-n { color: var(--text-3); font-size: 13px; text-align: right; }
.imp-row.suggest .cat-s em { color: var(--text-3); font-style: normal; }
.imp-row.none .cat-t, .imp-row.unavailable .cat-t, .imp-row.correction .cat-t { color: var(--text-2); }
.imp-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13.5px; }
.imp-ok svg { width: 16px; height: 16px; color: #30d158; }
.imp-note { color: var(--text-3); font-size: 13.5px; }
.imp-err { color: #ff6961; font-size: 14px; margin: -4px 0 8px; }
.modal textarea { width: 100%; resize: vertical; min-height: 120px; padding: 10px 12px; border-radius: 10px; background: var(--s2); color: var(--text); border: 1px solid var(--line-2); font: inherit; font-size: 14.5px; }
@media (max-width: 760px) {
  .imp-row { grid-template-columns: 22px 44px minmax(0, 1fr) auto; gap: 10px; }
  .imp-n { display: none; }
}

/* Home playlists: an artwork turntable, collection shelf and readable track preview. */
.playlist-room { margin-top: 26px; margin-bottom: 28px; }
.playlist-section-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 15px; }
.playlist-section-head h2 { margin: 0 auto 0 0; font: 650 24px/1.2 var(--font-d); letter-spacing: -.035em; }
.playlist-section-head #homeJam:has(.jh-live, .jh-inv) { flex-basis: 100%; order: 1; }
.playlist-section-head .jh-start { width: auto; min-height: 40px; padding: 0 12px; gap: 7px; border-radius: 20px; background: var(--btn-tonal); color: var(--text-2); font-size: 12px; font-weight: 550; }
.playlist-section-head .jh-start:hover { background: var(--btn-tonal-h); color: var(--text); }
.playlist-section-head .jh-start .i { width: 16px; height: 16px; }
.playlist-new { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 13px; border: 0; background: var(--btn-tonal); border-radius: 20px; color: var(--text-2); font-size: 12px; font-weight: 550; transition: background .18s, color .18s; }
.playlist-new .i { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .playlist-new:hover { color: var(--text); background: var(--btn-tonal-h); } }
.playlist-switcher { position: relative; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--sep); }
.playlist-tabs { --tab-fade: 38px; position: relative; display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 2px 0; }
.playlist-tabs::-webkit-scrollbar { display: none; }
.playlist-tabs.can-left { -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--tab-fade)); mask-image: linear-gradient(90deg, transparent, #000 var(--tab-fade)); }
.playlist-tabs.can-right { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - var(--tab-fade)), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - var(--tab-fade)), transparent); }
.playlist-tabs.can-left.can-right { -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--tab-fade), #000 calc(100% - var(--tab-fade)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--tab-fade), #000 calc(100% - var(--tab-fade)), transparent); }
.playlist-tab { display: flex; flex: none; align-items: center; gap: 10px; max-width: 230px; padding: 6px 14px 6px 6px; min-height: 52px;
  border: 1px solid transparent; border-radius: 14px; background: transparent; color: rgba(255, 255, 255, .66); font-size: 13px; font-weight: 550;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast); }
@media (hover: hover) and (pointer: fine) { .playlist-tab:hover { background: var(--fill-1); color: var(--text); } }
.playlist-tab:active { background: var(--fill-2); }
.playlist-tab[aria-pressed="true"] { background: var(--fill-2); border-color: #ffffff1f; color: var(--text); box-shadow: none; }
.playlist-tab:focus-visible, .stage-play:focus-visible, .stage-shuffle:focus-visible, .playlist-new:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; }
.playlist-tab-copy { min-width: 0; text-align: left; }
.playlist-tab-name { display: block; font-weight: 600; line-height: 1.4; }
.playlist-tab-detail { display: block; min-width: 54px; margin-top: 2px; color: rgba(255, 255, 255, .5); font-size: 11px; font-weight: 450; line-height: 1.3; }
.playlist-tab-playing { display: none; align-items: center; gap: 5px; color: var(--text); }
.playlist-tab.is-playing .playlist-tab-count { display: none; }
.playlist-tab.is-playing .playlist-tab-playing { display: flex; }
.playlist-tab-playing .eq { height: 10px; gap: 1px; }
.playlist-tab-playing .eq i { width: 2px; background: var(--accent-2); }
.playlist-tab-art { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 9px; overflow: hidden; background: #ffffff0a; color: var(--text-2); box-shadow: inset 0 0 0 1px #ffffff0a; }
.playlist-tab-art > .art { width: 100%; border-radius: 0; }
.playlist-tab-art > .i { width: 18px; height: 18px; }
.playlist-nav { position: absolute; top: 14px; z-index: 2; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #ffffff20; border-radius: 50%; background: #1b1c20; color: var(--text); box-shadow: 0 3px 14px #0005; }
.playlist-nav.prev { left: 0; } .playlist-nav.next { right: 0; }
.playlist-nav .i { width: 15px; height: 15px; }
.playlist-nav:hover { background: #303136; }
.playlist-nav[hidden] { display: none; }
.playlist-stage.spot { margin: 0; padding: 26px; border-radius: 28px; background: #101216; box-shadow: inset 0 0 0 1px #ffffff17, inset 0 1px 0 #ffffff08, 0 18px 44px #0003; }
.record-atmosphere { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }
.soft-wave-scene { position: absolute; inset: 0; overflow: hidden; contain: strict; isolation: isolate; pointer-events: none; }
.soft-wave-sheet { position: absolute; left: -22%; top: -26%; width: 144%; height: 152%; max-width: none; transition: opacity .14s linear; will-change: transform, opacity; }
.art-missing { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); }
.art-missing .i { width: 28px; height: 28px; }
.playlist-stage .spot-bg { display: none; }
.playlist-stage::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(112deg, #07090d08, #07090d12 52%, #07090d26); pointer-events: none; }
.stage-layout { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, 1fr); gap: 32px; align-items: center; animation: stage-enter .28s ease-out both; }
@keyframes stage-enter { from { opacity: .45; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.stage-kicker { display: flex; align-items: center; gap: 7px; color: #ffffff91; font-size: 10px; font-weight: 600; letter-spacing: .12em; line-height: 1.5; }
.stage-art-scene { position: relative; grid-column: 1; grid-row: 1; min-width: 0; width: 100%; max-width: 540px; margin: 0 auto; }
.record-player { position: relative; isolation: isolate; padding: 18px; border: 1px solid #ffffff2f; border-radius: 12px; background: repeating-linear-gradient(0deg, #ffffff02 0 1px, transparent 1px 3px), linear-gradient(145deg, #3b3d41, #2a2c31 27%, #1d1f24 68%, #292b30); box-shadow: inset 0 1px 0 #ffffff30, inset 1px 0 0 #ffffff07, inset 0 -2px 0 #0b0c0f, 0 2px 0 #45474b, 0 4px 0 #16181c, 0 6px 0 #08090c, 0 16px 28px #0007; }
.record-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 14px; margin-bottom: 10px; }
.record-mode { display: inline-flex; align-items: baseline; gap: 5px; min-width: 0; color: #ded9ce; font-variant-numeric: tabular-nums; line-height: 1; }
.record-mode-value { font-size: 10px; font-weight: 550; letter-spacing: .03em; }
.record-mode-state { color: rgba(255, 255, 255, .4); font-size: 9px; font-weight: 450; letter-spacing: .02em; }
.record-status { display: inline-flex; align-items: center; gap: 6px; color: rgba(255, 255, 255, .46); font-size: 9px; font-weight: 600; letter-spacing: .14em; white-space: nowrap; }
.record-status-lamp { display: grid; place-items: center; width: 14px; height: 14px; border: 1px solid #08090cc9; border-radius: 4px; background: linear-gradient(140deg, #131519, #393c40); box-shadow: inset 0 1px 2px #0009, 0 1px 0 #ffffff19; }
.record-status-lamp > i { width: 5px; height: 5px; border-radius: 50%; background: radial-gradient(circle at 35% 25%, #a49d86, #5c584a 44%, #34342e 77%); box-shadow: inset 0 1px 1px #ffffff30; animation: record-lamp-idle 8s ease-in-out infinite; }
.record-player.is-playing .record-status { color: #d7d0bd; }
.record-player.is-playing .record-status-lamp > i { background: radial-gradient(circle at 35% 25%, #fff4d6, #cabd99 37%, #777057 70%); box-shadow: inset 0 1px 1px #ffffff5a, 0 0 4px #e0d1a848; animation: record-lamp-play 4.8s ease-in-out infinite; }
.record-player.is-scratching .record-status { color: #e1cfbb; }
.record-player.is-scratching .record-status-lamp > i { animation: none; box-shadow: 0 0 4px #ddd1ae52; }
.record-player.is-calm .record-status-lamp > i { animation: none; }
@keyframes record-lamp-idle { 0%, 100% { opacity: .62; } 50% { opacity: .82; } }
@keyframes record-lamp-play { 0%, 100% { opacity: .84; } 50% { opacity: 1; } } /* opacity only: the compositor runs it */
.record-surface { position: relative; width: 100%; aspect-ratio: 460 / 350; margin-bottom: 27px; }
.playlist-stage .record-surface > .spot-hero { position: absolute; left: 2.8%; top: 1.8%; width: 75.2%; display: block; min-width: 0; transform: none; z-index: 1; transition: opacity .18s, transform .3s var(--ease); }
.playlist-stage .record-surface > .spot-hero.swap { opacity: 0; transform: translateY(3px) scale(.99); }
.playlist-stage .spot-hero > .spot-art { width: 100%; aspect-ratio: 1; border-radius: 50%; background: repeating-radial-gradient(circle, #13151a 0 1px, #22242a 1.5px, #101217 2px 3px); box-shadow: 0 10px 20px #0007, inset 0 0 0 1px #ffffff20; }
.playlist-stage .stage-blank { display: grid; place-items: center; color: #ffffff28; }
.playlist-stage .stage-blank > .i { width: 56px; height: 56px; }
.playlist-stage .record-surface .spot-meta { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.turntable { --vinyl-progress: 0; position: relative; min-width: 0; }
.turntable-disc.stage-record { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; isolation: isolate; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; outline: none; background: #07080b; border: 1px solid #ffffff2d; box-shadow: 0 2px 0 #020306, 0 4px 0 #111217, 0 5px 0 #ffffff12, 0 10px 18px #0009, inset 0 0 0 1px #000; transition: box-shadow .25s; }
.turntable-disc.stage-record::before { content: ''; position: absolute; z-index: -1; inset: -7px; border: 1px solid #ffffff2e; border-radius: inherit; background: conic-gradient(from 28deg, #45484c, #15171b 19%, #34373b 40%, #626365 64%, #16181c 84%, #45484c); box-shadow: inset 0 0 0 3px #111318, 0 1px 0 #ffffff29, 0 4px 0 #090a0d, 0 6px 9px #0007; pointer-events: none; }
.turntable-disc.stage-record::after { content: ''; position: absolute; inset: 2px; border-radius: inherit; box-shadow: inset 0 1px 1px #ffffff40, inset 0 -2px 2px #000b, inset 0 0 0 4px #ffffff04; pointer-events: none; }
.turntable-disc:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 9px; }
.turntable-disc[aria-disabled="true"] { cursor: default; }
.turntable.is-dragging .turntable-disc { cursor: grabbing; box-shadow: 0 2px 0 #020306, 0 4px 0 #090a0e, 0 5px 0 #ffffff20, 0 13px 20px #000a, inset 0 0 0 1px #000; }
.turntable .stage-record-rotor { position: absolute; inset: 3px; border-radius: inherit; transform: rotate(var(--record-angle, 0deg)); overflow: hidden; background: radial-gradient(circle, #181a20 0 30%, #090b0f 31% 37%, #111318 38% 94%, #08090c 96%); box-shadow: inset 0 0 0 1px #ffffff18; will-change: transform; }
.turntable .stage-record-rotor::before { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 0 2px #0009, inset 0 0 0 3px #ffffff08; }
.turntable .stage-record-rotor::after { content: ''; position: absolute; top: 2.6%; left: calc(50% - 1px); width: 2px; height: 2.1%; z-index: 3; border-radius: 2px; background: #ffffff63; }
.turntable-art { position: absolute; z-index: 3; inset: 23.6%; overflow: hidden; border-radius: 50%; background: #202127; transform: scale(calc(1 + var(--record-beat, 0) * .045)); transform-origin: center; box-shadow: 0 0 0 3px #101217, 0 0 0 4px #ffffff16, 0 3px 9px #0007; will-change: transform; }
.turntable-art > .art { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; pointer-events: none; }
.turntable-art::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(145deg, #ffffff0b, transparent 40%, #0002); box-shadow: inset 0 0 0 1px #ffffff1f; pointer-events: none; }
.turntable-grooves { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: repeating-radial-gradient(circle, #121419 0 1.7px, #20232a 2.5px, #0b0d11 3.3px, #121419 4.6px); -webkit-mask-image: radial-gradient(circle, transparent 0 38%, #000 40% 68%, transparent 69%); mask-image: radial-gradient(circle, transparent 0 38%, #000 40% 68%, transparent 69%); }
.record-type { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.record-type text { fill: #d8cbb8c9; font: 500 2.6px var(--font); letter-spacing: .13px; }
.turntable-spindle { position: absolute; z-index: 6; left: 50%; top: 50%; width: 6.2%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none; background: radial-gradient(circle at 40% 30%, #c4c1b9, #747878 23%, #292d31 35%, #0b0d11 44% 57%, #828580 62%, #34383c 72%, #15171b 82%); box-shadow: 0 0 0 1px #ffffff36, 1px 2px 4px #0009; }
.turntable-sheen { position: absolute; z-index: 4; inset: 3px; border-radius: inherit; pointer-events: none; background: conic-gradient(from 23deg, #0001 0 5%, #ffffff08 10%, #ffffff22 15%, #ffffff08 21%, transparent 28% 44%, #0004 52%, #ffffff14 65%, #ffffff06 71%, transparent 79%), linear-gradient(145deg, #ffffff08, transparent 48%, #0003); box-shadow: inset 0 1px 1px #ffffff30, inset 0 -2px 3px #0009; -webkit-mask-image: radial-gradient(circle, transparent 0 39%, #000 41%); mask-image: radial-gradient(circle, transparent 0 39%, #000 41%); }
.turntable-progress { position: absolute; z-index: 5; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); transform: rotate(-90deg); overflow: visible; pointer-events: none; }
.turntable-progress circle { fill: none; stroke: #ded7c6a6; stroke-width: .4; stroke-linecap: round; stroke-dasharray: 301.593; stroke-dashoffset: calc(301.593 * (1 - var(--vinyl-progress, 0))); transition: stroke .2s; }
.turntable.is-dragging .turntable-progress circle { stroke: #fff4dc; stroke-width: .65; }
.turntable-readout { position: absolute; top: calc(100% + 8px); left: 0; width: 100%; min-height: 15px; color: #ffffff63; font-size: 9px; font-variant-numeric: tabular-nums; line-height: 1.5; letter-spacing: .02em; text-align: center; white-space: nowrap; }
.turntable.is-dragging .turntable-readout { color: #e7dcc7; }
.tonearm, .tonearm-swing, .tonearm-cap { position: absolute; z-index: 8; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
/* The swinging arm is its own <svg>, so its rotation is a box transform the compositor animates. An inner <g>
   transform relaid out every path of the arm on the main thread for the whole 1.15 s of every move. */
.tonearm-swing { transform-origin: 88.043% 18.571%; transform: rotate(var(--arm-angle, -35deg)); transition: transform 1.15s cubic-bezier(.23, .65, .25, 1); will-change: transform; }
.tonearm-shadow { transition: transform .3s, stroke-width .3s; }
.tonearm-lift { transform-box: view-box; transform-origin: 88.043% 18.571%; transform: translate3d(0, 0, 0); transition: transform .18s cubic-bezier(.2, .7, .2, 1); }
.record-player.is-record-loading .tonearm-swing { transition: transform .32s cubic-bezier(.2, .7, .2, 1); }
.record-player.is-record-loading .tonearm-lift { transform: translate3d(1px, -5px, 0) rotate(-.6deg); }
.record-player[data-record-phase="cue"] .tonearm-swing { transition-duration: .46s; }
.record-player[data-record-phase="cue"] .tonearm-lift { animation: record-arm-lower .16s .3s cubic-bezier(.4, 0, .6, 1) both; }
@keyframes record-arm-lower { from { transform: translate3d(1px, -5px, 0) rotate(-.6deg); } to { transform: translate3d(0, 0, 0); } }
.record-player.is-scratching .tonearm-swing { transition-duration: .3s; }
.record-player.is-scratching .tonearm-shadow { transform: translate(1.5px, 4px); stroke-width: 15; } /* a held arm casts a longer shadow: the drawn one, moved, never a filter */
.record-volume { --record-volume: 1; position: absolute; z-index: 9; right: 0; bottom: -20px; width: 22%; min-width: 64px; height: 44px; cursor: ew-resize; touch-action: none; user-select: none; -webkit-user-select: none; outline: none; }
.record-volume-rail { position: absolute; left: 0; right: 0; top: calc(50% - 3px); height: 6px; border-radius: 5px; background: #0a0c10; box-shadow: inset 1px 1px 2px #000d, 0 1px 0 #ffffff28; overflow: hidden; }
.record-volume-rail i { position: absolute; inset: 1px auto 1px 0; width: calc(var(--record-volume) * 100%); background: linear-gradient(#b5ac93, #686657); opacity: .65; }
.record-volume-scale { position: absolute; inset: 0; background: repeating-linear-gradient(to right, #a9a79c75 0 1px, transparent 1px 20%); -webkit-mask-image: linear-gradient(to bottom, transparent 0 11px, #000 11px 16px, transparent 16px 28px, #000 28px 33px, transparent 33px); mask-image: linear-gradient(to bottom, transparent 0 11px, #000 11px 16px, transparent 16px 28px, #000 28px 33px, transparent 33px); }
.record-volume-knob { position: absolute; left: calc(var(--record-volume) * 100%); top: 50%; width: 12px; height: 18px; transform: translate(-50%, -50%); border: 1px solid #cec8b861; border-radius: 3px; background: linear-gradient(90deg, #d9d5c9, #918f86 42%, #6e706b 49%, #bbb9ad 54%, #72746e); box-shadow: inset 1px 0 0 #ffffff8c, 0 2px 0 #101216, 1px 4px 5px #0009; }
.record-volume-knob::after { content: ''; position: absolute; left: 5px; top: 3px; bottom: 3px; width: 1px; background: #282b2c; box-shadow: 1px 0 0 #ffffff55; }
.record-volume-value { position: absolute; left: calc(var(--record-volume) * 100%); bottom: calc(100% - 9px); transform: translateX(-50%); padding: 4px 5px; border: 1px solid #ffffff1c; border-radius: 4px; background: #15171af2; color: #ece5d6; font-size: 9px; font-variant-numeric: tabular-nums; line-height: 1; opacity: 0; transition: opacity .15s; pointer-events: none; }
.record-volume:hover .record-volume-value, .record-volume:focus-visible .record-volume-value, .record-volume.is-adjusting .record-volume-value { opacity: 1; }
.record-volume:focus-visible { border-radius: 6px; outline: 2px solid var(--accent-2); outline-offset: 2px; }
.record-volume[aria-disabled="true"] { cursor: help; }
.record-volume[aria-disabled="true"] .record-volume-knob { filter: saturate(.2); opacity: .65; }
.record-controls.stage-actions { display: flex; align-items: center; gap: 10px; margin: 0; padding-top: 12px; border-top: 1px solid #ffffff0c; }
.record-controls .stage-play { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 86px; height: 44px; padding: 0 13px; border: 1px solid #ffffff63; border-radius: 4px; background: linear-gradient(#e1dcd2, #b9b4a9 60%, #aaa69d); color: #181a1d; font-size: 11px; font-weight: 700; box-shadow: inset 0 1px 0 #fff9, inset 0 -1px 0 #7774696b, 0 2px 0 #77756e, 0 4px 0 #090a0d, 0 6px 8px #0006; text-shadow: 0 1px 0 #ffffff36; transition: transform .15s, filter .2s, box-shadow .15s; flex: none; }
.record-play-symbol, .record-pause-symbol { display: inline-flex; }
.record-controls .stage-play .i { width: 15px; height: 15px; }
.record-pause-symbol, .stage-play-active { display: none; }
.stage-play.is-playing .record-play-symbol, .stage-play.is-playing .stage-play-idle { display: none; }
.stage-play.is-playing .record-pause-symbol, .stage-play.is-playing .stage-play-active { display: inline-flex; }
.record-transport { display: flex; align-items: center; gap: 8px; margin-left: auto; border-radius: 5px; outline: 1px solid #ffffff0b; outline-offset: 4px; box-shadow: 0 0 0 4px #0b0d1052; }
.record-transport > button { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #ffffff29; border-radius: 4px; background: linear-gradient(#3c3f45, #292c31 70%, #22252a); color: #ddd9cf; box-shadow: inset 0 1px 0 #ffffff24, inset 0 -1px 0 #08090c80, 0 2px 0 #111318, 0 4px 0 #08090c, 0 6px 8px #0006; transition: transform .15s, filter .2s, box-shadow .15s; flex: none; }
.record-transport > button > .i { width: 17px; height: 17px; }
.record-transport .record-reverse { display: flex; flex-direction: column; justify-content: center; gap: 1px; }
.record-transport .record-reverse > .i { width: 15px; height: 15px; }
.record-reverse > span { color: #ffffff80; font-size: 7px; font-weight: 600; letter-spacing: .08em; line-height: 1; }
.record-transport .record-reverse[aria-pressed="true"] { transform: translateY(2px); background: linear-gradient(#1d1f23, #303238); color: #f0e5ce; border-color: #d9c9a142; box-shadow: inset 0 2px 4px #0007, inset 0 -1px 0 #ffffff13, 0 1px 0 #08090c; }
.record-reverse[aria-pressed="true"] > span { color: #ded1b8; }
.record-transport .stage-shuffle { background: linear-gradient(#41444a, #2a2d32 49%, #24272b 51%, #303338); box-shadow: inset 0 1px 0 #ffffff26, inset 0 -3px 2px #0003, 0 2px 0 #111318, 0 4px 0 #08090c, 0 6px 8px #0006; }
.record-transport .stage-shuffle > span { display: none; }
@media (hover: hover) and (pointer: fine) { .record-controls button:hover { filter: brightness(1.12); } }
.record-controls button:active { transform: translateY(2px); box-shadow: inset 0 1px 0 #ffffff16, 0 1px 0 #08090c, 0 3px 5px #0006; }
.record-controls button:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 4px; }
.record-controls button:disabled { opacity: .38; cursor: default; transform: none; filter: none; }
/* Home's playlist beside the record player: a typographic list (Achraf's pick, 2 Nov 2026). No panel and no covers: large
   titles, the artist small after each, hairlines between, the playing title white. The record still flies from the row to
   the platter: .si-art is a small invisible disc at the row's number. Only transforms and opacity move. */
.stage-tracks { grid-column: 2; grid-row: 1; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; min-width: 0; align-self: center; }
.stage-trackhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 2px 6px; }
.stage-heading { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.stage-title { flex: 0 0 auto; max-width: 100%; margin: 0; font: 600 12px/1.5 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-facts { flex: 0 1 auto; min-width: 0; margin: 0; color: rgba(255, 255, 255, .5); font-size: 12px; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* the name keeps its width; the facts give way */
.stage-facts::before { content: "·"; margin-right: 6px; color: #ffffff30; }
.stage-facts i { font-style: normal; margin: 0 6px; color: #ffffff30; }
.playlist-stage .spot-list { z-index: 1; display: block; position: relative; height: auto; max-height: 440px; min-height: 0; padding: 2px 2px 48px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scroll-snap-type: none; scroll-behavior: auto; scrollbar-width: none;
  -webkit-mask: linear-gradient(#000 calc(100% - 48px), transparent); mask: linear-gradient(#000 calc(100% - 48px), transparent); }
.playlist-stage .spot-list.is-scrolled { -webkit-mask: linear-gradient(transparent, #000 28px, #000 calc(100% - 48px), transparent); mask: linear-gradient(transparent, #000 28px, #000 calc(100% - 48px), transparent); } /* rows above fade out the way rows below do */
.playlist-stage .spot-list::-webkit-scrollbar { display: none; }
.playlist-stage .spot-item { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px; align-items: baseline; width: 100%; min-height: 0; padding: 11px 12px 12px 8px; margin: 0 -8px; border: 0; border-radius: var(--r-m); background: none; text-align: left; box-shadow: none; transition: background var(--t-fast); contain: layout style; cursor: pointer;
  animation: si-in .46s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 22ms); } /* rows arrive one after another; backwards: nothing is held after */
@keyframes si-in { from { opacity: 0; transform: translate3d(0, 7px, 0); } }
.playlist-stage .spot-item::before { content: ""; position: absolute; left: 8px; right: 12px; top: 0; height: .5px; background: var(--sep); } /* a hairline between rows, not under the fill */
.playlist-stage .spot-item:first-child::before, .playlist-stage .spot-item.on::before, .playlist-stage .spot-item.on + .spot-item::before { display: none; }
@media (hover: hover) and (pointer: fine) {
  .playlist-stage .spot-item:hover { background: var(--fill-1); }
  .playlist-stage .spot-item:hover .si-t { color: #fff; }
  .playlist-stage .spot-item:hover .si-s { color: rgba(255, 255, 255, .7); }
  .playlist-stage .spot-item:not(.on):hover .si-n { opacity: 0; }
  .playlist-stage .spot-item:not(.on):hover .si-play { opacity: 1; }
}
.playlist-stage .spot-item:active { background: var(--fill-2); transition: none; }
.playlist-stage .spot-item.on { background: linear-gradient(90deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .05)); }
.playlist-stage .si-lead { position: relative; display: grid; align-self: center; width: 28px; height: 24px; }
.playlist-stage .si-lead > * { grid-area: 1 / 1; align-self: center; transition: opacity var(--t-fast); }
.playlist-stage .si-n { justify-self: end; padding-right: 2px; font: 400 13px/1 var(--font); color: rgba(255, 255, 255, .42); }
.playlist-stage .spot-item.on .si-n { opacity: 0; }
.playlist-stage .si-play { justify-self: center; display: grid; place-items: center; opacity: 0; color: #fff; }
.playlist-stage .si-play .i { width: 13px; height: 13px; }
.playlist-stage .si-eq { position: static; inset: auto; justify-self: center; display: none; border-radius: 0; background: none; } /* the badge's dark plate and absolute box (for covers) are undone here; display, not opacity: hidden bars would still run 4 animations a row */
.playlist-stage .spot-item.on .si-eq { display: inline-flex; }
.playlist-stage .si-eq .eq { height: 12px; gap: 2px; }
.playlist-stage .si-eq .eq i { width: 2.5px; background: var(--accent-2); }
.playlist-stage .spot-item.on:not(.is-playing) .si-eq .eq i { animation: none; transform: scaleY(.3); } /* paused: the bars rest low */
.playlist-stage .spot-item .si-art { position: absolute; left: 0; top: 50%; width: 22px; height: 22px; margin: -11px 0 0; opacity: 0; pointer-events: none; transform: none; transition: none; }
.playlist-stage .spot-item .si-vinyl { position: absolute; inset: 0; width: 100%; box-shadow: none; }
.si-vinyl { position: relative; display: block; aspect-ratio: 1; border-radius: 50%; background: #08090c; }
.si-vinyl-face { position: absolute; inset: 1px; border-radius: 50%; overflow: hidden; background: #111318; }
.playlist-stage .si-vinyl .art, .vinyl-flight .si-vinyl .art { position: absolute; inset: 26%; width: auto; height: auto; border-radius: 50%; overflow: hidden; }
.playlist-stage .si-m { display: flex; flex-direction: row; align-items: baseline; gap: 12px; min-width: 0; width: auto; }
.playlist-stage .si-t { font: 600 24px/1.12 var(--font-d); letter-spacing: -.028em; color: rgba(255, 255, 255, .86); flex: 0 1 auto; min-width: 0; text-shadow: none; transition: color var(--t-fast); }
.playlist-stage .si-s { font: 400 14px/1.3 var(--font); color: rgba(255, 255, 255, .55); flex: 0 0 auto; max-width: 38%; min-width: 0; margin: 0; text-shadow: none; transition: color var(--t-fast); } /* the title gives way first; the artist stays readable */
.playlist-stage .spot-item.on .si-t { color: #fff; }
.playlist-stage .spot-item.on .si-s { color: rgba(255, 255, 255, .7); }
.playlist-stage .si-end { display: inline-flex; align-items: baseline; justify-content: flex-end; margin: 0; min-height: 0; }
.playlist-stage .si-d { font-size: 13px; color: rgba(255, 255, 255, .5); text-shadow: none; transition: color var(--t-fast); }
.playlist-stage .spot-item.on .si-d { color: var(--accent-2); }
.playlist-stage .spot-item.is-lifted .si-art { opacity: 0; }
.crate-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 2px 0; }
.crate-hint { color: rgba(255, 255, 255, .5); font-size: 11.5px; line-height: 1.5; }
.record-flight-origin { position: fixed; z-index: 10020; inset: 0; pointer-events: none; }
.vinyl-flight { position: fixed; z-index: 10020; left: 0; top: 0; pointer-events: none; contain: layout style; transform-origin: 0 0; will-change: transform, opacity; }
.vinyl-flight > .si-vinyl { width: 100%; height: 100%; }
.vinyl-flight > .turntable-disc { width: 100%; height: 100%; }
.vinyl-flight .turntable-progress { display: none; }
.vinyl-flight .turntable-art { transition: none; }
.record-player .stage-record-rotor, .record-player .turntable-art, .record-player .turntable-sheen, .record-player .turntable-progress { transition: opacity .16s; }
.record-player.is-record-loading:not([data-record-phase="cue"]) .stage-record-rotor,
.record-player.is-record-loading:not([data-record-phase="cue"]) .turntable-art,
.record-player.is-record-loading:not([data-record-phase="cue"]) .turntable-sheen,
.record-player.is-record-loading:not([data-record-phase="cue"]) .turntable-progress { opacity: 0; }
.record-player.is-record-loading:not([data-record-phase="cue"]) .turntable-disc { pointer-events: none; }
.record-player.is-record-loading .record-status-lamp > i { animation: none; }
.stage-all { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; flex: none; min-height: 44px; color: rgba(255, 255, 255, .62); font-size: 11px; font-weight: 500; letter-spacing: .01em; transition: color var(--t-fast); }
.stage-all .i { width: 12px; height: 12px; }
.stage-all:hover { color: #fff; }
.playlist-first { position: relative; isolation: isolate; overflow: hidden; padding: 40px; border: 1px solid #ffffff10; border-radius: 26px; background: radial-gradient(ellipse at 90% 70%, #ffffff06, transparent 60%), #111319; }
.playlist-first h3 { position: relative; max-width: 350px; margin: 12px 0; font: 600 36px/1.08 var(--font-d); letter-spacing: -.045em; }
.playlist-first p { position: relative; color: var(--text-2); font-size: 13px; max-width: 280px; line-height: 1.6; margin: 0 0 22px; }
.first-record { position: absolute; width: 290px; height: 290px; border-radius: 50%; right: -55px; top: 18px; z-index: -1; display: grid; place-items: center;
  border: 1px solid #ffffff12; background: repeating-radial-gradient(circle at center, #111319 0, #22252b 1px, #111319 3px, #111319 7px); opacity: .8; transform: rotate(-20deg); }
.first-record > .i { width: 60px; height: 60px; color: #ffffff30; }
@media (max-width: 1280px) and (min-width: 761px) {
  .playlist-stage.spot { padding: 22px; }
  .stage-layout { gap: 24px; grid-template-columns: minmax(250px, 1.12fr) minmax(0, 1fr); }
  .record-player { padding: 14px; }
  .record-controls.stage-actions { gap: 8px; }
  .record-controls .stage-play { min-width: 78px; padding-inline: 10px; }
  .record-transport { gap: 6px; }
  .stage-all { font-size: 10px; }
}
@media (min-width: 841px) and (max-width: 960px) { .stage-dur { display: none; } } /* the narrow second column keeps the name and the count */
@media (min-width: 841px) and (max-width: 1000px) {
  .record-controls.stage-actions { gap: 0; }
  .record-controls .stage-play { width: 44px; min-width: 44px; padding: 0; }
  .record-controls .stage-play .stage-play-idle, .record-controls .stage-play .stage-play-active { display: none; }
  .record-transport { gap: 0; }
}
@media (min-width: 761px) and (max-width: 840px) {
  .stage-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .stage-art-scene { max-width: 440px; }
  .stage-tracks { grid-column: 1; grid-row: 2; }
}
@media (max-width: 760px) {
  .playlist-room { margin-top: 20px; margin-bottom: 22px; }
  .playlist-section-head { margin-bottom: 11px; column-gap: 10px; }
  .playlist-section-head .jh-start { width: 40px; padding: 0; justify-content: center; }
  .playlist-section-head .jh-start > span { display: none; }
  .playlist-section-head h2 { font-size: 22px; }
  .playlist-new { width: 40px; height: 40px; min-height: 40px; padding: 0; border-radius: 50%; }
  .playlist-new > span { display: none; }
  .playlist-tab { max-width: 190px; min-height: 44px; padding: 4px 11px 4px 4px; font-size: 12px; gap: 8px; border-radius: 10px; }
  .playlist-tab-detail { font-size: 10px; margin-top: 1px; }
  .playlist-tab-art { width: 32px; height: 32px; border-radius: 7px; }
  .playlist-switcher { margin-bottom: 8px; padding-bottom: 6px; }
  .playlist-tabs { --tab-fade: 18px; gap: 5px; }
  .playlist-nav { display: none; }
  .playlist-stage.spot { padding: 12px 14px 10px; border-radius: 24px; }
  .playlist-stage::after { background: linear-gradient(170deg, #07090d08, #07090d12 44%, #07090d35); }
  .stage-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: center; }
  .stage-kicker { display: none; }
  .stage-art-scene { max-width: 430px; margin: 0 auto; }
  .record-player { padding: 12px; border-radius: 11px; }
  .record-topline { margin-bottom: 8px; }
  .record-status { font-size: 8.5px; }
  .record-surface { margin-bottom: 20px; }
  .turntable-readout { top: calc(100% + 7px); font-size: 8px; }
  .record-controls.stage-actions { gap: 8px; padding-top: 10px; }
  .record-controls .stage-play { min-width: 76px; padding-inline: 9px; gap: 5px; }
  .record-transport { gap: 6px; }
  .stage-tracks { grid-column: 1; grid-row: 2; margin-top: 0; }
  .stage-trackhead { gap: 10px; }
  .stage-heading { flex-direction: column; align-items: flex-start; gap: 0; }
  .stage-facts::before { content: none; }
  .playlist-stage .spot-list { max-height: 364px; padding-bottom: 44px; }
  .playlist-stage .spot-list.is-scrolled { -webkit-mask: linear-gradient(transparent, #000 24px, #000 calc(100% - 44px), transparent); mask: linear-gradient(transparent, #000 24px, #000 calc(100% - 44px), transparent); }
  .playlist-stage .spot-item { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 8px 10px 6px; margin: 0 -6px; }
  .playlist-stage .spot-item::before { left: 6px; right: 8px; }
  .playlist-stage .si-lead { width: 24px; }
  .playlist-stage .si-m { flex-direction: column; align-items: flex-start; gap: 1px; }
  .playlist-stage .si-t { max-width: 100%; font-size: 19px; }
  .playlist-stage .si-s { max-width: 100%; font-size: 12.5px; }
  .playlist-stage .si-end { align-self: center; }
  .playlist-stage .si-d { font-size: 12.5px; }
  .crate-hint { font-size: 11px; }
  .stage-all { font-size: 10px; }
  .playlist-first { padding: 30px 25px; }
  .playlist-first h3 { font-size: 31px; max-width: 240px; }
  .first-record { right: -120px; opacity: .5; }
}
@media (max-width: 380px) {
  .playlist-section-head { column-gap: 6px; }
  .playlist-section-head h2 { font-size: 20px; }
  .playlist-section-head .jh-start { width: 40px; padding: 0; justify-content: center; }
  .playlist-section-head .jh-start > span { display: none; }
  .playlist-stage.spot { padding-inline: 12px; }
  .record-player { padding: 10px; }
  .record-controls .stage-play { width: 44px; min-width: 44px; padding: 0; }
  .record-controls .stage-play .stage-play-idle, .record-controls .stage-play .stage-play-active { display: none; }
  .record-controls.stage-actions { gap: 0; }
  .record-transport { gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .stage-layout { animation: none; }
  .stage-record, .playlist-stage.live .stage-record { animation: none; }
  .playlist-tab, .record-controls button, .stage-record, .playlist-stage .spot-hero, .tonearm-swing, .tonearm-lift, .si-vinyl-face { transition: none; }
  .record-player .tonearm-lift { animation: none; transform: none; }
  .playlist-tab:hover, .stage-play:hover, .stage-shuffle:hover, .playlist-stage.live .spot-hero { transform: none; }
  .turntable.is-dragging .turntable-disc { scale: 1; }
  .turntable-art { transform: none; }
  .playlist-stage .spot-item.is-playing .si-vinyl-face { animation: none; }
  .playlist-stage .spot-item { animation: none; }
  .record-player .record-status-lamp > i, .record-player.is-playing .record-status-lamp > i { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  .playlist-stage .spot-list { scroll-behavior: auto; }
  .playlist-stage .spot-item .si-art { transform: none; transition: none; }
  .playlist-stage .spot-item .si-vinyl, .si-sleeve { transition: none; }
  .vinyl-flight .si-vinyl .art { transition: none; }
}
