/* Новый интерфейс AlphaHit (v2) для вошедшего — оболочка и общие элементы разделов.
   Разметка — templates/v2/base.html и страницы разделов (templates/v2/*.html), поведение —
   static/js/v2/app.js. Одна разметка, два дизайна по data-skin на <html>:
     «Стриминг» — канон Spotify/Яндекс Музыки: меню панелями слева, окно раздела скруглённой
                  панелью, плеер снизу во всю ширину, строки треков как в плейлисте;
     «Кассета»  — кобальтовая шапка-вкладыш сверху с тем же меню, бумажные разделы, заголовки
                  Tektur, названия песен рукописным Shantell Sans, плеер — дека с катушками.
   Оба — в светлой и тёмной теме (data-theme). Шрифты — static/css/fonts.css.
   На телефоне у обоих: разделы внизу экрана, мини-плеер над ними. */

/* ═══ Токены ═══ */
[data-skin="stream"] {
  --app: #0b0b0c; --panel: #121214; --raise: #1d1d20; --hover: #28282c; --ink: #f4f4f5; --ink-2: #a9a9b0; --line: #2a2a2f;
  --accent: #ff4d38; --on-accent: #0b0b0c; --light: #f4f4f5; --on-light: #0b0b0c; --field: #1d1d20;
  --f: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif; --f-head: var(--f); --head-stretch: 100%; --head-track: -0.03em;
  --f-title: var(--f); --r: 8px; --r-cover: 4px; --shadow: 0 8px 24px rgb(0 0 0 / 0.4);
  --top-bg: transparent; --player-bg: #0b0b0c; --tab-bg: rgb(11 11 12 / 0.96);
  color-scheme: dark;
}
[data-skin="stream"][data-theme="light"] {
  --app: #e7e7ea; --panel: #ffffff; --raise: #f3f3f5; --hover: #e9e9ec; --ink: #121214; --ink-2: #5d5d66; --line: #e2e2e6;
  --accent: #d9321d; --on-accent: #ffffff; --light: #121214; --on-light: #ffffff; --field: #f3f3f5;
  --shadow: 0 8px 24px rgb(0 0 0 / 0.1); --player-bg: #ffffff; --tab-bg: rgb(255 255 255 / 0.96); color-scheme: light;
}
[data-skin="cassette"] {
  --app: #eef1f8; --panel: #ffffff; --raise: #f5f7fc; --hover: #e9edf7; --ink: #0f1633; --ink-2: #4a5478; --line: #d8deec;
  --accent: #d02f1b; --on-accent: #ffffff; --light: #2b3d96; --on-light: #ffffff; --field: #ffffff;
  --cobalt: #2b3d96; --shell: #1c1f2a; --tape: #6e4329; --marker: #1a2fae;
  --f: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif; --f-head: 'Tektur', 'Golos Text', sans-serif;
  --head-stretch: 84%; --head-track: -0.01em; --f-title: 'Golos Text', system-ui, sans-serif;   /* названия песен — обычным шрифтом (владелец 26.09.2026) */
  --r: 14px; --r-cover: 8px; --shadow: 0 14px 30px -18px rgb(21 31 90 / 0.5);
  --top-bg: #2b3d96; --player-bg: #1c1f2a; --tab-bg: rgb(255 255 255 / 0.97);
  color-scheme: light;
}
[data-skin="cassette"][data-theme="dark"] {
  --app: #0f1326; --panel: #171c33; --raise: #1d2340; --hover: #252c4d; --ink: #eef1ff; --ink-2: #a9b2d8; --line: #2e365a;
  --accent: #ff6a55; --on-accent: #1b0906; --light: #9fb0ff; --on-light: #0d1540; --field: #0f1326; --marker: #9fb0ff;
  --top-bg: #28397f; --player-bg: #0b0e1d; --tab-bg: rgb(15 19 38 / 0.97); color-scheme: dark;
}
/* Цвета обложек-плиток (как цвета жанров в стриминге); белый текст на них ≥ 4.5:1 */
[data-c="0"] { --c: #d8452f; } [data-c="1"] { --c: #1e7a4f; } [data-c="2"] { --c: #2f5fd0; } [data-c="3"] { --c: #8a3fc0; }
[data-c="4"] { --c: #b3471b; } [data-c="5"] { --c: #0f6e7e; } [data-c="6"] { --c: #a02b6a; } [data-c="7"] { --c: #5a6a12; }

/* ═══ Основа ═══ */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; background: var(--app); overscroll-behavior: none; }
body { margin: 0; background: var(--app); color: var(--ink); font: 400 15px/1.5 var(--f); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
button, a, [role="button"] { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-accent); }
img { display: block; max-width: 100%; }
.ic { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 90; padding: 10px 14px; border-radius: 8px; background: #fff; color: #111; }
.skip:focus { top: 12px; }

/* ═══ Кнопки и мелочи ═══ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px;
  font-weight: 700; font-size: 15px; white-space: nowrap; user-select: none; -webkit-user-select: none;
  transition: transform 120ms cubic-bezier(0.23, 1, 0.32, 1), background-color 160ms ease; }
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn--main { background: var(--accent); color: var(--on-accent); }
.btn--light { background: var(--light); color: var(--on-light); }
.btn--line { box-shadow: inset 0 0 0 1px var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: scale(1.03); } .btn--line:hover { box-shadow: inset 0 0 0 1px var(--ink); } }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 999px; background: var(--raise); font-weight: 700; font-size: 13px; white-space: nowrap; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); }
.icon-btn .ic { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { color: var(--ink); background: var(--hover); } }
.icon-btn .ic--moon { display: none; }
[data-theme="dark"] .icon-btn .ic--sun { display: none; } [data-theme="dark"] .icon-btn .ic--moon { display: block; }
.skin { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--raise); }
.skin button { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
[data-skin="cassette"] .skin [data-skin-pick="cassette"], [data-skin="stream"] .skin [data-skin-pick="stream"] { background: var(--ink); color: var(--panel); }
.avatar { position: relative; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 800; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 800 21px/1 var(--f-head); font-stretch: var(--head-stretch); letter-spacing: -0.02em; }
.logo__mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.logo__mark .ic { width: 16px; height: 16px; }

/* ═══ Оболочка — «Стриминг» (по умолчанию для раскладки) ═══ */
.shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; gap: 8px; height: 100dvh; padding: 8px 8px 0; }
.side { grid-row: 1; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 8px; min-height: 0; }
.side__panel { background: var(--panel); border-radius: var(--r); }
.side__main { padding: 18px 12px 12px; }
.side__main .logo { padding: 0 12px; }
.navlist { display: grid; gap: 2px; margin-top: 14px; }
.navlist__a { display: flex; align-items: center; gap: 16px; padding: 10px 12px; border-radius: 6px; font-weight: 700; color: var(--ink-2); transition: color 160ms ease; }
.navlist__a .ic { width: 24px; height: 24px; }
.navlist__a[aria-current="page"] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .navlist__a:hover { color: var(--ink); } }
.side__acts { display: none; }
.side__lib { padding: 14px 8px; overflow: auto; overscroll-behavior: contain; }
.lib__head { display: flex; align-items: center; gap: 12px; padding: 4px 12px 12px; color: var(--ink-2); font-weight: 700; }
.lib__head .ic { width: 24px; height: 24px; }
.lib__promo { display: grid; gap: 6px; justify-items: start; margin: 0 4px 12px; padding: 16px; border-radius: var(--r); background: var(--raise); }
.lib__promo span { font-size: 13px; color: var(--ink-2); }
.lib__promo .btn { margin-top: 8px; }
.liblist { display: grid; }
.liblist a { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 6px; }
.liblist a b { display: block; font-weight: 600; }
.liblist a small { font-size: 13px; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .liblist a:hover { background: var(--hover); } }
.liblist__art { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--r-cover); color: #fff; }
.liblist__art .ic { width: 22px; height: 22px; }
.liblist__art--0 { background: linear-gradient(135deg, #d8452f, #8a3fc0); } .liblist__art--1 { background: linear-gradient(135deg, #5b3bd6, #a3c4ff); }
.liblist__art--2 { background: #1e7a4f; } .liblist__art--3 { background: #2f5fd0; } .liblist__art--4 { background: #b3471b; } .liblist__art--5 { background: #0f6e7e; }

.stage { grid-row: 1; position: relative; min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; border-radius: var(--r); background: var(--panel); scroll-behavior: smooth; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 12px 24px; background: var(--top-bg); }
.topbar.is-stuck { background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(12px); }
.topbar__end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.logo--m { display: none; }
.v2main { min-height: calc(100% - 60px); padding-bottom: 32px; }

/* ═══ Плеер ═══ */
.player { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr); align-items: center; gap: 16px;
  height: 80px; padding: 0 12px env(safe-area-inset-bottom, 0px); background: var(--player-bg); }
.player__now { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player__cover { width: 56px; height: 56px; border-radius: var(--r-cover); object-fit: cover; flex: none; }
.player__reels { display: none; }
.player__text { display: grid; min-width: 0; }
.player__text b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__text span { font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__like .ic--on, .player__like[aria-pressed="true"] .ic--off { display: none; }
.player__like[aria-pressed="true"] .ic--on { display: block; color: var(--accent); }
/* «В мой плейлист» и «Не нравится» в нижнем плеере (V2Player.likeBtn) — как сердечко: контур / заливка */
.player__save .ic--on, .player__save[aria-pressed="true"] .ic--off, .player__dis .ic--on, .player__dis[aria-pressed="true"] .ic--off { display: none; }
.player__save[aria-pressed="true"] .ic--on, .player__dis[aria-pressed="true"] .ic--on { display: block; color: var(--accent); }
.player__mid { display: grid; justify-items: center; gap: 4px; }
.player__keys { display: flex; align-items: center; gap: 16px; }
.pk { width: 32px; height: 32px; display: grid; place-items: center; color: var(--ink-2); transition: color 160ms ease, transform 120ms ease; }
.pk .ic { width: 18px; height: 18px; }
.pk:active { transform: scale(0.94); }
.pk[aria-pressed="true"]:not(.pk--play) { color: var(--accent); }
.pk--play { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--panel); }
.pk--play .ic { width: 16px; height: 16px; }
.ic--pause, [aria-pressed="true"] > .ic--play { display: none; }
[aria-pressed="true"] > .ic--pause { display: block; }
@media (hover: hover) and (pointer: fine) { .pk:not(.pk--play):hover { color: var(--ink); } .pk--play:hover { transform: scale(1.06); } }
.player__bar { width: 100%; max-width: 620px; display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.player__bar span:first-child { text-align: right; }
.player__end { display: flex; justify-content: flex-end; align-items: center; gap: 8px; color: var(--ink-2); }
.player[data-state="empty"] .player__mid, .player[data-state="empty"] .player__end { opacity: 0.45; pointer-events: none; }
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 16px; margin: 0; background: transparent; cursor: pointer; --fill: 0%; }
.range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) var(--fill), var(--hover) var(--fill)); }
.range::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--ink) var(--fill), var(--hover) var(--fill)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: var(--ink); opacity: 0; }
.range::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--ink); opacity: 0; }
.range:hover::-webkit-slider-thumb, .range:focus-visible::-webkit-slider-thumb { opacity: 1; }
.range:hover::-moz-range-thumb, .range:focus-visible::-moz-range-thumb { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .range:hover::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--accent) var(--fill), var(--hover) var(--fill)); } }
.range--vol { width: 100px; }
.tabs { display: none; }

/* ═══ Оболочка — «Кассета»: шапка-вкладыш сверху, плеер-дека ═══ */
[data-skin="cassette"] .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; gap: 0; padding: 0; }
[data-skin="cassette"] .side { grid-row: 1; display: block; }
[data-skin="cassette"] .side__main { display: flex; align-items: center; gap: 28px; padding: 12px clamp(16px, 3vw, 40px); border-radius: 0; background: var(--top-bg); color: #fff; }
[data-skin="cassette"] .side__main .logo { padding: 0; }
[data-skin="cassette"] .navlist { display: flex; gap: 4px; margin: 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
[data-skin="cassette"] .navlist__a { white-space: nowrap; flex: none; }
[data-skin="cassette"] .navlist__a { gap: 8px; padding: 8px 12px; border-radius: 999px; color: #d9e0ff; font-weight: 600; }
[data-skin="cassette"] .navlist__a .ic { width: 18px; height: 18px; }
[data-skin="cassette"] .navlist__a[aria-current="page"] { background: #fff; color: var(--cobalt); }
@media (hover: hover) and (pointer: fine) { [data-skin="cassette"] .navlist__a:not([aria-current="page"]):hover { color: #fff; background: rgb(255 255 255 / 0.12); } }
[data-skin="cassette"] .side__acts { display: flex; align-items: center; gap: 10px; margin-left: auto; }
[data-skin="cassette"] .side__acts .pill { background: rgb(255 255 255 / 0.14); color: #fff; }
[data-skin="cassette"] .side__lib { display: none; }
[data-skin="cassette"] .stage { grid-row: 2; border-radius: 0; background: var(--app); }
[data-skin="cassette"] .topbar { padding: 10px clamp(16px, 3vw, 40px); background: transparent; }
[data-skin="cassette"] .topbar.is-stuck { background: color-mix(in srgb, var(--app) 92%, transparent); }
[data-skin="cassette"] .topbar .pill--bal, [data-skin="cassette"] .topbar__create { display: none; }
/* Гость (templates/v2/base.html, guest): «Войти» в шапке-вкладыше «Кассеты» уже есть — в верхней строке не дублируем */
[data-skin="cassette"] .topbar .guestbar__in { display: none; }
.lib__promo .lib__login { background: transparent; border: 1px solid var(--line); color: var(--ink); margin-top: 0; }
[data-skin="cassette"] .player { grid-row: 3; height: 84px; color: #eef1fb; --ink: #eef1fb; --ink-2: #a9b1d1; --hover: #3a4056; --panel: #1c1f2a; }
[data-skin="cassette"] .player__cover { border-radius: 6px; }
[data-skin="cassette"] .player__reels { display: flex; gap: 6px; padding: 8px 10px; border-radius: 8px; background: #0b0e1a; }
[data-skin="cassette"] .player__reels i { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(#eef1fb 0 15%, #6e4329 15% 35%, #eef1fb 35% 50%, #6e4329 50% 65%, #eef1fb 65% 80%, #6e4329 80%); }
[data-skin="cassette"] .player__text b { font: 700 16px/1.2 var(--f-title); }
[data-skin="cassette"] .pk--play { width: 48px; height: 38px; border-radius: 8px; background: linear-gradient(#e2442f, #d02f1b); color: #fff; box-shadow: 0 3px 0 #10131c; }
[data-skin="cassette"] .pk--play[aria-pressed="true"] { transform: translateY(2px); box-shadow: 0 1px 0 #10131c; }
[data-skin="cassette"] .range::-webkit-slider-runnable-track { height: 6px; background: linear-gradient(90deg, #d9c2b0 var(--fill), var(--tape) var(--fill)); }
[data-skin="cassette"] .range::-moz-range-track { height: 6px; background: linear-gradient(90deg, #d9c2b0 var(--fill), var(--tape) var(--fill)); }
[data-skin="cassette"] .range::-webkit-slider-thumb { opacity: 1; width: 14px; height: 14px; margin-top: -4px; background: #fff; border: 3px solid var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  [data-skin="cassette"] body.is-playing .player__reels i { animation: reel 1.6s linear infinite; }
  @keyframes reel { to { transform: rotate(360deg); } }
}

/* ═══ Содержимое разделов: общие детали ═══ */
.wrap { padding: 8px 24px 0; }
[data-skin="cassette"] .wrap { max-width: 1320px; margin: 0 auto; padding: 8px clamp(16px, 3vw, 40px) 0; }
.h1 { margin: 0; font: 800 clamp(28px, 3.4vw, 44px)/1.05 var(--f-head); font-stretch: var(--head-stretch); letter-spacing: var(--head-track); text-wrap: balance; }
.sec { margin-top: 36px; }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.h2 { margin: 0; font: 800 22px/1.2 var(--f-head); font-stretch: var(--head-stretch); letter-spacing: var(--head-track); }
.sec__more { font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .sec__more:hover { color: var(--ink); text-decoration: underline; } }
.muted { color: var(--ink-2); }

/* Полка карточек (горизонтальная лента, как у стриминга) */
.shelf { list-style: none; margin: 0 -12px; padding: 0 12px 6px; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 16%, 200px); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.card { position: relative; display: grid; gap: 4px; align-content: start; padding: 10px; border-radius: var(--r); scroll-snap-align: start; text-align: left; transition: background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) { .card:hover { background: var(--raise); } }
.card__art { position: relative; display: block; margin-bottom: 6px; }
.card__art img, .card__ph { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-cover); background: var(--raise); box-shadow: var(--shadow); }
.card__ph { display: grid; place-items: center; color: #fff; background: var(--c, var(--raise)); font: 800 44px/1 var(--f-head); }
.card__play { position: absolute; right: 8px; bottom: 8px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 16px -4px rgb(0 0 0 / 0.5); opacity: 0; transform: translateY(8px);
  transition: opacity 200ms ease, transform 200ms cubic-bezier(0.23, 1, 0.32, 1); }
.card__play .ic { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .card:hover .card__play, .card:focus-visible .card__play { opacity: 1; transform: none; } }
.card[aria-pressed="true"] .card__play { opacity: 1; transform: none; }
.card b { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-skin="cassette"] .card b { font: 700 16px/1.25 var(--f-title); }
.card small { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-skin="cassette"] .card { background: var(--panel); box-shadow: var(--shadow); }

/* Строки треков (плейлист) */
.tracks { list-style: none; margin: 0; padding: 0; counter-reset: tr; }
.tr { width: 100%; display: grid; grid-template-columns: 32px minmax(0, 4fr) minmax(0, 2fr) 70px; gap: 14px; align-items: center; height: 56px; padding: 0 12px;
  border-radius: 6px; text-align: left; font-size: 14px; color: var(--ink-2); }
.tr__n { display: grid; place-items: center; font-variant-numeric: tabular-nums; font-size: 15px; }
.tr__main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tr__main img { width: 40px; height: 40px; border-radius: var(--r-cover); object-fit: cover; flex: none; background: var(--raise); }
.tr__main span { display: grid; min-width: 0; }
.tr__main b { color: var(--ink); font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-skin="cassette"] .tr__main b { font: 600 15px/1.25 var(--f-title); }
.tr__main small, .tr__style { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr__plays { text-align: right; font-variant-numeric: tabular-nums; }
.tr .ic--play { display: none; width: 14px; height: 14px; color: var(--ink); }
.eq { display: none; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; height: 100%; background: var(--accent); transform-origin: bottom; animation: eq 700ms ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-duration: 480ms; } .eq i:nth-child(3) { animation-duration: 900ms; }
@keyframes eq { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }
@media (hover: hover) and (pointer: fine) {
  .tr:hover { background: var(--hover); }
  .tr:hover .tr__num { display: none; } .tr:hover .ic--play { display: block; }
}
.tr[aria-pressed="true"] .tr__main b { color: var(--accent); }
.tr[aria-pressed="true"] .tr__num, .tr[aria-pressed="true"] .ic--play { display: none; }
.tr[aria-pressed="true"] .eq { display: flex; }

/* Плитки (поводы, категории) */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.tile { position: relative; overflow: hidden; display: block; aspect-ratio: 1.7; padding: 14px 16px; border-radius: var(--r); background: var(--c); color: #fff; }
.tile span { position: relative; z-index: 1; display: block; max-width: 72%; font: 800 19px/1.15 var(--f-head); font-stretch: var(--head-stretch); }
.tile img { position: absolute; right: -14px; bottom: -6px; width: 42%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; transform: rotate(25deg); box-shadow: 0 2px 8px rgb(0 0 0 / 0.35); }
@media (hover: hover) and (pointer: fine) { .tile { transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1); } .tile:hover { transform: scale(1.02); } }

/* Пустое состояние */
.empty { display: grid; justify-items: start; gap: 10px; padding: 28px; border-radius: var(--r); background: var(--raise); }
.empty b { font: 800 20px/1.2 var(--f-head); font-stretch: var(--head-stretch); }

/* ═══ Телефон и планшет: меню — внизу, мини-плеер над ним ═══ */
@media (max-width: 900px) {
  .shell, [data-skin="cassette"] .shell { display: block; height: auto; padding: 0; }
  .side { display: none !important; }
  .stage { overflow: visible; border-radius: 0; min-height: 100dvh; padding-bottom: calc(132px + env(safe-area-inset-bottom, 0px)); }
  .topbar { padding: 10px 16px; }
  [data-skin="cassette"] .topbar { background: var(--top-bg); color: #fff; }
  [data-skin="cassette"] .topbar .skin { background: rgb(255 255 255 / 0.14); }
  [data-skin="cassette"] .topbar .skin button { color: #dfe4fb; }
  [data-skin="cassette"] .topbar .skin [data-skin-pick="cassette"] { background: #fff; color: var(--cobalt); }
  [data-skin="cassette"] .topbar .icon-btn { color: #fff; }
  .logo--m { display: inline-flex; font-size: 19px; }
  .topbar .skin, .topbar__create, .topbar .pill--bal { display: none; }
  [data-skin="cassette"] .topbar .guestbar__in { display: inline-flex; background: rgb(255 255 255 / 0.14); color: #fff; }
  .topbar .guestbar__reg { display: none; }   /* телефон: регистрация — через «Создать» внизу, в строке только «Войти» */
  .wrap, [data-skin="cassette"] .wrap { padding: 4px 16px 0; }
  .player { position: fixed; left: 8px; right: 8px; bottom: calc(64px + env(safe-area-inset-bottom, 0px)); z-index: 30; height: 60px; padding: 0 8px;
    grid-template-columns: minmax(0, 1fr) auto; gap: 8px; border-radius: 10px; background: var(--raise); box-shadow: 0 10px 30px -10px rgb(0 0 0 / 0.5); }
  [data-skin="cassette"] .player { background: #1c1f2a; }
  .player[data-state="empty"] { display: none; }
  .player__cover { width: 44px; height: 44px; }
  .player__reels { display: none !important; }
  .player__mid { display: contents; }
  .player__keys { gap: 4px; }
  .player__keys .pk:not(.pk--play):not([data-act="next"]) { display: none; }
  .player__bar { position: absolute; left: 10px; right: 10px; bottom: 0; max-width: none; grid-template-columns: minmax(0, 1fr); height: 4px; }
  .player__bar span { display: none; }
  .player__bar .range { height: 4px; }
  .player__end { display: none; }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-template-columns: repeat(5, 1fr);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--tab-bg); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .tabs__a { display: grid; justify-items: center; gap: 2px; padding: 4px 0; font-size: 11px; font-weight: 600; color: var(--ink-2); }
  .tabs__a .ic { width: 24px; height: 24px; }
  .tabs__a[aria-current="page"] { color: var(--ink); }
  [data-skin="cassette"] .tabs__a[aria-current="page"] { color: var(--accent); }
  .shelf { grid-auto-columns: 42%; }
  .tr { grid-template-columns: minmax(0, 1fr) auto; height: 60px; padding: 0 4px; }
  .tr__n, .tr__style { display: none; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile span { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .stage { scroll-behavior: auto; }
  .eq i { animation: none; transform: scaleY(0.7); }
  .btn, .card, .card__play, .tile, .pk { transition: none; }
}

/* ═══ Главная ═══ */
.home { position: relative; }
.home__glow { position: absolute; inset: 0 0 auto; height: 320px; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 22%, var(--panel)) 0, var(--panel) 100%); }
[data-skin="cassette"] .home__glow { display: none; }
.home > .wrap { position: relative; }
/* Главная выводит заметную ссылку на приложение только в мобильной раскладке. */
.home__download { display: none; }
@media (max-width: 760px) {
  .home__download { display: flex; width: 100%; min-height: 48px; margin-bottom: 16px; }
}
.home__hello { margin: 8px 0 20px; }
/* Быстрая сетка последних песен (как верхняя сетка у Spotify) */
.quick { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.quick__a { position: relative; width: 100%; display: flex; align-items: center; gap: 12px; height: 64px; padding-right: 56px; overflow: hidden;
  border-radius: 6px; background: color-mix(in srgb, var(--ink) 8%, transparent); text-align: left; transition: background-color 200ms ease; }
[data-skin="cassette"] .quick__a { background: var(--panel); box-shadow: var(--shadow); border-radius: 10px; }
.quick__a img, .quick__ph { width: 64px; height: 64px; object-fit: cover; flex: none; }
.quick__ph { display: grid; place-items: center; background: var(--c, var(--raise)); color: #fff; font-size: 24px; }
.quick__ph .ic { width: 26px; height: 26px; color: var(--ink); }
.quick__a b { min-width: 0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
[data-skin="cassette"] .quick__a b { font: 700 15px/1.25 var(--f-title); }
.quick__play { position: absolute; right: 10px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  opacity: 0; transition: opacity 200ms ease; }
.quick__play .ic { width: 14px; height: 14px; }
.quick__play .eq { display: none; } .quick__play .eq i { background: var(--on-accent); }
@media (hover: hover) and (pointer: fine) { .quick__a:hover { background: color-mix(in srgb, var(--ink) 16%, transparent); } .quick__a:hover .quick__play { opacity: 1; } }
.quick__a[aria-pressed="true"] .quick__play { opacity: 1; }
.quick__a[aria-pressed="true"] .quick__play .ic--play { display: none; }
.quick__a[aria-pressed="true"] .quick__play .eq { display: flex; }
.quick__a[aria-pressed="true"] b { color: var(--accent); }
.home__first { margin-top: 4px; }
/* Плашка незаконченного мастера / идущей генерации */
.draft { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 14px 16px; border-radius: var(--r); background: var(--raise); }
.draft__ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--accent); color: var(--on-accent); flex: none; }
.draft--generating .draft__ic { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.55; } }
.draft__text { display: grid; min-width: 0; flex: 1; }
.draft__text small { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 900px) {
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick__a { height: 56px; padding-right: 8px; }
  .quick__a img, .quick__ph { width: 56px; height: 56px; }
  .quick__play { display: none; }
}
@media (prefers-reduced-motion: reduce) { .draft--generating .draft__ic { animation: none; } }

/* Метка версии интерфейса (правило «версия у каждой правки») */
.ver { margin: 24px 24px 16px; font-size: 11px; color: var(--ink-2); }

/* ═══ «Создать» — главное действие, яркое везде (владелец 26.09.2026) ═══ */
/* Меню «Стриминга»: первая строка — большая красная кнопка во всю ширину */
.navlist__a--create { order: -1; justify-content: center; gap: 10px; margin: 4px 0 10px; padding: 12px 16px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-weight: 800; box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1); }
.navlist__a--create[aria-current="page"] { color: var(--on-accent); }
.navlist__a--create:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .navlist__a--create:hover { color: var(--on-accent); transform: scale(1.03); } }
/* В шапке «Кассеты» — красная пилюля среди разделов */
[data-skin="cassette"] .navlist__a--create { order: 0; margin: 0 6px; padding: 8px 16px; background: var(--accent); color: #fff; font-weight: 800; box-shadow: 0 6px 14px -6px rgb(0 0 0 / 0.45); }
[data-skin="cassette"] .navlist__a--create[aria-current="page"] { background: #fff; color: var(--accent); }
[data-skin="cassette"] .side__acts .btn--main { display: none; }   /* дубль: кнопка уже в разделах */
.topbar__create .ic { width: 16px; height: 16px; }
/* Главная: большая плашка сразу под приветствием */
.make { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 18px; padding: 22px 24px;
  border-radius: var(--r); background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 88%, #000) 0, var(--accent) 55%, color-mix(in srgb, var(--accent) 70%, #ffb347) 100%);
  color: #fff; box-shadow: 0 18px 40px -22px color-mix(in srgb, var(--accent) 80%, transparent); }
[data-skin="cassette"] .make { background: linear-gradient(115deg, #2b3d96 0 58%, #d02f1b 58% 61%, #3446a3 61%); }
.make__text { display: grid; gap: 4px; min-width: 0; }
.make__text b { font: 800 clamp(20px, 2.2vw, 28px)/1.1 var(--f-head); font-stretch: var(--head-stretch); letter-spacing: var(--head-track); }
.make__text small { font-size: 14px; opacity: 0.92; max-width: 52ch; }
.make__btn { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 48px; padding: 0 24px; border-radius: 999px; background: #fff; color: #111;
  font-weight: 800; font-size: 16px; transition: transform 140ms cubic-bezier(0.23, 1, 0.32, 1); }
[data-skin="cassette"] .make__btn { background: #d02f1b; color: #fff; box-shadow: 0 4px 0 #7a1a0e; }
.make__btn .ic { width: 18px; height: 18px; }
/* Первый экран гостя (templates/v2/home.html, h.guest): «Создать песню» → регистрация и рядом «Войти» */
.make__acts { display: flex; align-items: center; gap: 10px; flex: none; flex-wrap: wrap; }
/* Цена песни под кнопками гостевого блока (templates/v2/home.html) — на всю ширину ряда кнопок */
/* «Песня уже есть на Suno? Добавить по коду» — справа в блоке «Создать» (templates/v2/home.html, 27.09.2026) */
.make__suno { position: relative; z-index: 1; flex: none; display: grid; gap: 2px; margin-left: auto; padding: 12px 18px; border-radius: 16px;
  border: 2px dashed rgb(255 255 255 / 0.45); color: #fff; text-decoration: none; transition: background-color 150ms ease, border-color 150ms ease; }
.make__suno small { font-size: 13px; opacity: 0.85; }
.make__suno b { display: inline-flex; align-items: center; gap: 4px; font-size: 16px; font-weight: 800; }
.make__suno .ic { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .make__suno:hover { background: rgb(255 255 255 / 0.12); border-color: #fff; } }
@media (max-width: 900px) { .make__suno { margin-left: 0; } }
.make__price { flex-basis: 100%; font-size: 13px; color: rgb(255 255 255 / 0.85); }
.make__price b { color: #fff; font-weight: 800; }
.make__login { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid rgb(255 255 255 / 0.7); color: #fff; font-weight: 800; font-size: 16px;
  transition: background-color 160ms ease; }
@media (hover: hover) and (pointer: fine) { .make__login:hover { background: rgb(255 255 255 / 0.14); } .make--guest .make__btn:hover { transform: scale(1.05); } }
.make--guest .make__btn:active { transform: scale(0.97); }
/* Поток треков на главной — вторая по важности ссылка под «Создать песню» */
.feedlink { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 14px 18px; border-radius: var(--r); border: 1px solid var(--line); color: var(--ink); transition: border-color 160ms ease; }
.feedlink__ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--on-accent); }
.feedlink__ic .ic { width: 22px; height: 22px; }
.feedlink__text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.feedlink__text b { font-weight: 800; }
.feedlink__text small { font-size: 13px; color: var(--ink-2); }
.feedlink__go { flex: none; width: 18px; height: 18px; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .feedlink:hover { border-color: var(--ink-2); } }
.make:active .make__btn { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .make:hover .make__btn { transform: scale(1.05); } }
@media (max-width: 900px) {
  .make { flex-direction: column; align-items: stretch; padding: 18px; }
  .make__btn { justify-content: center; }
  .make__acts { flex-direction: column; align-items: stretch; } .make__login { justify-content: center; }
  /* Телефон: «Создать» — крупная красная круглая кнопка по центру нижней панели, приподнятая */
  .tabs__a--create { position: relative; color: var(--ink) !important; }
  .tabs__a--create .ic { width: 52px; height: 52px; margin-top: -22px; padding: 13px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
    box-shadow: 0 8px 20px -6px color-mix(in srgb, var(--accent) 80%, transparent), 0 0 0 4px var(--app); }
  [data-skin="cassette"] .tabs__a--create .ic { color: #fff; }
}

/* ═══ «Моя музыка» ═══ */
.libp__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 16px; }
.lib__tabs { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.lib__tabs::-webkit-scrollbar { display: none; }
.lib__tab { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 34px; padding: 0 14px; border-radius: 999px; background: var(--raise); font-size: 14px; font-weight: 700; white-space: nowrap; }
.lib__tab .ic { width: 16px; height: 16px; }
.lib__tab[aria-current="page"] { background: var(--ink); color: var(--panel); }
[data-skin="cassette"] .lib__tab[aria-current="page"] { background: var(--cobalt); color: #fff; }
.lib__tab--out { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .lib__tab:not([aria-current="page"]):hover { background: var(--hover); color: var(--ink); } }
.lib__tabs-sep { flex: none; width: 1px; height: 22px; margin: 0 4px; background: var(--line); }
.lib__tools { display: flex; align-items: center; gap: 12px; margin: 16px 0 8px; flex-wrap: wrap; }
.lib__search { position: relative; flex: 1 1 260px; max-width: 420px; }
.lib__search .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-2); pointer-events: none; }
.lib__search input { width: 100%; min-height: 40px; padding: 0 12px 0 38px; border-radius: 999px; border: 1px solid transparent; background: var(--raise); color: var(--ink); font: 400 16px/1 var(--f); }
.lib__search input:focus { outline: none; border-color: var(--ink-2); }
.lib__count { font-size: 13px; margin-left: auto; }
.lib__note { margin: 4px 0 8px; font-size: 13px; }
.tr-head { display: grid; grid-template-columns: 32px minmax(0, 4fr) minmax(0, 2fr) 96px 36px; gap: 14px; padding: 0 12px 8px; margin-bottom: 6px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) 36px; align-items: center; gap: 0; border-radius: 6px; }
.row .tr { grid-template-columns: 32px minmax(0, 4fr) minmax(0, 2fr) 96px; }
.row .tr:disabled { cursor: default; opacity: 0.8; }
.tr__date { font-variant-numeric: tabular-nums; font-size: 13px; }
.tr__ph { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--r-cover); background: var(--raise); flex: none; }
.row__more { opacity: 0.55; }
@media (hover: hover) and (pointer: fine) { .row:hover { background: var(--hover); } .row:hover .tr { background: transparent; } .row:hover .row__more { opacity: 1; } }
.lib__albums { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.lib__albums li { position: relative; }
.alb__more { position: absolute; top: 14px; right: 14px; background: rgb(0 0 0 / 0.45); color: #fff; opacity: 0; }
@media (hover: hover) and (pointer: fine) { .lib__albums li:hover .alb__more { opacity: 1; } }
.lib__state { margin-top: 8px; }
.skel { height: 56px; margin: 6px 0; border-radius: 6px; background: linear-gradient(90deg, var(--raise) 0, var(--hover) 50%, var(--raise) 100%); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ═══ Окно-шторка (V2Sheet) и меню действий ═══ */
.sheet { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; }
.sheet__scrim { position: absolute; inset: 0; background: rgb(0 0 0 / 0.5); opacity: 0; transition: opacity 200ms ease; }
.sheet__box { position: relative; width: min(420px, calc(100% - 32px)); max-height: min(80dvh, 720px); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 16px; background: var(--panel); color: var(--ink); box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.6);
  opacity: 0; transform: scale(0.96); transition: opacity 200ms ease, transform 220ms cubic-bezier(0.23, 1, 0.32, 1); }
.sheet--wide .sheet__box { width: min(560px, calc(100% - 32px)); }
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet.is-open .sheet__box { opacity: 1; transform: none; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 6px 20px; }
.sheet__title { font: 800 18px/1.2 var(--f-head); font-stretch: var(--head-stretch); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet__body { padding: 6px 20px 20px; overflow: auto; overscroll-behavior: contain; }
.sheet__text { margin: 0 0 16px; color: var(--ink-2); white-space: pre-line; }   /* абзацы \n\n в тексте подтверждения */
.sheet__acts { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.btn--danger { background: #d02f1b; color: #fff; }
.menu { display: grid; }
.menu__song { display: flex; align-items: center; gap: 12px; padding: 4px 0 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.menu__song img { width: 48px; height: 48px; border-radius: var(--r-cover); object-fit: cover; }
.menu__song span { display: grid; min-width: 0; }
.menu__song b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu__song small { color: var(--ink-2); font-size: 13px; }
.menu__item { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 46px; padding: 0 8px; border-radius: 8px; text-align: left; font-weight: 600; }
.menu__item .ic { width: 20px; height: 20px; color: var(--ink-2); }
.menu__item--danger, .menu__item--danger .ic { color: #e5533f; }
@media (hover: hover) and (pointer: fine) { .menu__item:hover { background: var(--hover); } }
.lyrics { margin: 0; white-space: pre-wrap; font: 400 16px/1.6 var(--f); }
.checks { display: grid; gap: 2px; margin-bottom: 14px; }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 44px; padding: 0 6px; border-radius: 8px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .check:hover { background: var(--hover); } }
.inline-form { display: flex; gap: 8px; }
.inline-form input, .share-link input, .fld input, .fld textarea, .fld select { flex: 1; min-width: 0; min-height: 42px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--field); color: var(--ink); font: 400 16px/1.3 var(--f); }
.fld textarea { padding: 10px 12px; resize: vertical; }
.inline-form input:focus, .fld input:focus, .fld textarea:focus, .fld select:focus { outline: none; border-color: var(--accent); }
.share-link { display: flex; gap: 8px; margin-bottom: 14px; }
.share-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.share-btn { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; border-radius: 10px; background: var(--raise); font-weight: 600; font-size: 14px; }
.share-btn .ic { width: 20px; height: 20px; }
.share-btn__ic { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; color: #fff; font-size: 10px; font-weight: 800; flex: none; }
@media (hover: hover) and (pointer: fine) { .share-btn:hover { background: var(--hover); } }
.form-sheet { display: grid; gap: 12px; }
.fld { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cover-edit { display: flex; align-items: center; gap: 14px; }
.cover-edit img { width: 96px; height: 96px; border-radius: var(--r-cover); object-fit: cover; background: var(--raise); }
.cover-edit label { cursor: pointer; }

@media (max-width: 900px) {
  .libp__head .btn { display: none; }
  /* …кроме «Добавить из Suno» (27.09.2026): «Создать песню» на телефоне — красная кнопка нижней панели, а загрузки
     с Suno больше нигде нет */
  .libp__head .btn[href$="/songs/import"] { display: inline-flex; }
  .tr-head { display: none; }
  .row .tr { grid-template-columns: minmax(0, 1fr); }
  .row .tr__n, .row .tr__style, .row .tr__date { display: none; }
  .row__more { opacity: 1; }
  .lib__albums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alb__more { opacity: 1; }
  /* Шторка выезжает снизу */
  .sheet { place-items: end stretch; }
  .sheet__box, .sheet--wide .sheet__box { width: 100%; max-height: 88dvh; border-radius: 18px 18px 0 0; transform: translateY(24px); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .fld-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } .sheet__box, .sheet__scrim { transition: none; } }

/* Плеер: «Текст» и «⋯» рядом с лайком; на телефоне остаётся только «⋯» */
.player__lyrics, .player__more { flex: none; }
@media (max-width: 900px) {
  .player__like, .player__lyrics, .player__save, .player__dis { display: none !important; }
  .player__more { order: 5; }
}

/* Кнопка «⋯» у песни, альбома и в плеере — заметная (владелец 26.09.2026: «сделай кнопки меню
   повыразительнее»): круг с фоном, крупная иконка, при наведении — цвет дизайна */
.row__more, .alb__more, .player__more { width: 36px; height: 36px; opacity: 1 !important; border-radius: 50%;
  background: var(--raise); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 160ms ease, color 160ms ease, transform 120ms cubic-bezier(0.23, 1, 0.32, 1); }
.row__more .ic, .alb__more .ic, .player__more .ic { width: 22px; height: 22px; }
.row__more:active, .alb__more:active, .player__more:active { transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) {
  .row__more:hover, .alb__more:hover, .player__more:hover { background: var(--accent); color: var(--on-accent); box-shadow: none; }
}
.alb__more { background: rgb(0 0 0 / 0.55); color: #fff; box-shadow: none; }
[data-skin="cassette"] .player__more { background: #2a2f3f; color: #eef1fb; box-shadow: none; }
@media (max-width: 900px) { .row__more { width: 40px; height: 40px; } }

/* «⋯» — цветная (второй заход по просьбе владельца): фон с оттенком акцента, иконка цветом дизайна */
.row__more, .player__more { background: color-mix(in srgb, var(--accent) 14%, var(--panel)); color: var(--accent); box-shadow: none; }
[data-skin="cassette"] .row__more { background: color-mix(in srgb, var(--cobalt) 12%, var(--panel)); color: var(--cobalt); }
[data-skin="cassette"][data-theme="dark"] .row__more { color: #9fb0ff; }
[data-skin="cassette"] .player__more { background: #3a2a30; color: #ff8a78; }

/* Плеер: «Текст» — пилюля с подписью; кнопки видны всегда, без песни — приглушены */
.player__lyrics { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 32px; padding: 0 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: 13px; font-weight: 700;
  transition: background-color 160ms ease, color 160ms ease, transform 120ms ease; }
.player__lyrics .ic { width: 16px; height: 16px; }
.player__lyrics:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) { .player__lyrics:hover { background: var(--accent); color: var(--on-accent); } }
[data-skin="cassette"] .player__lyrics { background: #3a2a30; color: #ff8a78; }
.player[data-state="empty"] .player__lyrics, .player[data-state="empty"] .player__more { opacity: 0.45; }

/* Плеер: левой части больше места, чтобы название не обрезалось; катушки «Кассеты» — только на широких экранах */
.player { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.6fr) minmax(0, 0.75fr); }
@media (max-width: 1380px) { [data-skin="cassette"] .player__reels { display: none; } }
@media (max-width: 900px) { .player { grid-template-columns: minmax(0, 1fr) auto; } }

/* ═══ Поиск ═══ */
.srch__box { position: relative; display: flex; align-items: center; max-width: 560px; margin: 8px 0 8px; }
.srch__box > .ic { position: absolute; left: 16px; width: 22px; height: 22px; color: var(--ink-2); pointer-events: none; }
.srch__box input { width: 100%; min-height: 52px; padding: 0 48px 0 50px; border-radius: 999px; border: 2px solid transparent; background: var(--raise); color: var(--ink); font: 500 17px/1 var(--f); }
.srch__box input:focus { outline: none; border-color: var(--ink); }
.srch__box input::-webkit-search-cancel-button { display: none; }
.srch__box .icon-btn { position: absolute; right: 8px; }
button.tile { width: 100%; text-align: left; border: 0; cursor: pointer; }
.srch__top { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 24px; margin-top: 24px; }
.srch__top .h2 { margin-bottom: 12px; }
.srch__best { position: relative; width: 100%; display: grid; justify-items: start; gap: 8px; padding: 20px; border-radius: var(--r); background: var(--raise); text-align: left; transition: background-color 200ms ease; }
.srch__best img, .srch__best .card__ph { width: 96px; height: 96px; border-radius: var(--r-cover); object-fit: cover; box-shadow: var(--shadow); font-size: 36px; }
.srch__best b { font: 800 28px/1.1 var(--f-head); font-stretch: var(--head-stretch); letter-spacing: var(--head-track); }
.srch__best small { color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .srch__best:hover { background: var(--hover); } .srch__best:hover .card__play { opacity: 1; transform: none; } }
.srch__best[aria-pressed="true"] .card__play { opacity: 1; transform: none; }
.srch__top .row .tr { grid-template-columns: 32px minmax(0, 4fr) minmax(0, 2fr); }
.srch__top .tr__date { display: none; }
.people { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: clamp(130px, 14%, 170px); gap: 12px; overflow-x: auto; scrollbar-width: none; }
.people a { display: grid; justify-items: center; gap: 4px; padding: 12px; border-radius: var(--r); text-align: center; }
@media (hover: hover) and (pointer: fine) { .people a:hover { background: var(--raise); } }
.people__av { width: 100%; aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 800 40px/1 var(--f-head); box-shadow: var(--shadow); }
.people__av img { width: 100%; height: 100%; object-fit: cover; }
.people b { font-weight: 700; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.people small { color: var(--ink-2); font-size: 13px; }
.pics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pics img { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; border-radius: var(--r-cover); }
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.posts a { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 8px; }
@media (hover: hover) and (pointer: fine) { .posts a:hover { background: var(--raise); } }
@media (max-width: 900px) {
  .srch__top { grid-template-columns: minmax(0, 1fr); }
  .srch__top .row .tr { grid-template-columns: minmax(0, 1fr); }
  .people { grid-auto-columns: 38%; }
}

/* ═══ Плеер на весь экран (V2FullPlayer, static/js/v2/fullplayer.js) ═══
   Всегда тёмный на размытой обложке — как «Сейчас играет» у стриминговых сервисов; токены
   переопределены внутри, чтобы общие .pk и .range брали светлые цвета. */
html.is-fp, html.is-fp body { overflow: hidden; }
.player__cover, .player__text, .player__reels { cursor: pointer; }
.fp { --ink: #fff; --ink-2: rgb(255 255 255 / 0.68); --hover: rgb(255 255 255 / 0.2); --panel: #0d0d10; --line: rgb(255 255 255 / 0.14); --raise: rgb(255 255 255 / 0.08);
  position: fixed; inset: 0; z-index: 55; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); color: var(--ink); background: #0d0d10;
  opacity: 0; transform: translateY(24px); transition: opacity 260ms ease, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.fp[hidden] { display: none; }
.fp.is-open { opacity: 1; transform: none; }
.fp__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(100% 70% at 30% 10%, #3a2a55, #0d0d10 70%); }
.fp__bg img { position: absolute; inset: -12%; width: 124%; height: 124%; object-fit: cover; filter: blur(70px) saturate(1.5) brightness(0.5); }
.fp__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(0 0 0 / 0.1), rgb(0 0 0 / 0.55)); }
.fp__main { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto auto auto; justify-items: center; gap: 14px; padding: calc(14px + env(safe-area-inset-top, 0px)) 32px calc(22px + env(safe-area-inset-bottom, 0px)); }
.fp__main > * { width: min(100%, 560px); }
.fp__top { display: flex; align-items: center; justify-content: space-between; }
.fp__from { font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.fp .icon-btn { width: 42px; height: 42px; color: #fff; background: rgb(255 255 255 / 0.08); }
@media (hover: hover) and (pointer: fine) { .fp .icon-btn:hover { background: rgb(255 255 255 / 0.18); } }
.fp__close .ic { transform: rotate(90deg); }
.fp__art { position: relative; align-self: center; justify-self: center; width: auto; height: min(100%, 520px); max-width: 100%; aspect-ratio: 1; min-height: 160px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #5b3fd0, #d8452f); box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.7); transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms; }
.fp:not(.is-playing) .fp__art { transform: scale(0.94); }
.fp__art img { width: 100%; height: 100%; object-fit: cover; }
.fp__ph { position: absolute; inset: 0; display: grid; place-items: center; font: 800 96px/1 var(--f-head); color: rgb(255 255 255 / 0.85); }
.fp__info { display: flex; align-items: center; gap: 12px; }
.fp__names { flex: 1; min-width: 0; }
.fp__names h2 { margin: 0; font: 800 clamp(22px, 2.4vw, 30px)/1.15 var(--f-title); letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp__names p { margin: 4px 0 0; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp__like[aria-pressed="true"] { color: var(--accent); }
.fp__like .ic--on, .fp__like[aria-pressed="true"] .ic--off { display: none; }
.fp__like[aria-pressed="true"] .ic--on { display: block; }
.fp__bar { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; font-size: 12px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.fp__bar .range { grid-column: 1 / -1; height: 20px; }
.fp__bar .range::-webkit-slider-thumb { opacity: 1; }
.fp__bar .range::-moz-range-thumb { opacity: 1; }
.fp__bar span:last-child { text-align: right; }
.fp__keys { display: flex; align-items: center; justify-content: space-between; max-width: 400px; }
.fp .pk { width: 48px; height: 48px; }
.fp .pk .ic { width: 24px; height: 24px; }
.fp .pk--play, [data-skin] .fp .pk--play { width: 68px; height: 68px; border-radius: 50%; background: #fff; color: #0d0d10; box-shadow: 0 10px 30px rgb(0 0 0 / 0.4); }
.fp .pk--play .ic { width: 28px; height: 28px; }
.fp__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fp__pill { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: rgb(255 255 255 / 0.1); color: #fff; font-weight: 700; font-size: 13px; }
@media (hover: hover) and (pointer: fine) { .fp__pill:hover { background: rgb(255 255 255 / 0.2); } }
.fp__vol { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.fp__vol .range { width: 140px; }
.fp__side { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); padding: calc(14px + env(safe-area-inset-top, 0px)) 0 0; background: rgb(0 0 0 / 0.32); backdrop-filter: blur(24px); border-left: 1px solid var(--line); }
.fp__tabs { display: flex; align-items: center; gap: 6px; padding: 0 16px 12px; }
.fp__tab { min-height: 36px; padding: 0 16px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--ink-2); }
.fp__tab[aria-selected="true"] { background: #fff; color: #0d0d10; }
.fp__side-x { margin-left: auto; display: none; }
.fp__queue { list-style: none; margin: 0; padding: 0 8px 24px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.fp__queue[hidden], .fp__lyrics[hidden] { display: none; }
.fpq { width: 100%; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; text-align: left; }
@media (hover: hover) and (pointer: fine) { .fpq:hover { background: rgb(255 255 255 / 0.08); } }
.fpq[aria-current="true"] { background: rgb(255 255 255 / 0.12); }
.fpq[aria-current="true"] b { color: var(--accent); }
.fpq__art { position: relative; flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 6px; overflow: hidden; background: rgb(255 255 255 / 0.1); }
.fpq__art img { width: 100%; height: 100%; object-fit: cover; }
.fpq__art .eq { position: absolute; inset: 0; justify-content: center; align-items: center; background: rgb(0 0 0 / 0.5); height: auto; }
.fpq__art .eq i { height: 14px; }
.fp.is-playing .fpq[aria-current="true"] .eq { display: flex; }
.fpq__t { display: grid; min-width: 0; }
.fpq__t b { font: 700 15px/1.25 var(--f-title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fpq__t small { color: var(--ink-2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp__empty { padding: 16px; }
.fp__lyrics { margin: 0; padding: 4px 24px 40px; overflow-y: auto; overscroll-behavior: contain; white-space: pre-wrap; font: 700 18px/1.6 var(--f); color: rgb(255 255 255 / 0.85); }
/* Широкий экран: панель всегда видна, кнопки «Текст/Далее» внизу только переключают вкладку */
@media (min-width: 901px) { .fp__pill { display: none; } .fp__foot { justify-content: flex-end; } }
/* Телефон и узкое окно: одна колонка, очередь/текст выезжают снизу */
@media (max-width: 900px) {
  .fp { grid-template-columns: minmax(0, 1fr); }
  .fp__main { padding-inline: 20px; gap: 12px; }
  .fp__vol { display: none; }
  .fp__side { position: absolute; left: 0; right: 0; bottom: 0; height: 78%; border-left: 0; border-radius: 18px 18px 0 0; background: rgb(18 18 22 / 0.94);
    transform: translateY(102%); transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .fp.is-side .fp__side { transform: none; }
  .fp__side-x { display: grid; }
}
@media (prefers-reduced-motion: reduce) { .fp, .fp__art, .fp__side { transition: none; } }

/* Радио в эфире (V2Player.show ставит html.is-radio): перемотки и переключения песен нет —
   полоса только показывает ход песни (владелец 26.09.2026: «у радио не должно быть перемотки») */
html.is-radio #pSeek, html.is-radio [data-fp-seek] { pointer-events: none; }
html.is-radio #pSeek::-webkit-slider-thumb, html.is-radio [data-fp-seek]::-webkit-slider-thumb { opacity: 0 !important; }
html.is-radio #pSeek::-moz-range-thumb, html.is-radio [data-fp-seek]::-moz-range-thumb { opacity: 0 !important; }
html.is-radio [data-act="prev"], html.is-radio [data-act="next"], html.is-radio [data-act="shuffle"], html.is-radio [data-act="repeat"] { visibility: hidden; pointer-events: none; }
.fp__sub { padding: 14px 8px 6px; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); list-style: none; }
.fpq__row { display: flex; align-items: center; gap: 4px; }
.fpq__row .fpq { flex: 1; min-width: 0; }
.fpq__play { flex: none; }

/* ═══ Студии «Музыка» / «Картинки» (26.09.2026, владелец: «переключение — выделенные вкладки у логотипа») ═══
   Меню обеих студий лежит в оболочке целиком; видно то, что совпадает с data-studio на <html>
   (templates/v2/base.html → nav, services/ui_v2.UiV2.studio). */
/* Три студии (28.09.2026 — третья «Видео»): видно только своё; for-both — всем */
[data-studio="music"] :is(.for-pictures, .for-video), [data-studio="pictures"] :is(.for-music, .for-video),
[data-studio="video"] :is(.for-music, .for-pictures) { display: none !important; }
.studio { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--raise); }
.studio__a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  font-weight: 700; font-size: 14px; color: var(--ink-2); white-space: nowrap; transition: background-color 180ms ease, color 180ms ease; }
.studio__a .ic { width: 18px; height: 18px; flex: none; }
.studio__a[aria-current] { background: var(--ink); color: var(--panel); box-shadow: 0 2px 8px -2px rgb(0 0 0 / 0.35); }
@media (hover: hover) and (pointer: fine) { .studio__a:not([aria-current]):hover { color: var(--ink); } }
.studio__a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.side__main > .studio { margin: 16px 12px 0; }
.studio--m { display: none; }
/* «Кассета»: вкладки утоплены в кобальтовый вкладыш, выбранная — белая бумага наклейки; черта отделяет их от разделов */
[data-skin="cassette"] .studio { background: rgb(8 14 48 / 0.34); box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.3), inset 0 0 0 1px rgb(255 255 255 / 0.12); }
[data-skin="cassette"] .studio__a { color: #d9e0ff; }
[data-skin="cassette"] .studio__a[aria-current] { background: #f6f1e6; color: var(--cobalt); box-shadow: 0 2px 6px -1px rgb(0 0 0 / 0.4); }
@media (hover: hover) and (pointer: fine) { [data-skin="cassette"] .studio__a:not([aria-current]):hover { color: #fff; } }
[data-skin="cassette"] .side__main > .studio { position: relative; flex: none; margin: 0 8px 0 -8px; }
[data-skin="cassette"] .side__main > .studio::after { content: ''; position: absolute; right: -22px; top: 8px; bottom: 8px; width: 1px; background: rgb(255 255 255 / 0.22); }
/* Плеер студии «Картинки» не занимает места, пока ничего не играет; заиграла музыка — он на месте */
[data-studio="pictures"] .player[data-state="empty"], [data-studio="video"] .player[data-state="empty"] { display: none; }
@media (max-width: 900px) {
  .topbar .studio--m { display: flex; margin: 0 auto; }
  .studio--m .studio__a { min-height: 32px; padding: 0 12px; font-size: 13px; gap: 6px; }
  .studio--m .studio__a .ic { width: 16px; height: 16px; }
  .topbar .topbar__end { margin-left: 0; }
}
@media (max-width: 440px) {
  .logo--m { font-size: 0; gap: 0; }                    /* на узком экране от логотипа остаётся знак — место вкладкам */
  .studio--m .studio__a { padding: 0 10px; }
}
/* Три студии (28.09.2026, «Видео»): на телефоне подпись только у выбранной, остальные — значками, иначе шапка
   с «Войти» не влезает в ширину (правило 190) */
@media (max-width: 560px) {
  .studio--m .studio__a:not([aria-current]) { flex: none; padding: 0 9px; }
  .studio--m .studio__a:not([aria-current]) span { display: none; }
}

/* ── Меню профиля у аватара в шапке (AccountMenu, templates/v2/base.html; 26.09.2026) ── */
.acct { position: relative; }
/* На компьютере объём виден у аватара; на телефоне та же информация доступна из меню. */
.storage-badge { border: 0; cursor: pointer; color: inherit; font-variant-numeric: tabular-nums; gap: 5px; padding: 0 9px; }
.storage-badge > span { font-size: 11px; font-weight: 500; }
.storage-badge:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.storage-detail__total { margin: 8px 0 16px; font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.storage-detail__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.storage-detail__row b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.storage-detail__note { margin: 14px 0 0; color: var(--ink-2); font-size: 12px; }
@media (max-width: 420px) { .storage-badge > span { display: none; } .topbar__end { gap: 8px; } }
.acct__btn { cursor: pointer; border: 0; padding: 0; }
.acct__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.acct__menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 260px; max-width: calc(100vw - 24px);
  max-height: var(--acct-room, calc(100dvh - 80px)); overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 6px; border-radius: 14px; background: var(--raise); color: var(--ink); box-shadow: 0 18px 48px -12px rgb(0 0 0 / 0.55); }
/* Открытое мобильное меню листается само; фон сохраняет позицию и не принимает жесты. */
@media (max-width: 900px) {
  html.is-acct-open, html.is-acct-open body { overflow: hidden; overscroll-behavior: none; }
  .acct__menu--mobile { position: fixed; top: var(--acct-top, 60px); right: 12px; }
}
.acct__menu[hidden] { display: none; }
.acct__head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px; margin-bottom: 4px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.acct__av { width: 40px; height: 40px; flex: none; }
.acct__who { display: grid; min-width: 0; }
.acct__who b, .acct__who small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct__who small { color: var(--ink-2); font-size: 12px; }
.acct__menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: inherit; text-decoration: none; font-weight: 600; font-size: 14px; }
.acct__menu a .ic { width: 20px; height: 20px; color: var(--ink-2); }
.acct__menu a:hover, .acct__menu a:focus-visible { background: color-mix(in srgb, var(--ink) 8%, transparent); outline: none; }
/* Мобильный пункт занимает строку только в открытом меню; общая кнопка шапки скрыта. */
.acct__menu .storage-menu { display: none; }
@media (max-width: 900px) {
  .topbar__end > .storage-badge { display: none; }
  .acct__menu .storage-menu { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px;
    border: 0; border-radius: 10px; background: transparent; color: inherit; font: 600 14px var(--f); text-align: left; cursor: pointer; }
  .storage-menu .ic { width: 20px; height: 20px; color: var(--ink-2); }
  .storage-menu b { margin-left: auto; font-variant-numeric: tabular-nums; }
  .storage-menu:hover, .storage-menu:focus-visible { background: color-mix(in srgb, var(--ink) 8%, transparent); }
}
.acct__out { margin-top: 4px; border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); border-radius: 0 0 10px 10px !important; }

/* ── Разделы музыки кнопками в шапке (Радио · Поток треков · Моя музыка), 26.09.2026 ── */
.topnav { display: inline-flex; gap: 6px; margin-left: 10px; }
.topnav__a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--raise);
  color: var(--ink-2); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: color 150ms ease, background-color 150ms ease; }
.topnav__a .ic { width: 16px; height: 16px; }
.topnav__a:hover { color: var(--ink); background: var(--hover); }
.topnav__a[aria-current="page"] { background: var(--ink); color: var(--panel); }
[data-skin="cassette"] .topnav__a { background: rgb(255 255 255 / 0.6); color: var(--ink-2); }
[data-skin="cassette"] .topnav__a[aria-current="page"] { background: var(--ink); color: var(--panel); }
@media (max-width: 1100px) { .topnav__a span { display: none; } .topnav__a { padding: 8px; } }
@media (max-width: 760px) { .topnav { display: none; } }

/* Шильдик у пункта «Друзья» (меню слева и меню аватара): число входящих заявок в друзья.
   Разметка — templates/v2/base.html ([data-friend-badge]), обновляет V2App.friendBadge. */
.nbadge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: #e5484d; color: #fff;
  font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.nbadge[hidden] { display: none; }
[data-skin="cassette"] .navlist__a .nbadge { margin-left: 2px; }

/* Кнопки «Нравится» и «В мой плейлист» в строке списка песен (templates/v2/_row_marks.html, RowMarks
   в js/v2/pages.js): строка row--marks шире на две кнопки по 36px, заголовок tr-head--marks — тоже. */
.row.row--marks { grid-template-columns: minmax(0, 1fr) 36px 36px 36px; }
.row--drag.row--marks { grid-template-columns: 28px minmax(0, 1fr) 36px 36px 36px; }
.tr-head.tr-head--marks { grid-template-columns: 32px minmax(0, 4fr) minmax(0, 2fr) 96px 108px; }
.row__mark { width: 36px; height: 36px; border-radius: 50%; color: var(--ink-2); }
.row__mark .ic { width: 20px; height: 20px; }
.row__mark .ic--on, .row__mark[aria-pressed="true"] .ic--off { display: none; }
.row__mark[aria-pressed="true"] .ic--on { display: block; }
.row__mark[data-mark="like"][aria-pressed="true"] { color: #e5484d; }
.row__mark[data-mark="save"][aria-pressed="true"] { color: var(--accent); }
.row__mark:active { transform: scale(0.9); }
@media (hover: hover) and (pointer: fine) { .row__mark:hover { color: var(--ink); } }
@media (max-width: 900px) { .row.row--marks { grid-template-columns: minmax(0, 1fr) 40px 40px 40px; } .row__mark { width: 40px; height: 40px; } }

/* ═══ Плеер, свёрнутый в кружок (V2PlayerDock, js/v2/playerdock.js) ═══
   Владелец 26.09.2026: «плеер мешает… спрятать в круглую иконку… при смахивании в кругляшок». Свёрнутый
   плеер (.player.is-min) не показывается; вместо него — кружок .pdock в правом нижнем углу: обложка
   (крутится, пока играет) и кольцо пройденного времени (--p от 0 до 1). */
.player.is-min { display: none !important; }
.player.is-dragging { transition: none; }
@media (max-width: 900px) {
  .player { touch-action: none; transition: transform 200ms cubic-bezier(0.23, 1, 0.32, 1), opacity 200ms ease; }
  .player__min { display: none; }   /* на телефоне сворачивают смахиванием, место под кнопки нужнее */
}
.player__min { flex: none; width: 32px; height: 32px; color: var(--ink-2); }
.player__min .ic { width: 20px; height: 20px; }
.pdock { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 60px; height: 60px;
  padding: 4px; border: 0; border-radius: 50%; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  background: conic-gradient(var(--accent) calc(var(--p, 0) * 360deg), color-mix(in srgb, var(--ink) 18%, transparent) 0);
  box-shadow: 0 10px 28px -8px rgb(0 0 0 / 0.55); transition: transform 120ms ease-out; }
.pdock[hidden] { display: none; }
/* Перетаскивание (V2PlayerDock.movable): палец не прокручивает страницу; отпущенный кружок плавно едет к краю */
.pdock { touch-action: none; transition: transform 120ms ease-out, left 240ms cubic-bezier(0.23, 1, 0.32, 1), right 240ms cubic-bezier(0.23, 1, 0.32, 1), bottom 240ms cubic-bezier(0.23, 1, 0.32, 1); }
.pdock.is-moving { transition: none; cursor: grabbing; }
.pdock:active { transform: scale(0.94); }
.pdock__art { position: relative; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; overflow: hidden;
  background: var(--raise); color: var(--ink-2); }
.pdock__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pdock__art .ic { width: 22px; height: 22px; }
body.is-playing .pdock__art img { animation: pdock-spin 9s linear infinite; }
.pdock--in { animation: pdock-in 220ms cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes pdock-spin { to { transform: rotate(1turn); } }
@keyframes pdock-in { from { transform: scale(0.6); opacity: 0; } }
@media (max-width: 900px) { .pdock { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { body.is-playing .pdock__art img, .pdock--in { animation: none; } .player { transition: none; } }

/* Окно «Обложка» из меню песни (SongActions.coverSheet): кнопки рядом с превью, на узком — столбиком */
.cover-edit__acts { display: flex; flex-wrap: wrap; gap: 8px; }
/* Ход загрузки обложки под превью (SongActions.uploadCover): подпись и полоса; полоса растёт scaleX */
.cover-edit { flex-wrap: wrap; }
.cover-up { flex: 1 0 100%; display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cover-up__track { height: 4px; border-radius: 2px; overflow: hidden; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.cover-up__track i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 160ms ease-out; }
.btn.is-busy, label.btn:has(input:disabled) { opacity: 0.55; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .cover-up__track i { transition: none; } }

/* Ряд кнопок музыки в шапке не должен вылезать за край (владелец 26.09.2026, снимок: при ширине окна
   ~1100–1400 px пятая кнопка обрезалась справа). Сначала у «Мне нравится» и «Мой плейлист» остаются
   только значки (подпись — в title/aria-label), при нехватке и этого — ряд прокручивается вбок. */
.topbar { min-width: 0; }
.topnav { flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.topnav::-webkit-scrollbar { display: none; }
.topnav__a { flex: none; }
@media (max-width: 1440px) {
  .topnav__a[data-nav="liked"] span, .topnav__a[data-nav="playlist"] span { display: none; }
  .topnav__a[data-nav="liked"], .topnav__a[data-nav="playlist"] { padding: 7px 10px; }
}

/* Студия «Видео» на телефоне: ряд разделов (Мои видео, Мои рилсы, Режиссёр, Редактор роликов) — второй строкой
   шапки с прокруткой вбок. Раньше на узком экране ряд скрывался целиком, и до редактора было не добраться
   (владелец 28.09.2026: «а где редактор?»). Музыку и картинки не трогаем — там привычный вид. */
@media (max-width: 760px) {
  html[data-studio="video"] .topbar { flex-wrap: wrap; row-gap: 8px; }
  html[data-studio="video"] .topnav { display: flex; order: 10; flex: 1 0 100%; margin: 0; }
  html[data-studio="video"] .topnav__a { padding: 7px 12px; touch-action: manipulation; }
  html[data-studio="video"] .topnav__a span { display: inline; }
}

/* Значок «Как живая» (templates/v2/home.html, макрос real_badge): песня ИИ, которую администратор отметил
   «Звучит как живая». На обложке — плашка в левом нижнем углу, в строке — после названия. */
.real-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font: 700 11px/1.2 var(--f);
  background: #f5b301; color: #1a1400; white-space: nowrap; letter-spacing: 0.01em; }
.real-badge .ic { width: 12px; height: 12px; }
.real-badge--card { position: absolute; left: 8px; bottom: 8px; box-shadow: 0 4px 12px -4px rgb(0 0 0 / 0.5); }
.real-badge--row { margin: 0 0 0 6px; font-size: 10px; padding: 2px 7px; vertical-align: 2px; white-space: nowrap; }
/* В строке списка шильдик — продолжение названия, как «E» (владелец 27.09.2026: «шильдик как и E не должен
   переноситься»): строчный внутри <b>; .tr__main span {display:grid} делал его блоком со значком над словом */
.tr__main .real-badge--row { display: inline-flex !important; }
.sec__note { font-size: 13px; }

/* «Мои тексты» (templates/v2/lyrics.html, LyricsPage в js/v2/lyrics.js): карточки текстов сеткой,
   окно с полным текстом */
.ly-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.ly-card { position: relative; border-radius: calc(var(--r) + 4px); background: var(--raise); }
.ly-card__open { display: grid; gap: 4px; width: 100%; padding: 14px 48px 14px 16px; text-align: left; border-radius: inherit; }
.ly-card__meta { font-size: 12px; color: var(--ink-2); }
.ly-card__title { font-size: 15px; }
.ly-card__text { font-size: 13px; line-height: 1.45; color: var(--ink-2); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ly-card__copy { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; color: var(--ink-2); }
@media (hover: hover) and (pointer: fine) { .ly-card:hover { background: var(--hover); } .ly-card__copy:hover { color: var(--ink); } }
.ly-sheet__meta { margin: 0 0 4px; font-size: 13px; }
.ly-sheet__titles { margin: 0 0 12px; font-size: 13px; font-weight: 600; }
.ly-sheet__text { margin: 0 0 16px; max-height: 55vh; overflow: auto; white-space: pre-wrap; font: 400 15px/1.55 var(--f); }
.ly-sheet__acts { display: flex; flex-wrap: wrap; gap: 8px; }

/* «Создать по понравившимся» на Главной (templates/v2/home.html): карточка песни и под ней кнопка в мастер */
.remake { display: grid; gap: 8px; align-content: start; min-width: 0; }
/* Кнопка не шире карточки: на телефоне колонка полки ~150 px, а «Создать такую же» со значком и отступами
   просила больше — кнопки наезжали на соседние (владелец 27.09.2026: «в ширину не входят — накладываются») */
.remake__go { justify-content: center; width: 100%; min-width: 0; overflow: hidden; }
@media (max-width: 560px) {
  .remake__go { padding: 0 8px; gap: 6px; font-size: 12.5px; white-space: nowrap; }
  .remake__go .ic { width: 14px; height: 14px; flex: none; }
}
.remake__go .ic { width: 16px; height: 16px; }
.remake__liked { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: rgb(0 0 0 / 0.55); color: #ff5a5f; }
.remake__liked .ic { width: 14px; height: 14px; }

/* Метка «E» — не для детей (ExplicitMarks в js/v2/app.js; ставит проверка services/song_review.py):
   буква в квадратике со скруглёнными углами после названия песни */
.e-mark { display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; margin-left: 6px; border-radius: 4px;
  background: color-mix(in srgb, var(--ink) 72%, transparent); color: var(--panel); font: 800 10px/1 var(--f); vertical-align: 2px; letter-spacing: 0; }
/* «18+» в углу обложки песни с меткой (ExplicitMarks.cover): обёртка span.cov18 или .card__art.cov18 */
.cov18 { position: relative; display: inline-block; flex: none; line-height: 0; }
.card__art.cov18 { display: block; }
.cov18::after { content: '18+'; position: absolute; right: 3px; bottom: 3px; padding: 2px 3px; border-radius: 3px; background: #d92d20; color: #fff;
  font: 800 9px/1 var(--f); letter-spacing: 0; pointer-events: none; }
.card__art.cov18::after { right: 8px; top: 8px; bottom: auto; padding: 3px 5px; font-size: 11px; }
.cov18--off::after { display: none; }
.cov18:has(> img[hidden])::after { display: none; }   /* обложки в плеере нет — и надписи нет */
.e-tail, .tr__main .e-tail, .card .e-tail { display: inline !important; white-space: nowrap; }   /* последнее слово названия + «E» не разрываются (ExplicitMarks.attach); строки списка делают свои span сеткой — здесь это нельзя */
.tr__main .e-mark, .card .e-mark, .player__text .e-mark { display: inline-grid !important; }
/* Плеер: правило «.player__text span» (мелкая серая строка «автор · стиль») задевало хвост названия и значок —
   последнее слово становилось мелким, «E» серым (владелец 26.09.2026: «когда есть E, то с оформлением проблема
   названия»). Хвост берёт шрифт названия, значок — свой */
.player__text .e-tail { font: inherit; color: inherit; overflow: visible; }
.player__text .e-mark { overflow: visible; color: var(--panel); font: 800 10px/1 var(--f); }

/* Зазор между шапкой «Кассеты» и содержимым (владелец 26.09.2026: «когда страница поднята кверху, расстояние
   от кнопок до конца пропадает; когда прокрутишь вниз — в норму»): вверху шапка прозрачна, и цветной первый
   блок раздела вставал вплотную под ряд кнопок. На компьютере — постоянный отступ сверху у окна раздела. */
@media (min-width: 901px) {
  [data-skin="cassette"] .v2main { padding-top: 8px; }
  /* Цветная шапка страницы (станция радио, песня, альбом, автор) в «Стриминге» заходит под панель на 8px;
     в «Кассете» — нет, иначе зазор под кнопками снова пропадает (владелец: «и так во всех пунктах… и в радио») */
  [data-skin="cassette"] .pg__hero { margin-top: 0; border-radius: calc(var(--r) + 6px); }
}

/* ═══ «Моя волна» и «Поток треков» на Главной (templates/v2/home.html .streams) ═══
   Волна — тёмная кобальтовая плитка с расходящимися кольцами и круглой кнопкой «играть»; поток — тёплая
   плитка с эквалайзером. Кольца и столбики двигаются только transform/opacity; при reduced-motion стоят. */
.streams { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin: 0 0 20px; }   /* волна · поток · радио */
.stream { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; min-height: 112px; padding: 20px 22px;
  border: 0; border-radius: calc(var(--r) + 8px); text-align: left; color: #fff; cursor: pointer; isolation: isolate;
  transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1); }
.stream:active { transform: scale(0.98); }
.stream--wave { background: radial-gradient(120% 140% at 0% 100%, #e5484d 0%, transparent 55%), linear-gradient(135deg, #1b2a8a, #0d1235 70%); }
.stream--feed { background: linear-gradient(135deg, #ff8a3d, #e5484d 60%, #b8215a); }
.stream__text { position: relative; z-index: 1; display: grid; gap: 4px; flex: 1; min-width: 0; }
.stream__text b { font: 800 22px/1.1 var(--f-head, var(--f)); letter-spacing: -0.01em; }
.stream__text small { font-size: 13px; line-height: 1.35; color: rgb(255 255 255 / 0.82); }
.stream__play { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #fff; color: #0d1235; box-shadow: 0 10px 24px -8px rgb(0 0 0 / 0.6); transition: transform 160ms ease-out; }
.stream__play .ic { width: 24px; height: 24px; margin-left: 3px; }
.stream__go { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / 0.18); }
.stream__go .ic { width: 18px; height: 18px; }
.stream.is-busy .stream__play { opacity: 0.6; }
/* кольца волны — расходятся из-за кнопки */
.stream__rings { position: absolute; right: 50px; top: 50%; z-index: 0; width: 1px; height: 1px; }
.stream__rings i { position: absolute; left: -60px; top: -60px; width: 120px; height: 120px; border-radius: 50%; border: 2px solid rgb(255 255 255 / 0.35);
  animation: stream-ring 3.6s cubic-bezier(0.23, 1, 0.32, 1) infinite; opacity: 0; }
.stream__rings i:nth-child(2) { animation-delay: 1.2s; } .stream__rings i:nth-child(3) { animation-delay: 2.4s; }
@keyframes stream-ring { 0% { transform: scale(0.4); opacity: 0.9; } 100% { transform: scale(2.6); opacity: 0; } }
/* эквалайзер потока */
.stream__eq { position: absolute; right: 70px; bottom: 0; z-index: 0; display: flex; align-items: flex-end; gap: 6px; height: 80px; opacity: 0.35; }
.stream__eq i { width: 10px; height: 100%; border-radius: 5px 5px 0 0; background: #fff; transform-origin: bottom; animation: stream-eq 1.4s ease-in-out infinite; }
.stream__eq i:nth-child(2) { animation-delay: -0.3s; } .stream__eq i:nth-child(3) { animation-delay: -0.7s; }
.stream__eq i:nth-child(4) { animation-delay: -0.5s; } .stream__eq i:nth-child(5) { animation-delay: -1s; }
@keyframes stream-eq { 0%, 100% { transform: scaleY(0.25); } 50% { transform: scaleY(0.95); } }
@media (hover: hover) and (pointer: fine) { .stream--wave:hover .stream__play { transform: scale(1.06); } .stream--feed:hover .stream__go { background: rgb(255 255 255 / 0.3); } }
@media (max-width: 760px) { .streams { grid-template-columns: minmax(0, 1fr); } .stream { min-height: 96px; } .stream__text b { font-size: 19px; } }
@media (prefers-reduced-motion: reduce) { .stream__rings i, .stream__eq i { animation: none; } .stream__rings i { opacity: 0.25; } }

/* Горизонтальные полки: отступ «примагничивания» = внутреннему отступу полки, чтобы первая карточка не
   прилипала к краю после прокрутки; во время прокрутки колесом магнит выключен (HScroll, js/v2/app.js) */
.shelf, .pstrip, .people { scroll-padding-inline: 12px; }
.is-wheeling { scroll-snap-type: none !important; }

/* Кнопки перемотки лент — static/css/strip-arrows.css (общий с витриной /hit) */

/* Третья плитка — «Радио»: зелёно-бирюзовая, большой значок-приёмник с пульсом «в эфире» */
.stream--radio { background: linear-gradient(135deg, #0f8f7a, #0b5c8f 70%); }
.stream__radio { position: absolute; right: 64px; bottom: -14px; z-index: 0; opacity: 0.22; }
.stream__radio .ic { width: 110px; height: 110px; animation: stream-onair 2.4s ease-in-out infinite; }
@keyframes stream-onair { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: 0.7; } }
@media (max-width: 1100px) and (min-width: 761px) { .streams { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .stream--wave { grid-column: 1 / -1; } }
@media (prefers-reduced-motion: reduce) { .stream__radio .ic { animation: none; } }

/* ═══ «Сообщения» (templates/v2/messages.html, MessagesPage в js/v2/messages.js) ═══
   Две колонки: диалоги и переписка; на телефоне — одна, переписка поверх списка (.is-room). */
.msgs { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: 12px; height: calc(100dvh - 260px); min-height: 440px; padding-top: 8px; }
.msgs__list, .msgs__room { min-height: 0; display: flex; flex-direction: column; border-radius: calc(var(--r) + 6px); background: var(--raise); overflow: hidden; }
.msgs__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 14px 8px; }
.msgs__head .h2 { margin: 0; }
.msgs__search { margin: 0 12px 8px; max-width: none; }
.msgs__convs { list-style: none; margin: 0; padding: 0 6px 8px; overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.msgs__conv { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px; border: 0; border-radius: 12px; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.msgs__conv.is-on { background: color-mix(in srgb, var(--accent) 14%, transparent); }
@media (hover: hover) and (pointer: fine) { .msgs__conv:hover { background: var(--hover); } }
.msgs__av { width: 44px; height: 44px; flex: none; }
.msgs__av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.msgs__ct { display: grid; min-width: 0; flex: 1; gap: 2px; }
.msgs__ct b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgs__ct small { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgs__meta { display: grid; justify-items: end; gap: 4px; flex: none; }
.msgs__meta small { font-size: 11px; color: var(--ink-2); }
.msgs__meta .nbadge { margin: 0; font-style: normal; }
.msgs__hint { list-style: none; padding: 16px; font-size: 14px; }
.msgs__empty { margin: auto; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 24px; }
.msgs__empty .ic { width: 48px; height: 48px; color: var(--ink-2); }
.msgs__rhead { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.msgs__rname { flex: 1; min-width: 0; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msgs__back { display: none; }
.msgs__feed { list-style: none; margin: 0; padding: 14px; flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 6px; }
.msgs__msg { display: flex; }
.msgs__msg.is-mine { justify-content: flex-end; }
.msgs__bub { max-width: min(78%, 560px); padding: 8px 12px 6px; border-radius: 16px 16px 16px 6px; background: var(--panel); color: var(--ink); }
.msgs__msg.is-mine .msgs__bub { border-radius: 16px 16px 6px 16px; background: var(--accent); color: var(--on-accent); }
.msgs__bub p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.4; }
.msgs__bub time { display: block; margin-top: 2px; font-size: 11px; opacity: 0.7; text-align: right; }
.msgs__img { display: block; max-width: 280px; max-height: 320px; border-radius: 10px; margin-bottom: 4px; }
.msgs__extra { display: block; font-size: 13px; color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.msgs__form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.msgs__form textarea { flex: 1; resize: none; min-height: 42px; max-height: 160px; padding: 10px 14px; border-radius: 21px; border: 1px solid var(--line);
  background: var(--panel); color: var(--ink); font: 400 16px/1.35 var(--f); }
.msgs__send { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--accent); color: var(--on-accent); cursor: pointer; }
.msgs__send .ic { width: 20px; height: 20px; }
.msgs__send:active { transform: scale(0.92); }
@media (max-width: 900px) {
  .msgs { grid-template-columns: minmax(0, 1fr); height: calc(100dvh - 200px); }
  .msgs .msgs__room { display: none; }
  .msgs.is-room .msgs__room { display: flex; }
  .msgs.is-room .msgs__list { display: none; }
  .msgs__back { display: grid; }
}

/* ═══ «Бонусы за друзей» (templates/v2/referral.html, ReferralPage) ═══ */
.ref { padding-top: 8px; padding-bottom: 32px; }
.ref__hero { display: flex; gap: 18px; align-items: flex-start; margin: 0 0 20px; }
.ref__ic { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--accent); color: var(--on-accent); }
.ref__ic .ic { width: 32px; height: 32px; }
.ref__hero .h1 { margin: 2px 0 8px; }
.ref__lead { margin: 0; max-width: 62ch; color: var(--ink-2); line-height: 1.5; }
.ref__card { padding: 18px; border-radius: calc(var(--r) + 6px); background: var(--raise); margin-bottom: 14px; display: grid; gap: 10px; }
.ref__label { margin: 0; }
.ref__link code { display: block; padding: 12px 14px; border-radius: 12px; background: var(--panel); font: 600 15px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.ref__acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ref__stats { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ref__stats li { padding: 16px; border-radius: calc(var(--r) + 4px); background: var(--raise); display: grid; gap: 4px; }
.ref__stats b { font: 800 26px/1 var(--f-head, var(--f)); font-variant-numeric: tabular-nums; }
.ref__stats span { font-size: 13px; color: var(--ink-2); }
.ref__levels { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ref__levels li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; background: var(--raise); }
.ref__lvl { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-weight: 800; }
.ref__levels b { font-size: 18px; font-variant-numeric: tabular-nums; }
.ref__levels small { font-size: 12px; color: var(--ink-2); }
@media (max-width: 600px) { .ref__stats { grid-template-columns: minmax(0, 1fr); } .ref__hero { flex-direction: column; } }

/* Поиск в «Сообщениях» — обычная высота (у .lib__search гибкая основа 260px для строки «Моей музыки») */
.msgs__search { flex: none; }
.msgs__extra--img { font-weight: 600; }
/* Шапка «Кассеты» на ширине до 1600px: у «Сообщений» и «Профиля» — только значок (подпись — в title),
   иначе после нового пункта «Сообщения» последний пункт обрезался */
@media (max-width: 1600px) and (min-width: 901px) {
  [data-skin="cassette"] .navlist__a[data-nav="messages"] > span, [data-skin="cassette"] .navlist__a[data-nav="profile"] > span { display: none; }
}
/* «Главная» в шапке «Кассеты» — только домик (владелец 26.09.2026: «отсюда „главное“ нужно убрать, просто
   домик поставить»; «и главная тоже в виде домика» — у обеих студий). Подпись остаётся в title */
@media (min-width: 901px) {
  [data-skin="cassette"] .navlist__a[data-nav="home"] > span, [data-skin="cassette"] .navlist__a[data-nav="pictures"] > span { display: none; }
}

/* Обложка в плеере на весь экран (V2FullPlayer.coverButton / recover / offer / unmine): своя песня — «Новая
   обложка», чужая — «Своя обложка», «Предложить автору», «Авторская»; кнопки стопкой в правом нижнем углу */
.fp__covacts { position: absolute; right: 12px; bottom: 12px; left: 12px; z-index: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; pointer-events: none; }
.fp__covacts > * { pointer-events: auto; }
.fp__recover[disabled] { opacity: 0.7; cursor: default; }
.fp__recover { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px;
  border: 0; border-radius: 999px; background: rgb(12 14 24 / 0.72); color: #fff; font: 700 13px/1 var(--f); backdrop-filter: blur(8px); cursor: pointer; }
.fp__recover .ic { width: 16px; height: 16px; }
.fp__recover:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .fp__recover:hover { background: var(--accent); } }
.fp__cover-wait { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 6px; padding: 16px;
  background: rgb(8 10 18 / 0.62); color: #fff; text-align: center; backdrop-filter: blur(3px); }
.fp__cover-wait[hidden], .fp__recover[hidden] { display: none; }
.fp__cover-wait i { width: 38px; height: 38px; border-radius: 50%; border: 3px solid rgb(255 255 255 / 0.3); border-top-color: #fff; animation: fp-spin 0.9s linear infinite; }
.fp__cover-wait small { opacity: 0.8; }
/* Страница предложения обложки автору (templates/v2/cover_offer.html) */
.coffer { max-width: 760px; padding-top: 16px; padding-bottom: 40px; }
.coffer__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 20px 0; }
.coffer__pair figure { margin: 0; display: grid; gap: 8px; }
.coffer__pair img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--r); background: var(--raise); }
.coffer__pair figcaption { font-weight: 700; color: var(--ink-2); text-align: center; }
.coffer__acts { display: flex; flex-wrap: wrap; gap: 10px; }
.coffer__done { font-weight: 700; }
@keyframes fp-spin { to { transform: rotate(1turn); } }
@media (prefers-reduced-motion: reduce) { .fp__cover-wait i { animation: none; } }

/* ═══ Праздники на Главной (templates/v2/home.html .hol, services/holidays) ═══
   Владелец 26.09.2026: «иконки оставь как есть… нужно сделать глубокий фон у этих квадратиков… наподобие
   вот таких» (плитки «Поток треков», «Радио»), «верни иконки»: свой глубокий градиент, белый линейный значок,
   огромный бледный линейный значок водяным знаком в углу, белый текст; сегодняшний — с рамкой-свечением. */
.hol { margin: 0 0 22px; }
/* Лента, а не сетка (владелец 28.09.2026: «Лента с праздниками должна прокручиваться, если не входят во всю
   ширину экрана… что на сайте, что в мобильных приложениях»): в ширину видно 6 квадратов (планшет — 3, телефон —
   два с краешком третьего, чтобы было видно, что листается), остальные — прокруткой пальцем, колесом (HScroll)
   и трекпадом. Поля 10px внутри ленты — место для рамки «сегодня» и подъёма при наведении: overflow их обрезает. */
.hol__grid { --hol-n: 6; list-style: none; margin: -10px -10px 0; padding: 10px 10px 12px; display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 20px - (var(--hol-n) - 1) * 12px) / var(--hol-n)); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 10px; overscroll-behavior-x: contain; scrollbar-width: none; }
.hol__grid::-webkit-scrollbar { display: none; }
.hol__grid > li { scroll-snap-align: start; display: grid; }
/* Не строгий квадрат (28.09.2026): длинное название из годового календаря не влезало и наезжало на ссылки —
   высоту задаёт содержимое (не ниже 200px), плитки ленты равняются по самой высокой (li — grid, stretch) */
.hol__sq { position: relative; isolation: isolate; display: grid; align-content: space-between; gap: 8px; min-height: 200px; padding: 16px;
  border-radius: calc(var(--r) + 8px); overflow: hidden; color: #fff; box-shadow: 0 14px 30px -18px rgb(20 10 40 / 0.75);
  transition: transform 180ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 180ms ease; }
.hol__sq[data-c="0"] { background: linear-gradient(135deg, #ff8a3d, #e5484d 60%, #b8215a); }
.hol__sq[data-c="1"] { background: linear-gradient(135deg, #0f8f7a, #0b5c8f 70%); }
.hol__sq[data-c="2"] { background: radial-gradient(120% 140% at 0% 100%, #e5484d 0%, transparent 55%), linear-gradient(135deg, #1b2a8a, #0d1235 70%); }
.hol__sq[data-c="3"] { background: linear-gradient(135deg, #8e5cf7, #5b2bc4 55%, #2d1a6b); }
.hol__sq[data-c="4"] { background: linear-gradient(135deg, #f5b301, #e8590c 60%, #b8215a); }
.hol__sq[data-c="5"] { background: linear-gradient(135deg, #12b886, #0b7285 60%, #1b2a8a); }
.hol__sq.is-today { box-shadow: 0 0 0 3px #fff, 0 0 0 6px #e5484d, 0 18px 34px -16px rgb(229 72 77 / 0.7); }
.hol__when { position: relative; z-index: 1; justify-self: start; padding: 4px 9px; border-radius: 999px; font-size: 11px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase; background: rgb(255 255 255 / 0.18); }
.hol__icon { position: relative; z-index: 1; justify-self: start; font-size: 42px; line-height: 1; filter: drop-shadow(0 6px 10px rgb(0 0 0 / 0.25)); }
.hol__mark { position: absolute; z-index: 0; right: -24px; bottom: -24px; width: 150px; height: 150px; color: #fff; opacity: 0.16; transform: rotate(-12deg); }
.hol__name { position: relative; z-index: 1; font: 800 16px/1.2 var(--f-head, var(--f)); text-shadow: 0 1px 2px rgb(0 0 0 / 0.2);
  /* Длинные названия из годового календаря («День войск гражданской обороны Российской Федерации»): не больше
     трёх строк с многоточием, длинное слово переносится по слогам — плитка не распирается и не режет ссылки */
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; hyphens: auto; overflow-wrap: break-word; }
.hol__acts { position: relative; z-index: 1; display: grid; gap: 3px; justify-items: start; }
.hol__go { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: rgb(255 255 255 / 0.85); }
.hol__go .ic { width: 14px; height: 14px; }
/* «Создать песню» растянута на всю плитку (::after), «Создать открытку» лежит выше неё и ловит нажатие сама */
.hol__go--song { position: static; }
.hol__go--song::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.hol__go:not(.hol__go--song) { z-index: 3; }
.hol__go:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
.hol__sq:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .hol__sq:hover { transform: translateY(-3px); } .hol__go:hover { color: #fff; } }
@media (max-width: 1100px) { .hol__grid { --hol-n: 3; } }
/* «Мои песни» на телефоне — по одной в ряд (владелец 27.09.2026: «нужно располагать не по две штуки в ряд, а по
   одной»): строка во всю ширину, обложка 56 и круглая кнопка «Играть» справа, как в приложении */
@media (max-width: 560px) {
  .quick { grid-template-columns: minmax(0, 1fr); }
  .quick__a { padding-right: 56px; }
  .quick__play { display: grid; opacity: 1; }
}
/* Телефон (владелец 27.09.2026: «в квадратики… не входят „Создать открытку“, „Создать песню“ — прям совсем низко»):
   строгий квадрат обрезал нижние ссылки — высоту задаёт содержимое, плитки ряда выравниваются по самой высокой */
@media (max-width: 560px) {
  .hol__grid { --hol-n: 2.3; gap: 10px; grid-auto-columns: calc((100% - 20px - 1.3 * 10px) / 2.3); }
  .hol__sq { aspect-ratio: auto; min-height: 172px; padding: 14px 12px; gap: 6px; }
  .hol__icon { font-size: 30px; }
  .hol__mark { width: 110px; height: 110px; }
  .hol__name { font-size: 15px; }
  .hol__go { font-size: 12.5px; }
}

/* «Сообщения»: пояснение про мессенджер Navigator и navichat.ru; короткая кнопка в шапке переписки */
.msgs__about { grid-column: 1 / -1; margin: 0; padding: 6px 12px; border-radius: 10px; font-size: 12px; line-height: 1.4; color: var(--ink-2);
  background: color-mix(in srgb, var(--accent) 8%, var(--panel)); }
.msgs__about a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
/* Ссылки в тексте сообщения (MessagesPage.drawMsg): видны и не распирают пузырь длинным адресом */
.msgs__room p a { color: inherit; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.msgs__open { flex: none; white-space: nowrap; }
.msgs__open .ic { width: 16px; height: 16px; }

/* «Профиль» в шапке «Кассеты» убран (владелец 27.09.2026: «убери из хедера» — дублирует кружок-аватар с меню
   аккаунта справа; у гостя там «Войти»). В меню «Стриминга» слева и в нижней панели телефона пункт остаётся. */
@media (min-width: 901px) {
  [data-skin="cassette"] .navlist__a[data-nav="profile"] { display: none; }
}

/* Пункт «Приложение» в шапке «Кассеты» — логотипы систем вместо значка и подписи (владелец 27.09.2026:
   «вместо приложения нужно иконки операционных систем поставить»); подпись остаётся в title и для чтеца
   (visually-hidden не нужен: span с текстом прячется, у ссылки есть title). В меню «Стриминга» — как прежде. */
.navlist__os { display: none; }
@media (min-width: 901px) {
  [data-skin="cassette"] .navlist__a[data-nav="app"] > .ic, [data-skin="cassette"] .navlist__a[data-nav="app"] > span:not(.navlist__os) { display: none; }
  [data-skin="cassette"] .navlist__a[data-nav="app"] .navlist__os { display: inline-flex; gap: 7px; align-items: center; }
  [data-skin="cassette"] .navlist__a[data-nav="app"] .navlist__os .ic { width: 17px; height: 17px; }
}

/* Телефон (владелец 27.09.2026: «название и автора — отдельными строками от иконок», «и в мобильной версии сайта»):
   в плеере на весь экран название и автор — во всю ширину, кнопки — рядом ниже; шапка «Моей музыки» — заголовок
   своей строкой, кнопки под ним */
@media (max-width: 560px) {
  .fp__info { flex-wrap: wrap; row-gap: 6px; }
  .fp__names { flex-basis: 100%; }
  .fp__names h2 { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .fp__info > .icon-btn { flex: 1; }
  .libp__head { flex-direction: column; align-items: flex-start; }
}

/* Кнопки в строке песни — «Нравится», «В мой плейлист», «В альбом» (RowActions, static/js/v2/library.js, 27.09.2026) */
ol.tracks > li.has-acts:not(.row) { display: flex; align-items: center; }
ol.tracks > li.has-acts:not(.row) > .tr { flex: 1; min-width: 0; }
.row.has-acts { grid-template-columns: minmax(0, 1fr) auto 36px; }
.tr-acts { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.tr-act { width: 34px; height: 34px; color: var(--ink-2); }
.tr-act .ic { width: 18px; height: 18px; }
.tr-act .ic--on, .tr-act[aria-pressed="true"] .ic--off { display: none; }
.tr-act[aria-pressed="true"] .ic--on { display: block; color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .tr-act:hover { color: var(--ink); } }
/* Телефон — кнопок в строке нет, всё в «⋯» (владелец 27.09.2026: «в мобильной у нас всё спрятано в три точки») */
@media (max-width: 560px) { .tr-acts { display: none; } .row.has-acts { grid-template-columns: minmax(0, 1fr) 36px; } }

/* ═══ Окно согласия первого входа (templates/v2/_consent.html, ConsentGate в js/v2/app.js) ═══
   Во весь экран поверх сайта, страница под ним не прокручивается (html.is-gated). */
html.is-gated { overflow: hidden; }
.cgate { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px;
  background: color-mix(in srgb, var(--app) 82%, transparent); backdrop-filter: blur(6px); overflow-y: auto; }
.cgate[hidden] { display: none; }
.cgate__box { width: min(560px, 100%); padding: 26px 24px 22px; border-radius: calc(var(--r) + 8px); background: var(--panel, var(--raise));
  color: var(--ink); box-shadow: 0 24px 64px -20px rgb(0 0 0 / 0.5); }
.cgate__top { display: flex; justify-content: flex-end; }
.cgate__age { padding: 4px 10px; border: 2px solid var(--ink); border-radius: 8px; font-weight: 900; font-size: 16px; }
.cgate__t { font-family: var(--font-head, inherit); font-size: clamp(24px, 5vw, 32px); line-height: 1.12; margin: 6px 0 10px; }
.cgate__lead { margin: 0 0 14px; color: var(--ink-2); line-height: 1.5; }
.cgate__sub { margin: 0 0 6px; font-weight: 700; font-size: 14px; }
.cgate__list { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; line-height: 1.45; }
.cgate__docs { margin: 0 0 18px; font-size: 13px; }
.cgate__docs a { color: var(--accent); }
.cgate__acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cgate__acts .btn--main { flex: 1 1 200px; }
/* Подпись перемотки смахиванием обложки (V2FullPlayer.swipeSeek, js/v2/fullplayer.js) */
/* Обложки соседних песен за обложкой играющей (V2FullPlayer.neighbors; владелец 27.09.2026: «сзади фоном обложку
   следующего и предыдущего»). Положение и размер ставит JS по .fp__art; absolute — вне сетки .fp__main */
.fp__main { position: relative; }
.fp__main > .fp__nb { position: absolute; z-index: 0; object-fit: cover; border-radius: 10px; pointer-events: none;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms; }
.fp__nb[hidden] { display: none; }
.fp__art { z-index: 1; }
.fp.is-swiping .fp__art, .fp.is-swiping .fp__nb { transition: none; }
/* Переход к соседней песне (V2FullPlayer.slide, SLIDE_MS = 300): сосед доезжает до центра, играющая — в сторону;
   сильный ease-out подхватывает движение пальца и мягко садится на место */
.fp.is-sliding .fp__art, .fp.is-sliding .fp__nb { transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1), opacity 300ms cubic-bezier(0.23, 1, 0.32, 1); }
@media (prefers-reduced-motion: reduce) { .fp.is-sliding .fp__art, .fp.is-sliding .fp__nb { transition: opacity 200ms ease; } }
.fp__seekhint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 10px 18px; border-radius: 999px;
  background: rgb(0 0 0 / 0.7); color: #fff; font-weight: 800; font-size: 20px; pointer-events: none; }
.fp__seekhint[hidden] { display: none; }

/* ═══ Нижний плеер: кнопки песни в строке воспроизведения слева от «перемешать» (templates/v2/base.html, .player__acts) ═══
   Владелец 27.09.2026: «иконки поднять выше к иконкам воспроизведения, чтобы больше надпись влазила» и «сдвинуть
   плеер правее». Кнопки воспроизведения остаются по центру: .player__acts вынесен из потока (position: absolute)
   справа от них. Колонки плеера: название шире (1.3fr), громкость уже (0.7fr). На телефоне кнопок в строке нет —
   у названия только «⋯» (.player__more--m). */
.player { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.6fr) minmax(0, 0.7fr); }
.player__keys { position: relative; }
.player__acts { position: absolute; left: 100%; top: 50%; transform: translateY(-50%); margin-left: 14px;
  display: flex; align-items: center; gap: 2px; white-space: nowrap; }
.player__acts .icon-btn { width: 32px; height: 32px; }
/* «Текст», «⋯» и диск — слева от «перемешать» (владелец 27.09.2026: «перенеси влево»), лайки — справа от «повтора» */
.player__acts--l { left: auto; right: 100%; margin-left: 0; margin-right: 14px; }
.player__acts .player__lyrics { min-height: 28px; padding: 0 10px; }
.player__acts .player__dis { margin-left: 22px; }   /* дизлайк поодаль — не задеть случайно (владелец 27.09.2026) */
.player__min[aria-pressed="true"] { color: var(--accent); }   /* режим «при сворачивании — кружок» включён */
.player__more--m { display: none; }
@media (max-width: 900px) {
  .player__acts { display: none !important; }
  .player__more--m { display: inline-grid; }
}

/* Обещание сервиса под приветствием на главной (templates/v2/home.html, .home__pitch; владелец 27.09.2026) */
/* Первая строка — тоже под углом (владелец: «тогда это тоже под углом»), тем же наклоном, что и звезда ниже */
.home__lead { display: inline-block; transform: rotate(-1.2deg); transform-origin: left center; font-weight: 600; }
.home__pitch { margin: -6px 0 16px; line-height: 1.2; font-size: clamp(15px, 1.4vw, 18px); color: var(--ink-2); max-width: 70ch; }
/* «Становитесь народными исполнителями» — отдельной строкой, заголовочным шрифтом, с красным мазком маркера под
   словами (владелец: «с новой строки… поинтереснее выделил»); мазок — наклонная полоса фона, не рамка-плашка */
.home__star { display: inline-block; margin-top: 0; padding: 0 10px; font: 800 clamp(22px, 2.6vw, 34px)/1.15 var(--f-head);
  font-stretch: var(--head-stretch); letter-spacing: var(--head-track); color: var(--ink);
  background: linear-gradient(100deg, transparent 0 1%, rgb(255 77 56 / 0.85) 2% 97%, transparent 98%) 0 88% / 100% 0.42em no-repeat;
  transform: rotate(-1.2deg); transform-origin: left center; }

/* «Встроенная страница» в приложении AlphaHit (28.09.2026; агент AlphaHitEmbed, services/ui_v2.render_v2): шапку, меню,
   ряд разделов, плеер и нижние вкладки рисует само приложение — у сайта остаётся только содержимое раздела */
html.is-embed .side, html.is-embed .studio, html.is-embed .topbar, html.is-embed .player, html.is-embed .tabs,
html.is-embed .ver, html.is-embed [data-cgate] { display: none !important; }
html.is-embed .shell, html.is-embed[data-skin="cassette"] .shell { display: block; height: auto; min-height: 100dvh; padding: 0; }
html.is-embed .v2main { padding-bottom: calc(24px + var(--app-bottom, 0px)); }   /* под нижними панелями приложения */
html.is-embed .stage { border-radius: 0; overflow: visible; }
/* страница прокручивается сама (владелец 29.09.2026: «на видео главная страница не листается — только два пункта»):
   на телефоне сайт выключает прокрутку html и листает внутреннюю .stage, а во встроенном виде .stage без своей прокрутки */
html.is-embed, html.is-embed body { overflow-y: auto !important; height: auto !important; }

/* «Прочитайте вслух» (ReadAloud в static/js/v2/app.js, 29.09.2026): текст для записи образца голоса под таймером —
   крупно и с просторной строкой, чтобы читать с экрана телефона не щурясь */
.readal { width: 100%; max-width: 60ch; margin: 4px auto 0; padding: 12px 14px; border-radius: var(--r); background: var(--raise); text-align: left; }
.readal__h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 13px; color: var(--ink-2); }
.readal__next { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); font: 700 12px/1.2 var(--f); cursor: pointer; }
.readal__t { margin: 0; font: 500 17px/1.55 var(--f); color: var(--ink); }

/* Ряд разделов «Видео» группами (templates/v2/base.html nav_grp; владелец 29.09.2026: «другим цветом»): создание — тёплый
   оттенок акцента, своё — синий, проекты — зелёный. Выбранный пункт — как везде, тёмная заливка. */
.topnav__a--tool { background: color-mix(in srgb, var(--accent) 14%, var(--raise)); color: color-mix(in srgb, var(--accent) 80%, var(--ink)); }
.topnav__a--mine { background: color-mix(in srgb, #2f5bd3 12%, var(--raise)); color: color-mix(in srgb, #2f5bd3 75%, var(--ink)); }
.topnav__a--proj { background: color-mix(in srgb, #1f9d63 13%, var(--raise)); color: color-mix(in srgb, #1f9d63 75%, var(--ink)); }
[data-skin="cassette"] .topnav__a--tool { background: color-mix(in srgb, var(--accent) 16%, #fff); color: color-mix(in srgb, var(--accent) 85%, #000); }
[data-skin="cassette"] .topnav__a--mine { background: color-mix(in srgb, #2f5bd3 13%, #fff); color: #2344a8; }
[data-skin="cassette"] .topnav__a--proj { background: color-mix(in srgb, #1f9d63 14%, #fff); color: #16734a; }
.topnav__a--tool[aria-current="page"], .topnav__a--mine[aria-current="page"], .topnav__a--proj[aria-current="page"],
[data-skin="cassette"] .topnav__a--tool[aria-current="page"], [data-skin="cassette"] .topnav__a--mine[aria-current="page"],
[data-skin="cassette"] .topnav__a--proj[aria-current="page"] { background: var(--ink); color: var(--panel); }
/* отступ между группами — чтобы группы читались и без цвета */
.topnav__a--tool[data-nav="vdirector"], .topnav__a--mine[data-nav="vmine"], .topnav__a--proj[data-nav="vfilmproj"] { margin-left: 8px; }

/* Компаньон проекта (FilmLive в film-director.js, 29.09.2026): фильм и ролик не удаляет, выключенное — бледным.
   Здесь, а не в film.css: редактор роликов film.css не подключает. Полоса «совместный проект» — там же. */
.is-member [data-proj-del], .is-member [data-film-del] { display: none; }
.is-member button:disabled { opacity: 0.45; cursor: not-allowed; }
.flive { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex-basis: 100%; }
.flive__tag { padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, #1f9d63 14%, var(--raise)); color: #16734a; font-size: 12px; font-weight: 700; }
.flive__now { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); }
.flive__now i { width: 8px; height: 8px; border-radius: 50%; background: #1f9d63; box-shadow: 0 0 0 3px color-mix(in srgb, #1f9d63 25%, transparent); }
.flive__list { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 6px; }
.flive__list li { display: flex; align-items: center; gap: 8px; }
.flive__list li .btn { margin-left: auto; }

/* «Назад» — ОДИН класс на весь сайт (владелец 29.09.2026: «назад вот такой нужно сделать на всём сайте… класс должен быть
   единый, а то в видео что-то одно, тут другое»; образец — «← Мои пакеты»). Было два: .ptool__back (picture-tool.css) и
   .kmake__back (music.css) разного размера. Разметка: <a class="back" href="…"><svg class="ic"><use href="#i-arrow-left"/></svg>Куда</a>;
   в шапке с заголовком (.film__head, .ved__head) отступ снимается там же. */
.back { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 10px; font-size: 13px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.back .ic { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .back:hover { color: var(--ink); } }
