:root {
  /* Тёплый графит, один акцент — латунь. Без градиентов, стекла и фиолетового. */
  --bg: #0c0b0a;
  --surface: #171614;        /* группы, листы */
  --surface-2: #211f1c;      /* поля, нажатое */
  --ink: #f3efe8;
  /* сплошные (не полупрозрачные) — иначе у иконок светились места, где линии пересекаются; на фоне выглядят так же */
  --ink-2: #a9a6a1;
  --ink-3: #807d79;
  --ink-4: rgba(243, 239, 232, .14);
  --line: rgba(243, 239, 232, .08);
  --brass: #d6a35c;          /* Premium, «сейчас играет» */
  --on-light: #0c0b0a;
  --glass: var(--surface);
  --glass-2: var(--surface);
  --r-s: 12px; --r-m: 16px; --r-l: 22px;
  --c1: #3a2f4a;            /* цвета обложки текущего трека */
  --c2: #1b2836;
  --accent: var(--brass);
  --beat: 0;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --cine: cubic-bezier(.7, 0, .18, 1);
  /* полноэкранный режим Telegram: системная зона + зона кнопок Telegram (Назад/Закрыть, «⋯») */
  --safe-t: max(env(safe-area-inset-top, 0px), calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px)));
  --safe-b: max(env(safe-area-inset-bottom, 0px), calc(var(--tg-safe-area-inset-bottom, 0px) + var(--tg-content-safe-area-inset-bottom, 0px)));
  --tab-h: 64px;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); overscroll-behavior: none; }
html { height: 100%; background: var(--bg); }
body { font: 500 15px/1.4 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; letter-spacing: -.005em; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: rgba(214, 163, 92, .35); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
button:focus:not(:focus-visible) { outline: none; }
.ic { width: 22px; height: 22px; flex: none; display: block; }
.ic.fill { fill: currentColor; }
[data-icon] { display: contents; }
.logo { width: 18px; height: 18px; flex: none; display: block; }

/* ================= ИНТРО ================= */
/* Логотип собирается из звука: столбики волны поднимаются от центра, ножка «T» прорастает вниз, слово проявляется */
#intro { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; pointer-events: none;
  background: radial-gradient(120% 80% at 50% 38%, #221c17 0%, #120f0d 55%, #080707 100%); }
.intro-glow { position: absolute; left: 50%; top: 41%; width: 340px; height: 340px; margin: -170px 0 0 -170px; border-radius: 50%;
  background: radial-gradient(circle, rgba(214,163,92,.30), rgba(214,163,92,0) 65%); opacity: 0; }
.intro-mark { position: relative; display: grid; justify-items: center; gap: 22px; margin-top: -6vh; }
.intro-logo { width: 136px; height: 136px; overflow: visible; }
.intro-logo .ib { fill: #f4ece0; transform-box: fill-box; transform-origin: center; transform: scaleY(.06); opacity: 0; }
.intro-logo .istem { transform-box: fill-box; transform-origin: 50% 0; transform: scaleY(0); }
.intro-word { font: 600 30px/1 var(--display); letter-spacing: .01em; color: var(--ink); opacity: 0; }
.intro-tag { font: 500 13.5px/1 var(--sans); color: var(--ink-3); letter-spacing: .03em; opacity: 0; margin-top: -10px; }
body.intro-run #intro { animation: introOut .7s var(--cine) 2.05s forwards; }
body.intro-run .intro-mark { animation: markOut .9s var(--cine) 1.95s forwards; }
body.intro-run .intro-glow { animation: glowIn 1.6s var(--ease) .45s forwards; }
body.intro-run .intro-logo .ib { animation: barIn .75s cubic-bezier(.28,1.55,.5,1) var(--d) forwards; }
body.intro-run .intro-logo .istem { animation: stemIn .9s var(--cine) .55s forwards; }
body.intro-run .intro-word { animation: wordIn 1s var(--cine) .95s forwards; }
body.intro-run .intro-tag { animation: fadeUp .9s var(--ease) 1.25s forwards; }
body:not(.intro-run) #intro { display: none; }
@keyframes barIn { from { transform: scaleY(.06); opacity: 0; } 30% { opacity: 1; } to { transform: scaleY(1); opacity: 1; } }
@keyframes stemIn { to { transform: scaleY(1); } }
@keyframes glowIn { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes wordIn { from { opacity: 0; filter: blur(8px); transform: translateY(8px); } to { opacity: 1; filter: none; transform: none; } }
@keyframes markOut { to { transform: scale(1.04); filter: blur(2px); } }
@keyframes introOut { to { opacity: 0; visibility: hidden; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ================= ФОН ================= */
#bg { position: fixed; inset: -40vh 0; z-index: -1; overflow: hidden; background: var(--bg); }
.bg-art div { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity 1.2s ease; transform: translateZ(0); }
.bg-art div.on { opacity: .55; }
.bg-glow { position: absolute; width: 120vmax; height: 120vmax; border-radius: 50%; opacity: .55; }
.g1 { background: radial-gradient(circle, var(--c1), transparent 60%); top: -60vmax; left: -45vmax; }
.g2 { background: radial-gradient(circle, var(--c2), transparent 60%); bottom: -65vmax; right: -50vmax; }
.bg-vignette { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,7,10,0) 0%, rgba(7,7,10,.55) 45%, var(--bg) 85%); }
.bg-grain { display: none; position: absolute; inset: 0; opacity: .035; pointer-events: none;
  background-image: 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes kenburns { from { transform: scale(1) translate3d(0,0,0); } to { transform: scale(1.14) translate3d(-3%, 2%, 0); } }
@keyframes float1 { to { transform: translate3d(18vmax, 10vmax, 0) scale(1.1); } }
@keyframes float2 { to { transform: translate3d(-14vmax, -12vmax, 0) scale(1.15); } }
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-5%,3%)} 40%{transform:translate(4%,-4%)} 60%{transform:translate(-3%,5%)} 80%{transform:translate(5%,2%)} }

/* ================= КАРКАС ================= */
#app { max-width: 680px; margin: 0 auto; padding: calc(10px + var(--safe-t)) 18px 0; }
.view { animation: viewIn .55s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }
.spacer { height: calc(var(--tab-h) + 100px + var(--safe-b)); }
.top { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.wordmark { display: flex; align-items: center; gap: 10px; font: 600 15px/1 var(--display); letter-spacing: .32em; }
.wordmark img { width: 30px; height: 30px; border-radius: 9px; }
.greet { margin: 14px 0 16px; font: 600 15px var(--sans); color: var(--ink-2); }
.title { font: 600 28px/1.1 var(--display); letter-spacing: -.01em; margin: 22px 0 16px; }
.title-row { display: flex; align-items: center; justify-content: space-between; }
.block { margin-top: 32px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.block-head h2 { margin: 0; font: 600 18px/1.2 var(--display); letter-spacing: -.01em; }
.link { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.empty { color: var(--ink-3); font-size: 14px; margin: 22px 0; text-align: center; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); transition: transform .3s var(--ease), background .3s, color .3s; flex: none; }
.icon-btn:active { transform: scale(.86); background: var(--line); }
.icon-btn.round { background: var(--surface); }
.icon-btn.big .ic { width: 34px; height: 34px; }
.icon-btn.on { color: var(--accent); }
.icon-btn.on .ic { fill: currentColor; }
.avatar { width: 38px; height: 38px; flex: none; aspect-ratio: 1; border-radius: 50%; background: var(--glass) center/cover; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 24px; border-radius: 25px; font-weight: 700; font-size: 15px; transition: transform .25s var(--ease), opacity .2s; }
.btn .ic { width: 20px; height: 20px; }
.btn:active { transform: scale(.96); }
.btn.light { background: var(--ink); color: var(--on-light); }
.btn.ghost { background: var(--surface-2); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ================= ОБЛОЖКИ ================= */
.cover { position: relative; overflow: hidden; background: linear-gradient(140deg, var(--a, #3a2f4a), var(--b, #101218)); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s var(--ease); }
.cover img.ok { opacity: 1; }
.cover .glyph { position: absolute; inset: 0; display: grid; place-items: center; font: 600 34%/1 var(--display); color: rgba(255,255,255,.35); }

/* ================= АФИША (карусель) ================= */
.hero { margin: 0 -18px; }
.hero-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 18px; scrollbar-width: none; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-card { position: relative; flex: none; width: calc(100% - 28px); max-width: 600px; aspect-ratio: 4 / 4.6; border-radius: 28px; overflow: hidden; scroll-snap-align: center;
  isolation: isolate; text-align: left; animation: heroIn .6s var(--ease) both; transform: translateZ(0); }
@media (min-width: 560px) { .hero-card { aspect-ratio: 16 / 10; } }
.hero-card .cover { position: absolute; inset: 0; z-index: -2; font-size: 400px; }

.hero-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, transparent 30%, transparent 45%, rgba(0,0,0,.85) 100%); }
.hero-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; display: flex; align-items: flex-end; gap: 14px; }
.hero-body > div { flex: 1; min-width: 0; }
.hero-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 14px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(0,0,0,.55); position: absolute; top: 18px; left: 18px; }
.hero-kicker .ic { width: 14px; height: 14px; }
.hero-card h3 { margin: 0; font: 600 26px/1.08 var(--display); letter-spacing: -.015em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hero-card p { margin: 6px 0 0; color: rgba(255,255,255,.75); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-play { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #0b0b0d; flex: none; box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: transform .3s var(--ease); }
.hero-card:active .hero-play { transform: scale(.9); }
.hero-play .ic { width: 24px; height: 24px; margin-left: 2px; }
.hero-dots { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.hero-dots i { width: 6px; height: 6px; border-radius: 3px; background: var(--ink-4); transition: width .4s var(--ease), background .4s; }
.hero-dots i.on { width: 20px; background: var(--ink); }
@keyframes heroIn { from { opacity: 0; transform: scale(.96); } }

/* ================= НАСТРОЕНИЯ ================= */
.moods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mood { position: relative; height: 74px; border-radius: 18px; overflow: hidden; padding: 14px 16px; text-align: left; isolation: isolate;
  background: var(--m1); font: 600 15px/1.15 var(--display); letter-spacing: -.01em; animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 40ms); transition: transform .3s var(--ease); }
.mood:active { transform: scale(.96); }
.mood .ic { position: absolute; right: -6px; bottom: -8px; width: 58px; height: 58px; opacity: .6; color: var(--m2); transform: rotate(-12deg); z-index: -1; }
.moods.big .mood { height: 96px; }

/* ================= РЯДЫ ОБЛОЖЕК ================= */
.rail { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 18px; margin: 0 -18px; padding: 2px 18px 10px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.tile { flex: none; width: 150px; scroll-snap-align: start; text-align: left; }
.tile .art { width: 150px; height: 150px; border-radius: 18px; font-size: 150px; transition: transform .3s var(--ease); }
.tile:active .art { transform: scale(.95); }
.tile b, .tile span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile b { margin-top: 10px; font-weight: 700; font-size: 14px; }
.tile span { color: var(--ink-2); font-size: 13px; font-weight: 500; }
.tile.playing b { color: var(--accent); }

/* ================= СПИСКИ ================= */
.list { list-style: none; margin: 0; padding: 0; }
.row { display: flex; align-items: center; gap: 13px; padding: 8px; margin: 0 -8px; border-radius: 16px; cursor: pointer;
  transition: background .25s, transform .3s var(--ease); content-visibility: auto; contain-intrinsic-size: auto 70px; }
.row:active { transform: scale(.985); background: var(--line); }
.row .art { width: 54px; height: 54px; border-radius: 12px; flex: none; font-size: 54px; }
.row .meta { flex: 1; min-width: 0; }
.row .meta b, .row .meta span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* название: значок «играет» и текст — отдельные элементы в ряд, высота строки не меняется */
.row .meta b { font-weight: 700; display: flex; align-items: center; height: 20px; line-height: 20px; }
.row .meta b .tt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; }
.row .meta b .eq { flex: none; top: 0; }
.row .meta span { color: var(--ink-2); font-size: 13px; margin-top: 2px; }
.row .meta span .ic { display: inline-block; width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; color: var(--accent); }
.row.playing .meta b { color: var(--accent); }
.row.err .meta span { color: #f0a594; }
.row .more { width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink-3); border-radius: 50%; }
.row .more:active { background: var(--line); }
.row .bar { height: 3px; border-radius: 2px; background: var(--line); margin-top: 7px; overflow: hidden; }
.row .bar i { display: block; height: 100%; background: var(--ink-2); width: 0; transition: width .3s; }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 12px; margin-right: 7px; vertical-align: middle; position: relative; top: -1px; line-height: 0; }
.eq i { width: 2.5px; height: 5px; background: var(--accent); border-radius: 1px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.35s; } .eq i:nth-child(3) { animation-delay: -.7s; }
.paused .eq i { animation-play-state: paused; }
@keyframes eq { 0%,100% { height: 5px; } 50% { height: 12px; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ================= ПОИСК ================= */
.search { display: flex; align-items: center; gap: 12px; padding: 0 18px; height: 56px; border-radius: 28px;
  background: var(--surface); border: 1px solid transparent; transition: border-color .2s, background .2s; }
.search:focus-within { border-color: var(--ink-4); background: var(--surface-2); }
.search .ic { color: var(--ink-3); }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: 600 17px var(--sans); }
.search input::placeholder { color: var(--ink-3); font-weight: 500; }
.search input::-webkit-search-cancel-button { filter: invert(1) opacity(.4); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { height: 34px; padding: 0 15px; border-radius: 17px; background: var(--surface); color: var(--ink-2); font-size: 13px; font-weight: 600; animation: rise .5s var(--ease) both; }
#results { margin-top: 22px; }
.found { position: relative; border-radius: 30px; overflow: hidden; isolation: isolate; cursor: pointer; animation: heroIn 1s var(--ease) both; border: 1px solid var(--line); }
.found .found-bg { position: absolute; inset: 0; z-index: -2; background: radial-gradient(100% 80% at 50% 25%, var(--c1), #0b0b10 80%) !important; }
.found .found-bg > * { display: none; }
.found-body { display: grid; justify-items: center; text-align: center; padding: 28px 22px 24px; }
.found .art { width: min(62vw, 270px); aspect-ratio: 1; border-radius: 22px; font-size: 270px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); animation: coverDrop 1.1s var(--ease) both; }
.found h3 { margin: 22px 0 6px; font: 600 26px/1.1 var(--display); letter-spacing: -.015em; animation: credits 1.1s var(--cine) .15s both; }
.found p { margin: 0 0 20px; color: var(--ink-2); font-weight: 600; animation: credits 1.1s var(--cine) .25s both; }
.found .actions { display: flex; gap: 10px; animation: fadeUp .8s var(--ease) .4s both; }
@keyframes coverDrop { from { transform: translateY(-14px) scale(.94); opacity: 0; } }
.searching { display: grid; justify-items: center; gap: 14px; padding: 40px 0; color: var(--ink-3); font-weight: 600; }
.searching i { width: 120px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--ink-2), transparent) 0 0 / 50% 100% no-repeat; animation: scan 1.1s var(--ease) infinite; }
@keyframes scan { from { background-position: -100% 0; } to { background-position: 200% 0; } }

/* ================= МЕДИАТЕКА ================= */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: var(--r-m); background: var(--surface); }
.seg button { height: 36px; border-radius: 12px; font-size: 13px; font-weight: 700; color: var(--ink-2); transition: color .3s, background .4s var(--ease); white-space: nowrap; padding: 0 6px; }
.seg button[aria-checked=true], .seg button[aria-selected=true] { background: var(--ink-4); color: var(--ink); }
.lib-seg { position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px 20px; padding: 2px 18px; background: none; border-radius: 0; scroll-padding-inline: 18px; }
.lib-seg::-webkit-scrollbar { display: none; }
.lib-seg button { flex: none; height: 36px; padding: 0 16px; border-radius: 18px; background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 700; transition: background .15s, color .15s; }
.lib-seg button:active { opacity: .75; }
.lib-seg button[aria-selected=true] { background: var(--ink); color: var(--on-light); }
.lib-actions { display: flex; gap: 10px; margin-bottom: 14px; }
.lib-actions:empty { display: none; }
.lib-actions .btn { height: 44px; font-size: 14px; flex: 1; min-width: 0; }
/* «Скачать всё» — круглая кнопка справа: три широкие кнопки в ряд не помещались на узком экране */
.lib-actions .btn.icon-only, .ar-actions .btn.icon-only { flex: none; width: 44px; height: 44px; padding: 0; border-radius: 50%; display: grid; place-items: center; }

/* ================= ПРОФИЛЬ ================= */
.pf-head { display: flex; align-items: center; gap: 16px; padding: 18px 0 4px; }
.pf-avatar { width: 68px; height: 68px; font: 600 26px/1 var(--display); color: var(--ink-2); background-color: var(--surface-2); border: 0; flex: none; }
.pf-id { min-width: 0; display: grid; gap: 4px; }
.pf-id h1 { margin: 0; font: 600 24px/1.15 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; text-wrap: balance; }
.pf-id p { margin: 0; color: var(--ink-3); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.pf-plan { display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin-top: 4px; color: var(--brass); font-size: 13px; font-weight: 700; }
.pf-plan .ic { width: 15px; height: 15px; }
.pf-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 22px 0 0; padding: 16px 0; border-block: 1px solid var(--line); }
.pf-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 0 12px; min-width: 0; }
.pf-stats > div:first-child { padding-left: 0; }
.pf-stats > div + div { border-left: 1px solid var(--line); }
.pf-stats dd { margin: 0; font: 600 22px/1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-stats dt { color: var(--ink-3); font-size: 12.5px; font-weight: 600; line-height: 1.25; }
.pf-sec { margin-top: 32px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.sec-head h2 { margin: 0; font: 600 17px/1.2 var(--display); letter-spacing: -.01em; }

.offer { padding: 20px; border-radius: var(--r-l); background: var(--surface); }
.offer-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.offer-head h2 { margin: 0; font: 600 19px/1.2 var(--display); letter-spacing: -.01em; }
.offer-price { font: 600 17px/1 var(--display); color: var(--brass); white-space: nowrap; font-variant-numeric: tabular-nums; }
.offer-price small { font: 600 13px var(--sans); color: var(--ink-3); }
.offer-perks { list-style: none; margin: 16px 0 20px; padding: 0; display: grid; gap: 12px; }
.offer-perks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-weight: 600; line-height: 1.35; }
.offer-perks .ic { width: 20px; height: 20px; color: var(--brass); }
.offer-note { margin: 10px 0 0; text-align: center; color: var(--ink-3); font-size: 12.5px; font-weight: 600; }

.pf-artists { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pf-artists li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; column-gap: 10px; row-gap: 7px; align-items: baseline; }
.pa-rank { font: 600 14px var(--display); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pf-artists li:first-child .pa-rank { color: var(--brass); }
.pa-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pa-plays { color: var(--ink-3); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pa-bar { display: block; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.pf-artists .pa-bar { grid-column: 2 / 4; }
.pa-bar i { display: block; height: 100%; border-radius: 2px; background: var(--ink-3); transform-origin: left; animation: grow .9s var(--ease) both; }
.pf-artists li:first-child .pa-bar i { background: var(--brass); }
.g-text .pa-bar { margin-top: 10px; }
@keyframes grow { from { transform: scaleX(0); } }

/* сгруппированные строки, как в настройках iOS */
.group { border-radius: var(--r-m); background: var(--surface); overflow: hidden; }
.g-row { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 16px; text-align: left; }
.g-row + .g-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }
.g-link { transition: background .12s; }
.g-link:active { background: var(--surface-2); }
.g-row > .ic { color: var(--ink-2); }
.g-row .ic.flip { width: 18px; height: 18px; color: var(--ink-3); }
.g-text { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; }
.g-text small { display: block; margin-top: 3px; color: var(--ink-3); font-size: 13px; font-weight: 600; }
.g-row .brands { margin: 0; gap: 4px; flex: none; }
.g-row .brand-chip { width: 24px; height: 24px; border-radius: 7px; box-shadow: none; }
.g-row .brand-chip .logo { width: 14px; height: 14px; }
.g-btn { height: 34px; padding: 0 14px; border-radius: 17px; background: var(--surface-2); color: var(--ink); font-size: 13px; font-weight: 700; flex: none; }
.g-btn:active { opacity: .7; }
@media (max-width: 370px) { .g-row .brands { display: none; } }

/* карточки админки */
.card { padding: 18px; border-radius: var(--r-l); background: var(--surface); margin-top: 14px; }
.card h3 { margin: 0 0 4px; font: 600 17px/1.2 var(--display); letter-spacing: -.01em; }
.muted { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.setting:first-of-type { border-top: 0; }
.setting span { font-size: 14px; font-weight: 700; }
.setting small { display: block; color: var(--ink-3); font-size: 12px; margin-top: 3px; font-weight: 600; }
.switch { position: relative; width: 50px; height: 30px; border-radius: 15px; background: var(--ink-4); transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); transition: transform .25s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.switch[aria-checked=true] { background: var(--brass); }
.switch[aria-checked=true]::after { transform: translateX(20px); background: #fff; }
.meter { height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ink-3); }
.small-btn { height: 36px; padding: 0 16px; font-size: 13px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.admin-grid div { padding: 14px; border-radius: 16px; background: rgba(0,0,0,.28); }
.admin-grid b { display: block; font: 600 22px var(--display); font-variant-numeric: tabular-nums; }
.admin-grid span { font-size: 12px; color: var(--ink-3); font-weight: 600; }

/* ================= НАВИГАЦИЯ ================= */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 12; display: grid; grid-template-columns: repeat(4, 1fr); height: calc(var(--tab-h) + var(--safe-b)); padding: 0 8px var(--safe-b);
  background: var(--bg); border-top: 1px solid var(--line); }
/* цвет сплошной, приглушение — прозрачностью всей кнопки: у полупрозрачного штриха пересечения линий светились ярче */
.tabbar button { display: grid; place-items: center; align-content: center; gap: 4px; color: var(--ink); opacity: .5; font-size: 10.5px; font-weight: 700; transition: opacity .3s; }
.tabbar .ic { width: 24px; height: 24px; transition: transform .4s var(--ease); }
.tabbar button[aria-current=page] { opacity: 1; }
.tabbar button[aria-current=page] .ic { stroke-width: 2.3; }
.tabbar button:active .ic { transform: scale(.85); }

/* ================= МИНИ-ПЛЕЕР ================= */
.mini { position: fixed; left: 10px; right: 10px; bottom: calc(var(--tab-h) + var(--safe-b) + 8px); max-width: 660px; margin: 0 auto; z-index: 11;
  display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 8px; border-radius: 22px; overflow: hidden; cursor: pointer;
  /* лёгкое «жидкое стекло»: просвечивает контент, оттенок от обложки, тонкий блик сверху */
  background: color-mix(in srgb, var(--c1) 22%, rgba(26, 22, 19, .55));
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.07), 0 14px 30px -14px rgba(0,0,0,.85);
  animation: miniUp .5s var(--ease) both; }
@keyframes miniUp { from { transform: translateY(140%); } }
.mini-progress { position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 1px; overflow: hidden; }
.mini-progress i { display: block; height: 100%; width: 0; background: var(--ink); }
.mini-art { width: 46px; height: 46px; border-radius: 12px; flex: none; font-size: 46px; }
.mini-meta { flex: 1; min-width: 0; }
.mini-meta b, .mini-meta span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-meta b { font-size: 14px; font-weight: 700; }
.mini-meta span { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.mini .ic { width: 26px; height: 26px; }

/* ================= ПЛЕЕР «РЕЖИМ КИНО» ================= */
.sheet { position: fixed; inset: 0; z-index: 30; overflow: hidden; }
.player { background: #050506; transform: translate3d(0, 100%, 0); transition: transform .5s var(--ease), border-radius .35s ease; will-change: transform; overflow: visible; }
.player.dragging { transition: border-radius .25s ease; }
.player.dragging, .player.closing { border-top-left-radius: 28px; border-top-right-radius: 28px; }
.player.dragging .p-backdrop, .player.closing .p-backdrop { border-top-left-radius: 28px; border-top-right-radius: 28px; }
/* растушёванный край над плеером: когда он едет вниз, приложение под ним размыто, а не обрезано линией */
.player::before { content: ''; position: absolute; left: 0; right: 0; bottom: 100%; height: 110px; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: linear-gradient(180deg, rgba(5,5,6,0), rgba(5,5,6,.3));
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 85%); mask-image: linear-gradient(180deg, transparent, #000 85%); }
.player.dragging::before, .player.closing::before { opacity: 1; }
.player.open { transform: none; }
.player.closing { transition-duration: .35s; transition-timing-function: var(--cine); }
@keyframes playerIn { from { transform: translateY(100%); } }
@keyframes playerOut { to { transform: translateY(100%); } }
.cine-bar { display: none; position: absolute; left: 0; right: 0; height: calc(20px + var(--safe-t)); background: #000; z-index: 3; pointer-events: none; transition: transform .9s var(--cine); }
/* полосы одной толщины; видимый зазор до кнопок сверху и до текста снизу — одинаковый (~23 px) */
.cine-bar.top { top: 0; } .cine-bar.bottom { bottom: 0; height: calc(20px + var(--safe-b)); }
.player:not(.open) .cine-bar.top { transform: translateY(-100%); }
.player:not(.open) .cine-bar.bottom { transform: translateY(100%); }
.p-backdrop { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(120% 80% at 50% 30%, var(--c1), #050506 70%); transition: background 1.5s var(--cine); }
.p-backdrop .p-blur { position: absolute; inset: 0; background: center / cover no-repeat; opacity: 0; transition: opacity .8s ease; }
.p-backdrop .p-blur.ok { opacity: .7; }
.p-backdrop::after { content: ""; position: absolute; inset: 0;
  /* сверху и снизу темнее: на светлых обложках подписи и кнопки не сливаются с фоном */
  background: linear-gradient(180deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.42) 26%, rgba(0,0,0,.32) 50%, rgba(0,0,0,.82)); }
.p-top-label, .p-titles h1, .p-titles p, .times, .p-next, .p-why { text-shadow: 0 1px 10px rgba(0,0,0,.55), 0 0 2px rgba(0,0,0,.35); }
.p-top .icon-btn .ic, .p-titles .icon-btn .ic, .p-controls .icon-btn .ic { filter: drop-shadow(0 1px 6px rgba(0,0,0,.5)); }
.p-inner { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; max-width: 520px; margin: 0 auto;
  padding: calc(32px + var(--safe-t)) 24px calc(35px + var(--safe-b)); }
.p-top { display: flex; align-items: center; justify-content: space-between; }
.p-top-label { text-align: center; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgba(243,239,232,.72); }
.p-top-label b { display: block; margin-top: 3px; font-weight: 700; letter-spacing: 0; text-transform: none; font-size: 13px; color: rgba(243,239,232,.92); }
.p-stage { position: relative; flex: 1; display: grid; place-items: center; min-height: 0; margin: 2vh 0; container-type: size; overflow: visible; }
.p-glow { position: absolute; width: 110%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--c1) 0%, transparent 62%); opacity: .7; will-change: transform, opacity; }
.p-art { position: relative; width: min(100%, 46vh); aspect-ratio: 1; border-radius: 24px; font-size: min(100vw, 46vh);
  box-shadow: 0 40px 70px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.07);
  /* снятие с паузы: обложка поднимается с лёгкой пружиной */
  transition: transform .8s cubic-bezier(.34,1.42,.52,1), box-shadow .7s ease, filter .6s ease, opacity .35s ease; }
/* пауза: обложка плавно оседает, тень становится ближе, картинка чуть тускнеет */
.player.paused .p-art { transform: scale(.86); filter: brightness(.8) saturate(.88);
  box-shadow: 0 20px 38px -22px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.05);
  transition: transform .6s cubic-bezier(.32,.72,.24,1), box-shadow .6s ease, filter .6s ease, opacity .35s ease; }
/* значок на кнопке меняется мягко */
.play .ic, #miniPlay .ic { animation: iconSwap .38s cubic-bezier(.34,1.5,.6,1); }
@keyframes iconSwap { from { transform: scale(.55) rotate(-8deg); opacity: 0; } }

.p-titles { display: flex; align-items: flex-end; gap: 12px; }
.p-titles-text { flex: 1; min-width: 0; }
.p-titles h1 { margin: 0; font: 600 24px/1.15 var(--display); letter-spacing: -.015em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.p-titles p { margin: 6px 0 0; font-size: 16px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titles-in h1, .titles-in p { animation: credits 1.1s var(--cine) both; }
.titles-in p { animation-delay: .12s; }
@keyframes credits { from { opacity: 0; transform: translateY(10px); } }
.p-seek { margin-top: 18px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: none; margin: 0; --p: 0%; }
input[type=range]::-webkit-slider-runnable-track { height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--ink) var(--p), var(--ink-4) var(--p)); }
/* зона автомикса на шкале: бледная латунь — где будет переход, сплошная — уже пройденная часть зоны */
#seek { --ms: 0%; --me: 0%; --mp: 0%; }
#seek::-webkit-slider-runnable-track {
  background:
    linear-gradient(90deg, transparent var(--ms), var(--brass) var(--ms), var(--brass) var(--mp), transparent var(--mp)),
    linear-gradient(90deg, transparent var(--ms), rgba(214,163,92,.28) var(--ms), rgba(214,163,92,.7) var(--me), transparent var(--me)),
    linear-gradient(90deg, var(--ink) var(--p), var(--ink-4) var(--p));
  transition: box-shadow .4s; }
.p-seek.mix-near #seek::-webkit-slider-runnable-track { box-shadow: 0 0 14px -2px rgba(214,163,92,.55); }
.p-seek.mix-near #seek::-webkit-slider-thumb { background: var(--brass); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%; background: var(--ink); margin-top: -5px; transition: transform .2s; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.4); }
input[type=range]::-moz-range-track { height: 5px; border-radius: 3px; background: var(--ink-4); }
input[type=range]::-moz-range-progress { height: 5px; border-radius: 3px; background: var(--ink); }
input[type=range]::-moz-range-thumb { width: 15px; height: 15px; border: 0; border-radius: 50%; background: var(--ink); }
.times { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; margin-top: 4px; }
.badge { padding: 3px 9px; border-radius: 7px; background: rgba(255,255,255,.08); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.p-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.play { width: 80px; height: 80px; border-radius: 50%; background: var(--ink); color: #0b0b0d; display: grid; place-items: center; transition: transform .35s var(--ease);
  box-shadow: 0 16px 34px -12px rgba(0,0,0,.8); }
.play:active { transform: scale(.88); }
.play .ic { width: 32px; height: 32px; }

/* кольцо обратного отсчёта автомикса вокруг паузы */
.play-wrap, .mini-play-wrap { position: relative; display: grid; place-items: center; flex: none; }
.mix-ring { position: absolute; pointer-events: none; transform: rotate(-90deg); opacity: 0; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.mix-ring.big { inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px); }
.mix-ring.small { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); }
.mix-ring circle { fill: none; stroke-linecap: round; }
.mix-ring .mr-track { stroke: rgba(214,163,92,.16); stroke-width: 3; }
.mix-ring .mr-prog { stroke: var(--brass); stroke-width: 3.4; stroke-dasharray: 100 100; stroke-dashoffset: 0;
  filter: drop-shadow(0 0 4px rgba(214,163,92,.6)); }
.mix-ring.small .mr-track, .mix-ring.small .mr-prog { stroke-width: 5; }
.mixing > .mix-ring { opacity: 1; transform: rotate(-90deg) scale(1); }
.mixing > .mix-ring.big { animation: mixIn .6s var(--ease) both; }
@keyframes mixIn { from { transform: rotate(-90deg) scale(.86); } }
.mini-progress b { position: absolute; top: 0; bottom: 0; left: 0; width: 0; background: rgba(214,163,92,.55); }
.mini-progress i { position: relative; }
.p-next.mix-count { color: var(--brass); }
.p-next.mix-count b { color: var(--brass); font-variant-numeric: tabular-nums; }
.dl-ring { position: relative; width: 26px; height: 26px; }
.dl-ring svg { position: absolute; inset: 0; width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.p-next { min-height: 20px; margin-top: 14px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.p-next b { color: var(--ink-2); font-weight: 700; }

/* ================= НИЖНЕЕ МЕНЮ ================= */
.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.6); animation: fade .25s both; }
.action-sheet { position: fixed; left: 8px; right: 8px; bottom: calc(8px + var(--safe-b)); z-index: 41; max-width: 540px; max-height: 88vh; overflow-y: auto; margin: 0 auto; padding: 20px 18px 14px; border-radius: 28px;
  background: var(--surface); animation: sheetUp .4s var(--ease) both; }
.action-sheet.closing { animation: sheetDown .3s var(--cine) both; }
@keyframes sheetUp { from { transform: translateY(110%); } }
@keyframes sheetDown { to { transform: translateY(110%); } }
@keyframes fade { from { opacity: 0; } }
.as-head { display: flex; gap: 12px; align-items: center; padding: 0 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.as-head .art { width: 50px; height: 50px; border-radius: 11px; font-size: 50px; flex: none; }
.as-head b, .as-head span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-head b { font-weight: 700; }
.as-head span { color: var(--ink-2); font-size: 13px; font-weight: 600; }
.as-head > div:last-child { min-width: 0; }
.as-item { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 6px; border-radius: 14px; font-size: 16px; font-weight: 600; text-align: left; }
.as-item:active { background: var(--line); }
.as-item .ic { color: var(--ink-2); }
.as-item.danger { color: #ff8a7a; }
.as-item.danger .ic { color: currentColor; }
.as-title { font: 600 20px/1.2 var(--display); letter-spacing: -.01em; margin: 0 4px 16px; }
.as-hint { color: var(--ink-3); font-size: 13px; font-weight: 600; margin: 12px 4px 4px; line-height: 1.45; }
.fade-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.fade-row input { flex: 1; }
.fade-row b { width: 32px; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }

/* уведомление: полупрозрачное стекло, длинный текст переносится, а не уходит за экран */
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 92px + var(--safe-b)); transform: translateX(-50%); z-index: 60;
  width: max-content; max-width: min(420px, calc(100% - 32px)); box-sizing: border-box; padding: 11px 16px; border-radius: 16px;
  background: rgba(30, 26, 22, .58); -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .09); box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .75);
  color: var(--ink); font-size: 13.5px; font-weight: 600; line-height: 1.35; text-align: center;
  white-space: normal; overflow-wrap: anywhere; animation: toastIn .45s var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px) scale(.96); } }

/* ================= ПЛЕЙЛИСТЫ И ПЕРЕНОС ================= */
.pl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 14px; }
.pl-grid:empty { display: none; }
.pl-card { text-align: left; min-width: 0; animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms); }
.pl-card .art { width: 100%; aspect-ratio: 1; border-radius: 20px; font-size: 300px; transition: transform .3s var(--ease); }
.pl-card:active .art { transform: scale(.96); }
.pl-card b, .pl-card span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-card b { margin-top: 10px; font-weight: 700; font-size: 14px; }
.pl-card span { color: var(--ink-2); font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.pl-card.add .art { display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1.5px dashed var(--ink-4); box-shadow: none; }
.pl-card.add .art .ic { width: 34px; height: 34px; color: var(--ink-2); }
.pl-head { position: relative; margin: 0 -18px 18px; padding: 18px 18px 22px; overflow: hidden; isolation: isolate; animation: heroIn .8s var(--ease) both; }
.pl-head .pl-bg { position: absolute; inset: 0; z-index: -1; background: radial-gradient(100% 90% at 30% 20%, var(--c1), transparent 80%) !important; }
.pl-head .pl-bg > * { display: none; }
.pl-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(transparent 30%, var(--bg)); }
.pl-head .back { display: inline-flex; align-items: center; gap: 2px; color: var(--ink-2); font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.pl-head .back .ic { width: 20px; height: 20px; }
.pl-head-row { display: flex; gap: 16px; align-items: flex-end; }
.pl-head-row > div:last-child { min-width: 0; }
.pl-head .art { width: 124px; height: 124px; border-radius: 18px; font-size: 124px; flex: none; box-shadow: 0 24px 44px -18px rgba(0,0,0,.9); }
.pl-head h2 { margin: 0; font: 600 22px/1.15 var(--display); letter-spacing: -.01em; animation: credits 1.1s var(--cine) both; overflow-wrap: anywhere; }
.pl-head p { margin: 6px 0 0; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.transfer-card { position: relative; display: grid; gap: 6px; width: 100%; text-align: left; padding: 22px; border-radius: 26px; overflow: hidden; isolation: isolate;
  background: var(--surface); animation: heroIn .9s var(--ease) both; }

.transfer-card b { font: 600 19px/1.2 var(--display); letter-spacing: -.01em; }
.transfer-card > span:last-child { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.brands { display: flex; gap: 8px; margin-bottom: 10px; }
.brand-chip { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #111; color: var(--bc); box-shadow: 0 6px 16px -6px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.08); }   /* у всех сервисов — чёрный фон, логотип в фирменном цвете */
.brand-chip .logo { width: 22px; height: 22px; }
.brand-chip.ya { background: #111; color: #ffbc0d; }
.svc { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 4px 16px; }
.svc span { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px 0 5px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.svc .brand-chip { width: 26px; height: 26px; border-radius: 13px; box-shadow: none; }
.svc .brand-chip .logo { width: 15px; height: 15px; }

.field { width: 100%; min-height: 54px; padding: 15px 18px; border-radius: var(--r-m); border: 1px solid transparent; background: var(--surface-2); color: var(--ink); font: 600 16px var(--sans); outline: none; resize: none; transition: border-color .3s; }
.field::placeholder { color: var(--ink-3); font-weight: 500; }
.field:focus { border-color: var(--ink-4); }
textarea.field { min-height: 150px; line-height: 1.5; }
.as-actions { display: grid; gap: 10px; margin-top: 16px; }
.text-toggle { color: var(--ink-2); font-size: 13px; font-weight: 700; justify-self: center; padding: 8px; }
.imp-progress { text-align: center; padding: 12px 4px 6px; }
.imp-count { font: 600 52px/1 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.imp-count small { font-size: 22px; color: var(--ink-3); }
.imp-label { margin: 12px 0 18px; color: var(--ink-2); font-size: 14px; font-weight: 600; }
.imp-bar { height: 5px; border-radius: 3px; background: var(--ink-4); overflow: hidden; }
.imp-bar i { display: block; height: 100%; border-radius: 3px; background: var(--ink); transition: width .6s var(--ease); }
.imp-bar.indet i { width: 35% !important; animation: indet 1.3s var(--ease) infinite; }
@keyframes indet { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
.imp-missing { margin-top: 14px; max-height: 160px; overflow: auto; text-align: left; font-size: 13px; font-weight: 500; color: var(--ink-3); padding: 12px 14px; border-radius: 14px; background: rgba(0,0,0,.3); }
.imp-missing summary { cursor: pointer; color: var(--ink-2); font-weight: 700; }
.imp-result { display: grid; gap: 8px; margin-top: 16px; }
.imp-result .row { margin: 0; background: rgba(255,255,255,.05); }

/* ================= ГЛАВНАЯ (упрощённая) ================= */
#homeNow { margin-top: 10px; }
.hero-card.single { width: 100%; max-width: none; aspect-ratio: 1 / 1.05; display: block; }
@media (min-width: 560px) { .hero-card.single { aspect-ratio: 16 / 10; } }
.chart .row { gap: 12px; }
.rank { width: 22px; flex: none; text-align: center; font: 600 15px var(--display); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chart .row:nth-child(-n+3) .rank { color: var(--ink); }
.genres { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 2px 18px; }
.genres::-webkit-scrollbar { display: none; }
.genre { flex: none; height: 36px; padding: 0 16px; border-radius: 18px; background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 700; transition: opacity .15s; }
.genre:active { opacity: .7; }
.transfer-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 12px 16px; border-radius: var(--r-m); background: var(--surface); text-align: left; }
.transfer-row .brands { margin: 0; gap: 6px; }
.transfer-row .brand-chip { width: 26px; height: 26px; border-radius: 8px; box-shadow: none; }
.transfer-row .brand-chip .logo { width: 15px; height: 15px; }
.transfer-row > span:not(.brands) { flex: 1; min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ic.flip { transform: rotate(180deg); color: var(--ink-3); width: 20px; height: 20px; }

/* ================= ЕДИНЫЙ СТИЛЬ НИЖНИХ МЕНЮ ================= */
.action-sheet { padding: 10px 16px 14px; }
.action-sheet::before { content: ""; display: block; width: 38px; height: 5px; border-radius: 3px; background: var(--ink-4); margin: 0 auto 14px; }
.as-title { font: 600 19px/1.2 var(--display); margin: 2px 4px 14px; }
.as-sub { color: var(--ink-3); font-size: 13px; font-weight: 600; margin: -8px 4px 14px; }
.as-group { border-radius: var(--r-m); background: var(--surface-2); overflow: hidden; }
.as-group + .as-group { margin-top: 12px; }
.as-opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left; }
.as-opt + .as-opt { border-top: 1px solid var(--line); }
.as-opt:active { background: var(--line); }
.as-opt .ic { color: var(--ink-2); }
.as-opt > span { flex: 1; min-width: 0; }
.as-opt b { display: block; font-weight: 700; font-size: 15px; }
.as-opt small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 12.5px; font-weight: 600; line-height: 1.35; }
.as-opt .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink-4); display: grid; place-items: center; flex: none; }
.as-opt[aria-checked=true] .tick { background: var(--ink); border-color: var(--ink); color: #0b0b0d; }
.as-opt[aria-checked=true] .tick .ic { width: 14px; height: 14px; color: #0b0b0d; stroke-width: 3; }
.as-slider { padding: 14px 16px; }
.as-slider .fade-row { margin: 0; }
.as-item { padding: 14px 10px; }

/* обложка всегда помещается в своё место: не больше ширины и высоты области (текст не налезает) */
@supports (container-type: size) {
  .p-art { width: min(100cqw, 100cqh) !important; font-size: min(100cqw, 100cqh) !important; }
}

/* ================= ТЕКСТ ПЕСНИ (караоке) ================= */
.lyrics-btn { height: 32px; padding: 0 13px; border-radius: 16px; font-size: 13px; font-weight: 800; color: var(--ink-2); background: rgba(255,255,255,.08); flex: none; }
.lyrics-btn[aria-pressed=true] { background: var(--ink); color: #0b0b0d; }
.p-lyrics { position: absolute; inset: 0; overflow-y: auto; scrollbar-width: none; padding: 38% 4px; scroll-behavior: smooth;
  -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.p-lyrics::-webkit-scrollbar { display: none; }
.p-lyrics p { margin: 0 0 16px; font: 600 22px/1.32 var(--display); letter-spacing: -.01em; color: rgba(245,243,239,.28); cursor: pointer; transition: color .35s, transform .35s var(--ease); transform-origin: left center; }
.p-lyrics p.past { color: rgba(245,243,239,.5); }
.p-lyrics p.on { color: rgba(245,243,239,.42); transform: scale(1.03); }
.p-lyrics p span { transition: color .18s ease, text-shadow .18s ease; }
.p-lyrics p.on span.sung { color: var(--ink); text-shadow: 0 0 18px rgba(255,248,236,.25); }
.p-lyrics p.past span { color: rgba(245,243,239,.5); }
.p-lyrics p.gap { display: flex; gap: 12px; align-items: center; height: 30px; }
/* точки проигрыша: каждая нарастает в свою треть оставшегося времени и слегка «дышит» */
.p-lyrics p.gap i { width: 11px; height: 11px; border-radius: 50%; background: currentColor; display: block;
  --on: clamp(0, calc(var(--gp, 0) * 3 - var(--k)), 1);
  transform: scale(calc(.55 + var(--on) * .55)); opacity: calc(.35 + var(--on) * .65); transition: transform .25s ease, opacity .25s ease; }
.p-lyrics p.gap.on i { animation: gapBreath 1.6s ease-in-out infinite; animation-delay: calc(var(--k) * .2s); }
.p-lyrics p.gap.on { color: var(--ink); }
@keyframes gapBreath { 50% { filter: brightness(1.25); } }
.p-lyrics .plain { white-space: pre-line; font: 600 18px/1.55 var(--sans); color: var(--ink-2); cursor: default; }
.p-lyrics .none { text-align: center; color: var(--ink-3); font: 600 15px var(--sans); margin-top: 30%; cursor: default; }
.player.lyrics-open .p-art, .player.lyrics-open .p-glow { opacity: 0; pointer-events: none; }
.p-glow { transition: opacity .35s ease; }

/* ================= SOUNDCLOUD В ПЛЕЕРЕ ================= */
/* подпись «Играет через SoundCloud» закреплена внизу и не сдвигает кнопки плеера (иначе при быстром переключении промахивались) */
.sc-strip { position: absolute; left: 0; right: 0; bottom: calc(10px + var(--safe-b, 0px)); margin: 0; display: flex; justify-content: center; pointer-events: none; }
.sc-strip .sc-credit { pointer-events: auto; }
.sc-credit { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--ink-3); text-decoration: none; }
.sc-credit .brand-chip { width: 20px; height: 20px; border-radius: 6px; box-shadow: none; }
.sc-credit .brand-chip .logo { width: 13px; height: 13px; }
/* сам плеер SoundCloud работает незаметно — видна только подпись со ссылкой */
.sc-frame { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.sc-frame iframe { width: 300px; height: 20px; border: 0; }

/* ================= АДМИНКА ================= */

.adm-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-top: 1px solid var(--line); }
.adm-row:first-child { border-top: 0; }
.adm-row .avatar { width: 40px; height: 40px; flex: none; }
.adm-row > div { flex: 1; min-width: 0; }
.adm-row b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-row small { display: block; color: var(--ink-3); font-size: 12px; font-weight: 600; }
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11px; font-weight: 800; background: rgba(255,255,255,.08); color: var(--ink-2); }
.pill.gold { background: rgba(214,163,92,.16); color: var(--brass); }
.pill.ok { background: rgba(52,199,89,.18); color: #6ee08e; }
.pill.bad { background: rgba(255,90,70,.16); color: #ff9a8a; }
.adm-search { margin-bottom: 8px; }
textarea.field.small { min-height: 110px; }

/* переходы: обложка → плеер, смена вкладок */
::view-transition-group(cover) { animation-duration: .6s; animation-timing-function: var(--ease); }
::view-transition-old(root) { animation: vtOut .25s var(--cine) both; }
::view-transition-new(root) { animation: vtIn .4s var(--ease) both; }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(6px); } }

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

/* ================= ГЛАВНАЯ ================= */
.home-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; margin: 6px 0 18px; }
.home-hello { margin: 0; min-width: 0; font: 600 20px/1.15 var(--display); letter-spacing: -.02em; text-wrap: balance; }
#homeNow { margin-top: 18px; }
#genreBlock { margin-top: 18px; }
.now-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; border-radius: var(--r-l); text-align: left;
  background: color-mix(in srgb, var(--c1) 30%, var(--surface)); transition: transform .15s var(--ease); }
.now-card:active { transform: scale(.98); }
.now-card .cover { width: 84px; height: 84px; border-radius: var(--r-s); flex: none; font-size: 84px; }
.now-meta { flex: 1; min-width: 0; display: grid; gap: 2px; }
.now-meta b, .now-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-meta b { font: 600 17px/1.25 var(--display); letter-spacing: -.01em; }
.now-meta span { color: var(--ink-2); font-size: 14px; font-weight: 600; }
.now-meta small { margin-top: 6px; color: var(--ink-3); font-size: 12.5px; font-weight: 700; }
.now-card.live .now-meta small { color: var(--brass); }
.now-play { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--on-light); flex: none; }
.now-play .ic { width: 22px; height: 22px; }
.now-play .ic.fill, .now-play svg { fill: currentColor; }
#homeRecent .tile { width: 128px; }
#homeRecent .tile .cover { width: 128px; height: 128px; border-radius: var(--r-s); font-size: 128px; }

/* ================= АДМИНКА ================= */
.adm-tabs { position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 18px -18px 18px; padding: 2px 18px; }
.adm-tabs::-webkit-scrollbar { display: none; }
.adm-tabs button { flex: none; height: 36px; padding: 0 16px; border-radius: 18px; background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 700; }
.adm-tabs button[aria-selected=true] { background: var(--ink); color: var(--on-light); }
.adm-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: var(--r-m); background: var(--surface); overflow: hidden; }
.adm-kpis > div { padding: 14px 16px; min-width: 0; box-shadow: inset 0 -1px var(--line); }
.adm-kpis > div:nth-child(odd) { box-shadow: inset -1px 0 var(--line), inset 0 -1px var(--line); }
.adm-kpis b { display: block; font: 600 20px/1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-kpis span { display: block; margin-top: 4px; color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.adm-sec { margin-top: 28px; }
.adm-top .pa-name small { display: block; margin-top: 2px; color: var(--ink-3); font-size: 12.5px; font-weight: 600; }
.adm-group { margin-top: 0; }
.adm-group .adm-row { width: 100%; padding: 12px 16px; text-align: left; border-top: 0; position: relative; }
.adm-group .adm-row + .adm-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }
.adm-row .avatar { flex: none; }
.adm-pad { padding: 16px; margin: 0; }
.adm-note { margin: 8px 4px 14px; line-height: 1.4; }
.adm-gap { margin-top: 12px; }
.adm-search { margin-bottom: 12px; }
.adm-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px 14px; padding: 2px 18px; }
.adm-chips::-webkit-scrollbar { display: none; }
.adm-chips button { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 700; }
.adm-chips button i { font-style: normal; color: var(--ink-3); font-variant-numeric: tabular-nums; margin-left: 2px; }
.adm-chips button[aria-pressed=true] { background: var(--ink); color: var(--on-light); }
.adm-chips button[aria-pressed=true] i { color: rgba(12,11,10,.55); }
.adm-label { margin: 18px 4px 8px; color: var(--ink-3); font-size: 12.5px; font-weight: 700; }
.adm-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 14px 0 0; }
.adm-facts div { min-width: 0; }
.adm-facts b { display: block; font: 600 16px/1.1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-facts span { color: var(--ink-3); font-size: 11.5px; font-weight: 600; }
.adm-sub { margin: 12px 4px 0 !important; }
.adm-hist { display: flex; align-items: center; gap: 12px; padding: 10px 16px; }
.adm-hist + .adm-hist { border-top: 1px solid var(--line); }
.adm-hist span { flex: 1; min-width: 0; font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-hist small { display: block; color: var(--ink-3); font-size: 12px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.adm-hist time { flex: none; color: var(--ink-3); font-size: 12px; font-weight: 600; }
.adm-inline { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; }
.adm-inline .field { width: 92px; min-height: 44px; padding: 10px 12px; background: var(--bg); text-align: center; font-variant-numeric: tabular-nums; }
.adm-inline span { flex: 1; color: var(--ink-2); font-weight: 600; }
.adm-inline .btn { height: 44px; padding: 0 18px; font-size: 14px; }
.adm-form { display: grid; gap: 12px; }
.adm-form label { display: grid; gap: 6px; color: var(--ink-3); font-size: 12.5px; font-weight: 700; }
.adm-num { width: 96px; min-height: 42px; padding: 8px 12px; text-align: right; font-variant-numeric: tabular-nums; flex: none; }
.adm-code { font-family: ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .04em; }
.adm-bigcode { display: grid; gap: 6px; width: 100%; padding: 18px; border-radius: var(--r-m); background: var(--surface-2); text-align: center;
  font: 600 24px/1.1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; color: var(--brass); }
.adm-bigcode small { font: 600 12px var(--sans); letter-spacing: 0; color: var(--ink-3); }
.as-opt.danger, .as-opt.danger .ic { color: #ff8a7a; }
.btn.danger { background: #e5534b; color: #fff; }
.danger-text { color: #ff8a7a; }

/* объявление на главной */
.notice { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: var(--r-m); background: rgba(214,163,92,.12); }
.notice p { flex: 1; min-width: 0; margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.notice-x { flex: none; color: var(--brass); font-size: 13px; font-weight: 700; padding: 2px 0; }

.offline-hint { margin: 16px 4px 0; padding: 14px 16px; border-radius: var(--r-m, 16px); background: rgba(214,163,92,.10); color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }
#libActions .btn .logo { width: 18px; height: 18px; }

/* ================= ПОТОК ================= */
.wave-card { position: relative; overflow: hidden; border-radius: var(--r-l, 22px); margin-bottom: 14px; min-height: 176px;
  background: radial-gradient(120% 90% at 20% 0%, #2a221b 0%, #17130f 60%, #110e0c 100%); box-shadow: 0 0 0 1px rgba(255,255,255,.05) inset; }
.wave-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.wave-body { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 18px 62px; }
.wave-title { display: grid; gap: 4px; min-width: 0; }
.wave-title b { font: 600 26px/1.05 var(--display); letter-spacing: -.01em; }
.wave-title span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wave-play { width: 58px; height: 58px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #0b0b0d;
  box-shadow: 0 12px 26px -12px rgba(0,0,0,.9); transition: transform .3s var(--ease); }
.wave-play:active { transform: scale(.9); }
.wave-play .ic { width: 24px; height: 24px; }
.wave-modes { position: relative; display: flex; gap: 8px; padding: 6px 18px 18px; overflow-x: auto; scrollbar-width: none; }
.wave-modes::-webkit-scrollbar { display: none; }
.wave-modes button { flex: none; padding: 8px 13px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink-2);
  background: rgba(255,255,255,.06); transition: background .25s, color .25s; }
.wave-modes button[aria-pressed=true] { background: rgba(214,163,92,.18); color: var(--brass); }
.wave-card.live .wave-title b::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 9px; vertical-align: middle;
  border-radius: 50%; background: var(--brass); box-shadow: 0 0 10px var(--brass); animation: wavePulse 1.6s ease-in-out infinite; }
@keyframes wavePulse { 50% { opacity: .35; } }
.p-why { display: block; margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--brass); letter-spacing: .01em; }

/* ================= ИСПОЛНИТЕЛЬ ================= */
.artist-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 12px 10px 10px; margin-bottom: 16px; text-align: left;
  border-radius: var(--r-l, 22px); background: rgba(255,255,255,.05); transition: transform .15s var(--ease); }
.artist-card:active { transform: scale(.98); }
.artist-card .ac-photo { width: 64px; height: 64px; flex: none; border-radius: 50%; background: center / cover no-repeat, var(--surface);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.artist-card .ac-meta { flex: 1; min-width: 0; display: grid; gap: 3px; }
.artist-card .ac-meta b { font: 600 18px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.artist-card .ac-meta span { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.artist-card .ic { color: var(--ink-3); }

#view-artist { padding-top: 0; }
/* шапка — под самый верх экрана (под строку состояния и шапку Telegram), без чёрной полосы и тонких краёв */
.ar-hero { position: relative; margin: calc(-10px - var(--safe-t, 0px)) -18px 0; height: calc(min(62vh, 430px) + var(--safe-t, 0px)); display: flex; align-items: flex-end; overflow: hidden; }
.ar-photo { position: absolute; inset: 0; background: center 30% / cover no-repeat, #1a1613; transform: scale(1.06); animation: arIn 1.1s var(--cine, ease) both; }
.ar-photo::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10,9,8,.15) 0%, rgba(10,9,8,0) 30%, rgba(10,9,8,.7) 75%, var(--bg) 100%); }
@keyframes arIn { from { transform: scale(1.14); opacity: 0; } to { transform: scale(1.06); opacity: 1; } }
.ar-back { position: absolute; z-index: 3; top: calc(var(--safe-t, 0px) + 12px); left: 14px; background: rgba(0,0,0,.35); backdrop-filter: blur(10px); }
.ar-back .ic { transform: none; }
.ar-head { position: relative; padding: 0 20px 18px; display: grid; gap: 6px; }
.ar-kicker { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); }
.ar-head h1 { margin: 0; font: 600 clamp(30px, 9vw, 44px)/1.02 var(--display); letter-spacing: -.02em; }
.ar-head p { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ar-actions { display: flex; gap: 10px; margin: 14px 0 6px; }
.ar-actions .btn { min-width: 0; }
.ar-similar { display: grid; justify-items: center; gap: 8px; width: 104px; flex: none; text-align: center; }
.ar-similar i { width: 92px; height: 92px; border-radius: 50%; background: center / cover no-repeat, var(--surface); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.ar-similar b { font-size: 13px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.dl-ring.spin svg { animation: dlSpin .9s linear infinite; }
@keyframes dlSpin { to { transform: rotate(360deg); } }


/* ================= ПРИЛОЖЕНИЕ НА ЭКРАНЕ «ДОМОЙ» ================= */
.app-steps { display: grid; justify-items: center; gap: 10px; padding: 8px 6px 14px; text-align: center; }
.app-steps img { border-radius: 16px; }
.app-steps h3 { margin: 4px 0 0; font: 600 20px/1.2 var(--display); }
.app-steps ol { margin: 4px 0 0; padding-left: 20px; text-align: left; display: grid; gap: 6px; font-size: 15px; font-weight: 600; color: var(--ink); }
.app-steps ol .ic { display: inline-block; width: 17px; height: 17px; vertical-align: -3px; }
.app-steps p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.app-login { margin-top: 26vh; display: grid; justify-items: center; gap: 10px; text-align: center; padding: 0 28px; }
.app-login img { border-radius: 18px; }

/* звезда Telegram Stars — в цвет текста, по высоте строки */
.star { display: inline-block; width: .8em; height: .8em; vertical-align: -.04em; fill: currentColor; flex: none; }
.price-inline { white-space: nowrap; }

/* ================= ПОИСК: КРЕСТИК ================= */
.search { position: relative; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.search-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-2); background: rgba(255,255,255,.08); transition: background .2s, transform .2s; }
.search-clear:active { transform: translateY(-50%) scale(.88); }
.search-clear .ic { width: 16px; height: 16px; }
.search input { padding-right: 44px; }

/* ================= ОФЛАЙН-РЕЖИМ ================= */
.offline-card { display: none; justify-items: start; gap: 8px; padding: 18px; margin: 4px 0 18px; border-radius: var(--r-l, 22px);
  background: rgba(255,255,255,.05); box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset; }
.offline-card b { font: 600 18px/1.2 var(--display); }
.offline-card p { margin: 0 0 6px; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.offline-card .oc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
body.offline .offline-card { display: grid; }
body.offline #view-home > :not(.home-top):not(.offline-card),
body.offline #view-search > :not(.title):not(.offline-card),
body.offline #profileBody { display: none !important; }

/* мини-плеер: «назад» чуть компактнее, чтобы название песни не сжималось */
.mini .mini-prev, .mini #miniNext { width: 38px; }
.mini-prev .ic, #miniNext .ic { width: 20px; height: 20px; }

/* показанная обложка — сразу, без проявления */
.cover img.seen { transition: none; }

/* ================= ПИЛЮЛЯ ПОД DYNAMIC ISLAND ================= */
.island-pill { position: fixed; top: 11px; left: 50%; transform: translateX(-50%); z-index: 200; pointer-events: none;
  width: 126px; height: 37px; border-radius: 19px; display: flex; align-items: center; justify-content: center; gap: 7px;
  /* чётко, без свечения и мягких теней — на скриншоте не расплывается */
  background: #16120f; border: 1.5px solid #c99a57; box-sizing: border-box; }
.island-pill svg { width: 20px; height: 20px; }
.island-pill span { font: 700 15px/1 var(--display); letter-spacing: .01em; color: #f4ece0; -webkit-font-smoothing: antialiased; }

/* Поток: мягкая смена значка и «дыхание» карточки, пока играет */
.wave-play .ic { animation: iconSwap .38s cubic-bezier(.34,1.5,.6,1); }
.wave-card { transition: box-shadow .8s ease; }
.wave-card.live { box-shadow: 0 0 0 1px rgba(214,163,92,.22) inset, 0 18px 40px -24px rgba(214,163,92,.45); }

/* ================= ЭКВАЛАЙЗЕР ================= */
.p-top-actions { display: flex; align-items: center; gap: 2px; }
.p-top-actions .icon-btn { width: 38px; }
#cineBtn.on { color: var(--brass); }
.eq-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.eq-presets .chip.on { background: rgba(214,163,92,.18); color: var(--brass); }
.eq-bands { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 6px 2px 4px; }
.eq-band { display: grid; justify-items: center; gap: 8px; }
.eq-band b { font-size: 11.5px; font-weight: 800; color: var(--ink-2); font-variant-numeric: tabular-nums; min-height: 14px; }
.eq-band span { font-size: 11px; font-weight: 700; color: var(--ink-3); }
.eq-track { position: relative; width: 34px; height: 150px; }
.eq-track input { position: absolute; left: 50%; top: 50%; width: 150px; height: 34px; margin: 0; transform: translate(-50%, -50%) rotate(-90deg); --p: 50%; }
.eq-track::before { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px; background: rgba(255,255,255,.12); }
.eq-note { margin-top: 10px; text-align: center; }

/* ================= КИНО-ЭФФЕКТЫ ================= */
/* всё проявляется и исчезает плавно; на удар бочки — обложка, свет и фон */
.cine-flash, .cine-grain, .cine-vignette, .cine-leak { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .7s ease; }
.cine-flash { background: radial-gradient(62% 46% at 50% 38%, rgba(232,180,104,.75), rgba(214,163,92,0) 70%); mix-blend-mode: screen; transition: none; }
.player.cine-on .cine-flash { opacity: calc(var(--beat, 0) * .75); }
.cine-grain { animation: grain 1s steps(6) infinite;
  background-image: 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%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.player.cine-on .cine-grain { opacity: .08; }
@keyframes grain { 0% { transform: translate(0,0); } 20% { transform: translate(-3%,2%); } 40% { transform: translate(2%,-3%); } 60% { transform: translate(-2%,-1%); } 80% { transform: translate(3%,2%); } }
.cine-vignette { background: radial-gradient(120% 85% at 50% 42%, rgba(0,0,0,0) 55%, rgba(0,0,0,.65) 100%); }
.player.cine-on .cine-vignette { opacity: calc(1 - var(--beat, 0) * .35); }
.cine-leak { background: linear-gradient(105deg, rgba(255,214,150,0) 35%, rgba(255,214,150,.22) 48%, rgba(255,240,210,.32) 50%, rgba(255,214,150,.22) 52%, rgba(255,214,150,0) 65%);
  background-size: 250% 100%; background-position: 120% 0; transition: none; mix-blend-mode: screen; }
.player.cine-on.cine-sweep .cine-leak { animation: leak 1.1s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes leak { 0% { opacity: 0; background-position: 120% 0; } 15% { opacity: 1; } 100% { opacity: 0; background-position: -30% 0; } }
/* кинополосы выезжают плавно */
.cine-bar { display: block; transition: transform .9s var(--cine), opacity .6s ease; }
/* выключенные полосы ещё и прозрачные: иначе при свайпе вниз верхняя торчала над плеером чёрной плашкой */
.player:not(.cine-on) .cine-bar { opacity: 0; }
.player:not(.cine-on) .cine-bar.top { transform: translateY(-100%); }
.player:not(.cine-on) .cine-bar.bottom { transform: translateY(100%); }
.player.dragging .cine-bar, .player.closing .cine-bar { opacity: 0; }
/* обложка подпрыгивает и чуть вспыхивает на удар; фон «дышит» с басом */
.player.cine-on .p-art { scale: calc(1 + var(--beat, 0) * .055); filter: brightness(calc(1 + var(--beat, 0) * .18));
  transition: transform .8s cubic-bezier(.34,1.42,.52,1), box-shadow .7s ease, filter .08s linear, opacity .35s ease; }
.player.cine-on.paused .p-art { scale: 1; filter: brightness(.8) saturate(.88); }
.player.cine-on .p-blur { scale: calc(1.04 + var(--energy, 0) * .05); }

/* ================= ПЕРЕМОТКА ================= */
.p-seek { touch-action: none; padding: 14px 0 8px; margin-top: 4px; cursor: grab; }
.p-seek #seek { pointer-events: none; }
#seek::-webkit-slider-runnable-track { transition: height .25s var(--ease), box-shadow .4s; }
#seek::-webkit-slider-thumb { transition: transform .25s var(--ease), margin-top .25s var(--ease), background .3s; }
.p-seek.scrubbing #seek::-webkit-slider-runnable-track { height: 11px; border-radius: 6px; }
.p-seek.scrubbing #seek::-webkit-slider-thumb { transform: scale(1.35); margin-top: -2px; }
.p-seek.scrubbing .times { color: var(--ink-2); }

/* ================= ДОСТУП (админка) ================= */
.adm-access { gap: 10px; }
.seg-mini { display: inline-flex; flex: none; padding: 3px; border-radius: 12px; background: rgba(255,255,255,.07); }
.seg-mini button { padding: 7px 12px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.seg-mini button[aria-checked=true] { background: rgba(214,163,92,.2); color: var(--brass); }

/* ================= ТЕКСТ ПЕСНИ В КИНО-РЕЖИМЕ ================= */
/* пропетые слова светятся латунью в такт ударам, текущая строка крупнее, остальные — в лёгком «расфокусе» */
.player.cine-on .p-lyrics p { transition: color .35s, transform .45s var(--ease), filter .45s ease, opacity .45s ease; }
.player.cine-on .p-lyrics p:not(.on) { filter: blur(1.4px); opacity: .6; }
.player.cine-on .p-lyrics p.on { transform: scale(1.07); filter: none; opacity: 1; }
.player.cine-on .p-lyrics p.on span { transition: color .2s ease, text-shadow .12s linear; }
.player.cine-on .p-lyrics p.on span.sung { color: #fff3dd;
  text-shadow: 0 0 calc(10px + var(--beat, 0) * 26px) rgba(232, 180, 104, calc(.45 + var(--beat, 0) * .5)), 0 0 2px rgba(255, 236, 200, .6); }
.player.cine-on .p-lyrics p.past span { color: rgba(245, 225, 190, .55); }

/* эквалайзер: столбец хватается целиком, во время движения подсвечивается */
.eq-band { touch-action: none; cursor: grab; padding: 4px 0; border-radius: 14px; transition: background .2s; }
.eq-band.active { background: rgba(214,163,92,.08); }
.eq-band.active b { color: var(--brass); }
.eq-track input { pointer-events: none; }

/* ================= АЛЬБОМЫ ================= */
.al-card { display: grid; gap: 6px; width: 146px; flex: none; text-align: left; align-content: start; grid-auto-rows: max-content; }
.al-card i { width: 146px; height: 146px; border-radius: 14px; background: center / cover no-repeat, var(--surface); box-shadow: 0 0 0 1px rgba(255,255,255,.07); }
.al-card b { font-size: 14px; font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.al-card span { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
#view-album { padding-top: 0; }
.al-hero { position: relative; margin: calc(-10px - var(--safe-t, 0px)) -18px 0; padding: calc(var(--safe-t, 0px) + 60px) 20px 20px; display: grid; justify-items: center; gap: 18px; overflow: hidden; text-align: center; }
.al-bg { position: absolute; inset: -40px; background: center / cover no-repeat; filter: blur(28px) saturate(1.3); opacity: .55; transform: scale(1.1) translateZ(0); will-change: transform; animation: bgIn .8s ease both; }
@keyframes bgIn { from { opacity: 0; } }
.al-hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0; background: linear-gradient(180deg, rgba(10,9,8,.2), var(--bg) 96%); }
.al-cover { position: relative; z-index: 1; width: min(68vw, 280px); aspect-ratio: 1; border-radius: 18px; background: center / cover no-repeat, var(--surface);
  box-shadow: 0 30px 60px -28px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.08); animation: arIn .9s var(--cine, ease) both; }
.al-head { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; }
.al-head h1 { margin: 0; font: 600 clamp(24px, 7vw, 32px)/1.1 var(--display); letter-spacing: -.015em; }
.al-artist { font-size: 15px; font-weight: 700; color: var(--brass); }
.al-head p { margin: 0; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.al-missing { margin: 14px 4px 0; font-size: 13px; }
#view-album .ar-actions { margin-top: 4px; }

/* логотип Telegram в строках настроек — белый, как остальные иконки */
.logo.tg-white { width: 21px; height: 21px; color: var(--ink); flex: none; }

/* ================= МЕДИАТЕКА: СЧЁТЧИКИ, ПОДЕЛИТЬСЯ ================= */
.lib-summary { margin: -6px 2px 14px; font-size: 14px; font-weight: 600; color: var(--ink-3); }
.seg-count { margin-left: 6px; font-size: 11.5px; font-weight: 800; opacity: .6; font-variant-numeric: tabular-nums; }
[aria-selected=true] > .seg-count { opacity: .8; }
.pl-head-actions { display: flex; gap: 16px; margin-top: 8px; }
.pl-head-actions .link { display: inline-flex; align-items: center; gap: 6px; }
.pl-head-actions .ic { width: 16px; height: 16px; }

/* розыгрыши: выбор срока чипами */
.adm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 10px; }
.adm-chips .chip.on { background: rgba(214,163,92,.18); color: var(--brass); }

.app-copy-hint { margin: 10px 4px 6px; text-align: center; }

/* ================= ПЛЕЙЛИСТЫ: МОЗАИКА 2×2 ================= */
.pl-mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 1px; overflow: hidden; background: var(--surface); }
.pl-mosaic img { position: static; width: 100%; height: 100%; object-fit: cover; opacity: 1; display: block; }
.pl-pick .as-opt { align-items: center; }
.pl-pick-art { width: 44px; height: 44px; border-radius: 8px; flex: none; font-size: 44px; }
.pl-head-actions { flex-wrap: wrap; }

/* версия в админке */
.adm-version { display: grid; gap: 4px; padding: 14px 16px; margin-bottom: 14px; border-radius: var(--r-l, 18px); background: rgba(214,163,92,.08); box-shadow: 0 0 0 1px rgba(214,163,92,.18) inset; }
.adm-version > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.adm-version span { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.adm-version b { font: 600 22px/1 var(--display); color: var(--brass); }
.adm-version small { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.adm-version code { font: 700 12px ui-monospace, Menlo, monospace; color: var(--ink-2); }
.adm-version-msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.mix-note { margin: 4px 0 14px; padding: 12px 14px; border-radius: 14px; background: rgba(214,163,92,.08); box-shadow: 0 0 0 1px rgba(214,163,92,.18) inset; }
.mix-note p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }

/* ================= ПОВТОР И ПЕРЕМЕШИВАНИЕ ================= */
.mode-btn { color: var(--ink-3); }
.mode-btn.on { color: var(--brass); }
.mode-btn.on::after { content: ''; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--brass); }
.mode-btn { position: relative; }
.rep-one { position: relative; display: grid; place-items: center; }
.rep-one b { position: absolute; font: 800 9px/1 var(--sans); color: var(--brass); top: 50%; left: 50%; transform: translate(-50%, -48%); }

/* ================= ОЧЕРЕДЬ ================= */
.p-next-btn { font: inherit; color: inherit; background: none; border: 0; padding: 6px 10px; border-radius: 10px; max-width: 100%;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-next-btn:active { background: rgba(255,255,255,.06); }
.p-next-btn span { color: var(--ink-3); }
.q-list { max-height: 60vh; overflow-y: auto; margin-top: 6px; }
.q-row { cursor: pointer; }
.q-del .ic { width: 18px; height: 18px; }

/* SoundCloud: те же кнопки, кроме недоступных */
.player.sc-mode #mixBtn, .player.sc-mode #eqBtn, .player.sc-mode #cineBtn, .player.sc-mode #dlBtn { display: none; }

/* строка «Далее»: постоянная высота и плавная смена текста с размытием */
.p-next { min-height: 34px; display: grid; place-items: center; }
.p-next > * { animation: nextSwap .45s var(--ease) both; }
.p-next-btn.dim { color: var(--ink-3); }
@keyframes nextSwap { from { opacity: 0; filter: blur(6px); transform: translateY(4px); } to { opacity: 1; filter: none; transform: none; } }
.p-next.mix-count > * { animation: none; }

/* имя исполнителя в плеере ведёт на его страницу */
#pArtist { cursor: pointer; }
#pArtist:active { color: var(--ink); }

/* страницы альбома и исполнителя не проявляются целиком (тяжёлое размытие фона на iPhone давало рывок):
   плавно появляются лёгкие части — заголовок, кнопки, список */
#view-album, #view-artist { animation: none; }
#view-album .al-head, #view-album .ar-actions, #view-album #alTracks,
#view-artist .ar-head, #view-artist .ar-actions { animation: rise .5s var(--ease) both; }
#view-album .ar-actions, #view-artist .ar-actions { animation-delay: .06s; }
#view-album #alTracks { animation-delay: .1s; }
/* «Слушать» — на всё свободное место, остальное — круглые иконки */
.ar-actions .btn.grow { flex: 1; padding: 0 22px; }
.ar-actions .btn.icon-only { flex: none; }
.ar-actions .btn { height: 48px; }
.ar-actions .btn.icon-only { width: 48px; height: 48px; }

.bh-actions { display: flex; gap: 16px; align-items: center; }

/* текущая строка текста увеличивается (до 7% в кино-режиме) — ширину строк оставляем с запасом, чтобы не вылезала */
.p-lyrics p { max-width: 92%; overflow-wrap: anywhere; }

/* последний релиз исполнителя */
.latest-card { display: flex; align-items: center; gap: 14px; width: 100%; padding: 10px 12px 10px 10px; text-align: left; border-radius: var(--r-l, 18px); background: rgba(255,255,255,.05); }
.latest-card:active { transform: scale(.98); }
.latest-card i { width: 72px; height: 72px; flex: none; border-radius: 10px; background: center / cover no-repeat, var(--surface); box-shadow: 0 0 0 1px rgba(255,255,255,.08); }
.latest-card span { flex: 1; min-width: 0; display: grid; gap: 4px; }
.latest-card small { font-size: 12px; font-weight: 800; letter-spacing: .04em; color: var(--brass); }
.latest-card b { font: 600 17px/1.25 var(--display); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.latest-card .ic { color: var(--ink-3); }

/* название трека — на всю ширину, действия рядом под исполнителем */
.p-titles { align-items: flex-start; }
.p-titles-text { flex: 1; min-width: 0; }
.p-sub-actions { display: flex; align-items: center; gap: 4px; margin: 10px 0 -4px -10px; min-height: 40px; }
.p-sub-actions .lyrics-btn { margin-left: 10px; margin-right: 6px; }
.p-sub-actions .icon-btn { width: 40px; height: 40px; }

.p-sub-actions { justify-content: flex-end; margin: 10px -10px -4px 0; }
.p-sub-actions .lyrics-btn { margin-left: 0; }

/* подпись «Потока»: плавная смена текста, пока идёт подбор — мягкая пульсация */
#waveSub.swap { animation: nextSwap .45s var(--ease) both; }
#waveSub.loading { color: var(--brass); animation: nextSwap .45s var(--ease) both, subPulse 1.6s ease-in-out .45s infinite; }
@keyframes subPulse { 50% { opacity: .55; } }

/* кино-режим: обложка всё время «дышит» с басом, вздрагивает на каждый удар (и тихий), на сильных — «тряска камеры»;
   хэты и малый барабан — мягкие вспышки по краям */
.player.cine-on .p-art { scale: calc(1 + var(--energy, 0) * .025 + var(--beat, 0) * .06);
  translate: var(--shake-x, 0) var(--shake-y, 0);
  filter: brightness(calc(1 + var(--beat, 0) * .2 + var(--hat, 0) * .06)) saturate(calc(1 + var(--beat, 0) * .15)); }
.player.cine-on .p-glow { filter: saturate(calc(1.1 + var(--hat, 0) * .4)); }
.player.cine-on .cine-vignette { opacity: calc(1 - var(--beat, 0) * .35 - var(--hat, 0) * .12); }
.player.cine-on .cine-flash { opacity: calc(var(--beat, 0) * .75 + var(--hat, 0) * .18); }
.player.cine-on.paused .p-art { translate: 0 0; }

/* индикатор «играет» выезжает плавно: ширина с нуля, полоски проявляются, текст отодвигается мягко */
.eq { overflow: hidden; max-width: 16px; animation: eqIn .45s var(--ease) both; }
@keyframes eqIn { from { max-width: 0; margin-right: 0; opacity: 0; } to { max-width: 16px; opacity: 1; } }

/* пока открыт плеер, страница под ним не прокручивается */
body.player-open { overflow: hidden; overscroll-behavior: none; }
.player { overscroll-behavior: contain; touch-action: pan-y; }

/* индикатор «играет» — это span, и общее правило подписи .row .meta span делало его блоком шириной 0:
   полоски схлопывались, оставалось только пустое место. Возвращаем ему вид индикатора */
.row .meta .eq { display: inline-flex; margin-top: 0; font-size: inherit; color: inherit; white-space: normal; overflow: hidden; }
.row .meta .eq i { display: block; }

/* лента альбомов на главной: без лишнего запаса снизу — расстояние до чарта как у остальных блоков */
#homeAlbumsBlock .rail { padding-bottom: 2px; }
#homeAlbumsBlock + .block { margin-top: 26px; }

/* очередь: строки строго по ширине шторки, прокрутка только вертикальная */
.q-list { overflow-x: hidden; touch-action: pan-y; overscroll-behavior: contain; }
.q-list .row { margin: 0; }
.action-sheet { overflow-x: hidden; }

/* очередь: ручка «≡» для перетаскивания */
.q-grip { flex: none; width: 34px; height: 40px; display: grid; place-items: center; color: var(--ink-3); touch-action: none; cursor: grab; }
.q-grip .ic { width: 18px; height: 18px; }
.q-row { transition: transform .18s var(--ease); }
.q-row.dragging { transition: none; position: relative; z-index: 2; background: var(--surface-2); box-shadow: 0 10px 24px -10px rgba(0,0,0,.7); }
