/* Organiser — design system
   Ink-black canvas, one album-driven accent, editorial serif display (Fraunces) over a geometric sans (Outfit).
   Hairlines instead of boxes; colour only where it means something. */
@property --accent { syntax: "<color>"; inherits: true; initial-value: #e7b66d; }
@property --deep { syntax: "<color>"; inherits: true; initial-value: #251d14; }

:root {
  --accent: #e7b66d;
  --deep: #251d14;
  --bg: #0a0a0b;
  --bg-1: #111113;
  --bg-2: #18181b;
  --bg-3: #222226;
  --line: rgba(255, 255, 255, 0.075);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #f3f0e9;
  --text-2: rgba(243, 240, 233, 0.64);
  --text-3: rgba(243, 240, 233, 0.42);
  --danger: #ff6b5e;
  --ok: #8fd4a0;
  --serif: "Fraunces", ui-serif, Georgia, serif;
  --sans: "Outfit", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --tab-h: 56px;
  --mini-h: 60px;
  --row-h: 62px;
  --pad: 18px;
  --r-s: 6px;
  --r: 12px;
  --r-l: 18px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --bottom-chrome: calc(var(--tab-h) + var(--safe-b) + var(--mini-h) + 16px);
  transition: --accent 0.9s var(--ease-io), --deep 0.9s var(--ease-io);
  color-scheme: dark;
}
:root.no-track { --bottom-chrome: calc(var(--tab-h) + var(--safe-b) + 12px); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text);
  font: 400 15px/1.45 var(--sans); letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
  font-feature-settings: "ss01";
}
html.locked, html.locked body { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
button:disabled { opacity: 0.4; cursor: default; }
a { color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
img { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); }

.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ic.s { width: 18px; height: 18px; }
.ic.xs { width: 14px; height: 14px; stroke-width: 2; }
.ic.l { width: 28px; height: 28px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.serif { font-family: var(--serif); }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 500; font-size: 14px;
  background: var(--bg-2); color: var(--text); transition: background 0.2s, transform 0.15s var(--ease), color .2s;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--accent); color: #0b0b0c; }
.btn.line { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.quiet { background: transparent; color: var(--text-2); padding: 0 10px; }
.btn.danger { color: var(--danger); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
@media (hover: hover) { .btn:hover { background: var(--bg-3); } .btn.primary:hover { background: color-mix(in srgb, var(--accent) 88%, white); } .btn.line:hover, .btn.quiet:hover { background: rgba(255,255,255,.05); } }
.ibtn {
  width: 40px; height: 40px; border-radius: 999px; display: inline-grid; place-items: center; color: var(--text-2);
  transition: color 0.2s, background 0.2s, transform 0.15s var(--ease);
}
.ibtn:active { transform: scale(0.92); }
.ibtn.on { color: var(--accent); }
@media (hover: hover) { .ibtn:hover { color: var(--text); background: rgba(255,255,255,0.06); } }

/* ---------- chips / segmented ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px var(--pad); margin: 0 calc(-1 * var(--pad)); scroll-padding: var(--pad); }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 32px; padding: 0 13px; border-radius: 999px; font-size: 13px; font-weight: 500;
  color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); display: inline-flex; align-items: center; gap: 6px;
  transition: background .2s, color .2s, box-shadow .2s;
}
.chip.on { background: var(--text); color: #0b0b0c; box-shadow: none; }
.chip .ic { width: 15px; height: 15px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--bg-2); gap: 2px; }
.seg button { height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--text-2); transition: background .2s, color .2s; }
.seg button.on { background: var(--bg-3); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.06) inset; }

/* ---------- login ---------- */
.login {
  min-height: 100dvh; display: grid; place-items: center; padding: calc(var(--safe-t) + 24px) 28px calc(var(--safe-b) + 24px);
}
.login-inner { width: 100%; max-width: 340px; }
.login .mark { width: 56px; height: 56px; color: var(--accent); margin-bottom: 40px; }
.login .mark .ic { width: 56px; height: 56px; stroke-width: 1.2; animation: spin 14s linear infinite; }
.login h1 { font: italic 500 52px/0.95 var(--serif); letter-spacing: -0.03em; margin: 0 0 12px; }
.login p { color: var(--text-2); margin: 0 0 36px; max-width: 26ch; }
.login form { display: grid; gap: 12px; }
.field {
  height: 52px; width: 100%; border: 0; border-radius: var(--r); background: var(--bg-2); padding: 0 16px; font-size: 17px;
  box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s;
}
.field:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.login .btn { height: 52px; font-size: 16px; }
.login .err { color: var(--danger); min-height: 20px; font-size: 14px; margin: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- app shell ---------- */
.side { display: none; }
.main { min-height: 100dvh; padding-bottom: var(--bottom-chrome); }
.view { padding: calc(var(--safe-t) + 8px) calc(var(--pad) + var(--safe-r)) 24px calc(var(--pad) + var(--safe-l)); animation: viewIn 0.32s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }

.topbar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 20; height: calc(var(--safe-t) + 48px); padding: var(--safe-t) 8px 0;
  display: flex; align-items: center; gap: 4px; background: rgba(10, 10, 11, 0.93); backdrop-filter: blur(20px) saturate(1.6); -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid var(--line); opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.topbar.show { opacity: 1; pointer-events: auto; }
.topbar .tt { flex: 1; text-align: center; font-weight: 600; font-size: 15px; }
.topbar .ibtn { width: 40px; }

.h-row { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.h-row .grow { flex: 1; }
.big-title { font: 600 34px/1.05 var(--serif); letter-spacing: -0.025em; margin: 6px 0 4px; font-variation-settings: "opsz" 72; }
.kicker { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.sec-title { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 12px; }
.sec-title h2 { font: 600 21px/1.1 var(--serif); letter-spacing: -0.015em; margin: 0; }
.sec-title a, .sec-title button { font-size: 13px; color: var(--text-2); text-decoration: none; }
.lede { color: var(--text-2); margin: 0; font-size: 14px; }

/* ---------- tab bar ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; height: calc(var(--tab-h) + var(--safe-b)); padding: 0 var(--safe-r) var(--safe-b) var(--safe-l);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); background: rgba(10, 10, 11, 0.86);
  backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6); border-top: 1px solid var(--line);
}
.tabs a { display: grid; place-items: center; align-content: center; gap: 3px; color: var(--text-3); text-decoration: none; font-size: 10.5px; font-weight: 500; letter-spacing: 0.02em; position: relative; touch-action: manipulation; min-width: 0; }
.tabs a .ic { width: 23px; height: 23px; }
.tabs a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 430px) { .tabs a { font-size: 10px; gap: 2px; letter-spacing: 0; } .tabs a .ic { width: 22px; height: 22px; } }
.tabs a.on { color: var(--text); }
.tabs a.on .ic { color: var(--accent); }
.badge { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #0b0b0c; font-size: 10px; font-weight: 700; display: grid; place-items: center; }

/* ---------- mini player ---------- */
.mini {
  position: fixed; z-index: 29; left: calc(8px + var(--safe-l)); right: calc(8px + var(--safe-r)); bottom: calc(var(--tab-h) + var(--safe-b) + 8px); height: var(--mini-h);
  border-radius: 14px; display: flex; align-items: center; gap: 12px; padding: 0 6px 0 8px; overflow: hidden;
  background: color-mix(in srgb, var(--deep) 78%, #141416); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255,255,255,.06);
  transition: transform 0.35s var(--ease), opacity 0.25s;
}
.no-track .mini { transform: translateY(20px); opacity: 0; pointer-events: none; }
.mini .art { width: 44px; height: 44px; border-radius: 7px; background: var(--bg-3); object-fit: cover; }
.mini .meta { flex: 1; min-width: 0; cursor: pointer; }
.mini .t { font-weight: 600; font-size: 14.5px; }
.mini .a { font-size: 13px; color: var(--text-2); }
.mini .ibtn { color: var(--text); width: 44px; height: 44px; }
.mini .ibtn .ic { width: 26px; height: 26px; }
.mini .prog { position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; }
.mini .prog i { display: block; height: 100%; width: 0; background: var(--accent); transform-origin: left; }
.mini .ctl-d { display: none; }

/* ---------- home ---------- */
.pl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
.pl-card { text-decoration: none; display: block; min-width: 0; }
.pl-card .mos { border-radius: var(--r); }
.pl-card .n { font-weight: 600; font-size: 14.5px; margin-top: 10px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pl-card .c { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.pl-card:active .mos { transform: scale(0.98); }
.mos { position: relative; aspect-ratio: 1; display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; background: var(--bg-2); transition: transform .2s var(--ease); }
.mos img { width: 100%; height: 100%; object-fit: cover; }
.mos.one { grid-template-columns: 1fr; }
.mos .dl { position: absolute; right: 7px; bottom: 7px; width: 24px; height: 24px; border-radius: 99px; background: rgba(0,0,0,.6); display: grid; place-items: center; color: var(--ok); backdrop-filter: blur(6px); }
.mos .dl .ic { width: 15px; height: 15px; }

.shelf { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 0 var(--pad); margin: 0 calc(-1 * var(--pad)); scroll-snap-type: x mandatory; scroll-padding: var(--pad); }
.shelf::-webkit-scrollbar { display: none; }
.shelf .it { flex: none; width: 132px; scroll-snap-align: start; cursor: pointer; }
.shelf .it img { width: 132px; height: 132px; border-radius: 10px; object-fit: cover; background: var(--bg-2); }
.shelf .it .t { font-size: 13.5px; font-weight: 600; margin-top: 8px; }
.shelf .it .a { font-size: 12.5px; color: var(--text-3); }

.cta {
  margin-top: 26px; display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.cta .n { font: 600 34px/1 var(--serif); color: var(--accent); letter-spacing: -0.02em; min-width: 2ch; }
.cta .tx { flex: 1; font-size: 14px; color: var(--text-2); line-height: 1.35; }
.cta .tx b { color: var(--text); font-weight: 600; display: block; }
.statline { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--text-3); margin-top: 4px; }

/* ---------- playlist header ---------- */
.pl-head { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 44px; }
.pl-head .mos { width: min(62vw, 240px); border-radius: var(--r); box-shadow: 0 24px 60px rgba(0,0,0,.55); }
.pl-head h1 { font: 600 28px/1.08 var(--serif); letter-spacing: -0.02em; margin: 20px 0 6px; max-width: 18ch; text-wrap: balance; }
.pl-head .desc { color: var(--text-2); font-size: 14px; max-width: 46ch; margin: 0; text-wrap: pretty; }
.pl-head .statline { justify-content: center; margin-top: 8px; }
.pl-actions { display: flex; gap: 10px; justify-content: center; align-items: center; margin: 20px 0 8px; width: 100%; }
.pl-actions .btn { flex: 1; max-width: 160px; height: 44px; }
.ring { width: 22px; height: 22px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 2.5; }
.ring .bgc { stroke: rgba(255,255,255,.15); }
.ring .fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .3s; }

.toolbar { display: flex; align-items: center; gap: 8px; margin: 18px 0 6px; }
.toolbar .chips { flex: 1; margin-right: 0; padding-right: 0; }

/* ---------- track list (virtualised, fixed row height) ---------- */
.tl { position: relative; contain: layout; }
.row {
  position: absolute; left: 0; right: 0; height: var(--row-h); display: flex; align-items: center; gap: 12px; cursor: pointer;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; border-radius: 8px; contain: layout style;
}
.row .art { width: 46px; height: 46px; border-radius: 6px; object-fit: cover; background: var(--bg-2); flex: none; }
.row .meta { flex: 1; min-width: 0; padding: 0; position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.row .meta::after { content: ""; position: absolute; left: 0; right: -200px; bottom: 0; height: 1px; background: var(--line); }
.row .t { font-weight: 500; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.row .t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .a { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .a .snip { font-style: italic; color: var(--text-3); }
.row .a mark, .row .t mark { background: none; color: var(--accent); }
.row .end { display: flex; align-items: center; gap: 2px; color: var(--text-3); font-size: 13px; flex: none; }
.row .dur { min-width: 34px; text-align: right; }
.row .ok { color: var(--ok); opacity: .8; }
.row .more { width: 36px; height: 40px; color: var(--text-3); }
.row .grip { width: 32px; height: 40px; color: var(--text-3); cursor: grab; touch-action: none; display: grid; place-items: center; }
.row.playing .t { color: var(--accent); }
.row .eq { display: none; }
.row.playing .eq { display: inline-flex; }
.tag { flex: none; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.tag.y { color: var(--accent); }
.dot { width: 6px; height: 6px; border-radius: 3px; flex: none; background: var(--text-3); display: inline-block; }
.dot.sug { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text-3); }
.dot.kept { background: var(--ok); }
.row .ck { width: 22px; height: 22px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--line-2); display: grid; place-items: center; flex: none; color: #0b0b0c; transition: background .15s; }
.row .ck .ic { width: 14px; height: 14px; stroke-width: 2.6; opacity: 0; }
.row.sel .ck { background: var(--accent); box-shadow: none; }
.row.sel .ck .ic { opacity: 1; }
.row.dragging { z-index: 5; background: var(--bg-2); box-shadow: 0 12px 30px rgba(0,0,0,.5); transition: none; }
.tl.reordering .row:not(.dragging) { transition: transform .18s var(--ease); }
@media (hover: hover) { .row:hover { background: rgba(255,255,255,0.035); } }
.row:active { background: rgba(255,255,255,0.05); }

.eq { gap: 2px; align-items: flex-end; height: 12px; }
.eq i { width: 2.5px; background: var(--accent); border-radius: 1px; height: 100%; animation: eq 1s ease-in-out infinite; transform-origin: bottom; }
.eq i:nth-child(2) { animation-delay: -0.4s; } .eq i:nth-child(3) { animation-delay: -0.7s; }
.paused .eq i { animation-play-state: paused; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

.empty { padding: 48px 12px; text-align: center; color: var(--text-2); }
.empty .ic { width: 36px; height: 36px; color: var(--text-3); margin: 0 auto 12px; }
.empty h3 { font: 600 20px var(--serif); color: var(--text); margin: 0 0 6px; }

/* ---------- selection bar ---------- */
.selbar {
  position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; padding: 10px calc(12px + var(--safe-r)) calc(10px + var(--safe-b)) calc(12px + var(--safe-l));
  background: rgba(17,17,19,.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 6px; transform: translateY(110%); transition: transform .3s var(--ease);
}
.selbar.show { transform: none; }
.selbar button { display: grid; justify-items: center; gap: 2px; font-size: 10.5px; color: var(--text-2); flex: 1 1 0; min-width: 0; max-width: 84px; padding: 4px 2px; }
.selbar button.cnt { flex: 1.6 1 0; max-width: none; display: flex; align-items: center; justify-content: flex-start; gap: 8px; font-weight: 600; font-size: 14px; color: var(--text); padding-left: 2px; white-space: nowrap; }
.selbar button.cnt .ic { flex: none; width: 30px; height: 30px; padding: 6px; border-radius: 99px; background: rgba(255,255,255,.08); }
.selbar button:disabled { opacity: .4; }
.selbar button .ic { color: var(--text); }
.selbar button.danger .ic, .selbar button.danger { color: var(--danger); }

/* ---------- search ---------- */
.searchbox { position: sticky; top: 0; z-index: 15; padding: calc(var(--safe-t) + 8px) 0 10px; margin: calc(-1 * (var(--safe-t) + 8px)) 0 0; background: var(--bg); }
.sfield { position: relative; }
.sfield .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 19px; height: 19px; }
.sfield input { width: 100%; height: 46px; border: 0; border-radius: var(--r); background: var(--bg-2); padding: 0 44px 0 42px; font-size: 16px; -webkit-appearance: none; }
.sfield input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.sfield .clr { position: absolute; right: 4px; top: 3px; }
.res-head { display: flex; align-items: center; gap: 8px; margin: 14px 0 4px; font-size: 13px; color: var(--text-3); }
.res-head .grow { flex: 1; }

/* ---------- triage ---------- */
.tri { display: flex; flex-direction: column; min-height: calc(100dvh - var(--bottom-chrome) - var(--safe-t) - 16px); }
.tri-top { display: flex; align-items: center; gap: 8px; }
.tri-top .grow { flex: 1; }
.tri-prog { height: 3px; background: var(--bg-2); border-radius: 2px; overflow: hidden; margin: 10px 0 0; }
.tri-prog i { display: block; height: 100%; background: var(--accent); transition: width .4s var(--ease); }
.tri-meta { font-size: 13px; color: var(--text-3); margin-top: 8px; display: flex; justify-content: space-between; }
.deck { position: relative; flex: 1; display: grid; place-items: center; margin: 14px 0 8px; min-height: 300px; }
.card {
  position: absolute; width: min(100%, 400px, calc(100dvh - var(--bottom-chrome) - 330px)); min-width: 220px; touch-action: pan-y; cursor: grab;
  transition: transform .35s var(--ease), opacity .3s; will-change: transform;
}
.card.under { transform: scale(.9) translateY(-22px); opacity: .45; pointer-events: none; filter: saturate(.6); }
.card.under .cv { box-shadow: none; }
.card .cv { position: relative; aspect-ratio: 1; border-radius: var(--r-l); overflow: hidden; background: var(--bg-2); box-shadow: 0 30px 70px rgba(0,0,0,.55); }
.card .cv img { width: 100%; height: 100%; object-fit: cover; }
.card .stamp { position: absolute; top: 18px; padding: 6px 12px; border-radius: 8px; font-weight: 700; letter-spacing: .12em; font-size: 14px; text-transform: uppercase; opacity: 0; border: 2px solid; background: rgba(0,0,0,.35); backdrop-filter: blur(4px); }
.card .stamp.k { left: 18px; color: var(--ok); transform: rotate(-8deg); }
.card .stamp.r { right: 18px; color: var(--danger); transform: rotate(8deg); }
.card .info { padding: 16px 2px 0; text-align: center; }
.card .info .t { font: 600 22px/1.15 var(--serif); letter-spacing: -.015em; }
.card .info .a { color: var(--text-2); margin-top: 4px; }
.card .info .m { font-size: 12.5px; color: var(--text-3); margin-top: 6px; }
.card .pv { position: absolute; right: 12px; bottom: 12px; width: 48px; height: 48px; border-radius: 99px; background: rgba(10,10,11,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--text); display: grid; place-items: center; }
.card .pv .ic { width: 22px; height: 22px; }
.card .pvbar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(0,0,0,.3); }
.card .pvbar i { display: block; height: 100%; width: 0; background: var(--accent); }
.tri-btns { display: flex; justify-content: center; align-items: center; gap: 22px; padding: 6px 0 4px; }
.tri-btns button { display: grid; justify-items: center; gap: 6px; font-size: 12px; color: var(--text-2); }
.tri-btns .c { width: 62px; height: 62px; border-radius: 99px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--text); transition: transform .15s var(--ease), background .2s; }
.tri-btns .c .ic { width: 26px; height: 26px; stroke-width: 2; }
.tri-btns .rm .c { color: var(--danger); }
.tri-btns .kp .c { color: #0b0b0c; background: var(--ok); box-shadow: none; }
.tri-btns .sm .c { width: 48px; height: 48px; }
.tri-btns .sm .c .ic { width: 20px; height: 20px; }
.tri-btns button:active .c { transform: scale(.9); }
.kbd-hint { text-align: center; font-size: 12px; color: var(--text-3); display: none; }
kbd { font: 500 11px var(--sans); padding: 1px 6px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-2); }

/* ---------- lists (history, requests, settings) ---------- */
.list { margin: 0; padding: 0; list-style: none; }
.li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.li .ico { width: 34px; height: 34px; border-radius: 99px; background: var(--bg-2); display: grid; place-items: center; color: var(--text-2); flex: none; }
.li .ico .ic { width: 17px; height: 17px; }
.li .body { flex: 1; min-width: 0; }
.li .ttl { font-size: 14.5px; line-height: 1.35; }
.li .sub { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.li.undone { opacity: .42; }
.li.undone .ttl { text-decoration: line-through; text-decoration-color: var(--text-3); }
.cursor-mark { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); padding: 10px 0 0; display: flex; align-items: center; gap: 8px; }
.cursor-mark::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--accent) 40%, transparent); }

.ask { margin-top: 8px; }
.ask textarea { width: 100%; min-height: 96px; resize: vertical; border: 0; border-radius: var(--r); background: var(--bg-2); padding: 14px; font-size: 16px; line-height: 1.4; box-shadow: inset 0 0 0 1px var(--line); }
.ask textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.ask .row2 { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 10px; }
.ask .hint { font-size: 12.5px; color: var(--text-3); }
.req { padding: 16px 0; border-bottom: 1px solid var(--line); }
.req .msg { font-size: 15px; }
.req .meta { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--text-3); margin-top: 6px; }
.pill { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: var(--bg-2); color: var(--text-2); }
.pill.done { color: #0b0b0c; background: var(--ok); }
.pill.work { color: #0b0b0c; background: var(--accent); }
.pill.err { color: var(--danger); }
.reply { margin-top: 10px; padding: 10px 14px; border-left: 2px solid var(--accent); color: var(--text); font-size: 14px; background: color-mix(in srgb, var(--accent) 7%, transparent); border-radius: 0 8px 8px 0; }

/* ---------- stats ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; margin-top: 14px; }
.kpi { background: var(--bg); padding: 16px 14px; }
.kpi .v { font: 600 30px/1 var(--serif); letter-spacing: -.02em; }
.kpi .v small { font: 500 14px var(--sans); color: var(--text-2); margin-left: 3px; letter-spacing: 0; }
.kpi .l { font-size: 12px; color: var(--text-3); margin-top: 6px; letter-spacing: .04em; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: 13.5px; }
.bar .k { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar .v { color: var(--text-3); font-variant-numeric: tabular-nums; }
.bar .tr { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; }
.bar .tr i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transform-origin: left; animation: grow .7s var(--ease) both; }
.bar .tr i.b { background: color-mix(in srgb, var(--accent) 45%, var(--bg-3)); }
@keyframes grow { from { transform: scaleX(0); } }
.hist { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 10px; }
.hist .c { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.hist .c i { width: 100%; background: var(--accent); border-radius: 4px 4px 1px 1px; min-height: 2px; transform-origin: bottom; animation: growY .7s var(--ease) both; }
.hist .c span { font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.hist .c b { font-size: 11px; font-weight: 500; color: var(--text-2); }
@keyframes growY { from { transform: scaleY(0); } }

/* ---------- settings ---------- */
.set { border-top: 1px solid var(--line); }
.set-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); min-height: 60px; }
.set-row .body { flex: 1; min-width: 0; }
.set-row .ttl { font-size: 15px; }
.set-row .sub { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.switch { position: relative; width: 50px; height: 30px; border-radius: 99px; background: var(--bg-3); transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 99px; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.switch.on { background: var(--ok); }
.switch.on::after { transform: translateX(20px); }
.meter { height: 6px; border-radius: 3px; background: var(--bg-2); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; background: var(--accent); }
.off-row .ring { width: 30px; height: 30px; }
.kbd-list { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 13.5px; color: var(--text-2); align-items: center; }

/* ---------- full-screen player ---------- */
.np {
  position: fixed; inset: 0; z-index: 60; background: var(--bg); overflow: hidden; transform: translateY(100%); visibility: hidden;
  transition: transform .45s var(--ease), visibility 0s .45s; display: flex; flex-direction: column; touch-action: none;
}
.np.open { transform: none; visibility: visible; transition: transform .45s var(--ease), visibility 0s; }
.np.dragging { transition: none; }
.np-bg { position: absolute; inset: -20%; z-index: 0; background: var(--deep); }
.np-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(60px) saturate(1.6) brightness(.42); opacity: .7; transform: scale(1.2); transition: opacity .8s; }
.np-bg::after { content: ""; position: absolute; inset: 0; background: rgba(10,10,11,.34); }
.np-in { position: relative; z-index: 1; flex: 1; display: flex; flex-direction: column; padding: calc(var(--safe-t) + 4px) calc(24px + var(--safe-r)) calc(var(--safe-b) + 14px) calc(24px + var(--safe-l)); min-height: 0; max-width: 560px; width: 100%; margin: 0 auto; }
.np-top { display: flex; align-items: center; height: 48px; flex: none; }
.np-top .grab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; cursor: grab; }
.np-top .grab::before { content: ""; width: 38px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); margin-bottom: 4px; }
.np-top .ctx { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); max-width: 100%; }
.np-top .ibtn { color: var(--text); }
.np-stage { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.np-art { width: min(100%, calc(100dvh - 430px - var(--safe-t) - var(--safe-b))); min-width: 180px; aspect-ratio: 1; margin: 0 auto; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.5); transition: transform .5s var(--ease); background: var(--bg-2); }
.np-art img { width: 100%; height: 100%; object-fit: cover; }
.np.paused .np-art { transform: scale(.86); }
.np-title { display: flex; align-items: center; gap: 10px; margin-top: 26px; flex: none; }
.np-title .tx { flex: 1; min-width: 0; }
.np-title .t { font: 600 23px/1.15 var(--serif); letter-spacing: -.015em; }
.np-title .a { font-size: 16px; color: var(--text-2); margin-top: 2px; }
.np-title .ibtn { color: var(--text); background: rgba(255,255,255,.08); }
.scrub { position: relative; height: 28px; margin-top: 14px; cursor: pointer; touch-action: none; flex: none; }
.scrub .tr { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.18); overflow: hidden; transition: height .15s, top .15s; }
.scrub .buf { position: absolute; inset: 0 auto 0 0; background: rgba(255,255,255,.12); }
.scrub .fill { position: absolute; inset: 0 auto 0 0; background: var(--text); }
.scrub .kn { position: absolute; top: 14px; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 99px; background: var(--text); transform: scale(0); transition: transform .15s; }
.scrub.active .tr { height: 8px; top: 10px; }
.scrub.active .kn, .scrub:hover .kn { transform: scale(1); }
.times { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; flex: none; }
.np-ctl { display: flex; align-items: center; justify-content: space-between; margin: 14px -6px 0; flex: none; }
.np-ctl .ibtn { width: 48px; height: 48px; color: var(--text-2); }
.np-ctl .ibtn.on { color: var(--accent); }
.np-ctl .big { width: 76px; height: 76px; border-radius: 99px; background: var(--text); color: #0b0b0c; display: grid; place-items: center; transition: transform .15s var(--ease); }
.np-ctl .big .ic { width: 34px; height: 34px; }
.np-ctl .big:active { transform: scale(.93); }
.np-ctl .skip { width: 58px; height: 58px; color: var(--text); }
.np-ctl .skip .ic { width: 32px; height: 32px; }
.np-util { display: flex; justify-content: space-between; align-items: center; margin: 16px -8px 0; flex: none; }
.np-util .ibtn { color: var(--text-2); position: relative; width: 44px; height: 44px; }
.np-util .ibtn.on { color: var(--accent); }
.np-util .lbl { position: absolute; bottom: 1px; left: 50%; transform: translateX(-50%); font-size: 9.5px; font-weight: 600; white-space: nowrap; }
.np-head { display: none; align-items: center; gap: 12px; flex: none; margin-top: 4px; }
.np-head img { width: 52px; height: 52px; border-radius: 8px; object-fit: cover; }
.np-head .t { font-weight: 600; font-size: 15px; }
.np-head .a { font-size: 13px; color: var(--text-2); }
.np-pane { display: none; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; margin: 12px calc(-24px - var(--safe-r)) 0 calc(-24px - var(--safe-l)); padding: 0 24px; -webkit-mask-image: linear-gradient(transparent, #000 28px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(transparent, #000 28px, #000 calc(100% - 40px), transparent); }
.np:is(.mode-lyrics, .mode-queue, .mode-nerd) :is(.np-art, .np-title) { display: none; }
.np:is(.mode-lyrics, .mode-queue, .mode-nerd) .np-head { display: flex; }
.np:is(.mode-lyrics, .mode-queue, .mode-nerd) .np-stage { flex: 0 0 auto; }
.np.mode-lyrics .pane-lyrics, .np.mode-queue .pane-queue, .np.mode-nerd .pane-nerd { display: block; }

.lyr { padding: 28px 0 45%; }
.lyr .ln { font: 650 26px/1.28 var(--sans); letter-spacing: -.01em; color: rgba(255,255,255,.34); padding: 7px 0; cursor: pointer; transition: color .35s, transform .35s var(--ease), filter .35s; transform-origin: left center; }
.lyr .ln.on { color: var(--text); }
.lyr .ln.past { color: rgba(255,255,255,.5); }
.lyr .ln.gap { height: 18px; }
.lyr.plain .ln { font-size: 19px; font-weight: 500; color: var(--text-2); cursor: default; }
.lyr .src { font-size: 12px; color: var(--text-3); margin-top: 30px; }
.qh { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); padding: 18px 0 6px; display: flex; justify-content: space-between; align-items: center; }
.qh button { letter-spacing: 0; text-transform: none; font-size: 13px; color: var(--text-2); }
.pane-queue .tl .row .meta::after { background: rgba(255,255,255,.06); }

/* ---------- sheets ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.sheet-wrap .scrim { position: absolute; inset: 0; background: rgba(0,0,0,.55); animation: fade .25s both; }
.sheet {
  position: relative; width: 100%; max-height: min(88dvh, 760px); overflow-y: auto; overscroll-behavior: contain; background: var(--bg-1);
  border-radius: 20px 20px 0 0; padding: 8px calc(var(--pad) + var(--safe-r)) calc(var(--safe-b) + 16px) calc(var(--pad) + var(--safe-l));
  animation: up .38s var(--ease) both; box-shadow: 0 -1px 0 var(--line);
}
.sheet::before { content: ""; display: block; width: 38px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 0 auto 10px; }
.sheet-wrap.closing .sheet { animation: down .25s var(--ease-io) both; }
.sheet-wrap.closing .scrim { animation: fade .25s reverse both; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes down { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.sh-head { display: flex; gap: 14px; align-items: center; padding: 6px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.sh-head img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--bg-2); }
.sh-head .t { font-weight: 600; font-size: 16px; }
.sh-head .a { font-size: 13.5px; color: var(--text-2); }
.sh-title { font: 600 22px/1.15 var(--serif); margin: 6px 0 14px; letter-spacing: -.015em; }
.sh-item { display: flex; align-items: center; gap: 16px; width: 100%; height: 52px; text-align: left; font-size: 15.5px; border-radius: 10px; padding: 0 4px; }
.sh-item .ic { color: var(--text-2); }
.sh-item.danger, .sh-item.danger .ic { color: var(--danger); }
.sh-item .r { margin-left: auto; color: var(--text-3); font-size: 13px; }
.sh-item.on .r { color: var(--accent); }
@media (hover: hover) { .sh-item:hover { background: rgba(255,255,255,.05); } }
.sh-sep { height: 1px; background: var(--line); margin: 6px 0; }
.sh-btns { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }
.about h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin: 22px 0 8px; }
.about p { margin: 0 0 10px; color: var(--text); line-height: 1.55; font-size: 15px; text-wrap: pretty; }
.about p:first-of-type::first-letter { font: 600 2.6em/0.8 var(--serif); float: left; padding: 6px 8px 0 0; color: var(--accent); }
.src-links { display: flex; flex-wrap: wrap; gap: 8px; }
.src-links a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 7px 12px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line-2); text-decoration: none; color: var(--text-2); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 0; font-size: 14px; }
.facts dt, .facts dd { padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; }
.facts dt { color: var(--text-3); padding-right: 16px; }
.facts dd { text-align: right; font-variant-numeric: tabular-nums; min-width: 0; overflow-wrap: anywhere; }
.skel { background: linear-gradient(90deg, var(--bg-2), var(--bg-3), var(--bg-2)); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: 6px; height: 14px; margin: 10px 0; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- toast ---------- */
.toast {
  position: fixed; z-index: 90; left: 50%; bottom: calc(var(--bottom-chrome) + 8px); transform: translate(-50%, 20px); opacity: 0;
  max-width: calc(100vw - 24px); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 12px;
  background: #f3f0e9; color: #0b0b0c; font-size: 14px; font-weight: 500; box-shadow: 0 12px 30px rgba(0,0,0,.4); pointer-events: none;
  transition: transform .3s var(--ease), opacity .2s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.toast .tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast button { font-weight: 700; color: #0b0b0c; padding: 6px 10px; border-radius: 8px; background: rgba(0,0,0,.08); flex: none; }


/* ---------- small phones (iPhone SE etc.) ---------- */
@media (max-height: 700px) {
  :root { --row-h: 58px; }
  .np-title { margin-top: 16px; }
  .np-title .t { font-size: 20px; }
  .np-ctl { margin-top: 6px; }
  .np-ctl .big { width: 64px; height: 64px; }
  .np-util { margin-top: 6px; }
  .pl-head { padding-top: 30px; }
  .pl-head .mos { width: min(50vw, 200px); }
  .tri-btns .c { width: 54px; height: 54px; }
}
@media (max-width: 360px) { :root { --pad: 14px; } .tri-btns { gap: 14px; } }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  :root { --side-w: 248px; --bar-h: 84px; --pad: 36px; --row-h: 58px; --bottom-chrome: calc(var(--bar-h) + 16px); }
  :root.no-track { --bottom-chrome: 24px; }
  .tabs, .topbar { display: none; }
  .side {
    display: flex; flex-direction: column; position: fixed; left: 0; top: 0; bottom: var(--bar-h); width: var(--side-w); z-index: 20;
    padding: 22px 14px 14px; border-right: 1px solid var(--line); background: var(--bg); overflow-y: auto; scrollbar-width: thin;
  }
  .no-track .side { bottom: 0; }
  .side .brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 22px; }
  .side .brand .ic { color: var(--accent); width: 26px; height: 26px; stroke-width: 1.4; }
  .side .brand b { font: italic 500 24px/1 var(--serif); letter-spacing: -.02em; }
  .side nav a, .side .pl-link {
    display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 10px; border-radius: 8px; color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500; position: relative;
  }
  .side nav a:hover, .side .pl-link:hover { background: rgba(255,255,255,.04); color: var(--text); }
  .side nav a.on, .side .pl-link.on { background: var(--bg-2); color: var(--text); }
  .side nav a.on .ic { color: var(--accent); }
  .side nav a .ic { width: 20px; height: 20px; }
  .side nav .badge { position: static; margin-left: auto; }
  .side .hd { display: flex; align-items: center; justify-content: space-between; padding: 22px 10px 8px; }
  .side .hd span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
  .side .hd .ibtn { width: 28px; height: 28px; }
  .side .hd .ibtn .ic { width: 16px; height: 16px; }
  .side .pl-link { height: 48px; }
  .side .pl-link .mos { width: 32px; height: 32px; border-radius: 5px; flex: none; }
  .side .pl-link .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .side .pl-link .c { font-size: 12px; color: var(--text-3); }
  .side .grow { flex: 1; }
  .side .undo-row { display: flex; gap: 6px; padding: 12px 6px 0; border-top: 1px solid var(--line); margin-top: 12px; }
  .side .undo-row .btn { flex: 1; }
  .main { margin-left: var(--side-w); }
  .view { padding-top: 34px; max-width: 1180px; }
  .big-title { font-size: 44px; }
  .pl-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 28px 22px; }
  .shelf .it { width: 160px; } .shelf .it img { width: 160px; height: 160px; }
  .pl-head { flex-direction: row; align-items: flex-end; text-align: left; gap: 28px; padding-top: 6px; }
  .pl-head .mos { width: 220px; }
  .pl-head h1 { font-size: 46px; margin-top: 0; max-width: 22ch; }
  .pl-head .statline { justify-content: flex-start; }
  .pl-head .tx { min-width: 0; padding-bottom: 4px; }
  .pl-actions { justify-content: flex-start; margin-top: 26px; }
  .pl-actions .btn { flex: none; min-width: 120px; }
  .searchbox { padding-top: 34px; margin-top: -34px; }
  .row { padding: 0 8px; margin: 0 -8px; }
  .row .meta::after { right: -400px; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
  .tri { min-height: calc(100dvh - var(--bottom-chrome) - 60px); max-width: 640px; margin: 0 auto; }
  .kbd-hint { display: block; }
  .card { width: min(380px, calc(100dvh - var(--bottom-chrome) - 330px)); }

  /* bottom player bar */
  .mini {
    left: 0; right: 0; bottom: 0; height: var(--bar-h); border-radius: 0; padding: 0 24px; gap: 16px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 1.4fr) minmax(0, 1fr);
    background: var(--bg-1); box-shadow: 0 -1px 0 var(--line); z-index: 40;
  }
  .mini .left { display: flex; align-items: center; gap: 14px; min-width: 0; }
  .mini .art { width: 54px; height: 54px; cursor: pointer; }
  .mini .ctl-m { display: none; }
  .mini .ctl-d { display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .mini .ctl-d .btns { display: flex; align-items: center; gap: 10px; }
  .mini .ctl-d .ibtn { width: 36px; height: 36px; color: var(--text-2); }
  .mini .ctl-d .ibtn.on { color: var(--accent); }
  .mini .ctl-d .ibtn .ic { width: 20px; height: 20px; }
  .mini .ctl-d .pp { width: 38px; height: 38px; border-radius: 99px; background: var(--text); color: #0b0b0c; display: grid; place-items: center; }
  .mini .ctl-d .pp .ic { width: 20px; height: 20px; }
  .mini .ctl-d .sline { display: flex; align-items: center; gap: 10px; width: 100%; font-size: 11.5px; color: var(--text-3); }
  .mini .ctl-d .scrub { flex: 1; margin: 0; height: 20px; }
  .mini .ctl-d .scrub .tr { top: 8px; }
  .mini .ctl-d .scrub .kn { top: 10px; }
  .mini .ctl-d .scrub.active .tr { top: 7px; height: 6px; }
  .mini .ctl-d .scrub .fill { background: var(--text); }
  .mini .ctl-d .scrub:hover .fill { background: var(--accent); }
  .mini .right { display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
  .mini .right .ibtn { width: 36px; height: 36px; color: var(--text-2); }
  .mini .right .ibtn.on { color: var(--accent); }
  .mini .right .ibtn .ic { width: 19px; height: 19px; }
  .vol { width: 110px; height: 20px; }
  .vol .tr { top: 8px; }
  .mini .prog { display: none; }
  .no-track .mini { transform: translateY(100%); }

  .np-in { max-width: 1240px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 56px 1fr; gap: 0 64px; padding: 20px 48px 36px; }
  .np-top { grid-column: 1 / -1; }
  .np-top .grab::before { display: none; }
  .np-left { display: flex; flex-direction: column; justify-content: center; min-height: 0; }
  .np-art { width: min(100%, calc(100dvh - 380px)); }
  .np.paused .np-art { transform: scale(.94); }
  .np-pane { display: block !important; margin: 0; padding: 0 8px; }
  .np .np-art, .np .np-title { display: block !important; }
  .np .np-title { display: flex !important; }
  .np .np-head { display: none !important; }
  .np .np-stage { flex: 1 !important; }
  .np-right { display: flex; flex-direction: column; min-height: 0; }
  .np-right .seg { align-self: flex-start; margin-bottom: 6px; }
  .np-right .np-pane { flex: 1; }
  .np-right .np-pane:not(.cur) { display: none !important; }
  .lyr .ln { font-size: 30px; }
  .np-util .only-m { display: none; }
  .sheet-wrap { align-items: center; }
  .sheet { width: 460px; border-radius: 18px; max-height: 80dvh; padding-bottom: 20px; animation: pop .25s var(--ease) both; box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 0 0 1px var(--line); }
  .sheet::before { display: none; }
  .sheet-wrap.closing .sheet { animation: fade .15s reverse both; }
  @keyframes pop { from { opacity: 0; transform: scale(.97) translateY(8px); } }
  .toast { bottom: calc(var(--bottom-chrome) + 4px); }
  .selbar { left: var(--side-w); bottom: var(--bar-h); padding: 12px 36px; }
  .no-track .selbar { bottom: 0; }
}
@media (min-width: 900px) and (max-width: 1100px) { .mini { grid-template-columns: minmax(0, 1fr) minmax(300px, 1.3fr) auto; } .vol { width: 80px; } }
@media (max-width: 899px) { .np-right .seg { display: none; } .np-left { display: contents; } .np-right { display: contents; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* mini player internals (mobile) */
@media (max-width: 899px) {
  .mini .left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; height: 100%; }
  .mini .ctl-m { display: flex; align-items: center; }
  .mini .right { display: none; }
}
.sfield input::-webkit-search-cancel-button, .sfield input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
a.btn { text-decoration: none; }

/* ---------- downloads, network, nerd stats ---------- */
.net { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: var(--text-2); }
.net i { width: 8px; height: 8px; border-radius: 99px; background: var(--text-3); box-shadow: 0 0 0 3px rgba(255,255,255,.04); }
.net.good i { background: var(--ok); } .net.fair i { background: #f2c14e; } .net.poor i { background: var(--danger); }
.net.good i { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--ok) 15%, transparent); } }
.dls { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: none; }
.dls.ok { color: var(--ok); opacity: .85; }
.dls.q i { width: 9px; height: 9px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--text-3); }
.ring.mini { width: 16px; height: 16px; }
.ring.mini circle { stroke-width: 3; }
.badge.dl { background: var(--ok); }
.badge.dl .ic { width: 11px; height: 11px; stroke-width: 2.6; }
.dl-card { padding: 14px 0; border-bottom: 1px solid var(--line); }
.dl-card .sub, .dl-row .sub { font-size: 12.5px; color: var(--text-3); }
.dl-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.dl-row img { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; }
.dl-row .body { flex: 1; min-width: 0; font-size: 14px; }
.dl-row .pct { font-size: 13px; color: var(--text-2); min-width: 36px; text-align: right; }
.meter.thin { height: 3px; margin-top: 6px; }
.meter i { transition: width .3s var(--ease); }
.nerd { padding: 8px 0 40px; }
.nerd-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.nerd .facts { font-size: 13.5px; }
.nerd .facts dd { color: var(--text); }
.nerd .buf { position: relative; height: 6px; border-radius: 3px; background: rgba(255,255,255,.1); margin-bottom: 8px; }
.nerd .buf i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: color-mix(in srgb, var(--accent) 55%, transparent); transition: width .5s; }
.nerd .buf b { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--text); border-radius: 1px; }

/* ---------- inline download progress, pill, swipe, card play, tech line ---------- */
.lnk { color: var(--accent); font: inherit; font-weight: 600; padding: 6px 0 6px 8px; }
.pl-dl { margin-top: 14px; font-size: 13px; color: var(--text-2); }
.pl-dl.ln, .pl-dl .ln { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; min-height: 28px; }
.pl-dl .grow { flex: 1; }
.pl-dl.ok { color: var(--ok); gap: 8px; }
.pl-dl.ok .faint { color: var(--text-3); }
.pl-dl.busy .meter { margin: 0 0 6px; }
.pl-dl .dlnum { color: var(--text); font-weight: 600; }
.pl-dl.busy .meter i { background: var(--accent); }
@media (min-width: 900px) { .pl-dl { max-width: 520px; } }

.dl-pill {
  position: fixed; z-index: 28; left: calc(14px + var(--safe-l)); right: calc(14px + var(--safe-r)); bottom: calc(var(--tab-h) + var(--safe-b) + var(--mini-h) + 8px);
  display: flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: 10px 10px 4px 4px; text-decoration: none; overflow: hidden;
  background: rgba(24,24,27,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); border-bottom: 0;
  font-size: 12px; color: var(--text-2); opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.dl-pill.show { opacity: 1; transform: none; pointer-events: auto; }
.dl-pill .grow { flex: 1; }
.dl-pill b { color: var(--text); font-weight: 600; }
.dl-pill .sp { color: var(--text); }
.dl-pill .ic { color: var(--accent); flex: none; }
.dl-pill .pbar { position: absolute; left: 0; bottom: 0; height: 2px; background: var(--accent); transition: width .4s var(--ease); }
.no-track .dl-pill { bottom: calc(var(--tab-h) + var(--safe-b) + 8px); border-radius: 10px; border-bottom: 1px solid var(--line); }
:root.has-dlbar { --bottom-chrome: calc(var(--tab-h) + var(--safe-b) + var(--mini-h) + 50px); }
@media (min-width: 900px) {
  .dl-pill { left: 12px; right: auto; width: calc(var(--side-w) - 24px); bottom: calc(var(--bar-h) + 62px); border-radius: 10px; border-bottom: 1px solid var(--line); flex-wrap: nowrap; }
  .dl-pill .faint { display: none; }
  .no-track .dl-pill { bottom: 62px; }
  :root.has-dlbar { --bottom-chrome: calc(var(--bar-h) + 16px); }
}
.pl-card .cov { position: relative; }
.pl-card .mos .dl { top: 7px; bottom: auto; }
.pl-card .cplay {
  position: absolute; right: 8px; bottom: 8px; width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center;
  background: var(--text); color: #0b0b0c; box-shadow: 0 6px 18px rgba(0,0,0,.45); transition: transform .2s var(--ease), opacity .2s;
}
.pl-card .cplay .ic { width: 18px; height: 18px; margin-left: 2px; fill: currentColor; }
.pl-card .cplay:active { transform: scale(.9); }
@media (hover: hover) { .pl-card .cplay { opacity: 0; transform: translateY(6px); } .pl-card:hover .cplay { opacity: 1; transform: none; } }
.pl-card .c { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.pl-card .cdl { display: inline-flex; align-items: center; gap: 5px; flex: none; }
.pl-card .cdl:empty { display: none; }

.tl .row { touch-action: pan-y; }
.row.swiping { background: var(--bg); z-index: 2; transition: none; }
.row.settle { background: var(--bg); z-index: 2; transition: transform .25s var(--ease); }
.swipe-under { position: absolute; left: 0; right: 0; height: var(--row-h); border-radius: 8px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--bg-2); }
.swipe-under span { display: inline-flex; align-items: center; gap: 8px; opacity: 0; transition: opacity .15s, color .15s; }
.swipe-under.go-l .l, .swipe-under.go-r .r { opacity: 1; }
.swipe-under.armed.go-l { background: color-mix(in srgb, var(--accent) 28%, var(--bg-2)); }
.swipe-under.armed.go-l .l { color: var(--text); }
.swipe-under.armed.go-r { background: color-mix(in srgb, var(--ok) 22%, var(--bg-2)); }
.swipe-under.armed.go-r .r { color: var(--text); }

.times { align-items: center; }
.np-tech { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-3); padding: 4px 8px; border-radius: 99px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 68%; letter-spacing: .01em; }
.np-tech:active { background: rgba(255,255,255,.06); }
.np-tech:empty { visibility: hidden; }
.np-tech .q { width: 6px; height: 6px; border-radius: 99px; background: var(--text-3); flex: none; }
.np-tech .q.good { background: var(--ok); } .np-tech .q.fair { background: #f2c14e; } .np-tech .q.poor { background: var(--danger); }
.nerd details.deep { margin-top: 18px; }
.nerd details.deep summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 10px 0; color: var(--text-3); }
.nerd details.deep summary::-webkit-details-marker { display: none; }
.nerd details.deep[open] summary .ic { transform: rotate(180deg); }
.dls .ring .bgc { stroke: rgba(255,255,255,.28); }
.np-tech { max-width: calc(100% - 96px); }

/* ---------- audio quality ---------- */
.qb { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); border: 1px solid rgba(255,255,255,.14); border-radius: 4px; padding: 0 4px; height: 15px; margin-right: 6px; vertical-align: 1px; font-variant-numeric: tabular-nums; }
.qb.w { color: #f2c14e; border-color: rgba(242,193,78,.45); }
.qb .ic { width: 9px; height: 9px; }
.row .a .dot + .qb { margin-left: 0; }
.np-q { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.np-head .np-q { display: none; }
.qc { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 11.5px; font-weight: 500; color: var(--text-2); background: rgba(255,255,255,.07); font-variant-numeric: tabular-nums; white-space: nowrap; }
.qc .ic { width: 11px; height: 11px; }
.qc.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.qc.w { color: #f2c14e; background: rgba(242,193,78,.12); }
.qc.dim { opacity: .6; }
button.qc { cursor: pointer; }
.dls.old { color: #f2c14e; }
.set-row.warn .ttl { color: #f2c14e; }
.qsum .qbar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; gap: 2px; margin: 4px 0 14px; background: rgba(255,255,255,.06); }
.qsum .qbar i { display: block; height: 100%; }
.qsum .qbar i.ok { background: var(--ok); } .qsum .qbar i.ok.op { background: color-mix(in srgb, var(--ok) 65%, var(--accent)); } .qsum .qbar i.w { background: #f2c14e; }
.qsum .bar.q-ok .tr i { background: var(--ok); }
.qsum .bar.q-w .tr i { background: #f2c14e; }
.row .qt { font-size: 9.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); opacity: .75; margin-right: 4px; }
@media (max-width: 380px) { .row .qt { display: none; } }
.dl-pill .short { display: none; }
@media (min-width: 900px) { .dl-pill { white-space: nowrap; } .dl-pill .long { display: none; } .dl-pill .short { display: inline; } }
@media (max-width: 400px) { .selbar .long { display: none; } .selbar button.cnt { flex: 1 1 0; } }

/* ---------- connectivity banner + offline greying ---------- */
.netbar { position: fixed; z-index: 75; top: calc(var(--safe-t) + 6px); left: 50%; transform: translate(-50%, -140%); max-width: min(200px, calc(100vw - 96px));
  display: flex; align-items: center; gap: 6px; padding: 5px 8px 5px 8px; border-radius: 99px; font-size: 11.5px; line-height: 1.2; color: var(--text);
  background: rgba(20,20,22,.86); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.08); box-shadow: 0 4px 16px rgba(0,0,0,.35); transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s; opacity: 0; pointer-events: none; }
.netbar.show { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
.netbar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.netbar b { font-weight: 600; }
.netbar .ic { flex: none; width: 15px; height: 15px; }
.netbar button { flex: none; font: inherit; font-weight: 600; color: var(--text); background: rgba(255,255,255,.1); border: 0; border-radius: 99px; padding: 5px 11px; min-height: 28px; cursor: pointer; }
.netbar .dot { width: 8px; height: 8px; border-radius: 50%; background: #f5b544; flex: none; }
.netbar .spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255,255,255,.2); border-top-color: currentColor; animation: nb-spin .8s linear infinite; flex: none; }
.netbar.off { padding-right: 12px; } .netbar.off .ic { color: #9aa0a6; }
.netbar.down { border-color: rgba(255,120,90,.35); } .netbar.down .spin { border-top-color: #ff8a65; }
.netbar.slow { border-color: rgba(245,181,68,.3); padding-right: 12px; }
.netbar.back, .netbar.sync { padding-right: 12px; } .netbar.back .ic { color: #6fdc8c; }
@keyframes nb-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .netbar { transition: none; } .netbar .spin { animation: none; } }
.is-offline .row:not(.have) { opacity: .38; }
.is-offline .row:not(.have) .art { filter: grayscale(1); }
.is-offline .row:not(.have) .dur::before { content: "Not downloaded · "; font-size: 11px; }
@media (max-width: 420px) { .is-offline .row:not(.have) .dur::before { content: ""; } }
.pill.wait { background: rgba(245,181,68,.14); color: #f5c46a; }
@media (max-width: 899px) { .netbar { top: calc(var(--safe-t) + 6px); } }

/* ---------- lyrics: bar, sync tools, word highlight ---------- */
.pane-lyrics { position: relative; -webkit-mask-image: linear-gradient(#000, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(#000, #000 calc(100% - 44px), transparent); }
.lyr-bar { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 8px 0 10px; margin: 0 -2px;
  background: linear-gradient(rgba(12,12,14,.92), rgba(12,12,14,.78) 70%, rgba(12,12,14,0)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lyr-bar .grow { flex: 1; }
.lyr-kind { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); white-space: nowrap; }
.lyr-bar .chip { min-height: 32px; padding: 0 12px; font-variant-numeric: tabular-nums; }
.lyr-bar .ibtn { width: 36px; height: 36px; }
.lyr-tools { position: sticky; top: 50px; z-index: 3; margin: -4px -6px 8px; padding: 10px; border-radius: 16px; background: rgba(28,28,32,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(0,0,0,.35), inset 0 0 0 1px rgba(255,255,255,.06); }
.lyr-tools[hidden] { display: none; }
.lyr-nudge { display: grid; grid-template-columns: 52px 52px 1fr 52px 52px; gap: 6px; align-items: center; }
.lyr-nudge button { height: 44px; border-radius: 12px; background: rgba(255,255,255,.08); font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14px; }
.lyr-nudge button:active { background: rgba(255,255,255,.18); transform: scale(.96); }
.lyr-offv { display: grid; justify-items: center; line-height: 1.1; }
.lyr-offv b { font-size: 18px; } .lyr-offv small { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.lyr-trow { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.lyr-trow .chip { min-height: 34px; } .lyr-trow .faint { font-size: 11.5px; margin-left: auto; }
.lyr-sug { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 8px 8px 8px 12px; border-radius: 14px; font-size: 13px; background: rgba(245,181,68,.12); color: #f7d08a; }
.lyr-sug span { flex: 1; } .lyr-sug button { font-weight: 600; padding: 6px 12px; border-radius: 99px; background: rgba(245,181,68,.22); color: #ffe2a8; }
.lyr-sug button.x { padding: 6px; background: none; }
.lyr .ln { -webkit-user-select: none; user-select: none; }
.lyr .ln.gap { display: flex; gap: 6px; height: auto; padding: 10px 0; }
.lyr .ln.gap i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.22); }
.lyr .ln.gap.on i { background: var(--text); animation: lyr-breathe 1.6s var(--ease-io) infinite; }
.lyr .ln.gap.on i:nth-child(2) { animation-delay: .2s; } .lyr .ln.gap.on i:nth-child(3) { animation-delay: .4s; }
@keyframes lyr-breathe { 50% { transform: scale(1.35); opacity: .55; } }
.lyr .ln:not(.on):not(.gap):active { color: rgba(255,255,255,.7); }
.lyr.words .ln.on { color: rgba(255,255,255,.42); }
.lyr.words .ln.on .w.sung { color: var(--text); transition: none; }   /* no fade: coming from .cur (transparent text) a fade would blank the word for a moment */
.lyr.words .ln.on .w.cur { color: transparent; background: linear-gradient(90deg, var(--text) calc(var(--p, 0) * 100%), rgba(255,255,255,.42) calc(var(--p, 0) * 100%)); -webkit-background-clip: text; background-clip: text; }
.lyr.words .ln.past .w { color: inherit; }
.pane-lyrics.tapmode .lyr .ln:not(.gap) { color: rgba(255,255,255,.75); outline: 1px dashed rgba(255,255,255,.18); outline-offset: 2px; border-radius: 8px; margin: 4px 0; }
.pane-lyrics.tapmode .lyr-bar::after { content: "Tap the line you hear now"; position: absolute; left: 0; right: 0; top: 100%; text-align: center; font-size: 12px; color: var(--accent, #fff); }
.lyr-now { position: sticky; bottom: 14px; left: 50%; display: none; margin: -40px auto 0; transform: translateX(0); align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; background: var(--text); color: #0b0b0c; box-shadow: 0 8px 24px rgba(0,0,0,.4); z-index: 3; }
.pane-lyrics.off-now .lyr-now { display: flex; width: max-content; }
/* versions sheet */
.sh-item.ver { align-items: center; gap: 12px; min-height: 60px; }
.sh-item.ver.cur { background: rgba(255,255,255,.05); }
.sh-item.ver .vt { flex: 1; min-width: 0; display: grid; text-align: left; gap: 2px; }
.sh-item.ver .vs { font-size: 12.5px; color: var(--text-3); }
.sh-item.ver .vb { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px; background: var(--bg-3); color: var(--text-2); width: 58px; text-align: center; }
.sh-item.ver .vb.w { background: rgba(111,220,140,.16); color: #8fe7a8; } .sh-item.ver .vb.s { background: rgba(255,255,255,.1); }
.okc { color: #8fe7a8; font-weight: 600; } .wc { color: #f5c46a; font-weight: 600; } .bc { color: #ff8a65; font-weight: 600; }
/* speed sheet */
.spd-big { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 10px; }
.spd-big b { font-size: 40px; font-weight: 700; letter-spacing: -.02em; }
.spd-big span { color: var(--text-3); font-size: 13.5px; }
#spd-r { width: 100%; accent-color: var(--accent, #fff); height: 34px; margin: 0 0 10px; touch-action: pan-x; }
.spd-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; margin-bottom: 8px; }
.spd-chips .chip { justify-content: center; min-height: 38px; }
.mini-rate { font-size: 10.5px; font-weight: 700; padding: 1px 5px; border-radius: 5px; background: rgba(255,255,255,.14); color: var(--text); margin-right: 6px; }
.mini .left { touch-action: none; }
.sheet { touch-action: pan-y; }
.np-art { will-change: transform; }
.sh-sub { font-size: 13px; color: var(--text-3); margin: -8px 0 12px; line-height: 1.45; }
.sh-item.ver { height: auto; padding: 8px 4px; }

/* ---------- triage: one screen, no overlap (card sized from the space actually left) ---------- */
.tri { height: calc(100dvh - var(--bottom-chrome) - var(--safe-t) - 10px); min-height: 440px; }
.tri-top { gap: 10px; min-width: 0; }
.tri-top .big-title { margin: 0; font-size: clamp(28px, 8vw, 40px); }
.tri-top .tri-scope { max-width: 46%; min-width: 0; } .tri-top .tri-scope .ell { min-width: 0; }
.tri-prog { margin-top: 12px; }
.deck { display: grid; place-items: center; position: relative; flex: 1 1 0; min-height: 0; margin: 10px 0 6px; container-type: size; }
.deck > .card { grid-area: 1 / 1; position: relative; width: min(100cqw, 400px, calc(100cqh - 100px)); min-width: 150px; }
.card .info { padding-top: 12px; }
.card .info .t { font-size: clamp(18px, 5.2vw, 22px); }
.card .info .a, .card .info .m { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .info .m { margin-top: 4px; }
.card.under { transform: scale(.92) translateY(-14px); }
.tri-btns { flex: none; padding: 4px 0 2px; }
@media (hover: none) { .kbd-hint { display: none; } }
@media (max-height: 700px) { .tri-btns .c { width: 52px; height: 52px; } .tri-btns .sm .c { width: 42px; height: 42px; } .tri-btns { gap: 18px; } .tri-btns button { gap: 3px; font-size: 11px; } }
/* playlist toolbar: chips scroll inside their own space instead of running under the buttons */
.toolbar .chips { min-width: 0; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 22px), transparent); }
.qsum .bar .k { white-space: normal; }
.qsum .bar .k .faint { display: block; font-size: 12px; margin-top: 2px; line-height: 1.35; }

/* ---- t22u: lyrics = docked header (never covers lines) + its own scroller; no sideways scroll ---- */
.np.mode-lyrics .pane-lyrics { display: flex; }
.pane-lyrics { flex-direction: column; overflow: hidden !important; -webkit-mask-image: none; mask-image: none; touch-action: auto; }
.lyr-dock { flex: none; padding-top: 2px; }
.lyr-sc { flex: 1; min-height: 0; position: relative; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; touch-action: pan-y;
  -webkit-mask-image: linear-gradient(transparent, #000 22px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(transparent, #000 22px, #000 calc(100% - 44px), transparent); }
.lyr-sc .lyr { padding-top: 18px; }
.lyr .ln { overflow-wrap: anywhere; word-break: normal; max-width: 100%; }
.lyr-bar { position: static; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 4px 0 6px; margin: 0; min-height: 40px; }
.lyr-chip { min-height: 30px !important; padding: 0 10px !important; font-size: 12.5px; }
.lyr-tools { position: static; display: grid; grid-template-columns: 40px 40px minmax(56px, 1fr) 40px 40px 40px 40px; gap: 5px; align-items: center; margin: 0 0 6px; padding: 5px; border-radius: 14px;
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); backdrop-filter: none; -webkit-backdrop-filter: none; animation: lyrToolsIn .22s var(--ease) both; }
.lyr-tools[hidden] { display: none; }
.lyr-tools > button { height: 38px; border-radius: 10px; background: rgba(255,255,255,.08); font-weight: 650; font-size: 13.5px; font-variant-numeric: tabular-nums; display: grid; place-items: center; }
.lyr-tools > button:active { background: rgba(255,255,255,.2); transform: scale(.95); }
.lyr-tools > button.lt { color: var(--text-2); }
.lyr-tools > button[hidden] { display: none; }
.lyr-tools .lyr-offv { line-height: 1.05; }
.lyr-tools .lyr-offv b { font-size: 15px; } .lyr-tools .lyr-offv small { font-size: 10.5px; }
@keyframes lyrToolsIn { from { opacity: 0; transform: translateY(-4px); } }
.lyr-taphint { display: none; align-items: center; gap: 8px; margin: 0 0 6px; padding: 6px 6px 6px 12px; border-radius: 12px; font-size: 13px; font-weight: 600; color: #0b0b0c; background: var(--accent, #e7b66d); }
.lyr-taphint span { flex: 1; } .lyr-taphint button { padding: 5px 10px; border-radius: 99px; background: rgba(0,0,0,.14); font-weight: 650; }
.pane-lyrics.tapmode .lyr-taphint { display: flex; }
.pane-lyrics.tapmode .lyr-bar::after { content: none; }
.pane-lyrics.tapmode .lyr-tools button[data-act=lyr-tap] { background: var(--accent, #e7b66d); color: #0b0b0c; }
.lyr-sug { margin: 0 0 6px; padding: 5px 6px 5px 10px; font-size: 12.5px; }
.lyr-now { left: auto; right: auto; }
@media (max-width: 360px) { .lyr-tools { grid-template-columns: 36px 36px minmax(50px, 1fr) 36px 36px 36px 36px; gap: 4px; } .lyr .ln { font-size: 23px; } }
@media (min-width: 900px) { .np-right .pane-lyrics.cur { display: flex !important; } .np-right .pane-lyrics:not(.cur) { display: none !important; } }

/* ---- t23u: 6-tab bar, sleep/error chips, queue empty, gapless ---- */
.mini-sleep { font-size: 10.5px; font-weight: 700; padding: 1px 5px; border-radius: 5px; background: rgba(231,182,109,.22); color: var(--accent, #e7b66d); margin-right: 6px; }
.pl-err { display: none; position: fixed; z-index: 29; left: calc(8px + var(--safe-l)); right: calc(8px + var(--safe-r)); bottom: calc(var(--tab-h) + var(--safe-b) + var(--mini-h) + 16px); align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-radius: 12px; font-size: 13px; font-weight: 600; background: rgba(40,18,16,.92); color: #ffb4a4; box-shadow: 0 8px 24px rgba(0,0,0,.35); backdrop-filter: blur(16px); }
.pl-err.show { display: flex; }
.pl-err button { margin-left: auto; padding: 5px 10px; border-radius: 99px; background: rgba(255,255,255,.12); font-weight: 650; color: inherit; }
.q-empty { padding: 28px 8px; }
.pane-queue .qh .tleft { color: var(--text-3); font-weight: 500; }
