/* 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.82); 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(5, 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; }
.tabs a .ic { width: 23px; height: 23px; }
.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 .cnt { flex: 1; font-weight: 600; font-size: 14px; padding-left: 4px; }
.selbar button { display: grid; justify-items: center; gap: 2px; font-size: 10.5px; color: var(--text-2); min-width: 54px; padding: 4px 2px; }
.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(.94) translateY(14px); opacity: .5; pointer-events: 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.3); opacity: .55; transform: scale(1.2); transition: opacity .8s; }
.np-bg::after { content: ""; position: absolute; inset: 0; background: rgba(10,10,11,.42); }
.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.mode-lyrics .np-art, .np.mode-queue .np-art, .np.mode-lyrics .np-title, .np.mode-queue .np-title { display: none; }
.np.mode-lyrics .np-head, .np.mode-queue .np-head { display: flex; }
.np.mode-lyrics .np-stage, .np.mode-queue .np-stage { flex: 0 0 auto; }
.np.mode-lyrics .pane-lyrics, .np.mode-queue .pane-queue { 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; }

.offline-flag { position: fixed; z-index: 70; top: calc(var(--safe-t) + 6px); left: 50%; transform: translateX(-50%); font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--bg-3); color: var(--text-2); display: none; }
.is-offline .offline-flag { display: block; }

/* ---------- 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; }
}
