@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0300-036F, U+1D00-1DBF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-greek.woff2") format("woff2");
  unicode-range: U+0370-03FF, U+1F00-1FFF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0400-052F, U+1C80-1C8A, U+20B4, U+2116, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

:root {
  --col: 600px;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 20px;
  --r-full: 999px;
  --bg: #0C0C0E;
  --surface: #151518;
  --bar: #1C1C20;
  --pop: #1E1E23;
  --text: #F4F4F5;
  --muted: #A1A1AA;
  --line: rgba(255, 255, 255, .08);
  --line2: rgba(255, 255, 255, .22);
  --track: rgba(255, 255, 255, .14);
  --row: rgba(255, 255, 255, .06);
  --hover: rgba(255, 255, 255, .045);
  --fill: rgba(255, 255, 255, .07);
  --fill-2: rgba(255, 255, 255, .11);
  --sb: rgba(255, 255, 255, .16);
  --shadow: 0 12px 40px rgba(0, 0, 0, .5);
  --accent: #FF5A36;
  --tint: rgba(255, 90, 54, .18);
  --danger: #FF7A70;
  --row-h: 52px;
  --dock-room: 92px;
  --cover-tint: var(--bg);
  --tint-mix: 34%;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 .38 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #FAFAF9;
    --surface: #F2F2F0;
    --bar: #FFFFFF;
    --pop: #FFFFFF;
    --text: #0C0C0E;
    --muted: #5F5F66;
    --line: rgba(12, 12, 14, .08);
    --line2: rgba(12, 12, 14, .22);
    --track: rgba(12, 12, 14, .12);
    --row: rgba(12, 12, 14, .055);
    --hover: rgba(12, 12, 14, .035);
    --fill: rgba(12, 12, 14, .06);
    --fill-2: rgba(12, 12, 14, .1);
    --sb: rgba(12, 12, 14, .18);
    --shadow: 0 12px 40px rgba(12, 12, 14, .12);
    --accent: #E8431F;
    --tint: rgba(232, 67, 31, .14);
    --danger: #C4321F;
    --tint-mix: 26%;
    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --bg: #FAFAF9;
  --surface: #F2F2F0;
  --bar: #FFFFFF;
  --pop: #FFFFFF;
  --text: #0C0C0E;
  --muted: #5F5F66;
  --line: rgba(12, 12, 14, .08);
  --line2: rgba(12, 12, 14, .22);
  --track: rgba(12, 12, 14, .12);
  --row: rgba(12, 12, 14, .055);
  --hover: rgba(12, 12, 14, .035);
  --fill: rgba(12, 12, 14, .06);
  --fill-2: rgba(12, 12, 14, .1);
  --sb: rgba(12, 12, 14, .18);
  --shadow: 0 12px 40px rgba(12, 12, 14, .12);
  --accent: #E8431F;
  --tint: rgba(232, 67, 31, .14);
  --danger: #C4321F;
  --tint-mix: 26%;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.4 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
  transition: background .3s, color .3s;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.i-fill { fill: currentColor; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
kbd {
  display: inline-block;
  min-width: 20px;
  padding: 1px 6px;
  border: 1px solid var(--line2);
  border-bottom-width: 2px;
  border-radius: var(--r-s);
  font: 500 11px/1.5 Inter, system-ui, sans-serif;
  color: var(--muted);
  text-align: center;
}

@supports not selector(::-webkit-scrollbar) {
  .scroll { scrollbar-width: thin; scrollbar-color: var(--sb) transparent; }
}
.scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.scroll::-webkit-scrollbar-track { background: transparent; }
.scroll::-webkit-scrollbar-thumb { background: var(--sb); border-radius: var(--r-full); }
.scroll::-webkit-scrollbar-button { display: none; }

.app {
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom);
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px clamp(16px, 4vw, 40px) 0;
  flex: none;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.brand-mark { width: 18px; height: 18px; fill: var(--text); }
.brand-mark .peak { fill: var(--accent); }
.top-actions { display: flex; gap: 4px; margin-right: -8px; }

.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex: none;
  transition: background .15s, color .15s, transform .1s;
}
.icon-btn:hover { background: var(--fill); }
.icon-btn:active { transform: scale(.94); }
.icon-btn.quiet { color: var(--muted); }
.icon-btn.quiet:hover { color: var(--text); }
.icon-btn.big { width: 48px; height: 48px; }
.icon-btn[aria-pressed="true"], .icon-btn.on { color: var(--accent); }
.icon-btn.big .i { width: 20px; height: 20px; }
.i-rep1 { display: none; }
.repeat-one .i-rep { display: none; }
.repeat-one .i-rep1 { display: block; }
.top .icon-btn { color: var(--muted); }
.top .icon-btn:hover { color: var(--text); background: var(--fill); }

#themeBtn .moon { display: none; }
:root[data-theme="light"] #themeBtn .sun { display: none; }
:root[data-theme="light"] #themeBtn .moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) #themeBtn .sun { display: none; }
  :root:not([data-theme]) #themeBtn .moon { display: block; }
}

.pill {
  height: 40px;
  padding: 0 20px;
  border-radius: var(--r-full);
  border: 0;
  background: var(--fill);
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  transition: background .15s, transform .1s, border-color .15s;
}
.pill:hover { background: var(--fill-2); }
.pill:active { transform: scale(.97); }
.pill.solid { background: var(--text); color: var(--bg); }
.pill.solid:hover { background: color-mix(in srgb, var(--text) 88%, var(--bg)); }
.pill.small { height: 32px; padding: 0 14px; font-size: 13px; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.pill .i { width: 16px; height: 16px; margin-left: -4px; }
.pill.danger { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); }
.pill.danger:hover { background: color-mix(in srgb, var(--danger) 16%, transparent); }

.stage {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(8px, 2.5vh, 24px) 12px 12px;
  gap: 16px;
}

.welcome {
  flex: 1;
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding-bottom: 8vh;
}
.dropzone {
  width: 100%;
  min-height: 240px;
  border-radius: var(--r-l);
  border: 1.5px dashed var(--line2);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 32px 20px;
  transition: border-color .2s, background .2s, transform .2s;
}
.dropzone:hover, .dragging .dropzone { border-color: var(--accent); background: var(--tint); }
.dz-title { font-weight: 600; font-size: clamp(28px, 5vw, 44px); letter-spacing: -.035em; line-height: 1.1; }
.dz-sub { color: var(--muted); font-size: 15px; }
.welcome-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.fine { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: center; max-width: 460px; }
.fine.left { text-align: left; }

.library {
  position: relative;
  width: 100%;
  max-width: var(--col);
  flex: 1 1 auto;
  min-height: 0;
  background: var(--surface);
  border-radius: var(--r-l);
  padding: 12px 12px 4px;
  display: flex;
  flex-direction: column;
  transition: background .3s;
}

.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 8px;
  padding: 8px 8px 8px 16px;
  border-radius: var(--r-m);
  background: var(--tint);
  font-size: 14px;
}

.chips-row { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 0 8px; flex: none; }
.chips { flex: 0 1 auto; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  max-width: 170px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--r-full);
  border: 1.5px solid transparent;
  background: var(--fill);
  color: var(--text);
  font-weight: 500;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background .15s, color .15s, transform .15s, border-color .15s;
}
.chip .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip .count { font-size: 12px; opacity: .55; font-variant-numeric: tabular-nums; }
.chip:hover { background: var(--fill-2); }
.chip.active { background: var(--text); color: var(--bg); }
.chip.active:hover { background: color-mix(in srgb, var(--text) 88%, var(--bg)); }
.chip.target { border-style: dashed; border-color: var(--accent); background: var(--tint); color: var(--text); }
.chip.over { transform: scale(1.06); background: var(--accent); color: #fff; border-style: solid; }
.chip .x .i { width: 12px; height: 12px; stroke-width: 2; }
.chip .x { margin-right: -6px; width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; opacity: .7; }
.chip .x:hover { opacity: 1; background: var(--line2); }
.chip .i { width: 15px; height: 15px; }
.chip.more { padding: 0 8px 0 12px; gap: 4px; }
.chip.more .i { color: var(--muted); }
.chip.ghost { background: transparent; color: var(--muted); padding: 0 12px 0 8px; gap: 4px; font-size: 13px; }
.chip.ghost:hover, .chip.ghost[aria-expanded="true"] { color: var(--text); background: var(--fill); }
.chip.ghost .i { width: 16px; height: 16px; }

.pl-panel {
  position: absolute;
  z-index: 15;
  top: 52px;
  right: 12px;
  width: min(300px, calc(100% - 24px));
  background: var(--pop);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow);
  padding: 8px;
  animation: pop .16s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.field {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border-radius: var(--r-s);
  background: var(--surface);
  color: var(--muted);
}
.field .i { width: 15px; height: 15px; }
.field input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); font-size: 14px; }
.field input::placeholder { color: var(--muted); }
.field.big { height: 44px; font-size: 16px; }
.field.big input { font-size: 16px; }
.pl-list { max-height: 300px; overflow-y: auto; margin-top: 4px; }
.pl-head { padding: 12px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pl-row {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: 1.5px solid transparent;
  border-radius: var(--r-s);
  background: transparent;
  font-size: 14px;
  text-align: left;
}
.pl-row:hover, .pl-row.cursor { background: var(--row); }
.pl-row.active { font-weight: 600; }
.pl-row.target { border-style: dashed; border-color: var(--accent); }
.pl-row.over { background: var(--accent); color: #fff; }
.pl-row .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-row .count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pl-row.over .count { color: inherit; }
.pl-empty { margin: 0; padding: 12px; font-size: 13px; color: var(--muted); }
.pl-new {
  width: 100%;
  min-height: 40px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--r-s) var(--r-s);
  background: transparent;
  font-weight: 500;
  font-size: 14px;
}
.pl-new .i { width: 15px; height: 15px; }
.pl-new:hover { background: var(--row); }
.pl-new.over { background: var(--accent); color: #fff; }

.hint { flex: 1; min-width: 0; padding-left: 4px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hint.loud { color: var(--text); }
.hint-actions { display: flex; align-items: center; gap: 4px; flex: none; }
.chip.active { max-width: 280px; }
.chip .dur { white-space: nowrap; }
#addBtn[aria-expanded="true"] { color: var(--text); background: var(--fill); }
.text-btn {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-full);
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.text-btn .i { width: 15px; height: 15px; }
.text-btn:hover { color: var(--text); background: var(--fill); }

.progress { height: 2px; margin: 0 8px 8px; background: var(--track); border-radius: 2px; overflow: hidden; flex: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }

.list {
  position: relative;
  flex: 1;
  min-height: 120px;
  overflow-y: auto;
  margin-right: -8px;
  padding-right: 4px;
  contain: strict;
}
.list-inner { position: relative; }
.row {
  position: absolute;
  left: 0;
  right: 0;
  height: var(--row-h);
  display: flex;
  align-items: center;
  border-radius: var(--r-m);
  transition: background .12s;
}
.row:hover { background: var(--hover); }
.row.current { background: var(--row); }
.row.picked { background: var(--tint); }
.row.dragging { opacity: .45; }
.row-main:focus-visible { outline: none; }
.row:has(.row-main:focus-visible) { box-shadow: inset 0 0 0 1.5px var(--accent); }
.row-main {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 0 16px;
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: var(--r-m);
}
.eq { width: 12px; height: 12px; flex: none; display: flex; align-items: flex-end; justify-content: space-between; margin-left: -4px; }
.eq i { width: 2.5px; height: 100%; border-radius: var(--r-full); background: var(--accent); transform-origin: bottom; transform: scaleY(.3); opacity: 0; transition: opacity .3s, transform .5s cubic-bezier(.4, 0, .2, 1); }
.row.current .eq i { opacity: 1; }
.row.current .eq i:nth-child(2) { transform: scaleY(.55); }
.row.current .eq i:nth-child(3) { transform: scaleY(.4); }
.playing .row.current .eq i { animation: eq 1.1s cubic-bezier(.45, 0, .55, 1) infinite alternate; }
.playing .row.current .eq i:nth-child(2) { animation-duration: .8s; animation-delay: -.35s; }
.playing .row.current .eq i:nth-child(3) { animation-duration: 1.3s; animation-delay: -.6s; }
@keyframes eq { 0% { transform: scaleY(.25); } 45% { transform: scaleY(.9); } 70% { transform: scaleY(.5); } 100% { transform: scaleY(1); } }
.row .text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.row.current .title { font-weight: 600; }
.row .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; color: var(--muted); }
.row .dur { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.row .col { display: none; }
.row .row-more { width: 40px; height: 40px; color: var(--muted); opacity: 0; }
.wide .row-main { gap: 16px; }
.wide .row .text { flex: 2.2 1 0; }
.wide .row .sub { display: none; }
.wide .row .col { display: block; flex: 1.4 1 0; min-width: 0; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wide .row .dur { width: 48px; text-align: right; }
.row:hover .row-more, .row .row-more:focus-visible, .row .row-more[aria-expanded="true"] { opacity: 1; }
@media (hover: none) { .row .row-more { opacity: 1; } }
.tail {
  position: absolute;
  left: 4px;
  right: 8px;
  height: 48px;
  margin-top: 8px;
  border: 1px dashed transparent;
  border-radius: var(--r-m);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: border-color .2s, background .2s, color .2s;
}
.tail .i { width: 16px; height: 16px; }
.tail:hover { color: var(--text); background: var(--hover); }
.dragging .tail { color: var(--text); border-color: var(--accent); background: var(--tint); }
.empty { margin: 0; padding: 32px 16px; text-align: center; font-size: 14px; color: var(--muted); }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 16px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  --pct: 0%;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(to right, var(--text) var(--pct), var(--track) var(--pct));
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--track); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--text); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--text);
  border: 0;
  transform: scale(0);
  transition: transform .15s;
}
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--text); border: 0; transform: scale(0); transition: transform .15s; }
input[type="range"]:hover::-webkit-slider-thumb, input[type="range"]:focus-visible::-webkit-slider-thumb, input[type="range"]:active::-webkit-slider-thumb { transform: scale(1); }
input[type="range"]:hover::-moz-range-thumb, input[type="range"]:focus-visible::-moz-range-thumb, input[type="range"]:active::-moz-range-thumb { transform: scale(1); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-runnable-track { box-shadow: 0 0 0 2px var(--accent); }

.play {
  position: relative;
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 50%;
  border: 0;
  background: var(--text);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: transform .1s, background .3s;
}
.play:active { transform: scale(.94); }
.play:hover { background: color-mix(in srgb, var(--text) 88%, var(--bg)); }
.play .i { position: absolute; width: 24px; height: 24px; transition: opacity .2s ease, transform .3s cubic-bezier(.2, .8, .2, 1); }
.play .i-play { transform: translateX(1.5px); }
.play .i-pause { opacity: 0; transform: scale(.5) rotate(-90deg); }
.playing .play .i-pause { opacity: 1; transform: none; }
.playing .play .i-play { opacity: 0; transform: translateX(1.5px) scale(.5) rotate(90deg); }
.play.small { width: 40px; height: 40px; }
.play.small .i { width: 16px; height: 16px; }
.np .icon-btn.big .i { width: 24px; height: 24px; }
.i-mute { display: none; }
.muted .i-mute { display: block; }
.muted .i-vol { display: none; }

.dock {
  position: relative;
  width: min(var(--col), calc(100% - 24px));
  margin: 0 auto 12px;
  flex: none;
}
.mini {
  position: relative;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  background: var(--bar);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  transition: background .3s, transform .26s cubic-bezier(.2, .8, .2, 1);
  touch-action: pan-x pinch-zoom;
}
.mini.nudge-left { transform: translateX(-8px); }
.mini.nudge-right { transform: translateX(8px); }
.mini-open {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 0 2px;
  border: 0;
  background: transparent;
  text-align: left;
  border-radius: var(--r-m);
}
.mini-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mini-title { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: rise .45s cubic-bezier(.2, .8, .2, 1); }
.mini-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini.idle .mini-title { font-weight: 500; color: var(--muted); }
.mini-open:hover .mini-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.mini-time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; padding-right: 8px; }
.mini-controls { display: flex; align-items: center; gap: 4px; flex: none; }
.mini-queue { flex: none; }
.mini .mini-seek {
  position: absolute;
  left: 16px;
  bottom: -7px;
  width: calc(100% - 32px);
  height: 14px;
  z-index: 2;
}
.mini .mini-seek::-webkit-slider-runnable-track { height: 2px; transition: height .15s; }
.mini .mini-seek:hover::-webkit-slider-runnable-track, .mini .mini-seek:focus-visible::-webkit-slider-runnable-track { height: 4px; }
.mini .mini-seek::-webkit-slider-thumb { margin-top: -5px; }
.mini .mini-seek:hover::-webkit-slider-thumb { margin-top: -4px; }
.mini .mini-seek::-moz-range-track, .mini .mini-seek::-moz-range-progress { height: 2px; }
.scrub-tip {
  position: absolute;
  bottom: 12px;
  margin-left: 16px;
  transform: translateX(-50%);
  padding: 2px 8px;
  border-radius: var(--r-s);
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  z-index: 3;
}
.mini.idle .mini-seek, .mini.idle .mini-time { visibility: hidden; }

.cover {
  position: relative;
  flex: none;
  background: var(--surface);
  background-size: cover;
  background-position: center;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cover .i { width: 36%; height: 36%; stroke-width: 1.5; opacity: .7; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: fadeIn .45s ease-out; }
.cover.small { width: 44px; height: 44px; border-radius: var(--r-s); background-color: var(--fill); }
.cover.big { width: var(--np-cover); height: var(--np-cover); border-radius: var(--r-l); box-shadow: 0 24px 64px -12px rgba(0, 0, 0, .45); }
.cover.hold { visibility: hidden; }
.cover:has(img:not([hidden])) > .i { display: none; }
.cover.gen {
  color: #fff;
  background-image: var(--grain), radial-gradient(120% 120% at 18% 12% in oklab, oklch(.68 .11 var(--ph)), oklch(.46 .1 calc(var(--ph) + 28)) 55%, oklch(.3 .07 calc(var(--ph) + 48)));
  background-size: 160px 160px, cover;
  background-blend-mode: soft-light, normal;
}
.cover.gen .i { opacity: .55; stroke-width: 1.25; }
.cover.big.gen .i { width: 22%; height: 22%; }
.cover-ghost img { animation: none; }
.cover-ghost { position: fixed; z-index: 48; margin: 0; transform-origin: 0 0; pointer-events: none; box-shadow: none; will-change: transform; }

.np {
  --np-cover: min(440px, 46dvh, calc(100vw - 48px));
  position: fixed;
  inset: 0;
  z-index: 40;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  color: var(--text);
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  transition: opacity .32s ease, transform .4s cubic-bezier(.2, .8, .2, 1);
}
.np.entering { opacity: 0; transform: translateY(16px); }
.np.leaving { opacity: 0; transform: translateY(16px); pointer-events: none; transition-duration: .26s; }
.np-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .8s ease;
  background:
    radial-gradient(140% 110% at 26% 22% in oklab,
      color-mix(in oklab, var(--cover-tint) calc(var(--tint-mix) * 1), var(--bg)) 0%,
      color-mix(in oklab, var(--cover-tint) calc(var(--tint-mix) * 0.92), var(--bg)) 8%,
      color-mix(in oklab, var(--cover-tint) calc(var(--tint-mix) * 0.78), var(--bg)) 17%,
      color-mix(in oklab, var(--cover-tint) calc(var(--tint-mix) * 0.6), var(--bg)) 27%,
      color-mix(in oklab, var(--cover-tint) calc(var(--tint-mix) * 0.42), var(--bg)) 37%,
      color-mix(in oklab, var(--cover-tint) calc(var(--tint-mix) * 0.26), var(--bg)) 47%,
      color-mix(in oklab, var(--cover-tint) calc(var(--tint-mix) * 0.14), var(--bg)) 57%,
      color-mix(in oklab, var(--cover-tint) calc(var(--tint-mix) * 0.06), var(--bg)) 67%,
      color-mix(in oklab, var(--cover-tint) calc(var(--tint-mix) * 0.015), var(--bg)) 78%,
      var(--bg) 90%);
}
.np-glow::after { content: ""; position: absolute; inset: 0; background: var(--grain); background-size: 160px 160px; mix-blend-mode: soft-light; }
.np-mesh { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .8s ease; }
.np-glow.live .np-mesh { opacity: 1; }
.np.tinted .np-glow { opacity: 1; }
.np-head { position: relative; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 16px clamp(16px, 4vw, 40px) 0; }
.np-head .icon-btn { color: var(--muted); }
.np-head .icon-btn:hover { color: var(--text); background: var(--fill); }
.np-head .icon-btn .i { width: 22px; height: 22px; }
.np-from { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-body {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.np-stage { width: 100%; max-width: var(--np-cover); display: flex; flex-direction: column; gap: 24px; }
.np-info { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.np-info h1 { margin: 0; max-width: 100%; }
.now-title {
  display: -webkit-box;
  max-width: 100%;
  border: 0;
  background: none;
  padding: 0;
  text-align: left;
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -.03em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  animation: rise .5s cubic-bezier(.2, .8, .2, 1);
}
.now-title.idle { color: var(--muted); }
.now-title:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.now-meta { margin: 0; font-size: 16px; line-height: 1.4; color: var(--muted); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; }
.link { border: 0; background: none; padding: 0; color: inherit; font: inherit; }
.link:hover:not(:disabled) { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.link:disabled { cursor: default; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.seek { display: flex; flex-direction: column; gap: 4px; }
.times { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.np-controls { display: flex; align-items: center; justify-content: space-between; }
.np-controls .icon-btn.quiet { position: relative; }
.np-controls .icon-btn.quiet::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .2s; }
.np-controls .icon-btn[aria-pressed="true"]::after, .np-controls .icon-btn.on::after { opacity: 1; transform: none; }
.np .volume { margin-left: auto; display: flex; align-items: center; flex-direction: row-reverse; gap: 4px; color: var(--muted); }
.np .volume input { width: 0; opacity: 0; height: 24px; transition: width .25s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.np .volume:hover input, .np .volume:focus-within input { width: 112px; opacity: 1; }
.np .volume input::-webkit-slider-runnable-track { height: 3px; }
.np .volume input::-webkit-slider-thumb { width: 10px; height: 10px; margin-top: -3.5px; }
.np .volume input::-moz-range-track, .np .volume input::-moz-range-progress { height: 3px; }
.np .volume input::-moz-range-thumb { width: 10px; height: 10px; }
@media (hover: none) and (pointer: coarse) { .np .volume { display: none; } }
.np-queue { width: 100%; max-width: var(--np-cover); }
.np-queue .q-head { padding-left: 12px; }
.np-queue .q-head:first-child { padding-top: 0; }
@media (hover: hover) {
  .q-row [data-q="remove"] { opacity: 0; }
  .q-row:hover [data-q="remove"], .q-row:focus-within [data-q="remove"] { opacity: 1; }
}

@media (min-width: 960px) and (min-height: 600px) {
  .np { --np-cover: clamp(200px, calc(100dvh - 380px), min(540px, 38vw)); overflow: hidden; }
  .np-stage { gap: 20px; }
  .np-body { height: calc(100dvh - 64px); display: grid; grid-template-columns: var(--np-cover) minmax(0, 380px); align-content: center; justify-content: center; gap: clamp(40px, 6vw, 96px); padding: 12px 40px 32px; }
  .np-queue { contain: size; align-self: stretch; max-width: none; overflow-y: auto; padding: 0 4px 24px 0; mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent); }
}

.toasts {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(var(--dock-room) + env(safe-area-inset-bottom));
  transition: bottom .3s cubic-bezier(.2, .8, .2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  z-index: 45;
}
.np:not([hidden]) ~ .toasts { bottom: calc(24px + env(safe-area-inset-bottom)); }
.toast {
  pointer-events: auto;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 16px;
  min-height: 40px;
  border-radius: var(--r-full);
  background: var(--text);
  color: var(--bg);
  font-size: 14px;
  box-shadow: var(--shadow);
  animation: toastIn .22s cubic-bezier(.2, .8, .2, 1);
}
.toast.plain { padding-right: 16px; }
.toast span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast button { height: 28px; padding: 0 12px; border-radius: var(--r-full); border: 0; background: color-mix(in srgb, var(--bg) 16%, transparent); color: var(--bg); font-weight: 600; font-size: 13px; flex: none; }
.toast button:hover { background: color-mix(in srgb, var(--bg) 26%, transparent); }
.toast.out { animation: toastOut .18s ease-in forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

.q-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 4px 12px; }
.q-head h2 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.q-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 48px;
  border-radius: var(--r-m);
  padding-left: 4px;
}
.q-row:hover { background: var(--hover); }
.q-row.drag-over { box-shadow: inset 0 2px 0 var(--accent); }
.q-row.dragging { opacity: .4; }
.q-grip .i { width: 16px; height: 16px; }
.q-grip { width: 24px; height: 40px; display: flex; align-items: center; justify-content: center; color: var(--muted); cursor: grab; opacity: .6; flex: none; }
.q-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; border: 0; background: none; text-align: left; padding: 6px 8px; border-radius: var(--r-s); }
.q-main .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.q-main .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: var(--muted); }
.q-row .icon-btn { width: 36px; height: 36px; color: var(--muted); }
.q-note { margin: 0; padding: 8px 12px 12px; font-size: 13px; color: var(--muted); }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, .42);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 12vh, 140px) 16px 16px;
  animation: fadeIn .15s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.palette, .sheet {
  width: 100%;
  max-width: 600px;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--pop);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: pop .18s ease-out;
}
.sheet.narrow { max-width: 440px; }
.sheet:focus, .palette:focus { outline: none; }
.palette-field { display: flex; align-items: center; gap: 12px; padding: 0 16px; height: 60px; border-bottom: 1px solid var(--line); color: var(--muted); flex: none; }
.palette-field input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); font-size: 18px; }
.palette-field input::placeholder { color: var(--muted); }
.results { overflow-y: auto; padding: 8px; min-height: 60px; max-height: 56dvh; }
.r-head { padding: 10px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.r-item { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 8px 8px 12px; border-radius: var(--r-m); cursor: pointer; }
.r-item.active { background: var(--row); }
.r-item .text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.r-item .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-item .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; color: var(--muted); }
.r-item mark { background: none; color: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.r-kind .i { width: 16px; height: 16px; }
.r-kind { width: 32px; height: 32px; border-radius: var(--r-s); background: var(--surface); color: var(--muted); display: flex; align-items: center; justify-content: center; flex: none; }
.r-acts { display: none; gap: 4px; }
.r-item.active .r-acts { display: flex; }
.r-acts button { height: 28px; padding: 0 10px; border: 0; border-radius: var(--r-full); background: var(--fill); font-size: 12px; font-weight: 500; color: var(--muted); }
.r-acts button:hover { color: var(--text); }
.r-empty { margin: 0; padding: 22px 14px; text-align: center; color: var(--muted); font-size: 14px; }
.palette-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); flex: none; }
.palette-foot kbd { margin-right: 2px; }
@media (max-width: 520px) { .palette-foot { display: none; } }

.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 12px 8px 24px; flex: none; }
.sheet-head .icon-btn .i { width: 18px; height: 18px; }
.sheet-head h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.sheet-body { overflow-y: auto; padding: 0 24px 24px; }
.group { padding: 16px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; }
.group:first-child { border-top: 0; }
.group.tight { gap: 2px; padding-bottom: 0; }
.nav-row {
  width: calc(100% + 24px);
  margin: 0 -12px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 12px;
  border: 0;
  border-radius: var(--r-m);
  background: transparent;
  text-align: left;
  list-style: none;
  cursor: pointer;
}
.nav-row::-webkit-details-marker { display: none; }
.nav-row:hover { background: var(--hover); }
.nav-row > .i { color: var(--muted); transition: transform .2s; }
.fold[open] > .nav-row > .i { transform: rotate(180deg); }
.fold > .btn-row { padding: 8px 0 12px; }
.group h3 { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.group .fine { text-align: left; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.setting-text { display: flex; flex-direction: column; gap: 2px; }
.setting-text b { font-weight: 500; font-size: 15px; }
.setting-text small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.switch {
  -webkit-appearance: none;
  appearance: none;
  width: 42px;
  height: 26px;
  border-radius: var(--r-full);
  background: var(--track);
  position: relative;
  flex: none;
  margin: 0;
  cursor: pointer;
  transition: background .2s;
}
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(16px); }
.seg { display: flex; background: var(--fill); border-radius: var(--r-full); padding: 3px; flex: none; }
.seg button { height: 28px; padding: 0 12px; border: 0; border-radius: var(--r-full); background: transparent; font-size: 13px; font-weight: 500; color: var(--muted); }
.seg button[aria-checked="true"] { background: var(--text); color: var(--bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-row.end { justify-content: flex-end; padding: 16px 24px 24px; }
.group > .pill.danger { align-self: flex-start; }
.about { margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.5; color: var(--muted); }
.about a { color: inherit; text-underline-offset: 3px; }
.about a:hover { color: var(--text); }
.roots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.roots li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-radius: var(--r-m); background: var(--surface); font-size: 14px; }
.roots .meta { color: var(--muted); font-size: 12px; }
.roots .name { font-weight: 500; }
#music .sheet-body { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
#askForm .field { margin: 8px 24px 0; }

.keys { display: grid; grid-template-columns: auto 1fr; gap: 12px 16px; margin: 0; padding: 4px 24px 24px; font-size: 14px; align-items: center; }
.keys dt { white-space: nowrap; color: var(--muted); font-size: 12px; }
.keys dd { margin: 0; }

.menu {
  position: fixed;
  z-index: 60;
  min-width: 220px;
  max-width: 300px;
  max-height: min(70dvh, 460px);
  overflow-y: auto;
  background: var(--pop);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  box-shadow: var(--shadow);
  padding: 4px;
  animation: pop .12s ease-out;
}
.menu-item {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-s);
  background: transparent;
  font-size: 14px;
  text-align: left;
}
.menu-item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-item:hover, .menu-item:focus-visible { background: var(--row); outline: none; }
.menu-item.danger { color: var(--danger); }
.menu-item .kb { margin-left: auto; color: var(--muted); font-size: 12px; }
.menu-sep { height: 1px; background: var(--line); margin: 4px 8px; }
.menu-note { margin: 4px 0 0; padding: 8px 12px 6px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.menu-head { padding: 8px 12px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.drop {
  position: fixed;
  inset: 12px;
  z-index: 70;
  border: 2px dashed var(--accent);
  border-radius: var(--r-l);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: fadeIn .12s ease-out;
}
.drop p { margin: 0; font-weight: 600; font-size: clamp(28px, 5vw, 48px); letter-spacing: -.035em; }

.gate {
  flex: 1;
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 8px 12vh;
  text-align: center;
}
.gate-title { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.gate .pill { margin-top: 8px; }
.gate.loading .gate-title, .gate.loading .fine { opacity: 0; }

.row.locked .title, .row.locked .sub, .row.locked .col { opacity: .55; }
.row.locked .dur .i { width: 15px; height: 15px; display: block; }
.row.unavailable .title, .row.unavailable .col { opacity: .4; }
.row.unavailable .sub { font-style: italic; }
.cloud .wide .row .col.album { display: none; }

.pay .sheet-head { padding: 16px 12px 0 24px; }
.pay-mark { width: 40px; height: 40px; border-radius: var(--r-full); background: var(--tint); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.pay-mark .i { width: 18px; height: 18px; }
.pay .sheet-body { display: flex; flex-direction: column; gap: 16px; padding-top: 12px; }
.pay-title { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; }
.pay-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.pay-list li { display: flex; align-items: flex-start; gap: 10px; }
.pay-list .i { width: 16px; height: 16px; margin-top: 2px; color: var(--accent); stroke-width: 2.25; }
.pay-price { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.pay-price b { color: var(--text); font-weight: 600; }
.pay-price s { margin-right: 8px; }
.gated .top-actions { visibility: hidden; }
.pay-buy { width: 100%; height: 48px; font-size: 16px; font-weight: 600; }
.pay-later { align-self: center; margin-top: -6px; }

@media (min-width: 1100px) and (min-height: 760px) {
  :root { --col: min(1040px, calc(100vw - 96px)); }
  .library { max-height: none; padding: 16px 16px 4px; }
}

@media (max-width: 640px) {
  .stage { padding-top: 12px; }
  .chip .dur { display: none; }
  .chips-row { gap: 4px; }
  .hint-actions .pill .label { display: none; }
  .hint-actions .pill.play-all { width: 36px; padding: 0; }
  .hint-actions .pill.play-all .i { margin: 0; }
  .library { max-height: none; padding: 12px 8px 4px; }
  .list { margin-right: -4px; }
  .dock { width: calc(100% - 16px); margin-bottom: 8px; }
  .mini-time { display: none; }
  .mini { gap: 4px; }
  .pl-panel { right: 8px; top: 48px; }
}
@media (max-width: 640px) {
  #paywall { align-items: flex-end; padding: 0; }
  #paywall .sheet { max-width: none; border-radius: var(--r-l) var(--r-l) 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom); }
}
@media (max-height: 560px) {
  .stage { padding-top: 8px; gap: 12px; }
}

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