/* 2C Music — строгий чёрно-белый, как кот-маскот: цвет дают только обложки.
   Фирменные приёмы: две половины (белая «своё», чёрная «новое») и косая черта «/».
   Форма: обложки 10px, артисты — круги, всё нажимаемое — пилюли, листы снизу — 22px.
   Движение — кривая iOS (быстрый старт, мягкая посадка), без резких рывков. */

@font-face {
  font-family: "Onest";
  src: url("/static/fonts/onest-cyrillic-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  src: url("/static/fonts/onest-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0c0c0e;
  --surface: #161619;
  --surface-2: #1f1f23;
  --surface-3: #2a2a2f;
  --line: rgba(255,255,255,.08);
  --text: #f4f4f5;
  --muted: #9a9aa2;
  --faint: #5a5a62;
  --white: #f4f4f5;
  --r-img: 10px;
  --r-sheet: 22px;
  --pad: 18px;
  --ease: cubic-bezier(.32, .72, 0, 1);        /* как у листов iOS */
  --spring: cubic-bezier(.34, 1.4, .64, 1);     /* лёгкий перелёт для «пружинки» */
  /* Безопасные зоны: в полноэкранном режиме Телеграма сверху его кнопки и вырез */
  --top: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  --bottom: max(var(--tg-safe-area-inset-bottom, 0px), env(safe-area-inset-bottom, 0px));
  --dock: 64px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px; line-height: 1.35; -webkit-font-smoothing: antialiased;
  overscroll-behavior: none; user-select: none; -webkit-user-select: none;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
img { display: block; }
.icon { width: 22px; height: 22px; fill: currentColor; flex: none; }

/* ---------- каркас ---------- */
.screen {
  min-height: 100vh; padding-top: var(--top);
  padding-bottom: calc(var(--bottom) + var(--dock) + 34px);
  animation: push .5s var(--ease);
}
body.has-mini .screen { padding-bottom: calc(var(--bottom) + var(--dock) + 108px); }
@keyframes push { from { opacity: 0; transform: translateX(28px); } }
.screen.root { animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; } }

.top { padding: 18px var(--pad) 6px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.h1 { font-size: 30px; font-weight: 780; letter-spacing: -.03em; margin: 0; line-height: 1.08; }
.sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.sl { color: var(--faint); font-weight: 300; margin-right: 6px; }   /* фирменная «/» */

.section { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 var(--pad); margin-bottom: 10px; }
.section-title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.more { color: var(--muted); font-size: 14px; font-weight: 560; }
.more:active { color: var(--text); }

.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--pad) 4px; scrollbar-width: none; scroll-padding: 0 var(--pad); }
.hscroll::-webkit-scrollbar { display: none; }

/* ---------- обложки и плитки ---------- */
.cover { background: var(--surface-2); border-radius: var(--r-img); overflow: hidden; flex: none; position: relative; }
.cover img { width: 100%; height: 100%; object-fit: cover; animation: fade .4s var(--ease); }
.cover.round { border-radius: 50%; }
.cover .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-weight: 700; font-size: 20px; }

.tile { width: 136px; flex: none; scroll-snap-align: start; text-align: left; }
.tile .cover { width: 136px; height: 136px; transition: transform .3s var(--ease); }
.tile:active .cover { transform: scale(.96); }
.tile-title { margin-top: 8px; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-sub { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile.artist { width: 104px; text-align: center; }
.tile.artist .cover { width: 104px; height: 104px; }
.split-tile {
  width: 136px; height: 136px; border-radius: var(--r-img); display: grid; place-items: center;
  background: linear-gradient(135deg, var(--white) 50%, var(--surface-3) 50%); color: #fff;
}
.split-tile .icon { mix-blend-mode: difference; width: 30px; height: 30px; }
.plain-tile { width: 136px; height: 136px; border-radius: var(--r-img); display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }

/* ---------- строка трека ---------- */
.row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 7px var(--pad); text-align: left; min-height: 60px; position: relative; transition: background .2s ease; }
.row:active { background: var(--surface); }
.row .cover { width: 48px; height: 48px; border-radius: 7px; }
.row .num { width: 22px; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 560; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.row.now .row-title { font-weight: 760; }
.row.now::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--white); }
.badge-e { font-size: 9px; font-weight: 800; line-height: 1; padding: 2px 3px; border-radius: 3px; background: var(--faint); color: var(--bg); flex: none; }
.row-time { color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; flex: none; }
.row-btn { width: 36px; height: 36px; display: grid; place-items: center; color: var(--muted); flex: none; border-radius: 50%; }
.row-btn:active { background: var(--surface-2); }

/* выбор нескольких — круглые отметки, как на iPhone */
.check { width: 24px; height: 24px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1.5px var(--faint);
  display: grid; place-items: center; transition: background .2s var(--ease), box-shadow .2s var(--ease), transform .3s var(--spring); }
.check.on { background: var(--white); box-shadow: none; transform: scale(1.06); }
.check .icon { width: 15px; height: 15px; color: var(--bg); opacity: 0; transition: opacity .2s; }
.check.on .icon { opacity: 1; }
.row.selecting { animation: slidein .35s var(--ease); }
@keyframes slidein { from { transform: translateX(-12px); } }

.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; }
.eq i { width: 3px; background: var(--white); border-radius: 1px; animation: eq .9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
.eq.paused i { animation-play-state: paused; }
@keyframes eq { 0%,100% { height: 3px; } 50% { height: 12px; } }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px;
  font-weight: 650; background: var(--surface-2); color: var(--text); white-space: nowrap; transition: transform .25s var(--ease); }
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--white); color: var(--bg); }
.btn.round { width: 46px; padding: 0; }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; }
.actions { display: flex; gap: 10px; padding: 0 var(--pad); margin-top: 18px; align-items: center; }

/* ---------- главная ---------- */
.brand-btn { width: 44px; height: 44px; flex: none; border-radius: 50%; transition: transform .35s var(--spring); }
.brand-btn:active { transform: scale(.9) rotate(-8deg); }
.brand-btn img { width: 100%; height: 100%; }

/* «Чутьё»: векторный кот, линию раздела двигают ползунки */
.flow { margin: 14px var(--pad) 0; border-radius: 24px; background: var(--surface); position: relative; overflow: hidden;
  padding: 20px 18px 18px; box-shadow: inset 0 0 0 1px var(--line); }
.flow::after { content: ""; position: absolute; right: 40%; top: -30%; width: 1px; height: 160%; background: rgba(255,255,255,.06); transform: rotate(18deg); }
.flow-body { display: flex; align-items: center; gap: 8px; position: relative; z-index: 1; }
.flow-text { flex: 1; min-width: 0; }
.flow-kicker { color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.flow-title { font-size: 40px; font-weight: 820; letter-spacing: -.04em; line-height: 1; margin-top: 4px; }
.flow-sub { color: var(--muted); font-size: 14px; margin-top: 8px; min-height: 19px; transition: opacity .3s var(--ease); }
.flow-cat { width: 150px; height: 150px; flex: none; margin: -10px -8px -10px 0; }
.flow-actions { display: flex; gap: 10px; margin-top: 16px; position: relative; z-index: 1; }
.cat-eyes { transform-box: fill-box; transform-origin: center; animation: blink 6s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
.cat-cup { transform-box: fill-box; transform-origin: center; }
.playing .cat-cup { animation: beat .55s ease-in-out infinite alternate; }
@keyframes beat { to { transform: scale(1.1); } }

/* ---------- ползунок в духе iOS ---------- */
.slider { margin-top: 14px; }
.slider-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 650; color: var(--faint); margin-bottom: 4px; }
.slider-head span { transition: color .3s var(--ease); }
.slider-head span.on { color: var(--text); }
.track { position: relative; height: 36px; touch-action: none; display: flex; align-items: center; cursor: pointer; }
.rail { position: absolute; left: 0; right: 0; top: 50%; height: 8px; transform: translateY(-50%); border-radius: 8px; background: var(--surface-3); overflow: hidden; transition: height .35s var(--ease); }
.track.active .rail { height: 12px; }
.fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--white); border-radius: 8px; }
.knob { position: absolute; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  background: linear-gradient(90deg, var(--white) 50%, #111 50%); box-shadow: 0 3px 12px rgba(0,0,0,.5), 0 0 0 1.5px var(--white);
  transition: transform .35s var(--spring); }
.track.active .knob { transform: scale(1.18); }
.track.glide .fill, .track.glide .knob { transition: left .5s var(--ease), width .5s var(--ease), transform .35s var(--spring); }
.slider-value { text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); margin-top: 2px; min-height: 18px; }

/* ---------- поиск ---------- */
.search-bar { position: sticky; top: 0; z-index: 5; background: linear-gradient(var(--bg) 82%, rgba(12,12,14,0)); padding: calc(var(--top) + 12px) var(--pad) 12px; margin-top: calc(-1 * var(--top)); }
.search-field { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; background: var(--surface-2); border-radius: 999px; color: var(--muted); transition: box-shadow .3s var(--ease); }
.search-field:focus-within { box-shadow: 0 0 0 1.5px var(--white); }
.search-field input { flex: 1; background: none; border: 0; outline: none; height: 100%; color: var(--text); user-select: text; -webkit-user-select: text; }
.search-field input::placeholder { color: var(--muted); }
.chips { display: flex; gap: 8px; padding-top: 10px; overflow-x: auto; scrollbar-width: none; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); font-size: 14px; font-weight: 600; white-space: nowrap; flex: none; transition: background .3s var(--ease), color .3s var(--ease); }
.chip.on { background: var(--white); color: var(--bg); }
.recent-q { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--pad); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 var(--pad); }
.mood { position: relative; height: 84px; border-radius: 16px; overflow: hidden; text-align: left; padding: 12px 14px;
  background: var(--surface-2); display: flex; align-items: flex-end; font-weight: 700; font-size: 16px; line-height: 1.15; transition: transform .3s var(--ease); }
.mood:active { transform: scale(.97); }
.mood::before { content: ""; position: absolute; inset: 0; background: linear-gradient(118deg, rgba(255,255,255,.07) 50%, transparent 50%); }
.mood .slash { position: absolute; top: 4px; right: 12px; font-size: 34px; font-weight: 200; color: rgba(255,255,255,.2); }
.mood span { position: relative; }
.mood.light { background: var(--white); color: var(--bg); }
.mood.light::before { background: linear-gradient(118deg, transparent 50%, rgba(0,0,0,.08) 50%); }
.mood.light .slash { color: rgba(0,0,0,.25); }
.list-tile { text-align: left; }
.list-tile .cover { width: 100%; aspect-ratio: 1; height: auto; }

.best { display: flex; gap: 16px; align-items: center; margin: 0 var(--pad); padding: 14px; background: var(--surface); border-radius: 20px;
  width: calc(100% - 2 * var(--pad)); text-align: left; box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--ease); }
.best:active { transform: scale(.98); }
.best .cover { width: 92px; height: 92px; }
.best-kind { color: var(--muted); font-size: 13px; }
.best-title { font-size: 21px; font-weight: 740; letter-spacing: -.02em; margin-top: 2px; }

/* ---------- артист и альбом ---------- */
.hero { position: relative; height: 360px; overflow: hidden; margin-top: calc(-1 * var(--top)); }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(12,12,14,.3) 0%, rgba(12,12,14,0) 30%, rgba(12,12,14,.6) 72%, var(--bg)); }
.hero-text { position: absolute; left: var(--pad); right: var(--pad); bottom: 12px; z-index: 1; }
.hero-name { font-size: 42px; font-weight: 820; letter-spacing: -.04em; line-height: 1.02; display: flex; align-items: center; gap: 10px; }
.star { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--white) 50%, #111 50%); box-shadow: 0 0 0 1.5px var(--white); }
.star .icon { width: 16px; height: 16px; color: #fff; mix-blend-mode: difference; }
.aud { margin: 16px var(--pad) 0; padding: 16px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.aud-total { font-size: 28px; font-weight: 800; letter-spacing: -.03em; display: flex; align-items: center; gap: 8px; }
.aud-what { color: var(--muted); font-size: 13px; margin-top: 2px; }
.aud-src { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.aud-chip { background: var(--surface-2); border-radius: 12px; padding: 8px 12px; font-size: 12px; }
.aud-chip b { display: block; font-size: 15px; font-weight: 720; }
.aud-chip span { color: var(--muted); }

.album-head { display: flex; gap: 16px; padding: 22px var(--pad) 0; align-items: flex-end; }
.album-head .cover { width: 150px; height: 150px; box-shadow: 0 16px 44px rgba(0,0,0,.5); }
.album-kind { color: var(--muted); font-size: 13px; }
.album-title { font-size: 24px; font-weight: 780; letter-spacing: -.02em; line-height: 1.12; margin-top: 4px; }
.link { color: var(--text); font-weight: 650; text-align: left; }
.link:active { opacity: .6; }
.foot { color: var(--muted); font-size: 13px; padding: 12px var(--pad); }

/* ---------- Моя музыка ---------- */
.lib-row { display: flex; align-items: center; gap: 14px; width: 100%; padding: 8px var(--pad); text-align: left; transition: background .2s ease; }
.lib-row:active { background: var(--surface); }
.lib-row .cover { width: 58px; height: 58px; }
.lib-tile { width: 58px; height: 58px; border-radius: var(--r-img); display: grid; place-items: center; flex: none; }
.lib-tile.likes { background: linear-gradient(135deg, var(--white) 50%, var(--surface-3) 50%); color: #fff; }
.lib-tile.likes .icon { mix-blend-mode: difference; }
.lib-tile.plain { background: var(--surface-2); color: var(--muted); }
.lib-title { font-weight: 640; }

/* ---------- нижняя панель-пилюля и мини-плеер ---------- */
.dock { position: fixed; z-index: 20; left: 50%; transform: translateX(-50%); bottom: calc(var(--bottom) + 10px);
  width: min(calc(100% - 28px), 380px); height: var(--dock); border-radius: 32px; padding: 6px;
  background: rgba(30,30,34,.78); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 0 0 1px var(--line); display: flex; }
.dock-ind { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 3); border-radius: 26px; background: var(--white); transition: transform .5s var(--ease); }
.tab { position: relative; flex: 1; display: grid; place-items: center; align-content: center; gap: 2px; color: var(--muted); font-size: 11px; font-weight: 650; transition: color .35s var(--ease); }
.tab.on { color: var(--bg); }
.tab .icon { width: 23px; height: 23px; }

.mini { position: fixed; z-index: 19; left: 50%; transform: translateX(-50%); bottom: calc(var(--bottom) + var(--dock) + 18px);
  width: min(calc(100% - 28px), 380px); height: 62px; padding: 0 6px 0 8px; border-radius: 20px;
  background: rgba(38,38,43,.9); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  display: flex; align-items: center; gap: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 0 0 1px var(--line);
  overflow: hidden; animation: rise .5s var(--ease); touch-action: pan-y; }
@keyframes rise { from { transform: translate(-50%, 24px); opacity: 0; } }
.mini-inner { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; will-change: transform; }
.mini .cover { width: 46px; height: 46px; border-radius: 9px; }
.mini-main { flex: 1; min-width: 0; text-align: left; }
.mini-bar { position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; background: rgba(255,255,255,.1); }
.mini-bar i { display: block; height: 100%; background: var(--white); }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; flex: none; transition: transform .25s var(--ease), background .2s; }
.icon-btn:active { background: rgba(255,255,255,.08); transform: scale(.92); }
.icon-btn.dim { color: var(--muted); }

/* Загрузка — круг из двух половин, как кот */
.split-spin { display: inline-block; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(90deg, currentColor 50%, transparent 50%); box-shadow: inset 0 0 0 2px currentColor; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.controls .big .split-spin { width: 28px; height: 28px; }

/* панель действий режима выбора — встаёт на место нижней панели */
.selbar { position: fixed; z-index: 21; left: 50%; transform: translateX(-50%); bottom: calc(var(--bottom) + 10px);
  width: min(calc(100% - 28px), 380px); min-height: var(--dock); border-radius: 32px; padding: 6px;
  background: rgba(30,30,34,.94); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 10px 30px rgba(0,0,0,.5), inset 0 0 0 1px var(--line); display: flex; gap: 4px; animation: rise .45s var(--ease); }
.selbar button { flex: 1; border-radius: 26px; display: grid; place-items: center; align-content: center; gap: 2px; font-size: 11px; font-weight: 650; padding: 6px 0; transition: background .2s, opacity .2s; }
.selbar button:active { background: rgba(255,255,255,.08); }
.selbar button[disabled] { opacity: .3; }
.selbar .danger { color: #ff6b6b; }

/* ---------- «Сейчас играет» ---------- */
.np { position: fixed; inset: 0; z-index: 40; background: var(--bg); overflow: hidden;
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto auto auto;
  padding: calc(var(--top) + 6px) 22px calc(var(--bottom) + 16px); animation: sheet .5s var(--ease); }
@keyframes sheet { from { transform: translateY(100%); } }
.np-bg { position: absolute; inset: -80px; z-index: 0; opacity: .5; }
.np-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(70px) saturate(1.2); }
.np::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to bottom, rgba(12,12,14,.3), rgba(12,12,14,.8) 55%, var(--bg)); }
.np > * { position: relative; z-index: 1; }
.np-top { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.np-src { font-size: 12px; color: var(--muted); text-align: center; flex: 1; padding: 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .02em; }
.np-src b { display: block; color: var(--text); font-weight: 680; font-size: 14px; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; }
.np-art { container-type: size; display: flex; align-items: center; justify-content: center; padding: 14px 0; min-height: 0; touch-action: pan-y; }
.np-art .cover { width: min(100cqw, 100cqh, 400px); height: min(100cqw, 100cqh, 400px); border-radius: 16px;
  box-shadow: 0 26px 70px rgba(0,0,0,.55); transition: transform .5s var(--spring), opacity .3s var(--ease); will-change: transform; }
.np-art .cover.paused { transform: scale(.9); }
.np-art .cover.dragging { transition: none; }
.np-info { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.np-title { font-size: 24px; font-weight: 780; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-artist { color: var(--muted); font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; display: block; max-width: 100%; }
.seek { margin-top: 8px; }
.seek .slider { margin-top: 0; }
.seek .knob { width: 16px; height: 16px; margin: -8px 0 0 -8px; background: var(--white); box-shadow: 0 2px 6px rgba(0,0,0,.4); }
.seek .rail { height: 5px; }
.seek .track.active .rail { height: 9px; }
.times { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; margin-top: -4px; }
.controls { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.controls .big { width: 74px; height: 74px; border-radius: 50%; background: var(--white); color: var(--bg); display: grid; place-items: center; transition: transform .35s var(--spring); }
.controls .big:active { transform: scale(.9); }
.controls .big .icon { width: 32px; height: 32px; }
.controls .icon-btn .icon { width: 30px; height: 30px; }
.controls .side .icon { width: 22px; height: 22px; }
.controls .side { color: var(--muted); }
.controls .side.on { color: var(--white); }
.np-bottom { display: flex; justify-content: space-between; margin-top: 12px; color: var(--muted); }
.np-bottom .icon-btn.on { color: var(--white); }

.lyrics { overflow-y: auto; padding: 14px 0 40%; scrollbar-width: none; min-height: 0;
  mask-image: linear-gradient(transparent, #000 12%, #000 80%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 80%, transparent); }
.lyrics p { font-size: 23px; font-weight: 720; line-height: 1.32; margin: 0 0 14px; color: rgba(255,255,255,.28); transition: color .45s var(--ease), transform .45s var(--ease); transform-origin: left; }
.lyrics p.on { color: var(--text); transform: scale(1.02); }
.lyrics p.past { color: rgba(255,255,255,.5); }
.lyrics.plain p { color: var(--text); font-size: 19px; font-weight: 560; }

/* ---------- листы снизу ---------- */
.veil { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); animation: fade .3s var(--ease); }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-height: 86vh; overflow-y: auto;
  background: var(--surface); border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  padding: 8px 0 calc(var(--bottom) + 14px); animation: sheet .5s var(--ease); box-shadow: 0 -10px 40px rgba(0,0,0,.4); }
.sheet-grab { width: 38px; height: 5px; border-radius: 5px; background: var(--faint); margin: 2px auto 8px; }
.sheet-head { display: flex; gap: 12px; align-items: center; padding: 6px var(--pad) 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.sheet-head .cover { width: 50px; height: 50px; border-radius: 8px; }
.sheet-title { font-size: 21px; font-weight: 760; letter-spacing: -.02em; padding: 4px var(--pad) 2px; }
.sheet-note { color: var(--muted); font-size: 14px; padding: 0 var(--pad) 6px; }
.act { display: flex; align-items: center; gap: 16px; width: 100%; padding: 14px var(--pad); text-align: left; font-weight: 540; transition: background .2s; }
.act:active { background: var(--surface-2); }
.act .icon { color: var(--muted); }
.act.danger, .act.danger .icon { color: #ff6b6b; }
.sheet input.field { width: calc(100% - 2 * var(--pad)); margin: 4px var(--pad) 10px; height: 48px; padding: 0 14px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--bg); outline: none; user-select: text; -webkit-user-select: text; }
.sheet input.field:focus { border-color: var(--white); }
.sheet .slider { padding: 0 var(--pad); margin-top: 18px; }
.profile { display: flex; align-items: center; gap: 14px; padding: 8px var(--pad) 16px; }
.profile img { width: 64px; height: 64px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 var(--pad) 12px; }
.stat { background: var(--surface-2); border-radius: 14px; padding: 12px; }
.stat b { display: block; font-size: 20px; font-weight: 780; }
.stat span { color: var(--muted); font-size: 12px; }

/* ---------- состояния ---------- */
.skel { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { padding: 36px var(--pad); color: var(--muted); text-align: center; animation: fade .4s var(--ease); }
.empty b { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; }
.empty-cat { width: 88px; height: 88px; margin: 0 auto 14px; }
.toast { position: fixed; left: 50%; z-index: 60; bottom: calc(var(--bottom) + var(--dock) + 26px); transform: translateX(-50%);
  background: var(--white); color: var(--bg); padding: 11px 16px; border-radius: 14px; font-size: 14px; font-weight: 650;
  max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(0,0,0,.4); animation: toast .45s var(--spring); }
body.has-mini .toast { bottom: calc(var(--bottom) + var(--dock) + 92px); }
@keyframes toast { from { transform: translate(-50%, 14px) scale(.96); opacity: 0; } }

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