/* ════════════════════════════════════════════════════════════════════
   VeoSuno — стили модуля «Создать музыку» (templates/testmodules/music/index.html): форма #createForm, библиотека #lib, панель трека #panel, мастеринг.
   Разделено автоматически из tokens.css, nav.css, site.css, studio.css, mastering.css — правила не менялись.
   ════════════════════════════════════════════════════════════════════ */

/* ══════ из site.css ══════ */
/* форма создания музыки: можно свернуть, чтобы дать место панели */
.form { width: 480px; flex-shrink: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); overflow: hidden; transition: width .2s; min-height: 0; }
/* (заглушки формы больше не используются) */
.form .ph { background: var(--card); border-radius: 12px; padding: 12px; font-size: 12px; line-height: 18px; color: var(--muted); white-space: pre-line; }
.app.focus .form { width: 0; border: 0; }
/* библиотека: список треков или страница трека */
.lib { flex: 1; min-width: 0; overflow-y: auto; overflow-x: hidden; }
/* раздел не шире окна: иначе при широкой панели содержимое вылезает за край, страница съезжает и панель дёргается */
.app > #content { min-width: 0; }
.lib.covered { flex: 0 0 0; }
.list { padding: 20px 16px; display: flex; flex-direction: column; gap: 6px; }
/* страница трека */
.tpage { padding: 16px 16px 40px; display: flex; flex-direction: column; gap: 16px; }
.thead { display: flex; gap: 16px; align-items: flex-start; }
.thead img { width: 200px; height: 200px; border-radius: 14px; object-fit: cover; flex-shrink: 0; }
.thead h2 { margin: 0; font-size: 32px; line-height: 1.15; }
/* вкладки страницы трека — как в панели: подчёркивание, тот же порядок */
.ttabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); }
.ttab { height: 42px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.ttab[aria-selected=true] { color: var(--fg); border-bottom-color: var(--accent); }
.tslot { --mbg: var(--bg); }
/* правая панель */
.panel { --mbg: var(--panel); position: relative; flex-shrink: 0; width: var(--pw, 400px); background: var(--panel); border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
.panel.anim { transition: width .2s; }
.rs { position: absolute; left: -6px; top: 0; bottom: 0; width: 12px; cursor: ew-resize; z-index: 20; touch-action: none; }
.rs::before { content: ''; position: absolute; left: 5px; top: 0; bottom: 0; width: 2px; background: transparent; transition: background .15s; }
.rs::after { content: ''; position: absolute; left: 3px; top: 50%; width: 6px; height: 44px; margin-top: -22px; border-radius: 3px; background: var(--line2); transition: background .15s, height .15s, margin .15s; }
.rs:hover::before, .rs.drag::before { background: color-mix(in srgb, var(--accent) 50%, transparent); }
.rs:hover::after, .rs.drag::after { background: var(--accent); height: 64px; margin-top: -32px; }
body.resizing canvas { pointer-events: none; }
.pbtns .iconbtn, .cf-mhead .iconbtn { color: var(--fg); } /* значки кнопок (index_proto.html, panel.js) — currentColor */
.scroll { flex: 1; overflow-y: auto; overflow-x: hidden; min-height: 0; }
.phead { position: relative; padding: 16px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.phead .img { align-self: center; width: 220px; max-width: 100%; aspect-ratio: 1; border-radius: 16px; background: var(--line); }
.phead .img img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.pbtns { position: absolute; right: 16px; top: 16px; display: flex; gap: 6px; z-index: 3; }
.ttl { font-size: 21px; font-weight: 600; line-height: 1.2; }
.ptabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin: 4px -16px 0; padding: 0 16px; }
.ptab { height: 42px; padding: 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.ptab { font-weight: 600; }
.ptab[aria-selected=true] { color: var(--fg); border-bottom-color: var(--accent); } /* толщина шрифта одинаковая — табы не прыгают */
/* широкая панель: обложка слева, название справа, места под мастеринг больше */
.panel[data-w=wide] .phead { display: grid; grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; row-gap: 10px; align-items: end; padding-right: 130px; }
.panel[data-w=wide] .phead .img { width: 112px; border-radius: 12px; }
.panel[data-w=wide] .ptabs { grid-column: 1 / -1; margin-right: -130px; }
.panel-foot { border-top: 1px solid var(--line); background: var(--panel); padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
.panel-foot:empty { display: none; }
.lyrics { padding: 16px; color: var(--fg2); white-space: pre-line; font-size: 13px; line-height: 20px; }
@media (max-width: 900px) {
  .form { display: none; }
  .panel { position: fixed; inset: 0 0 var(--siteplayer-h, 64px) 0; width: 100% !important; z-index: 40; border: 0; }
  .rs, #expandBtn { display: none; }
}
.new { height: 18px; padding: 0 6px; border-radius: 100px; background: linear-gradient(90deg, #A23BF5, #E0457B 55%, #DE762B); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .04em; display: inline-flex; align-items: center; }
.panel-foot .actions { display: flex; gap: 8px; }
.panel-foot .actions .pill { height: 48px; flex: 1; }
.panel-foot .actions .btn-accent { flex: 1.5; height: 48px; }

/* ══════════════════════════════════════════════════════════════
   3. ШАПКА ТРЕКА: обложка с «Изменить», название, дата
   Как на странице трека сейчас: при наведении на обложку — «✎ Изменить»,
   меню: Загрузить, Оживить, Выбрать из существующих, Создать изображение.
   ══════════════════════════════════════════════════════════════ */
.cover-box { position: relative; border-radius: 16px; background: var(--line); }
.cover-box img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; }
.cover-edit { position: absolute; left: 50%; bottom: 12px; transform: translate(-50%, 6px); opacity: 0; transition: opacity .15s, transform .15s; background: rgba(73,73,74,.92); border: 1px solid rgba(255,255,255,.15); color: #fff; height: 32px; padding: 0 14px; border-radius: 100px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; backdrop-filter: blur(6px); }
.cover-box:hover .cover-edit, .cover-box:focus-within .cover-edit, .cover-box.menu-open .cover-edit { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .cover-edit { opacity: 1; transform: translate(-50%, 0); } }
.cover-menu { position: absolute; left: 50%; top: calc(100% - 8px); transform: translateX(-50%); z-index: 30; min-width: 230px; background: var(--card); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 12px 32px color-mix(in srgb, var(--shade) 60%, transparent); padding: 6px; display: flex; flex-direction: column; }
.cover-menu button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 50px; border: 0; background: none; color: var(--fg2); font-size: 14px; text-align: left; cursor: pointer; }
.cover-menu button:hover { background: var(--line); color: var(--fg); }
.title-in { width: 100%; resize: none; overflow: hidden; line-height: 1.2; display: block; background: transparent; border: 1px solid transparent; border-radius: 8px; color: var(--fg); font: inherit; font-weight: 700; padding: 0 6px; margin-left: -7px; }
.title-in:hover { border-color: var(--line2); }
.title-in:focus { border-color: var(--accent); outline: none; background: var(--bg); }
.tmeta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.vtag { height: 22px; padding: 0 8px; border-radius: 100px; background: var(--line); color: var(--fg); font-size: 12px; display: inline-flex; align-items: center; }
.cover-menu .paid { color: var(--fg); }
.cover-menu .paid svg { stroke: #E0457B; }
.cover-menu .price { font-size: 11px; font-weight: 700; color: #fff; background: var(--grad); border-radius: 100px; padding: 1px 7px; }

/* ══════════════════════════════════════════════════════════════
   4. ФОРМА СОЗДАНИЯ — новый макет audiov4
   Колонка прокручивается сама, кнопка «Создать» прилипает к её низу (над плеером сайта).
   ══════════════════════════════════════════════════════════════ */
.cf-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.cf-select { height: 34px; padding: 4px 12px; border-radius: 100px; border: 1px solid var(--line2); background: none; color: var(--fg); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.cf-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 12px 12px; display: flex; flex-direction: column; gap: 12px; }
.cf-card { position: relative; background: var(--card); border-radius: 24px; padding: 16px 52px 12px 16px; display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.cf-card textarea { background: none; border: 0; color: var(--fg); font: inherit; font-size: 14px; line-height: 1.45; resize: none; outline: none; min-height: 60px; }
.cf-prompt { min-height: 280px; }
.cf-ic { width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; color: var(--fg2); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.cf-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cf-ic:hover, .cf-ic[aria-expanded=true] { background: var(--line); color: var(--fg); }
.cf-foot { display: flex; justify-content: center; align-items: center; position: relative; min-height: 24px; }
.cf-count { position: absolute; right: -36px; font-size: 12px; color: var(--line2); }
.cf-pop { position: absolute; left: 10px; right: 10px; top: calc(100% - 30px); z-index: 20; background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 12px 32px color-mix(in srgb, var(--shade) 60%, transparent); padding: 10px; display: flex; flex-direction: column; gap: 2px; max-height: 300px; overflow: auto; }
.cf-pop input { height: 32px; border: 0; border-bottom: 1px solid var(--line2); background: none; color: var(--fg); font: inherit; font-size: 13px; outline: none; margin-bottom: 6px; }
.cf-pop .g { font-size: 11px; color: var(--muted); padding: 8px 8px 2px; }
.cf-pop button { text-align: left; border: 0; background: none; color: var(--fg2); font-size: 13px; padding: 7px 10px; border-radius: 50px; }
.cf-pop button:hover { background: var(--line); color: var(--fg); }
.cf-pop .rec { margin-top: 6px; text-align: center; background: var(--line2); color: var(--fg); }
/* «Спеть мотив»: шапка во всю ширину (крестик справа), текст влево — старое центрирование (08.10) ломало вид */
.cf-hum { align-items: stretch; text-align: left; padding: 16px; border: 1px solid rgba(222,118,43,.6); }
.cf-name { height: 52px; padding: 0 18px; border: 0; color: var(--fg); font: inherit; font-size: 14px; outline: none; }
.cf-sticky { flex-shrink: 0; padding: 10px 12px 14px; background: linear-gradient(transparent, var(--bg) 30%); border-top: 1px solid var(--line); }
.form[data-mode=beginner] .pro-only, .form[data-mode=pro] .beg-only { display: none !important; }
.phead > .coverwrap { align-self: center; }
.cover-box.show-live:not(.video-ok) img { animation: vs-live-glow 5s ease-in-out infinite; }
.cover-box.show-live:not(.video-ok)::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255,80,160,.28) 50%, transparent 70%) 0 0 / 250% 100%; animation: vs-sweep 3s linear infinite; }
@keyframes vs-live-glow { 0%, 100% { filter: brightness(1) saturate(1); } 50% { filter: brightness(1.15) saturate(1.3) hue-rotate(-8deg); } }
@keyframes vs-sweep { from { background-position: 150% 0; } to { background-position: -100% 0; } }
.cover-box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: none; }
.cover-box.show-live video { display: block; }
.cover-box { overflow: visible; }
.cover-box img { will-change: transform; }

/* выбор модели */
.cf-model { position: relative; }
.cf-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; width: 240px; background: var(--card); border: 1px solid var(--line2); border-radius: 16px; padding: 6px; box-shadow: 0 12px 32px color-mix(in srgb, var(--shade) 60%, transparent); display: flex; flex-direction: column; gap: 2px; }
.cf-list button { text-align: left; border: 0; background: none; color: var(--fg); padding: 8px 12px; border-radius: 12px; display: flex; flex-direction: column; }
.cf-list button small { color: var(--muted); font-size: 12px; }
.cf-list button:hover, .cf-list button[aria-selected=true] { background: var(--line); }
.cf-list button[aria-selected=true] b::after { content: ' ✓'; color: var(--ok); }
/* аккуратные подсказки к иконкам и подписям */
[data-tt] { position: relative; }
[data-tt]:hover::after { content: attr(data-tt); position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%); white-space: nowrap; background: var(--line); color: var(--fg); font-size: 12px; font-weight: 400; padding: 5px 9px; border-radius: 8px; box-shadow: 0 6px 16px color-mix(in srgb, var(--shade) 50%, transparent); pointer-events: none; z-index: 40; animation: tt-in .15s ease-out; }
.cf-ctl [data-tt]:hover::after { right: auto; left: 0; top: auto; bottom: calc(100% + 6px); transform: none; white-space: normal; width: 220px; }
@keyframes tt-in { from { opacity: 0; } }
/* кнопка ИИ-помощника (как на audiov4) */
.cf-foot { min-height: 46px; }
.ai-button { position: relative; width: 45px; height: 45px; padding: 1.5px; border: none; border-radius: 12px; background: var(--line); cursor: pointer; overflow: hidden; transition: width .4s cubic-bezier(.22,1,.36,1); }
.ai-button__border { position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity .3s .15s; background: linear-gradient(90deg, transparent 0%, #DE642B 25%, #E54270 50%, #DE642B 75%, transparent 100%) 0 0 / 200% 100%; }
.ai-button__inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 10px; width: 100%; height: 100%; border-radius: 10.5px; background: var(--card); overflow: hidden; white-space: nowrap; transition: background .25s; }
.ai-button__icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; }
.ai-button__label { font-size: 14px; font-weight: 500; color: #E4E4E7; padding-right: 16px; opacity: 0; transform: translateX(-8px); transition: opacity .3s .1s, transform .35s cubic-bezier(.22,1,.36,1) .1s; }
:where([data-theme="light"]) .ai-button__label { color: var(--fg); } /* светлая */
.ai-button:hover, .ai-button:focus-visible { width: 232px; }
.ai-button:hover .ai-button__label, .ai-button:focus-visible .ai-button__label { opacity: 1; transform: none; }
.ai-button:hover .ai-button__border, .ai-button:focus-visible .ai-button__border { opacity: 1; animation: borderMove 1.6s linear infinite; }
.ai-button:hover .ai-button__inner { background: #2a2a2d; }
:where([data-theme="light"]) .ai-button:hover .ai-button__inner { background-color: color-mix(in srgb, var(--fg) 6%, var(--card)); } /* светлая */
.spark { fill: #E5705A; transform-origin: center; transform-box: fill-box; transition: fill .25s; }
.ai-button:hover .spark { fill: #F0815F; }
.spark-main { animation: sparkTwinkle 2.4s ease-in-out infinite; }
.spark-small { animation: sparkTwinkleSmall 2.4s ease-in-out .6s infinite; }
.spark-tiny { animation: sparkTwinkleSmall 2.4s ease-in-out 1.2s infinite; }
@keyframes borderMove { from { background-position: 0 0; } to { background-position: -200% 0; } }
@keyframes sparkTwinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: .9; } 50% { transform: scale(1.18) rotate(8deg); opacity: 1; } }
@keyframes sparkTwinkleSmall { 0%, 100% { transform: scale(.8); opacity: .5; } 50% { transform: scale(1.1); opacity: 1; } }
/* настройки генерации — такие же ползунки, как в мастеринге */
.cf-sliders { display: flex; flex-direction: column; gap: 12px; padding: 12px 0 2px; margin-right: -36px; border-top: 1px solid var(--line); }
.cf-ctl { display: flex; flex-direction: column; gap: 6px; }
.cf-ctl .lab { display: flex; align-items: center; font-size: 13px; color: var(--fg); }
.cf-ctl .lab span { cursor: help; text-decoration: underline dotted color-mix(in srgb, var(--fg) 35%, transparent); text-underline-offset: 3px; }
.cf-ctl .lab b { margin-left: auto; font-weight: 400; font-variant-numeric: tabular-nums; cursor: text; padding: 1px 6px; margin-right: -6px; border-radius: 6px; border: 1px dashed transparent; }
.cf-ctl .lab b:hover, .cf-ctl .lab b:focus-visible { border-color: var(--line2); outline: none; }
.cf-ctl input { width: 100%; margin: 0; height: 20px; accent-color: var(--fg2); }
.cf-ctl.changed input { accent-color: var(--accent); } .cf-ctl.changed b { color: var(--accent); }
.cf-reset { align-self: flex-start; height: 28px; padding: 0 10px; border-radius: 100px; border: 1px solid color-mix(in srgb, var(--fg) 15%, transparent); background: none; color: var(--fg2); font-size: 12px; }
.cf-ic[data-cf=settings][aria-expanded=true] { background: var(--grad); color: #fff; }
/* обязательные поля */
.cf-card.invalid { box-shadow: 0 0 0 1.5px var(--bad) inset; animation: cf-shake .4s; }
.cf-err { font-size: 12px; color: #FF8A8A; margin-top: -2px; }
:where([data-theme="light"]) .cf-err { color: var(--bad); } /* светлая */
@keyframes cf-shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.cf-create.sending, .cf-create.done { pointer-events: none; cursor: default; } /* пока идёт отправка и «✓ в работе» — не нажимается */
.cf-create.sending::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.35), rgba(255,255,255,0)) 0 0 / 50% 100% no-repeat; animation: cf-sweep .9s ease-in-out infinite; }
.cf-create.done { background: linear-gradient(90deg, #2BDE90, #22D3EE); color: #101012; }
@keyframes cf-sweep { from { background-position: -60% 0; } to { background-position: 160% 0; } }

/* ══ v7: форма как в Suno — шапка поля, сохранённые, примеры, теги, ручка высоты, «Больше опций» ══ */
.cf-card { padding-bottom: 20px; }
.cf-notools { padding-right: 16px; }
.cf-notools .cf-count { right: 0; }
.cf-h { display: flex; align-items: center; gap: 8px; margin: -6px -36px 0 0; min-height: 32px; }
.cf-notools .cf-h { margin-right: -6px; }
.cf-lab { font-size: 14px; font-weight: 600; color: var(--fg); }
.cf-hic { display: flex; gap: 2px; }
.cf-ic.sm { width: 30px; height: 30px; }
.cf-ic.sm svg { width: 16px; height: 16px; }
.cf-ic:disabled { opacity: .3; pointer-events: none; }
.cf-ic[data-cf=save][aria-pressed=true] { color: var(--fg); }
.cf-ic[data-cf=save][aria-pressed=true] svg { fill: currentColor; }
.cf-ic.saved-pop svg { animation: cf-pop .45s cubic-bezier(.2,1.6,.4,1); }
.cf-field { position: relative; }
.cf-card textarea { width: 100%; display: block; transition: height .38s cubic-bezier(.22,1,.36,1); }
.cf-card textarea.nodrag-anim { transition: none; }
#cfStyle { min-height: 96px; }
/* пример в пустом поле: сменяется с лёгким размытием, Tab — взять */
.cf-ghost { position: absolute; left: 0; top: 0; right: 0; text-align: left; background: none; border: 0; padding: 0; font: inherit; font-size: 14px; line-height: 1.45; color: var(--muted); pointer-events: none; transition: opacity .45s, filter .45s, transform .45s; }
.cf-ghost.swap { opacity: 0; filter: blur(4px); transform: translateY(-3px); }
.cf-ghost .gt { display: block; }
.cf-ghost kbd { display: inline-block; margin-top: 8px; padding: 2px 8px; border: 1px solid var(--line2); border-radius: 7px; font: inherit; font-size: 11px; color: var(--fg2); pointer-events: auto; cursor: pointer; }
.cf-ghost kbd:hover { color: var(--fg); border-color: var(--muted); }
/* инструментал */
.cf-instr { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px 0 6px; border-radius: 100px; border: 0; background: none; color: var(--fg2); font-size: 12px; }
.cf-instr:hover { background: var(--line); color: var(--fg); }
.msw { position: relative; width: 28px; height: 16px; border-radius: 10px; background: var(--line2); transition: background .2s; flex-shrink: 0; }
.msw::after { content: ''; position: absolute; left: 2px; top: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .2s cubic-bezier(.3,1.4,.5,1); }
.cf-instr[aria-checked=true] { color: var(--fg); }
.cf-instr[aria-checked=true] .msw { background: var(--grad); }
.cf-instr[aria-checked=true] .msw::after { transform: translateX(12px); }
.cf-prompt.instr textarea { opacity: .15; }
.cf-instr-note { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; text-align: center; padding: 20px; font-size: 13px; color: var(--fg2); }
.cf-sugg-list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 24px; }
.cf-sugg-list::-webkit-scrollbar { display: none; }
/* подсказки под стилями */
.cf-sugg { display: flex; align-items: center; gap: 6px; margin-right: -6px; }
.cf-sg { height: 30px; padding: 0 12px; border-radius: 100px; border: 0; background: var(--line); color: var(--fg2); font-size: 12px; white-space: nowrap; flex-shrink: 0; transition: background .15s, color .15s; }
.cf-sg:hover { background: var(--line2); color: var(--fg); }
.cf-foot.sm { min-height: 16px; }
/* ручка высоты поля */
.cf-grip { position: absolute; left: 50%; bottom: 3px; transform: translateX(-50%); width: 64px; height: 16px; border: 0; background: none; cursor: ns-resize; padding: 0; touch-action: none; }
.cf-grip::before { content: ''; position: absolute; left: 16px; right: 16px; top: 6px; height: 4px; border-radius: 2px; background: var(--line2); transition: left .2s, right .2s, background .2s; }
.cf-grip:hover::before, .cf-grip.drag::before, .cf-grip:focus-visible::before { left: 6px; right: 6px; background: var(--muted); }
.cf-grip:focus-visible { outline: none; }
/* «Больше опций» */
.cf-more { padding: 0; }
.cf-more-h { display: flex; align-items: center; gap: 10px; width: 100%; height: 54px; padding: 0 18px; border: 0; background: none; color: var(--fg); font-size: 14px; text-align: left; }
.cf-more-h .chev { transition: transform .25s; flex-shrink: 0; }
.cf-more-h[aria-expanded=true] .chev { transform: rotate(90deg); }
.cf-more-h .small { color: var(--accent); }
.cf-more .cf-sliders { margin: 0; padding: 14px 18px 18px; border-top: 1px solid var(--line); animation: vs-drop .25s ease-out; }
@keyframes vs-drop { from { opacity: 0; transform: translateY(-6px); } }
.cf-negbox { position: relative; background: var(--bg); border-radius: 14px; padding: 10px 12px 22px; }
.cf-negbox textarea { min-height: 40px; }
.cf-negbox .cf-count { right: 12px; bottom: 6px; }
/* сохранённые */
.cf-lib { position: absolute; right: 8px; top: 46px; z-index: 25; width: min(400px, calc(100% - 16px)); max-height: 380px; display: flex; flex-direction: column; background: color-mix(in srgb, var(--card) 98%, transparent); border: 1px solid var(--line2); border-radius: 18px; box-shadow: 0 18px 40px color-mix(in srgb, var(--shade) 60%, transparent); backdrop-filter: blur(10px); animation: cf-libin .2s cubic-bezier(.22,1,.36,1); transform-origin: top right; }
@keyframes cf-libin { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
.cf-lib-h { display: flex; align-items: center; gap: 8px; margin: 10px; padding: 0 14px; height: 40px; border-radius: 100px; background: var(--line); color: var(--muted); flex-shrink: 0; }
.cf-lib-h input { flex: 1; min-width: 0; border: 0; background: none; color: var(--fg); font: inherit; font-size: 14px; outline: none; }
.cf-lib-list { overflow-y: auto; padding: 0 6px 8px; }
.cf-lib-empty { padding: 14px 14px 18px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.cf-create.wake { animation: cf-wake .6s cubic-bezier(.2,1.4,.4,1); }
@keyframes cf-wake { 0% { transform: scale(.97); box-shadow: 0 0 0 rgba(229,66,112,0); } 50% { transform: scale(1.03); box-shadow: 0 0 26px rgba(229,66,112,.55); } 100% { transform: none; box-shadow: 0 0 0 rgba(229,66,112,0); } }
.row { display: flex; align-items: center; gap: 8px; } .row.wrap { flex-wrap: wrap; }
.pill.ghost { background: none; }

/* на телефоне поля ввода 16 px — иначе iPhone увеличивает страницу при вводе (альбом, название, промпт) */
@media (pointer: coarse) { textarea { font-size: 16px !important; } }

/* подвал с кнопками мастеринга — только на вкладке «Мастеринг» */
.panel:not([data-tab=master]) #panelFoot { display: none; }
/* подсказка на краю панели */
.rs.hint::after { background: var(--accent); animation: rs-pulse 1.2s ease-in-out infinite; }
@keyframes rs-pulse { 0%, 100% { transform: translateX(0); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); } 50% { transform: translateX(-4px); box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 0%, transparent); } }
.rs-tip { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); z-index: 22; background: var(--card); border: 1px solid color-mix(in srgb, var(--accent) 60%, transparent); border-radius: 12px; padding: 10px 12px; font-size: 12px; color: var(--fg2); max-width: 210px; box-shadow: 0 10px 28px color-mix(in srgb, var(--shade) 55%, transparent); animation: rs-tipin .35s cubic-bezier(.22,1,.36,1); transition: opacity .3s; }
.rs-tip b { display: block; color: var(--fg); font-size: 13px; margin-bottom: 2px; }
.rs-tip::before { content: ''; position: absolute; left: -6px; top: 50%; margin-top: -6px; border: 6px solid transparent; border-left: 0; border-right-color: rgba(222,118,43,.6); }
@keyframes rs-tipin { from { opacity: 0; transform: translate(-8px, -50%); } }
/* кнопки панели не заходят на обложку: в узкой панели обложка чуть ниже кнопок */
.panel:not([data-w=wide]) .phead { padding-top: 52px; }
.panel:not([data-w=wide]) .pbtns { top: 10px; }
/* подсказка-пример: на телефоне вместо клавиши Tab — «Взять пример» */
.k-touch { display: none; }
@media (pointer: coarse) { .k-desk { display: none; } .k-touch { display: inline; } .cf-ghost kbd { padding: 6px 12px; font-size: 12px; } }
/* кнопка ИИ на телефоне сразу с подписью — наведения там нет */
@media (hover: none) { .ai-button { width: 196px; } .ai-button__label { opacity: 1; transform: none; } }
/* фокус: карточка поля мягко подсвечивается */
.cf-card { transition: box-shadow .2s; }
.cf-card.invalid { box-shadow: 0 0 0 1.5px var(--bad) inset; }
.title-in:focus { outline: none; box-shadow: 0 2px 0 0 color-mix(in srgb, var(--accent) 70%, transparent); }
/* три вкладки в узкой панели — в одну строку */
.ptabs, .ttabs { overflow-x: auto; scrollbar-width: none; }
.ptabs::-webkit-scrollbar, .ttabs::-webkit-scrollbar { display: none; }
.ptab, .ttab { white-space: nowrap; flex-shrink: 0; }
.panel:not([data-w=wide]) .ptabs { gap: 16px; }
.panel:not([data-w=wide]) .ptab { font-size: 14px; }

/* ══ v12 ══ */
/* подсветка блоков как на mureka.ai, в наших цветах: наведение — светлая рамка, активный блок — градиентная */
.cf-card { border: 1px solid transparent; transition: border-color .2s, box-shadow .25s; }
.cf-card:hover { border-color: color-mix(in srgb, var(--fg) 14%, transparent); }
.cf-card:focus-within { border-color: transparent; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(125deg, #DE642B, #E54270 55%, #A23BF5) border-box; box-shadow: 0 0 0 4px rgba(229,66,112,.08); }
.cf-card.invalid, .cf-card.invalid:focus-within { background: var(--card); border-color: var(--bad); box-shadow: none; }
/* корзина краснеет при наведении */
.cf-ic[data-cf=clear]:hover { color: #FF5A6E; background: rgba(255,90,110,.14); }
:where([data-theme="light"]) .cf-ic[data-cf=clear]:hover { color: var(--bad); background-color: color-mix(in srgb, var(--bad) 14%, transparent); } /* светлая */
/* низ поля: ИИ-помощник подписан сразу, счётчик и «развернуть» справа */
.cf-prompt .cf-foot { justify-content: flex-start; gap: 6px; min-height: 40px; }
.cf-prompt .cf-count { position: static; }
.ai-button, .ai-button:hover, .ai-button:focus-visible { width: auto; height: 40px; }
.ai-button__icon { width: 36px; height: 36px; }
.ai-button__label { opacity: 1; transform: none; padding-right: 14px; font-size: 13px; }
/* ряд «+ Аудио / + Голос / + Структура» под полем, как у Suno и Mureka */
.cf-adds { position: relative; margin-top: -4px; }
.cf-addrow { display: flex; border-radius: 100px; background: var(--card); border: 1px solid transparent; overflow: hidden; }
.cf-add { flex: 1; height: 46px; border: 0; background: none; color: #E4E4E7; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s; }
:where([data-theme="light"]) .cf-add { color: var(--fg); } /* светлая */
.cf-add + .cf-add { border-left: 1px solid var(--line); }
.cf-add b { font-size: 18px; font-weight: 400; line-height: 1; transition: transform .25s; }
.cf-add:hover { background: color-mix(in srgb, var(--fg) 5%, transparent); }
.cf-add[aria-expanded=true] { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--fg); }
.cf-add[aria-expanded=true] b { transform: rotate(45deg); color: var(--accent); }
.cf-adds .cf-pop { left: 0; right: 0; top: calc(100% + 6px); }
.cf-pop button .small { margin-left: 6px; }
/* подсказка у «↻» под стилями — сверху, чтобы не обрезалась краем колонки */
.cf-sugg [data-tt]:hover::after { right: auto; left: 0; top: auto; bottom: calc(100% + 6px); transform: none; }
/* «Создать»: мерцающие искры и лёгкий блик, пробегающий по кнопке */
.cf-cl { display: inline-flex; align-items: center; gap: 6px; }
.cf-spk .spark { fill: #fff; }
.cf-create:hover .cf-spk .spark-main { animation-duration: 1.2s; }
.cf-sugg > .cf-ic { flex-shrink: 0; }

/* ══ v13 ══ */
/* «+ Аудио / Голос / Структура» — отдельные плитки над полем, как у Mureka */
.cf-adds { margin-top: 0; }
.cf-addrow { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; background: none; border: 0; border-radius: 0; overflow: visible; }
.cf-add { height: 48px; border-radius: 16px; background: var(--card); border: 1px solid transparent; transition: border-color .2s, background .2s; }
.cf-add + .cf-add { border-left: 1px solid transparent; }
.cf-add:hover { background: var(--card); border-color: color-mix(in srgb, var(--fg) 14%, transparent); }
.cf-add[aria-expanded=true] { border-color: transparent; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(125deg, #DE642B, #E54270 55%, #A23BF5) border-box; }
/* низ поля: «Удиви меня» слева, ИИ-помощник по центру, счётчик и «развернуть» справа */
.cf-foot3 { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.cf-fl { justify-self: start; display: flex; }
.cf-fr { justify-self: end; display: flex; align-items: center; gap: 4px; }
.cf-surp { height: 32px; padding: 0 12px; border-radius: 100px; border: 1px solid var(--line2); background: none; color: var(--fg2); font-size: 12px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; transition: color .15s, border-color .15s; }
.cf-surp:hover { color: var(--fg); border-color: transparent; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(125deg, #DE642B, #E54270 55%, #A23BF5) border-box; }
.cf-surp:hover svg { animation: cf-wave .5s ease-in-out; }
@keyframes cf-wave { 30% { transform: rotate(-18deg); } 70% { transform: rotate(10deg); } }
/* «Удиви меня» у стилей — круглая градиентная палочка, как у Suno */
.cf-wand { width: 32px; height: 32px; flex-shrink: 0; border: 0; border-radius: 50%; background: radial-gradient(140% 200% at -10% 20%, #DE642B 0%, #E54270 100%); color: #fff; display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: transform .15s, box-shadow .2s; }
.cf-wand:hover { transform: scale(1.06); box-shadow: 0 0 16px rgba(229,66,112,.45); }
.cf-wand:hover svg { animation: cf-wave .5s ease-in-out; }
.cf-card textarea.typing { caret-color: var(--accent); }
/* название композиции: текст по центру по высоте */
input.cf-card.cf-name { padding: 0 18px; height: 52px; }
@media (max-width: 420px) { .cf-surp { font-size: 0; gap: 0; width: 32px; padding: 0; justify-content: center; } .cf-surp svg { width: 16px; } }

/* ══════ из nav.css ══════ */
.cf-mhead { display: none !important; }

/* ══════ из studio.css ══════ */

/* ══════════ 1. ЛЕВОЕ МЕНЮ — все стили в shared/nav.css ══════════ */

/* ══════════ 2. ФОРМА: ширина, ряд «+», вложения ══════════ */
.form { width: var(--fw); }
.form.drop { outline: 2px dashed var(--accent); outline-offset: -6px; }
.cf-addrow { display: grid !important; grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
/* в «Профи» три плитки (без фото) — одной строкой и на мобильном */
.cf-addrow.pro-only { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cf-addrow .cf-add { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; padding-left: 6px; padding-right: 6px; }
.cf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 6px 0 10px; border-radius: 100px; background: var(--card); border: 1px solid var(--line2); font-size: 12.5px; color: var(--fg2); }
.chip b { color: var(--fg); font-weight: 600; }
.chip button { width: 20px; height: 20px; border-radius: 50%; border: 0; background: var(--line); color: var(--fg2); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.chip button:hover { background: var(--line2); color: var(--fg); }
.cf-pop { max-height: 380px; }
.cf-pop .ap-cov { width: 24px; height: 24px; border-radius: 6px; background: center/cover; display: inline-block; vertical-align: middle; margin-right: 8px; }
.cf-pop > button { display: flex; align-items: center; gap: 8px; }
.cf-pop > button .small { margin-left: auto; }
/* голос: пол, персоны, мои голоса */
.vp-gender { display: flex; gap: 4px; padding: 3px; border-radius: 100px; background: var(--bg); border: 1px solid var(--line2); margin-bottom: 4px; }
.cf-pop .vp-gender button { flex: 1; text-align: center; padding: 6px 4px; font-size: 12.5px; }
.cf-pop .vp-gender button[aria-checked=true] { background: var(--line); color: var(--fg); }
.vp-i { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 8px; border-radius: 12px; cursor: pointer; }
.vp-i:hover, .vp-i:focus-visible { background: var(--line); }
.vp-i b { display: block; font-size: 13px; font-weight: 600; } .vp-i small { font-size: 11.5px; color: var(--muted); }
.vp-ava { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); display: inline-flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0; }
.cf-pop .vp-i .cf-ic { padding: 0; width: 30px; height: 30px; border-radius: 50%; justify-content: center; color: var(--muted); opacity: 0; }
.vp-i:hover .cf-ic, .vp-i:focus-within .cf-ic { opacity: 1; }
.cf-pop .vp-i .cf-ic:hover { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); }
@media (hover: none) { .cf-pop .vp-i .cf-ic { opacity: .8; } }
.vp-empty { font-size: 12px; color: var(--muted); padding: 4px 10px 8px; line-height: 1.4; }
.cf-pop .vp-none { color: var(--muted); }
.cf-pop .rec { display: flex; justify-content: center; gap: 8px; }

/* прикреплённое аудио */
.cf-audio { padding: 14px 14px 12px !important; gap: 10px; }
.au-h { display: flex; align-items: center; gap: 10px; }
.au-play { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.au-play .i:last-child, .cf-audio.playing .au-play .i:first-child { display: none; }
.cf-audio.playing .au-play .i:last-child { display: block; }
.au-name b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-name small { font-size: 12px; color: var(--muted); }
.au-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.au-acts button { height: 30px; padding: 0 10px; border-radius: 100px; border: 1px solid var(--line2); background: none; color: var(--fg2); font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
.au-acts button:hover { color: var(--fg); border-color: #6b6b6d; }
:where([data-theme="light"]) .au-acts button:hover { border-color: color-mix(in srgb, var(--fg) 30%, transparent); } /* светлая */
.au-acts button[aria-checked=true] { color: var(--fg); border-color: transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.au-wave { position: relative; height: 68px; border-radius: 12px; background: color-mix(in srgb, var(--shade) 28%, transparent); overflow: hidden; touch-action: none; cursor: pointer; }
.au-wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.au-sel { position: absolute; top: 0; bottom: 0; background: rgba(224,69,123,.14); border-top: 2px solid #E0457B; border-bottom: 2px solid #E0457B; cursor: grab; }
.au-hl, .au-hr { position: absolute; top: 0; bottom: 0; width: 14px; cursor: ew-resize; background: #E0457B; }
.au-hl { left: -7px; border-radius: 6px 0 0 6px; } .au-hr { right: -7px; border-radius: 0 6px 6px 0; }
.au-hl::after, .au-hr::after { content: ''; position: absolute; left: 5px; top: 50%; width: 4px; height: 16px; margin-top: -8px; border-left: 1px solid rgba(255,255,255,.8); border-right: 1px solid rgba(255,255,255,.8); }
.au-at { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #E0457B; pointer-events: none; }
.au-at span { position: absolute; top: 4px; left: 6px; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: #E0457B; color: #fff; }
.au-head { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--fg); display: none; pointer-events: none; box-shadow: 0 0 8px var(--fg); }
.cf-audio.playing .au-head { display: block; }
.au-info { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--fg2); }
.au-price { font-size: 12px; padding: 2px 8px; border-radius: 100px; background: var(--line); color: var(--fg); }
.au-hint { line-height: 1.4; }
textarea.vw-in { height: auto; padding: 10px 12px; resize: vertical; font-family: inherit; }

/* картинки */
.cf-photos { padding: 14px !important; gap: 10px; }

/* библиотеки */
.cf-libs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cf-libs button { height: 28px; padding: 0 10px; border-radius: 100px; border: 1px solid var(--line2); background: none; color: var(--fg2); font-size: 12.5px; }
.cf-libs button:hover { color: var(--fg); border-color: #6b6b6d; }
:where([data-theme="light"]) .cf-libs button:hover { border-color: color-mix(in srgb, var(--fg) 30%, transparent); } /* светлая */
.cf-libs button[aria-expanded=true] { background: var(--line); color: var(--fg); border-color: transparent; }
.vlib { background: var(--panel); border: 1px solid var(--line2); border-radius: 20px; padding: 10px; display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; box-shadow: 0 16px 40px color-mix(in srgb, var(--shade) 45%, transparent); animation: vlib-in .2s ease-out; }
@keyframes vlib-in { from { opacity: 0; transform: translateY(-6px); } }
.vlib-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.vlib-tabs::-webkit-scrollbar { display: none; }
.vlib-tabs:has(button:only-child) { display: none; }
.vlib-tabs button { height: 30px; padding: 0 12px; border-radius: 100px; border: 0; background: none; color: var(--muted); font-size: 13px; white-space: nowrap; }
.vlib-tabs button[aria-selected=true] { background: var(--line); color: var(--fg); }
.vlib-search { display: flex; align-items: center; gap: 8px; padding: 0 4px 0 12px; height: 40px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.vlib-search:focus-within { border-color: var(--line2); }
.vlib-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--fg); font-size: 13.5px; }
.vlib-hint { padding: 0 4px; line-height: 1.4; }
.vlib-list { max-height: 320px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; padding-right: 2px; overscroll-behavior: contain; }
.vlib-g { position: sticky; top: 0; z-index: 1; background: var(--panel); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 10px 8px 4px; }
.vlib-i { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border-radius: 10px; border: 0; background: none; color: var(--fg2); text-align: left; }
.vlib-i:hover, .vlib-i:focus-visible { background: var(--line); color: var(--fg); outline: none; }
.vlib-i b { display: block; font-size: 13.5px; font-weight: 600; color: inherit; }
.vlib-i small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vlib-ck { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line2); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--muted); }

/* ══════════ 3. СПИСОК ТРЕКОВ ══════════ */
.list { padding: 16px 16px 24px; gap: 10px; }
.ltabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex-shrink: 0; }
.ltabs::-webkit-scrollbar { display: none; }
.ltabs button { height: 34px; padding: 0 14px; border-radius: 100px; border: 0; background: none; color: var(--muted); font-size: 14px; white-space: nowrap; }
.ltabs button:hover { color: var(--fg); }
.ltabs button[aria-selected=true] { background: var(--card); color: var(--fg); font-weight: 600; }
.tl { display: flex; flex-direction: column; gap: 8px; container-type: inline-size; }
/* список сузился (открыли панель трека) — кнопки фильтров становятся круглыми иконками, всё в одну строку,
   ничего не переносится и не прыгает. Подписи — во всплывающих подсказках (title) */
@container (max-width: 640px) {
  .tl .tl-bar { flex-wrap: nowrap; }
  .tl .tl-bar .tl-search { min-width: 0; }
  .tl .tl-bar .tl-f { width: 38px; padding: 0; justify-content: center; flex: 0 0 38px; font-size: 0; gap: 0; position: relative; }
  .tl .tl-bar .tl-f .lab { display: none; }
  .tl .tl-bar .tl-f .cnt:not(:empty) { position: absolute; top: -4px; right: -4px; font-size: 10px; min-width: 16px; height: 16px; padding: 0 4px; background: var(--accent); color: var(--bg); }
}
.tl-bar::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 8px; background: linear-gradient(var(--bg), transparent); pointer-events: none; } /* строки списка мягко уходят под панель поиска; 8 px — ровно зазор до первой строки, в покое её не задевает */
.tl-bar { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; align-items: center; padding: 10px 0 6px; background: var(--bg); flex-wrap: wrap; }
.tl-search { flex: 1; min-width: 180px; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 100px; background: var(--card); color: var(--muted); border: 1px solid transparent; }
.tl-search:focus-within { border-color: var(--line2); }
.tl-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14px; color: var(--fg); }
.tl-f { height: 38px; padding: 0 14px; border-radius: 100px; border: 1px solid var(--line2); background: none; color: var(--fg2); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.tl-f:hover { color: var(--fg); border-color: #6b6b6d; }
:where([data-theme="light"]) .tl-f:hover { border-color: color-mix(in srgb, var(--fg) 30%, transparent); } /* светлая */
.tl-f[aria-pressed=true] { background: var(--line); color: var(--fg); border-color: transparent; }
.tl-f[aria-pressed=true] svg { color: var(--accent); }
#tlFav[aria-pressed=true] svg { fill: currentColor; }
.tl-f .cnt:not(:empty) { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--line2); font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.tl-list { display: flex; flex-direction: column; gap: 2px; }

.tr { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 8px 10px 8px 8px; border-radius: 16px; cursor: pointer; outline: none; transition: background .12s, box-shadow .12s; } /* фон и обводка меняются вместе — без «запаздывания» рамки */
.tr:hover, .tr:focus-visible { background: var(--card); }
.tr.on { background: var(--card); box-shadow: inset 0 0 0 1px var(--line2); }
.tr.just { animation: tr-just 1.6s ease-out; }
@keyframes tr-just { 0% { background: rgba(224,69,123,.22); } 100% { background: transparent; } }
.tr-cov { position: relative; width: 60px; height: 60px; border-radius: 12px; border: 0; padding: 0; background: center/cover var(--line); color: #fff; font-weight: 700; font-size: 16px; overflow: visible; }
.tr-cov::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .15s; }
.tr-pp { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s, transform .15s; transform: scale(.85); }
.tr-pp .i:last-child { display: none; }
.tr:hover .tr-cov::before, .tr-cov:focus-visible::before, .tr.playing .tr-cov::before { opacity: 1; }
.tr:hover .tr-pp, .tr-cov:focus-visible .tr-pp { opacity: 1; transform: none; }
.tr.playing:not(.paused) .tr-pp .i:first-child { display: none; }
.tr.playing:not(.paused) .tr-pp .i:last-child { display: block; }
.tr-eq { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 3px; }
.tr-eq i { width: 4px; height: 18px; border-radius: 2px; background: #fff; animation: tr-eq .9s ease-in-out infinite; }
.tr-eq i:nth-child(2) { animation-delay: .2s; height: 26px; } .tr-eq i:nth-child(3) { animation-delay: .4s; } .tr-eq i:nth-child(4) { animation-delay: .1s; height: 22px; }
@keyframes tr-eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.tr.playing:not(.paused) .tr-eq { display: flex; }
.tr.playing:not(.paused):hover .tr-eq { display: none; }
.tr.playing .tr-t { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tr-mark { position: absolute; top: -3px; left: -3px; width: 12px; height: 12px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px var(--bg), 0 0 10px rgba(224,69,123,.7); display: none; }
.tr.unheard .tr-mark { display: block; }
.tr:hover .tr-mark, .tr.on .tr-mark { box-shadow: 0 0 0 3px var(--card), 0 0 10px rgba(224,69,123,.7); }
.tr-info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tr-h { display: flex; align-items: center; gap: 4px; min-width: 0; }
.tr-m { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; row-gap: 2px; min-width: 0; }
.tr-t { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tr-ren { width: 24px; height: 24px; border: 0; border-radius: 50%; background: none; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; padding: 0; opacity: 0; }
.tr:hover .tr-ren, .tr-ren:focus-visible { opacity: 1; }
.tr-ren:hover { background: var(--line); color: var(--fg); }
@media (hover: none) { .tr-ren { display: none; } }
.tr-in { font: inherit; font-weight: 700; font-size: 15px; color: var(--fg); background: var(--bg); border: 1px solid var(--line2); border-radius: 8px; padding: 2px 8px; outline: none; min-width: 0; width: 260px; max-width: 100%; }
.tg2 { background: none; border: 1px solid var(--line2); font-weight: 400; }
.tr-m time { font-size: 12px; color: var(--muted); margin-left: 2px; white-space: nowrap; }
.tr-s { font-size: 12.5px; line-height: 1.4; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tr-r { display: flex; align-items: center; gap: 4px; }
.tr-fav.on { color: var(--accent); } .tr-fav.on svg { fill: currentColor; }
.tr-d { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 38px; text-align: right; }
.tr-remix { opacity: 0; transition: opacity .15s; }
.tr:hover .tr-remix, .tr:focus-within .tr-remix, .tr.on .tr-remix { opacity: 1; }
@media (hover: none) { .tr-remix { display: none; } }

/* прелоадер генерации */
/* .tr.tr-gen — сильнее мобильных правил .tr { padding }: снизу место под полоску, иначе она ложится на обложку */
.tr.tr-gen { cursor: default; overflow: hidden; background: linear-gradient(90deg, rgba(162,59,245,.06), rgba(224,69,123,.06)); padding-bottom: 12px; }
.gen-cov { overflow: hidden; background: #1a1424; display: flex; align-items: center; justify-content: center; }
:where([data-theme="light"]) .gen-cov { background-color: color-mix(in srgb, #E0457B 10%, var(--card)); } /* светлая */
.gen-orb { position: absolute; inset: -40%; background: conic-gradient(from 0deg, #A23BF5, #E0457B, #DE762B, #22D3EE, #A23BF5); filter: blur(10px); animation: gen-spin 3.5s linear infinite; opacity: .9; }
@keyframes gen-spin { to { transform: rotate(360deg); } }
.gen-cov .tr-eq { display: flex; z-index: 1; }
.gen-st { display: block; -webkit-line-clamp: unset; }
.gen-shine { font-weight: 600; background: linear-gradient(90deg, var(--fg2) 0%, #fff 40%, #E0457B 50%, var(--fg2) 60%) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gen-shine 2.4s linear infinite; }
@keyframes gen-shine { from { background-position: 100% 0; } to { background-position: -200% 0; } }
.gen-p, .gen-time { font-variant-numeric: tabular-nums; color: var(--fg2); }
.gen-bar { position: absolute; left: 10px; right: 10px; bottom: 5px; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.gen-bar i { display: block; height: 100%; border-radius: 2px; background: var(--grad); box-shadow: 0 0 12px rgba(224,69,123,.8); transition: width 1s linear; position: relative; }
.gen-bar i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: gen-run 1.4s linear infinite; }
@keyframes gen-run { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.gen-hint { white-space: nowrap; }
@media (max-width: 1100px) { .gen-hint { display: none; } }

.gen-cov.has-cov { background-size: cover; background-position: center; }
.gen-cov.has-cov .gen-orb { display: none; }
.gen-cov.has-cov .tr-eq { filter: drop-shadow(0 0 6px rgba(0,0,0,.6)); }

/* ТОП-30, Возможности, Справка */
.top-h { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px 10px; }
.top-h b { font-size: 18px; }
.tr-top { grid-template-columns: 28px 60px minmax(0, 1fr) auto; }
.top-n { font-size: 15px; font-weight: 700; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.top-n.g { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top-a { display: flex; align-items: center; gap: 5px; }
.top-v { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); margin-right: 6px; font-variant-numeric: tabular-nums; }
.help-h { padding: 8px 0; }
.help-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.help-i { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; background: var(--card); color: var(--fg); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.help-i:hover { transform: translateY(-2px); box-shadow: 0 10px 30px color-mix(in srgb, var(--shade) 40%, transparent), inset 0 0 0 1px var(--line2); }
.help-i b { font-size: 14.5px; line-height: 1.35; }
.help-i span { font-size: 12.5px; color: var(--fg2); line-height: 1.45; }
.help-i small { font-size: 11.5px; color: var(--muted); }

/* панель трека: текст и промпт */
.tp { display: flex; flex-direction: column; gap: 10px; }
.tp-h { display: flex; align-items: center; justify-content: space-between; }
.tp-h b { font-size: 14px; }
.tp-style { background: var(--card); border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.5; color: var(--fg2); }
.tp-lyr { white-space: pre-wrap; font-size: 13.5px; line-height: 1.65; color: var(--fg2); }
.lyrics { white-space: normal; }
@media (max-width: 900px) {

  .form { display: none !important; }
  .form-open .form { display: flex !important; position: fixed; inset: 0; z-index: 70; width: 100%; background: var(--bg); padding-top: env(safe-area-inset-top, 0px); }
  .cf-mhead { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 0; }
  .cf-mhead b { font-size: 17px; }
  .list { padding: 8px 12px 96px; }
  .tl-bar { top: -8px; }
  .tr { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; padding: 8px 6px; }
  .tr-cov { width: 52px; height: 52px; }
  .tr-top { grid-template-columns: 22px 52px minmax(0, 1fr) auto; gap: 10px; }
  .panel { inset: 56px 0 var(--siteplayer-h, 0px) 0 !important; }
}
@media (max-width: 480px) {
  .cf-addrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .help-list { grid-template-columns: 1fr; }
  .tl-search { min-width: 100%; }
  .tl-f { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .gen-orb,
.tr-eq i { animation: none !important; } }
/* список подстраивается под свою ширину (панель трека может его сузить) */
.tl-list, #tabTop { container-type: inline-size; }
.tr-dm { display: none; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
@container (max-width: 560px) {
  .tr-remix { display: none; }
  .tr-d { display: none; }
  .tr-dm { display: inline; }
  .tr-fav:not(.on) { display: none; }
  .tr { gap: 10px; }
}
@container (max-width: 380px) {
  .tr { grid-template-columns: 48px minmax(0, 1fr) auto; padding: 6px 4px; }
  .tr-cov { width: 48px; height: 48px; }
  .tr-m time { display: none; }
  .tr-fav { display: none !important; }
  .tr-s { -webkit-line-clamp: 1; }
  .tr-top { grid-template-columns: 18px 48px minmax(0, 1fr) auto; }
}
@container (max-width: 560px) {
  .gen-hint { display: none; }
  /* «Дольше обычного»: «Техподдержка» — под текстом, чтобы время не переносилось */
  .tr-gen.is-long .tr-r { grid-column: 2 / -1; justify-self: start; }
}
.danger-pill { color: #ff8a8a; }
:where([data-theme="light"]) .danger-pill { color: var(--bad); } /* светлая */
.danger-pill:hover:not(:disabled) { background: color-mix(in srgb, var(--bad) 16%, transparent); border-color: color-mix(in srgb, var(--bad) 50%, transparent); color: var(--fg); box-shadow: 0 6px 18px color-mix(in srgb, var(--bad) 18%, transparent); }
.tl-f { transition: background .18s, border-color .18s, color .18s; }
.tl-f:hover { background: color-mix(in srgb, var(--fg) 6%, transparent); }

/* блоки списка — подсветка ярче */
.tr:hover, .tr:focus-visible { background: #2B2B2F; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 7%, transparent); }
:where([data-theme="light"]) .tr:hover, :where([data-theme="light"]) .tr:focus-visible { background-color: var(--hover); } /* светлая */
.tr.on { background: #2B2B2F; box-shadow: inset 0 0 0 1px #57575a; }
:where([data-theme="light"]) .tr.on { background-color: var(--hover); box-shadow: inset 0 0 0 1px var(--line2); } /* светлая */
.tr:hover .tr-mark, .tr.on .tr-mark { box-shadow: 0 0 0 3px #2B2B2F, 0 0 10px rgba(224,69,123,.7); }

/* режим выбора и корзина */
.tr:has(.tr-ck) { grid-template-columns: 24px 60px minmax(0, 1fr) auto; }
.tr-ck { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line2); display: inline-flex; align-items: center; justify-content: center; color: transparent; transition: background .15s, border-color .15s; }
.tr.sel { background: rgba(224,69,123,.1); box-shadow: inset 0 0 0 1px rgba(224,69,123,.45); }
.tr.sel .tr-ck { background: var(--grad); border-color: transparent; color: #fff; animation: cf-pop .3s cubic-bezier(.2,1.6,.4,1); }
.sel-bar { position: sticky; bottom: 8px; z-index: 6; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; padding: 8px 8px 8px 14px; border-radius: 16px; background: color-mix(in srgb, var(--card) 96%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line2); box-shadow: 0 14px 40px color-mix(in srgb, var(--shade) 55%, transparent); animation: vm-in .18s ease-out; }
.sb-n { font-size: 13px; color: var(--fg2); } .sb-n b { color: var(--fg); font-size: 15px; }
.sb-b { border: 0; background: none; color: var(--accent); font-size: 13px; padding: 4px 6px; border-radius: 8px; }
.sb-b:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.tl-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 14px; background: color-mix(in srgb, var(--fg) 4%, transparent); flex-wrap: wrap; }
.tl-icon[aria-pressed=true] { background: var(--grad); color: #fff; }
.tl-icon[aria-pressed=true] svg { color: #fff; }
.tr-like.on { color: #E0457B; }
.tr-like.on svg { fill: currentColor; }
.tr-like.on svg { animation: cf-pop .35s cubic-bezier(.2,1.6,.4,1); }
.top-h { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
.top-h > div { display: flex; flex-direction: column; gap: 2px; }
.top-a { font-size: 12px; color: var(--muted); }

/* «Возможности»: первый экран и карточки */
.fx-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: center; padding: 28px; margin-top: 6px; border-radius: 26px; overflow: hidden; background: radial-gradient(90% 120% at 100% 0%, rgba(162,59,245,.35), transparent 60%), radial-gradient(70% 100% at 0% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%), #18161d; border: 1px solid color-mix(in srgb, var(--fg) 6%, transparent); }
:where([data-theme="light"]) .fx-hero { background-color: var(--card); background-image: radial-gradient(90% 120% at 100% 0%, rgba(162,59,245,.35), transparent 60%), radial-gradient(70% 100% at 0% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%); } /* светлая */
.fx-kicker { display: inline-flex; height: 26px; align-items: center; padding: 0 10px; border-radius: 100px; background: color-mix(in srgb, var(--fg) 8%, transparent); font-size: 12px; color: var(--fg2); }
.fx-hero h2 { margin: 12px 0 10px; font-size: 28px; line-height: 1.18; letter-spacing: -.01em; }
.fx-hero p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--fg2); max-width: 520px; }
.fx-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.fx-go { width: auto; height: 46px; padding: 0 24px; font-weight: 600; box-shadow: 0 10px 30px rgba(229,66,112,.35); }
.fx-go:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(229,66,112,.5); }
.fx-stats { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 20px; font-size: 12.5px; color: var(--muted); }
.fx-stats b { display: block; font-size: 22px; color: #fff; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* «Возможности», шапка: вертушка — пластинка с наклейкой, неподвижный блик, тонарм, круговой спектр и свечение
   (28.10.2026). Тёмный остров в обеих темах, как вся шапка; анимация тихая и непрерывная, уважает «меньше движения» */
.fx-hero-v { position: relative; height: 270px; display: grid; place-items: center; }
.fx-hero-v > * { grid-area: 1 / 1; }
.fx-glow { width: 270px; height: 270px; border-radius: 50%; background: radial-gradient(circle, rgba(224,69,123,.42), rgba(162,59,245,.2) 42%, transparent 68%); filter: blur(8px); animation: fx-pulse 2.4s ease-in-out infinite; }
.fx-ring { position: relative; width: 0; height: 0; }
.fx-ring i { position: absolute; left: -1.5px; top: -9px; width: 3px; height: 18px; border-radius: 2px; background: linear-gradient(to top, #DE762B, #E0457B 55%, #A23BF5); opacity: .9; transform: rotate(var(--a)) translateY(-118px) scaleY(calc(var(--h) * .5)); animation: fx-bar 1.15s ease-in-out infinite var(--d); }
.fx-disc { position: relative; width: 196px; height: 196px; border-radius: 50%; background: radial-gradient(circle, transparent 0 29%, #0d0d0f 29.5% 31%, transparent 31.5%), repeating-radial-gradient(circle, #141417 0 1.2px, #1d1d22 1.2px 2.6px); box-shadow: 0 26px 60px rgba(0,0,0,.65), inset 0 0 0 2px #0b0b0d, inset 0 0 0 3px rgba(255,255,255,.05), inset 0 0 40px rgba(0,0,0,.55); animation: gen-spin 5s linear infinite; }
.fx-label { position: absolute; inset: 64px; border-radius: 50%; background: var(--grad); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--on-media); box-shadow: inset 0 0 0 4px rgba(255,255,255,.12); }
.fx-label b { font-size: 11px; letter-spacing: .02em; margin-top: -14px; }
.fx-label small { font-size: 7.5px; opacity: .75; text-transform: uppercase; letter-spacing: .12em; margin-top: 16px; }
.fx-label::after { content: ''; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: #0d0d0f; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.fx-sheen { width: 196px; height: 196px; border-radius: 50%; pointer-events: none; mix-blend-mode: screen; background: conic-gradient(from 20deg, transparent 0 8%, rgba(255,255,255,.12) 13%, transparent 19% 52%, rgba(255,255,255,.08) 62%, transparent 70%); -webkit-mask: radial-gradient(circle, transparent 0 33%, #000 34%); mask: radial-gradient(circle, transparent 0 33%, #000 34%); }
.fx-arm { position: relative; left: 74px; top: -17px; width: 120px; height: 150px; transform-origin: 80% 15%; animation: fx-arm 4.8s ease-in-out infinite; } /* игла — на внешней дорожке, ось — за кольцом спектра */
.fx-arm-base { fill: #2a2a30; stroke: rgba(255,255,255,.18); stroke-width: 1.5; }
.fx-arm-pin { fill: #8D8D8F; }
.fx-arm-rod { stroke: #C9C9CB; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 4px 6px rgba(0,0,0,.6)); }
.fx-arm-head { fill: #E9E9EA; stroke: rgba(0,0,0,.35); stroke-width: 1; }
@keyframes fx-bar { 0%, 100% { transform: rotate(var(--a)) translateY(-118px) scaleY(calc(var(--h) * .35)); } 50% { transform: rotate(var(--a)) translateY(-118px) scaleY(var(--h)); } }
@keyframes fx-pulse { 0%, 100% { opacity: .75; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.03); } }
@keyframes fx-arm { 0%, 100% { transform: rotate(0deg); } 50% { transform: rotate(-1.2deg); } }
@media (prefers-reduced-motion: reduce) { .fx-glow, .fx-ring i, .fx-disc, .fx-arm { animation: none; } }
.fx-h { margin: 24px 4px 10px; font-size: 18px; }
.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.fx { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 22px; background: var(--card); border: 1px solid transparent; transition: transform .2s, box-shadow .2s, border-color .2s, background .2s; }
.fx:hover { transform: translateY(-3px); background: #242428; border-color: color-mix(in srgb, var(--fg) 8%, transparent); box-shadow: 0 18px 40px color-mix(in srgb, var(--shade) 45%, transparent); }
:where([data-theme="light"]) .fx:hover { background-color: var(--card); } /* светлая */
.fx-top { display: flex; align-items: center; justify-content: space-between; }
.fx-ic { width: 44px; height: 44px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; color: var(--fg); background: linear-gradient(135deg, rgba(162,59,245,.35), rgba(224,69,123,.35)); }
:where([data-theme="light"]) .fx-ic { color: var(--brand-text); } /* светлая: белый значок на бледно-сиреневом не виден */
.fx-price { height: 26px; padding: 0 10px; border-radius: 100px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; }
.fx-price.free { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.fx h4 { margin: 2px 0 0; font-size: 17px; }
.fx p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--fg2); }
.fv { position: relative; display: flex; align-items: center; gap: 2px; height: 46px; padding: 0 2px; border-radius: 12px; background: color-mix(in srgb, var(--shade) 25%, transparent); }
.fv i { flex: 1; min-width: 2px; border-radius: 2px; background: color-mix(in srgb, var(--fg) 22%, transparent); }
.fv i.hl { background: var(--grad); background-attachment: fixed; }
.fv-remix i, .fv-vocal i, .fv-arr i { background: linear-gradient(180deg, #A23BF5, #E0457B); }
.fv-master i { background: linear-gradient(180deg, #2BDE90, #22D3EE); }
.fv-persona i.hl { background: #E0457B; }
.fv-cap { position: absolute; right: 8px; top: 4px; font-size: 10.5px; color: #fff; padding: 1px 6px; border-radius: 6px; background: rgba(224,69,123,.85); }
.fv-split { flex-direction: column; align-items: stretch; height: auto; gap: 3px; padding: 6px; }
.fv-row { display: flex; align-items: center; gap: 2px; height: 20px; }
.fv-row span { width: 50px; font-size: 10.5px; color: var(--muted); flex-shrink: 0; }
.fv-row:first-child i { background: #E0457B; } .fv-row:last-child i { background: #A23BF5; }
.fx-ex { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 100px; border: 1px solid var(--line2); background: none; color: var(--fg2); font-size: 12px; }
.fx-ex:hover { color: var(--fg); border-color: #E0457B; }
.fx-how { display: flex; gap: 4px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.fx-how .i { margin-top: 2px; }
.fx-try { align-self: flex-start; margin-top: auto; }
.fx-prices { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px; padding-bottom: 20px; }
.fx-prices div { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--card); font-size: 13px; color: var(--fg2); }
.fx-prices b { color: var(--fg); white-space: nowrap; }

/* справка: карточки блога с обложками */
.help-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 8px 4px 12px; }
.help-h > div:first-child { display: flex; flex-direction: column; gap: 2px; } .help-h b { font-size: 18px; }
.help-h .tl-search { flex: 0 1 300px; }
.help-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; padding-bottom: 20px; }
.help-i { padding: 0; gap: 0; overflow: hidden; border-radius: 20px; border: 1px solid transparent; }
.help-i:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--fg) 8%, transparent); box-shadow: 0 18px 40px color-mix(in srgb, var(--shade) 45%, transparent); }
.help-img { display: flex; align-items: center; justify-content: center; aspect-ratio: 640 / 274; background: center / cover no-repeat, linear-gradient(135deg, #3a1d57, #5a1f3a); color: rgba(255,255,255,.7); transition: transform .4s; }
.help-i:hover .help-img { transform: scale(1.04); }
.help-b { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; position: relative; background: var(--card); }
.help-tag { align-self: flex-start; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 100px; background: rgba(162,59,245,.18); color: #cfa6ff; }
:where([data-theme="light"]) .help-tag { color: #7B2FC9; } /* светлая */
.help-i b { font-size: 14.5px; }
.help-i small { display: inline-flex; align-items: center; gap: 4px; }
.help-i.big { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.help-i.big .help-img { aspect-ratio: auto; min-height: 220px; height: 100%; }
.help-i.big .help-b { justify-content: center; padding: 22px; }
.help-i.big b { font-size: 20px; line-height: 1.3; }
.help-i.big span { font-size: 13.5px; }

/* «Спеть мотив» прямо в форме */
.cf-hum { padding: 14px !important; gap: 12px; border: 1px solid rgba(224,69,123,.35) !important; background: linear-gradient(180deg, rgba(162,59,245,.08), rgba(224,69,123,.04)), var(--card) !important; animation: vlib-in .2s ease-out; }

/* добавленное из библиотек: плашки с «−» */
.cf-libtags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 2px 0 4px; }

/* ══════════ ТЕЛЕФОН И ПЛАНШЕТ: нижняя панель как в приложениях Suno и Mureka ══════════ */
@media (max-width: 900px) {
  .panel { inset: 56px 0 calc(var(--siteplayer-h, 0px) + var(--mtab-h)) 0 !important; }
  .form-open .form { inset: 0 0 var(--mtab-h) 0 !important; z-index: 70; }
  .list { padding: 8px 12px 24px; }
  .ltabs { display: none; }

  .sel-bar { bottom: 6px; }
}
@media (max-width: 480px) { .tl-icon .lab, #tlAlb .lab { display: none; } .tl-f { flex: 0 0 auto; } .tl-bar .tl-f { padding: 0 12px; } }

/* «Возможности», справка и ТОП подстраиваются под ширину колонки (панель трека её сужает) */
#tabFeat, #tabHelp { container-type: inline-size; }
@container (max-width: 680px) {
  .fx-hero { grid-template-columns: 1fr; padding: 20px; }
  .fx-hero-v { display: none; }
  .fx-hero h2 { font-size: 22px; }
  .help-i.big { display: flex; }
  .help-i.big .help-img { aspect-ratio: 640 / 274; min-height: 0; height: auto; }
  .help-i.big .help-b { padding: 12px 14px 14px; }
  .help-i.big b { font-size: 16px; }
  .help-h .tl-search { flex: 1 1 100%; }
}
@container (max-width: 420px) {
  .fx-hero h2 { font-size: 20px; }
  .fx-stats { gap: 12px; }
  .fx-grid, .help-list, .fx-prices { grid-template-columns: 1fr; }
  .tr-top .tg2 + .tg2 { display: none; }
  .top-h { flex-wrap: wrap; }
}

/* караоке во вкладке «Текст и промпт» */
.ky-sw { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px 0 6px; border-radius: 100px; border: 0; background: none; color: var(--fg2); font-size: 12px; }
.ky-sw:hover { background: var(--line); color: var(--fg); }
.ky-sw[aria-checked=true] { color: var(--fg); } .ky-sw[aria-checked=true] .msw { background: var(--grad); } .ky-sw[aria-checked=true] .msw::after { transform: translateX(12px); }
.ky-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 0; }
.ky-bar:empty { display: none; }
.ky-bar .small { line-height: 1.4; }
.tp-lyr.ky { white-space: normal; display: flex; flex-direction: column; }
.tp-lyr.ky .ky-tag { width: fit-content; margin: 14px 0 2px; padding: 2px 8px; border-radius: 6px; background: color-mix(in srgb, var(--fg) 7%, transparent); color: var(--fg2); font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; } /* часть песни — меткой, а не серой строкой: не сливается с текстом */
.tp-lyr.ky .ky-tag:first-child { margin-top: 2px; }
.ky-gap { height: 10px; }
.ky-l { padding: 2px 8px; margin: 0 -8px; border-radius: 10px; transition: color .3s, background .3s, transform .3s, opacity .3s; transform-origin: left center; }
.ky-on .ky-l { cursor: pointer; }
.ky-on .ky-l:hover { background: color-mix(in srgb, var(--fg) 5%, transparent); }
.ky-on:has(.ky-l.on) .ky-l { opacity: .55; }
.ky-on .ky-l.past { opacity: .4; }
.ky-on .ky-l.on { opacity: 1; color: var(--fg); font-weight: 600; transform: scale(1.015); background: rgba(224,69,123,.08); }
.ky-on .ky-l.on .ky-w { transition: color .15s; color: color-mix(in srgb, var(--fg) 55%, transparent); }
.ky-on .ky-l.on .ky-w.sung { color: var(--fg); text-shadow: 0 0 14px rgba(224,69,123,.55); }
@media (prefers-reduced-motion: reduce) { .ky-l { transition: none; transform: none !important; } }
@media (max-width: 900px) {
  body.has-strip .panel { top: calc(56px + var(--strip-h)) !important; }
}
/* телефон: полоска «баланс на исходе» над списком */
.bal-bar { display: none; }
@media (max-width: 900px) {
  .bal-bar:not([hidden]) { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; margin-bottom: 4px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 14px; color: var(--fg); text-align: left; background: #1C1A1F; }
:where([data-theme="light"]) .bal-bar:not([hidden]) { background-color: var(--sheet); } /* светлая */
  .bal-bar.empty { border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
  .bal-bar small { color: var(--fg2); }
  .bal-bar b { display: block; font-size: 14px; } .bal-bar small { display: block; font-size: 12px; opacity: .9; line-height: 1.3; }
  .bal-go { flex-shrink: 0; height: 32px; padding: 0 14px; border-radius: 100px; background: var(--fg); color: #3a1466; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; }
:where([data-theme="light"]) .bal-go { color: var(--sel-ink); } /* светлая */
}

.cf-create.need-pay:disabled { opacity: 1; filter: none; cursor: pointer; }

/* караоке: текущая строка — крупнее, градиентом и с полосой слева */
.ky-on .ky-l { position: relative; transition: color .3s, background .3s, opacity .3s, font-size .25s, padding .25s; transform: none !important; }
.ky-on:has(.ky-l.on) .ky-l { opacity: .38; }
.ky-on .ky-l.past { opacity: .28; }
.ky-on .ky-l.on { opacity: 1; font-size: 1.22em; line-height: 1.4; font-weight: 700; padding: 8px 12px; margin: 4px -8px; background: linear-gradient(90deg, rgba(224,69,123,.2), rgba(162,59,245,.08) 70%, transparent); box-shadow: inset 3px 0 0 #E0457B; }
.ky-on .ky-l.on .ky-w { color: color-mix(in srgb, var(--fg) 40%, transparent); }
.ky-on .ky-l.on .ky-w.sung { background: var(--grad); background-size: 400% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 0 10px rgba(224,69,123,.45)); }

/* «Дорожки»: две карточки на выбор, как на сайте */
.st { gap: 14px; }
.st-h { display: flex; flex-direction: column; gap: 4px; } .st-h b { font-size: 16px; } .st-h .small { line-height: 1.45; }
.st-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.st-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 12px 16px; border-radius: 18px; border: 1px solid var(--line2); background: linear-gradient(180deg, #2b2b2e, #222225); color: var(--fg); text-align: center; transition: transform .15s, border-color .15s, box-shadow .2s; }
:where([data-theme="light"]) .st-card { background-image: linear-gradient(180deg, var(--card), var(--card)); } /* светлая */
.st-card:hover { transform: translateY(-2px); border-color: #6b6b6d; }
:where([data-theme="light"]) .st-card:hover { border-color: color-mix(in srgb, var(--fg) 30%, transparent); } /* светлая */
.st-card.on { border-color: #E0457B; background: linear-gradient(180deg, #30282f, #241f25); }
:where([data-theme="light"]) .st-card.on { background-image: linear-gradient(180deg, color-mix(in srgb, #E0457B 6%, var(--card)), color-mix(in srgb, #E0457B 6%, var(--card))); } /* светлая */
.st-price { position: absolute; top: 10px; right: 10px; padding: 2px 9px; border-radius: 100px; background: var(--accent); color: var(--fg); font-size: 12px; font-weight: 700; }
.st-ic { display: flex; gap: 10px; color: var(--fg); margin: 4px 0 2px; }
.st-card.on .st-ic { color: #ffd0e0; }
:where([data-theme="light"]) .st-card.on .st-ic { color: var(--brand-text); } /* светлая */
.st-card b { font-size: 15px; }
.st-d { font-size: 12.5px; color: var(--fg2); line-height: 1.4; }
.st-use { font-size: 11.5px; color: var(--muted); }
.st-ck { position: absolute; top: 10px; left: 10px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line2); }
.st-card.on .st-ck { border: 0; background: var(--grad); box-shadow: inset 0 0 0 5px #2b2230; }
:where([data-theme="light"]) .st-card.on .st-ck { box-shadow: inset 0 0 0 5px color-mix(in srgb, #E0457B 6%, var(--card)); } /* светлая */
.st-go { height: 48px; font-size: 15px; }
@container (max-width: 360px) { .st-cards { grid-template-columns: 1fr; } }
#paneStems, #trackStems { container-type: inline-size; }
@media (max-width: 900px) {

  .cf-mhead { display: flex !important; }
}
.ky-on:has(.ky-l.on) .ky-l.on { opacity: 1; }
.ky-on .ky-l.on .ky-w { color: color-mix(in srgb, var(--fg) 50%, transparent); }
.ky-on .ky-l.on .ky-w.sung { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--fg); filter: none; text-shadow: 0 0 12px rgba(255,90,150,.85), 0 0 2px color-mix(in srgb, var(--fg) 60%, transparent); }

/* ════════ v15.4 ════════ */
/* мастеринг запускается по кнопке «Улучшить звук» */
.mg-wrap { padding: 4px 0 12px; }
.mg-wrap > .mg { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 18px; border-radius: 20px; text-align: center; background: radial-gradient(120% 90% at 50% 0%, rgba(162,59,245,.22), transparent 70%), var(--card); border: 1px solid color-mix(in srgb, var(--fg) 6%, transparent); }
.mg-viz { display: flex; align-items: center; gap: 3px; height: 56px; width: 100%; max-width: 300px; }
.mg-viz i { flex: 1; height: var(--h); border-radius: 2px; background: var(--grad); opacity: .85; transform-origin: center; animation: tr-eq 1.6s ease-in-out var(--d) infinite; }
.mg-t { font-size: 17px; }
.mg-l { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--fg2); }
.mg-l li::before { content: '✓'; color: var(--ok); font-weight: 700; margin-right: 8px; }
.mg-go { width: auto; height: 46px; padding: 0 26px; font-weight: 600; box-shadow: 0 10px 28px rgba(229,66,112,.35); }
.mg-n { margin-top: -4px; }

/* «Ремикс» в узком списке — иконкой, а не пропадает */
.tr-remix { gap: 5px; }
@container (max-width: 560px) {
  .tr .tr-remix { display: inline-flex; width: 30px; height: 30px; padding: 0; justify-content: center; border-radius: 50%; }
  .tr .tr-remix .trm-t { display: none; }
}

/* карточка аудио подсвечивается, когда трек отправили в форму */
.cf-audio.flash { animation: au-flash 1.6s ease-out; }
@keyframes au-flash { 0%, 30% { box-shadow: 0 0 0 2px #E0457B, 0 0 30px rgba(224,69,123,.5); } 100% { box-shadow: 0 0 0 0 transparent; } }

/* одна кнопка «Библиотека стилей» */
.cf-libs-one { display: flex !important; align-items: center; gap: 8px; width: 100%; height: auto !important; padding: 9px 12px !important; border-radius: 12px !important; text-align: left; }
.cf-libs-one span { color: var(--fg); font-weight: 600; font-size: 13px; }
.cf-libs-one small { margin-left: auto; color: var(--muted); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 380px) { .cf-libs-one small { display: none; } }
/* пояснение под ползунком */
.cf-ctl-d { display: block; max-height: 0; overflow: hidden; opacity: 0; font-size: 11.5px; line-height: 1.35; color: var(--muted); transition: max-height .2s, opacity .2s, margin .2s; }
.cf-ctl:hover .cf-ctl-d, .cf-ctl:focus-within .cf-ctl-d { max-height: 34px; opacity: 1; margin-top: 2px; }

/* «?» с пояснением в окне голоса */
.vp-qw { position: relative; display: inline-flex; vertical-align: middle; margin-left: 4px; }
.vp-q { width: 16px !important; height: 16px; padding: 0 !important; border-radius: 50% !important; border: 1px solid var(--line2) !important; background: none; color: var(--muted); font-size: 10.5px !important; line-height: 1; display: inline-flex !important; align-items: center; justify-content: center; text-transform: none; }
.vp-tip { display: none; position: absolute; left: -8px; top: calc(100% + 6px); z-index: 5; width: 240px; padding: 10px 12px; border-radius: 12px; background: #2A2A2D; color: var(--fg2); font-size: 12px; line-height: 1.45; text-transform: none; letter-spacing: 0; box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.vp-qw:hover .vp-tip, .vp-q:focus + .vp-tip { display: block; }

/* подсказка после первой генерации */
.tr.hinted { overflow: visible; z-index: 3; }

/* первый визит: приветствие в списке — тонкие волны вместо пластинки, без лишних градиентов */
.welcome { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 40px 16px 30px; }
.onb-on .welcome { align-items: flex-start; text-align: left; padding-left: max(16px, calc(100% - 370px)); }
.wl-wave { width: 200px; height: 66px; overflow: hidden; margin-bottom: 4px; }
.wl-wave path { fill: none; stroke-linecap: round; animation: wl-run 4s linear infinite; }
.wl-wave .w1 { stroke: #E0457B; stroke-width: 2; filter: drop-shadow(0 0 6px rgba(224,69,123,.6)); }
.wl-wave .w2 { stroke: rgba(255,255,255,.35); stroke-width: 1.2; animation-duration: 6s; }
.wl-wave .w3 { stroke: rgba(162,59,245,.55); stroke-width: 1; animation-duration: 3s; }
@keyframes wl-run { to { transform: translateX(-60px); } }
.wl-wave .w2 { animation-name: wl-run2; } @keyframes wl-run2 { to { transform: translateX(-80px); } }
.wl-wave .w3 { animation-name: wl-run3; } @keyframes wl-run3 { to { transform: translateX(-40px); } }
.wl-t { font-size: 21px; } .wl-t span { color: #ff7aa8; }
.onb-on .welcome .wl-t { font-size: 19px; }
.wl-s { color: var(--fg2); font-size: 14px; }
.wl-steps { margin: 8px 0 4px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.wl-steps li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--fg2); }
.wl-steps i { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: 11.5px; font-weight: 700; color: #ff9ac0; border: 1px solid rgba(224,69,123,.6); }
.wl-go { width: auto; height: 46px; padding: 0 26px; margin-top: 6px; font-weight: 600; }
.wl-top { max-width: 340px; margin-top: 4px; padding: 6px 8px; border: 0; border-radius: 8px; background: none; color: var(--fg2); font: inherit; font-size: 13px; line-height: 1.45; text-decoration: underline; text-decoration-color: rgba(224,69,123,.5); text-underline-offset: 3px; cursor: pointer; }
.wl-top:hover { color: var(--fg); }
@media (min-width: 901px) { .wl-go { display: none; } }
.cf-libs-one span { white-space: nowrap; }
.tr.hinted .tr-remix { opacity: 1; }

/* точное значение ползунка — короткое поле, а не на всю ширину */
.cf-ctl .lab .cf-num { width: 72px; height: 26px; margin-left: auto; padding: 0 8px; border-radius: 8px; border: 1px solid var(--accent); background: var(--bg); color: var(--fg); font: inherit; font-size: 13px; text-align: right; outline: none; }
.au-range { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.au-acts button[aria-checked=true] { background: rgba(224,69,123,.1); border: 1px solid #E0457B; }
/* первый визит: подсвечиваем по очереди тот блок формы, о котором говорит подсказка */
.onb-hl { position: relative; z-index: 2; box-shadow: 0 0 0 2px rgba(255,140,185,.9), 0 0 0 7px rgba(224,69,123,.18), 0 0 28px rgba(224,69,123,.35) !important; border-radius: 18px; transition: box-shadow .35s; }
.cf-addrow.onb-hl { border-radius: 14px; }
.cf-create.onb-hl { border-radius: 100px; }

/* ══════ из mastering.css ══════ */
/* ════════════════════════════════════════════════════════════════════
   VeoSuno — таб «Мастеринг»: стили компонента.
   Все правила начинаются с .vsm (корень, который создаёт VSMastering.init),
   поэтому не пересекаются со стилями сайта. Ширина раскладки — через data-lay.
   ════════════════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════════
   1. ТОКЕНЫ И БАЗА — всё внутри .vsm, чтобы не задевать стили сайта.
      Цвета совпадают с переменными veosuno.ru (--grey-1…6, --warning, --success).
   ══════════════════════════════════════════════════════════════ */
.vsm {
  --bg: #101012; --panel: #151517; --card: #1F1F21; --line: #333335; --line2: #49494A;
  --fg: #FFFFFF; --fg2: #C9C9CB; --muted: #8D8D8F;
  --accent: #DE762B; --accent-ink: #101012;
  --ok: #2BDE90; --bad: #FF6B6B; --ref: #8FA3FF; --fade: #22D3EE;
  --grad: linear-gradient(135deg, #A23BF5, #E0457B 55%, #DE762B);
  color: var(--fg); font-family: 'OpenSans', 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; font-size: 14px;
  color-scheme: dark;
}
:where([data-theme="light"]) .vsm { --bg: inherit; --panel: inherit; --card: inherit; --line: inherit; --line2: inherit; --fg: inherit; --fg2: inherit; --muted: inherit; --accent: inherit; --ok: inherit; --bad: inherit; --ref: inherit; --fade: inherit; --accent-ink: var(--on-media); color-scheme: light; } /* светлая: мастеринг на токенах страницы */
.vsm [hidden] { display: none !important; }
.vsm *, .vsm *::before, .vsm *::after { box-sizing: border-box; }
.vsm button, .vsm input, .vsm select { font-family: inherit; color: inherit; }
.vsm button { cursor: pointer; }
.vsm :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .vsm * { transition: none !important; animation: none !important; } }

/* ══════════════════════════════════════════════════════════════
   2. РАСКЛАДКА МАСТЕРИНГА ПО ШИРИНЕ
       Ширину меряет сам таб (ResizeObserver) и ставит data-lay:
       narrow < 560 px — узкая панель; medium 560–959 — одна колонка,
       крупнее волна; wide ≥ 960 — плеер слева, настройки справа.
       Одинаково работает в панели и на странице трека.
   ══════════════════════════════════════════════════════════════ */
.vsm .mst { display: flex; flex-direction: column; }
/* выбор режима: две карточки, активная — с градиентной рамкой */
.vsm .modesw { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 12px 6px; }
.vsm .modeopt { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); text-align: left; color: var(--fg2); transition: border-color .15s, background .15s; }
.vsm .modeopt:hover { border-color: var(--line2); }
.vsm .modeopt .mic { width: 34px; height: 34px; border-radius: 10px; background: var(--line); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--muted); }
.vsm .modeopt .mtx { display: flex; flex-direction: column; min-width: 0; }
.vsm .modeopt b { font-size: 14px; color: var(--fg); }
.vsm .modeopt small { font-size: 11px; line-height: 14px; color: var(--muted); }
.vsm .modeopt[aria-pressed=true] { border-color: transparent; background: linear-gradient(var(--card), var(--card)) padding-box, linear-gradient(135deg, #A23BF5, #E0457B 55%, var(--accent)) border-box; }
.vsm .modeopt[aria-pressed=true] .mic { background: var(--grad); color: #fff; }
.vsm .mst[data-lay=wide] .modesw { max-width: 560px; padding: 12px 16px 10px; }
.vsm .mst[data-lay=medium] .modesw { padding: 12px 16px 6px; }
/* плашка NEW — как на сайте */
.vsm .new { height: 18px; padding: 0 6px; border-radius: 100px; background: linear-gradient(90deg, #A23BF5, #E0457B 55%, var(--accent)); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .04em; display: inline-flex; align-items: center; }
/* ползунок изменён относительно стиля: точка и кнопка ↺ */
.vsm .ctl .chg { display: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.vsm .ctl .rst { display: none; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--line); color: var(--fg2); font-size: 13px; line-height: 1; padding: 0; margin-left: 6px; }
.vsm .ctl .rst:hover { background: var(--line2); color: var(--fg); }
.vsm .changed-ctl .chg, .vsm .changed-ctl .rst { display: inline-flex; align-items: center; justify-content: center; }
.vsm .changed-ctl .val { color: var(--accent); }
.vsm .dot.live { background: var(--accent); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.vsm .mst:not([data-lay=wide]) .mgrid, .vsm .mst:not([data-lay=wide]) .stage { display: contents; }
.vsm .mst .player { position: sticky; top: 0; z-index: 5; background: var(--mbg, var(--panel)); padding: 8px 12px 10px; border-bottom: 1px solid transparent; transition: box-shadow .15s, border-color .15s; }
.vsm .mst .player.stuck { border-bottom-color: var(--line); box-shadow: 0 8px 18px color-mix(in srgb, var(--shade) 40%, transparent); }
.vsm .mst .side { padding: 6px 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.vsm .mst > .actions { position: sticky; bottom: 0; z-index: 6; background: var(--mbg, var(--panel)); padding: 12px 16px; border-top: 1px solid var(--line); }
/* кнопки «Сохранить / Скачать» всегда видны: прилипают к низу (в широкой раскладке — под колонкой плеера) */
.vsm .actions[data-w] { max-width: var(--stagew); }
.vsm .actions button { white-space: nowrap; min-width: 0; }
.vsm .demo { font-size: 11px; color: var(--muted); padding: 8px 2px 0; }
/* medium */
.vsm .mst[data-lay=medium] .viz { height: 160px; }
.vsm .mst[data-lay=medium] .styles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vsm .mst[data-lay=medium] .player, .vsm .mst[data-lay=medium] .side { padding-left: 16px; padding-right: 16px; }
/* wide */
.vsm .mst[data-lay=wide] .mgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: 20px; padding: 4px 16px 0; align-items: start; }
.vsm.is-pro .mst[data-lay=wide] .mgrid { grid-template-columns: minmax(400px, .85fr) minmax(0, 1.3fr); }
.vsm .mst[data-lay=wide] .stage { display: flex; flex-direction: column; gap: 12px; }
.vsm .mst[data-lay=wide] .player { padding: 8px 0 10px; }
.vsm .mst[data-lay=wide] .pcard { padding: 16px; }
.vsm .mst[data-lay=wide] .viz { height: 220px; }
.vsm .mst[data-lay=wide] .play { width: 52px; height: 52px; } .vsm .mst[data-lay=wide] .play .core { width: 44px; height: 44px; }
.vsm .mst[data-lay=wide] .side { padding: 0 0 16px; }
/* модули профи в две колонки, если справа хватает места */
/* профи в две колонки: состав колонок постоянный, раскрытие модуля не двигает соседнюю колонку */
.vsm .pcols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: start; }
.vsm .pcol { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

/* ══════════════════════════════════════════════════════════════
   3. ПЛЕЕР — кнопка, сравнение, волна/спектр, статус
   ══════════════════════════════════════════════════════════════ */
.vsm .pcard { position: relative; background: var(--card); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.vsm .prow { display: flex; align-items: center; gap: 12px; }
.vsm .ptitle { font-size: 15px; font-weight: 600; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vsm .time { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* кнопка play: кольцо заполняется по мере прослушивания (--p) */
.vsm .play { --p: 0%; position: relative; width: 46px; height: 46px; border-radius: 50%; border: 0; padding: 0; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  background: conic-gradient(from 0deg, #A23BF5 0%, #E0457B calc(var(--p) * .55), var(--accent) var(--p), color-mix(in srgb, var(--fg) 10%, transparent) var(--p)); transition: transform .15s, box-shadow .2s; }
.vsm .play .core { width: 39px; height: 39px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; border: 2px solid var(--card); }
.vsm .play .core svg { margin-left: 2px; } .vsm .play.on .core svg { margin-left: 0; }
.vsm .play:hover { transform: scale(1.05); } .vsm .play.on { box-shadow: 0 0 22px rgba(224,69,123,.35); }
.vsm .play-sm { width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--grad); }
.vsm .play-sm svg { width: 11px; height: 11px; }
/* волна / спектр */
.vsm .viz { position: relative; height: 110px; border-radius: 12px; background: var(--bg); overflow: hidden; touch-action: none; cursor: crosshair; }
.vsm .viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vsm .vizbar { display: flex; gap: 2px; padding: 2px; border-radius: 100px; background: var(--bg); flex-shrink: 0; margin-left: auto; }
.vsm .vbtn { width: 30px; height: 24px; border-radius: 100px; border: 0; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.vsm .vbtn[aria-pressed=true] { background: var(--line2); color: var(--fg); }
.vsm .vmode { position: absolute; right: 8px; top: 8px; z-index: 2; }
.vsm .chip { height: 24px; padding: 0 8px; border-radius: 100px; border: 1px solid color-mix(in srgb, var(--fg) 20%, transparent); background: color-mix(in srgb, var(--panel) 85%, transparent); font-size: 11px; display: inline-flex; align-items: center; gap: 4px; }
.vsm .status { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--fg2); font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.vsm .status #stText { display: flex; gap: 6px 8px; align-items: center; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.vsm .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; flex-shrink: 0; }
.vsm .dot.warn { background: var(--accent); } .vsm .dot.bad { background: var(--bad); }
.vsm .progress { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.vsm .progress > i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }
.vsm .actions { display: flex; gap: 8px; }
.vsm .actions .pill { height: 48px; flex: 1; }
.vsm .actions .dlgroup { flex: 1.6; display: flex; min-width: 0; }
.vsm .actions .btn-accent { flex: 1; height: 48px; min-width: 0; }
/* «Скачать» — главное действие страницы */
.vsm #mainBtn svg { flex: none; } /* значок не сжимается в узкой панели */
.vsm #dlBtn, .vsm #mainBtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.vsm #dlBtn:not(:disabled) { box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent); }

/* ══════════════════════════════════════════════════════════════
   4. ОБРЕЗКА — под волной: поля, длина, «Обрезать с … по …»
   ══════════════════════════════════════════════════════════════ */
.vsm .trim { display: flex; flex-direction: column; gap: 8px; }
.vsm .trim:empty { display: none; }
.vsm .trim-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.vsm .tf { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vsm .tf span { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.vsm .tf .field { height: 36px; font-variant-numeric: tabular-nums; }
.vsm .tlen { display: flex; flex-direction: column; align-items: center; gap: 5px; padding-bottom: 10px; font-size: 12px; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vsm .tlen i { display: block; width: 48px; height: 2px; background: var(--accent); border-radius: 1px; }
.vsm .trim-fields .iconbtn { margin-bottom: 2px; }
/* контурная, чтобы не спорить с главной кнопкой «Скачать» */
.vsm .btn-accent.trim-go { height: 40px; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); border: 1.5px solid var(--accent); }
.vsm .btn-accent.trim-go:hover { background: color-mix(in srgb, var(--accent) 20%, transparent); }
.vsm .trim-soft input { accent-color: var(--accent); width: 15px; height: 15px; margin: 0; }
.vsm .trim-hint svg, .vsm .trim-done svg { flex-shrink: 0; }
.vsm .trim-done { font-size: 13px; color: var(--fg2); } .vsm .trim-done svg { color: var(--accent); }

/* ══════════════════════════════════════════════════════════════
   5. ОБЩИЕ ЭЛЕМЕНТЫ — кнопки, переключатели, поля, подсказки
   ══════════════════════════════════════════════════════════════ */
.vsm .grow { flex: 1; min-width: 0; }
.vsm .row { display: flex; align-items: center; gap: 8px; }
.vsm .wrap { flex-wrap: wrap; }
.vsm .small { font-size: 12px; line-height: 17px; color: var(--muted); }
.vsm .pill { height: 34px; padding: 0 14px; border-radius: 100px; border: 1px solid color-mix(in srgb, var(--fg) 15%, transparent); background: transparent; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; }
.vsm .pill.soft { background: color-mix(in srgb, var(--fg) 12%, transparent); border-color: transparent; }
.vsm .pill.sm { height: 28px; padding: 0 10px; font-size: 12px; }
.vsm .pill.ghost { border-color: transparent; color: var(--muted); }
.vsm .pill:disabled { opacity: .4; cursor: default; }
.vsm .btn-accent { height: 44px; border-radius: 100px; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 600; }
.vsm .btn-accent:disabled { opacity: .5; }
.vsm .iconbtn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--fg) 15%, transparent); background: var(--panel); display: inline-flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0; }
.vsm .mini-seg { display: flex; padding: 2px; border-radius: 100px; background: var(--card); gap: 2px; }
.vsm .mini-seg button { height: 30px; padding: 0 14px; border-radius: 100px; border: 0; background: transparent; color: var(--muted); font-size: 13px; }
.vsm .mini-seg button[aria-pressed=true] { background: var(--line2); color: var(--fg); }
.vsm .seg { display: flex; padding: 3px; border-radius: 100px; border: 1px solid color-mix(in srgb, var(--fg) 15%, transparent); gap: 2px; }
.vsm .seg button { flex: 1; height: 30px; border-radius: 100px; border: 0; background: transparent; color: var(--muted); font-size: 13px; white-space: nowrap; padding: 0 10px; }
.vsm .seg button[aria-pressed=true] { background: var(--line); color: var(--fg); }
.vsm .seg.ab { flex-shrink: 0; } .vsm .seg.ab button { padding: 0 10px; font-size: 12px; }
.vsm .q { width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--line2); background: transparent; color: var(--muted); font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0; flex-shrink: 0; cursor: help; }
.vsm select, .vsm .field { height: 36px; border-radius: 10px; border: 1px solid var(--line2); background: var(--panel); font-size: 13px; padding: 0 10px; width: 100%; }
.vsm input[type=range] { accent-color: var(--accent); width: 100%; margin: 0; height: 20px; }
.vsm .ctl { display: flex; flex-direction: column; gap: 6px; }
.vsm .ctl .lab { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.vsm .ctl .val { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--fg); }
.vsm .ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.vsm .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vsm .grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.vsm .menu { position: absolute; left: 0; right: 0; top: 50px; z-index: 20; background: var(--card); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 12px 32px color-mix(in srgb, var(--shade) 60%, transparent); padding: 8px; display: flex; flex-direction: column; gap: 2px; max-height: 420px; overflow: auto; }
.vsm .mi { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; font-size: 13px; background: transparent; border: 0; width: 100%; text-align: left; }
.vsm .mi:hover, .vsm .mi:focus-visible { background: var(--line); }
.vsm .mi.sel { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.vsm .changed { color: var(--accent); font-weight: 400; }

/* ══════════════════════════════════════════════════════════════
   6. РЕЖИМ «НАЧИНАЮЩИЙ» — карточки шагов, стили, площадки
   ══════════════════════════════════════════════════════════════ */
.vsm .content { display: flex; flex-direction: column; gap: 8px; }
.vsm .card { background: var(--card); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
:where([data-theme="light"]) .vsm .card { box-shadow: inset 0 0 0 1px var(--line); } /* светлая: кромка карточки на светлой панели */
.vsm .card.open { outline: 1px solid var(--line2); }
.vsm .stephead { display: flex; align-items: center; gap: 10px; background: none; border: 0; padding: 0; text-align: left; width: 100%; }
.vsm .badge { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--muted); color: var(--muted); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vsm .badge.cur { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.vsm .badge.done { background: var(--ok); border-color: var(--ok); color: var(--accent-ink); }
.vsm .badge.warn { border-color: var(--accent); color: var(--accent); }
.vsm .sh-t { font-size: 15px; font-weight: 600; flex: 1; }
.vsm .sh-r { font-size: 12px; color: var(--muted); text-align: right; }
.vsm .sh-r.warn { color: var(--accent); } .vsm .sh-r.ok { color: var(--ok); }
.vsm .chev { transition: transform .15s; flex-shrink: 0; }
.vsm .open > .stephead .chev, .vsm .mod.open .chev { transform: rotate(180deg); }
.vsm .issue { background: var(--panel); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.vsm .issue.fixed { opacity: .75; }
/* стили звука: 4 готовых + «Мои стили» + «Сохранить как мой стиль» */
.vsm .styles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vsm .style-wrap { position: relative; min-width: 0; display: flex; }
.vsm .style-wrap .style { flex: 1; }
.vsm .style { text-align: left; padding: 10px; border-radius: 14px; border: 1.5px solid transparent; background: var(--panel); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vsm .style[aria-pressed=true] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.vsm .style .n { font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.vsm .style .d { font-size: 12px; line-height: 16px; color: var(--muted); }
.vsm .style[aria-pressed=true] .d { color: var(--fg2); }
.vsm .style.my .d { padding-right: 24px; }
.vsm .style.add { border: 1.5px dashed var(--line2); background: transparent; justify-content: center; }
.vsm .style.add .n { color: var(--fg2); }
.vsm .style.add.hot { border-color: var(--accent); } .vsm .style.add.hot .n { color: var(--accent); }
.vsm .sp { width: 26px; height: 26px; border-radius: 50%; background: var(--line); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vsm .style[aria-pressed=true] .sp { background: var(--accent); }
.vsm .more { position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.vsm .more:hover { background: var(--line); }
.vsm .radio { display: flex; align-items: flex-start; gap: 10px; padding: 10px; border-radius: 12px; background: var(--panel); border: 1.5px solid transparent; text-align: left; width: 100%; }
.vsm .radio[aria-pressed=true] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.vsm .rd { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--muted); flex-shrink: 0; margin-top: 2px; }
.vsm .radio[aria-pressed=true] .rd { border: 5px solid var(--accent); }
.vsm .radio .t { font-size: 14px; font-weight: 600; display: block; } .vsm .radio .d { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; }
/* итог: громкость, пики, версии */
.vsm .metric .k { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.vsm .metric .v { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.vsm .okbox { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--ok) 10%, transparent); font-size: 14px; font-weight: 600; }
.vsm .okbox.warn { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.vsm .okbox .ic { width: 22px; height: 22px; border-radius: 50%; background: var(--ok); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vsm .okbox.warn .ic { background: var(--accent); }
.vsm .ver { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--panel); font-size: 13px; }
/* шаг 4: итог, файл, версии */
.vsm .facts {display:flex;gap:6px 16px;flex-wrap:wrap;font-size:13px;color:var(--muted);align-items:center}
.vsm .facts span {display:inline-flex;align-items:center;gap:5px}.vsm .facts b {font-size:17px;color:var(--fg);font-variant-numeric:tabular-nums}
.vsm .optrow {display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:var(--panel)}
.vsm .optrow .t {font-size:14px;display:block}
.vsm .optrow .sw:disabled {opacity:.4}
.vsm .optrow.wait svg {flex-shrink:0}
.vsm .fmt2 {display:grid;grid-template-columns:1fr 1fr;gap:8px}
.vsm .fmt2 button {display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;border-radius:12px;border:1.5px solid transparent;background:var(--panel);text-align:left}
.vsm .fmt2 button b {font-size:14px}.vsm .fmt2 button span {font-size:12px;color:var(--muted)}
.vsm .fmt2 button[aria-pressed=true] {border-color:var(--accent);background:color-mix(in srgb, var(--accent) 12%, transparent)}
.vsm .more-opts summary {cursor:pointer;font-size:12px;color:var(--muted);padding:2px 0;list-style:none;display:inline-flex;align-items:center;gap:4px}
.vsm .more-opts summary::-webkit-details-marker {display:none}
.vsm .more-opts summary::after {content:'▾';font-size:10px}.vsm .more-opts[open] summary::after {content:'▴'}
.vsm .more-opts[open] {display:flex;flex-direction:column;gap:8px}
.vsm .ver.cur {outline:1px solid var(--accent)}
.vsm .iconbtn.x {width:28px;height:28px;border:0;background:none}
/* мастеринг по образцу */
.vsm .refchart { position: relative; height: 150px; border-radius: 10px; background: var(--bg); }
.vsm .refchart canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.vsm .cmp { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 4px; align-items: center; font-size: 13px; padding: 7px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.vsm .drop { border: 1.5px dashed var(--line2); border-radius: 12px; background: var(--panel); padding: 18px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; width: 100%; }
.vsm .drop.over { border-color: var(--accent); }

/* ══════════════════════════════════════════════════════════════
   7. РЕЖИМ «ПРОФИ» — модули цепочки; на широком экране в 2 колонки
   ══════════════════════════════════════════════════════════════ */

.vsm .pro-style { outline: 1px solid var(--line2); }
.vsm .mod { background: var(--card); border-radius: 12px; display: flex; flex-direction: column; }
:where([data-theme="light"]) .vsm .mod { box-shadow: inset 0 0 0 1px var(--line); } /* светлая: кромка модуля */
.vsm .mod.open { outline: 1px solid var(--line2); }
.vsm .modh { display: flex; align-items: center; gap: 10px; padding: 11px 12px; }
.vsm .modh .nm { font-size: 14px; font-weight: 600; display: block; }
.vsm .modh .sm { font-size: 12px; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vsm .modh .body-btn { flex: 1; min-width: 0; background: none; border: 0; padding: 0; text-align: left; display: flex; align-items: center; gap: 8px; }
.vsm .mod.off .nm { color: var(--muted); }
.vsm .modb { padding: 0 12px 12px; display: flex; flex-direction: column; gap: 12px; }
.vsm .sw { width: 34px; height: 20px; border-radius: 10px; background: var(--line2); position: relative; border: 0; padding: 0; flex-shrink: 0; }
.vsm .sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--fg2); transition: left .12s; }
:where([data-theme="light"]) .vsm .sw::after { background: var(--card); box-shadow: 0 1px 3px color-mix(in srgb, var(--shade) 45%, transparent); } /* светлая: белый бегунок переключателя */
.vsm .sw[aria-checked=true] { background: var(--accent); } .vsm .sw[aria-checked=true]::after { left: 17px; background: var(--accent-ink); }
.vsm .always { width: 34px; font-size: 10px; line-height: 12px; color: var(--muted); text-align: center; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.vsm .gr { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vsm .grbar { flex: 1; height: 6px; border-radius: 3px; background: var(--line); display: flex; justify-content: flex-end; overflow: hidden; }
.vsm .grbar > i { display: block; height: 100%; background: var(--accent); width: 0; }
.vsm .eqbands { display: flex; justify-content: space-between; gap: 2px; padding: 4px 0; }
.vsm .eqb { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 28px; }
.vsm .eqb input { writing-mode: vertical-lr; direction: rtl; width: 22px; height: 120px; }
.vsm .eqb .v { font-size: 10px; color: var(--accent); font-variant-numeric: tabular-nums; } .vsm .eqb .f { font-size: 10px; color: var(--muted); }
.vsm .eqcurve { position: relative; height: 180px; border-radius: 10px; background: var(--bg); touch-action: none; }
.vsm .eqcurve canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ══════════════════════════════════════════════════════════════
   8. ВСПЛЫВАЮЩЕЕ — подсказки, окна, уведомления
   ══════════════════════════════════════════════════════════════ */
.vsm .tip { position: fixed; z-index: 50; max-width: 300px; background: var(--line); border-radius: 12px; padding: 12px; box-shadow: 0 10px 30px color-mix(in srgb, var(--shade) 60%, transparent); display: flex; flex-direction: column; gap: 6px; }
.vsm .tip b { font-size: 14px; } .vsm .tip .p { font-size: 13px; line-height: 18px; color: var(--fg); } .vsm .tip .t { font-size: 12px; line-height: 17px; color: var(--muted); }
.vsm .modal { position: fixed; inset: 0; z-index: 60; background: color-mix(in srgb, var(--shade) 55%, transparent); display: flex; align-items: center; justify-content: center; padding: 16px; }
.vsm .sheet { width: 420px; max-width: 100%; background: var(--card); border-radius: 20px; padding: 18px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.vsm .toast { width: max-content; position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--line); padding: 10px 14px; border-radius: 12px; font-size: 13px; z-index: 70; box-shadow: 0 8px 24px color-mix(in srgb, var(--shade) 50%, transparent); max-width: 90vw; }

/* ══════════════════════════════════════════════════════════════
   9. КНОПКИ КАК НА НОВОЙ СТРАНИЦЕ veosuno.ru/audiov4
      главная — градиент, второстепенная — серая с тонкой рамкой
   ══════════════════════════════════════════════════════════════ */
.vsm .btn-accent { background: radial-gradient(140% 200% at -10% 20%, #DE642B 0%, #E54270 100%); color: #fff; border-radius: 100px; }
.vsm .btn-accent:not(:disabled):hover { filter: brightness(1.08); }
.vsm .pill { background: transparent; }
.vsm .pill.soft, .vsm .actions .pill { background: var(--line2); border: 1px solid color-mix(in srgb, var(--fg) 15%, transparent); }
:where([data-theme="light"]) .vsm .pill.soft, :where([data-theme="light"]) .vsm .actions .pill { background: var(--card); border-color: var(--line2); color: var(--fg); } /* светлая: «Сохранить версию», «Дальше» — белые с рамкой, как .pill */
.vsm .pill.hot { border-color: transparent; background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.vsm #dlBtn.busy { background: linear-gradient(90deg, rgba(229,66,112,.55) var(--pr, 0%), var(--line) var(--pr, 0%)); color: var(--fg); opacity: 1; }
.vsm #dlBtn:not(:disabled) { animation: vsm-ready .5s ease-out; }
@keyframes vsm-ready { from { transform: scale(.96); } to { transform: scale(1); } }

/* ползунки нейтральные; изменённый относительно стиля — оранжевый */
.vsm input[type=range] { accent-color: var(--fg2); }
.vsm .changed-ctl input[type=range], .vsm .eqb input[type=range] { accent-color: var(--accent); }
.vsm .sw[aria-checked=true] { background: var(--grad); }
/* подпись ползунка сама открывает подсказку — вместо «?» в каждой строке */
.vsm .tiplab { cursor: help; text-decoration: underline dotted color-mix(in srgb, var(--fg) 35%, transparent); text-underline-offset: 3px; }
.vsm .numin { width: 72px; height: 24px; border-radius: 6px; border: 1px solid var(--accent); background: var(--bg); color: var(--fg); font-size: 13px; text-align: right; padding: 0 6px; font-variant-numeric: tabular-nums; }
.vsm .ctl .val[data-val] { cursor: text; border-radius: 4px; padding: 0 3px; }
.vsm .ctl .val[data-val]:hover { background: var(--line); }

/* ══════════════════════════════════════════════════════════════
   10. ИСХОДНИК / МАСТЕР — видно, что звучит сейчас
   ══════════════════════════════════════════════════════════════ */
.vsm .abseg { display: flex; padding: 3px; gap: 2px; border-radius: 100px; background: var(--bg); border: 1px solid var(--line2); flex-shrink: 0; }
:where([data-theme="light"]) .vsm .abseg { background: var(--seg-track); border-color: transparent; } /* светлая: переключатель «Исходник / Мастер» — как .vsp-mode */
.vsm .abseg button { height: 30px; padding: 0 12px; border-radius: 100px; border: 0; background: transparent; color: var(--muted); font-size: 12px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.vsm .abseg button i { width: 7px; height: 7px; border-radius: 50%; background: var(--line2); }
.vsm .abseg #abA[aria-checked=true] { background: var(--line); color: var(--fg); }
:where([data-theme="light"]) .vsm .abseg #abA[aria-checked=true] { background: var(--seg-soft); box-shadow: var(--seg-shadow); } /* светлая */
.vsm.cmp .abseg button[aria-checked=true] { background: var(--grad); color: #fff; font-weight: 600; }
.vsm .abseg #abA[aria-checked=true] i { background: var(--fg); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fg) 15%, transparent); }
.vsm .abseg #abB[aria-checked=true] { background: var(--grad); color: #fff; font-weight: 600; }
.vsm .abseg #abB[aria-checked=true] i { background: var(--fg); }
/* звучит исходник: кнопка play серая, чтобы не спутать с мастером */
.vsm.ab-src .play { background: conic-gradient(var(--fg2) var(--p), color-mix(in srgb, var(--fg) 10%, transparent) var(--p)); }
.vsm.ab-src .play .core { background: var(--line2); }
:where([data-theme="light"]) .vsm.ab-src .play .core { background: var(--sel); } /* светлая: играет исходник: графитовая кнопка, а не серая «неактивная» */
.vsm .cmpbar { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(162,59,245,.12); border: 1px solid rgba(162,59,245,.35); font-size: 13px; }
.vsm .zoomctl { position: absolute; right: 8px; bottom: 6px; z-index: 2; display: flex; gap: 4px; }
.vsm .zoomctl .chip { height: 22px; min-width: 24px; justify-content: center; }

/* ══════════════════════════════════════════════════════════════
   11. РЕЗУЛЬТАТ: «Что изменилось», версии, анимации
   ══════════════════════════════════════════════════════════════ */
.vsm .okbox.pop { animation: vsm-pop .45s cubic-bezier(.2,1.4,.4,1); }
.vsm .okbox.pop .ic { animation: vsm-pop .5s .1s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes vsm-pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.vsm .chgs { display: flex; flex-direction: column; gap: 6px; }
.vsm .chg { display: grid; grid-template-columns: 84px 64px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13px; }
.vsm .chg .ck { color: var(--muted); }
.vsm .chg .cv { color: var(--fg); }
.vsm .cbar { position: relative; height: 6px; border-radius: 3px; background: var(--line); }
.vsm .cbar::after { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--line2); }
.vsm .cbar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--grad); animation: vsm-grow .6s ease-out; }
.vsm .cbar.ok { background: color-mix(in srgb, var(--ok) 35%, transparent); }
.vsm .cbar.ok::after { display: none; }
@keyframes vsm-grow { from { width: 0 !important; } }
.vsm .res-card { gap: 12px; }
.vsm .stage-result:empty { display: none; }
.vsm .chip-changed { font-size: 11px; color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent); border-radius: 100px; padding: 1px 8px; }
.vsm .pro-style.compact select { flex: 1; min-width: 0; }
.vsm .linkrow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px dashed var(--line2); background: transparent; text-align: left; }
.vsm .linkrow b { display: block; font-size: 14px; } .vsm .linkrow small { display: block; font-size: 12px; color: var(--muted); }
.vsm .linkrow[aria-expanded=true] .chev { transform: rotate(180deg); }
.vsm .linkrow .lic { width: 30px; height: 30px; border-radius: 9px; background: var(--line); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vsm .refbox { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 12px; background: var(--panel); }
.vsm .issue.fixed { opacity: 1; }
.vsm .okdot { width: 18px; height: 18px; border-radius: 50%; background: var(--ok); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
/* версии */
.vsm .vers .lab .val { margin-left: auto; }
.vsm .ver { gap: 6px; transition: background .3s; }
.vsm .ver .vn { font-size: 13px; }
.vsm .ver.main { background: linear-gradient(90deg, rgba(162,59,245,.10), color-mix(in srgb, var(--accent) 6%, transparent)); }
.vsm .ver.cur { outline: 1px solid var(--accent); }
.vsm .ver.flash { animation: vsm-flash 1.4s ease-out; }
@keyframes vsm-flash { 0% { background: color-mix(in srgb, var(--accent) 35%, transparent); } 100% { background: var(--panel); } }
.vsm .tag-main { margin-left: 6px; font-size: 10px; font-weight: 700; letter-spacing: .03em; color: #fff; background: var(--grad); border-radius: 100px; padding: 1px 6px; vertical-align: 1px; }
.vsm .star { width: 28px; height: 28px; border: 0; background: none; color: var(--muted); padding: 0; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 50%; }
.vsm .star:hover { background: var(--line); color: var(--fg); }
.vsm .iconbtn.vb { width: 30px; height: 30px; border: 0; background: var(--line); color: var(--fg2); }
.vsm .iconbtn.vb:hover { background: var(--line2); color: var(--fg); }
.vsm .cmp-pick { width: 26px; height: 26px; border-radius: 50%; border: 1.5px dashed var(--line2); background: none; color: var(--fg); font-weight: 700; font-size: 12px; flex-shrink: 0; }
.vsm .cmp-pick.on { border: 0; background: var(--grad); }
.vsm .hintbar { font-size: 12px; color: var(--fg2); padding: 8px 10px; border-radius: 10px; background: rgba(162,59,245,.12); }
.vsm .main-note { display: flex; gap: 6px; align-items: flex-start; }
.vsm .main-note svg { flex-shrink: 0; margin-top: 1px; }
/* «сейчас играет» — три прыгающие полоски */
.vsm .eqi { display: inline-flex; align-items: flex-end; gap: 2px; width: 30px; height: 16px; justify-content: center; }
.vsm .eqi i { width: 3px; background: var(--accent); border-radius: 1px; animation: vsm-eq 1s ease-in-out infinite; }
.vsm .eqi i:nth-child(2) { animation-delay: .2s; } .vsm .eqi i:nth-child(3) { animation-delay: .4s; }
@keyframes vsm-eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.vsm .badge { transition: background .2s, border-color .2s; }

/* ══════════════════════════════════════════════════════════════
   12. ДОРАБОТКИ: пресеты EQ, лимитер, файл, шаги, версии
   ══════════════════════════════════════════════════════════════ */
.vsm .pill.eqp[aria-pressed=true] { background: var(--grad); border-color: transparent; color: #fff; }
.vsm .sw.on-lock { display: inline-block; background: var(--grad); cursor: default; }
.vsm .sw.on-lock::after { left: 17px; background: var(--accent-ink); }
.vsm .always { width: 34px; }
.vsm .fmt2 b em { font-style: normal; font-weight: 400; font-size: 12px; color: var(--muted); margin-left: 4px; }
.vsm .nextbtn { align-self: flex-end; height: 34px; }
.vsm .okbox.updating { background: var(--line); font-weight: 400; color: var(--fg2); }
.vsm .okbox .ic.spin { background: none; border: 2px solid var(--line2); border-top-color: var(--accent); animation: vsm-spin .8s linear infinite; }
@keyframes vsm-spin { to { transform: rotate(360deg); } }
.vsm .chgs.dim { opacity: .45; }
.vsm .eqi i { animation-play-state: paused; }
.vsm.is-playing .eqi i { animation-play-state: running; }
.vsm .eqi + .vpp { margin-left: -4px; }
.vsm #dlBtn.nudge { animation: vsm-nudge 1.2s ease-in-out 2; }
@keyframes vsm-nudge { 0%, 100% { box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 35%, transparent); } 50% { box-shadow: 0 0 0 6px rgba(229,66,112,.35), 0 6px 26px rgba(229,66,112,.6); } }
.vsm .eqb .v { cursor: text; border-radius: 3px; }
.vsm .eqb .v:hover { background: var(--line); }
.vsm .eqb .v .numin { width: 34px; height: 18px; font-size: 10px; padding: 0 2px; text-align: center; }
.vsm .sh-r.ok { color: var(--ok); }
.vsm .msep { height: 1px; background: var(--line); margin: 4px 6px; }
.vsm .mi .soon { margin-left: auto; font-size: 10px; color: var(--muted); border: 1px solid var(--line2); border-radius: 100px; padding: 0 6px; }
.vsm .mymenu .mg { font-size: 12px; color: var(--muted); padding: 6px 10px 2px; }
/* на компьютере плеер не прилипает (прокрутка спокойнее); прилипает заголовок раскрытого модуля, чтобы было понятно, где вы */
/* плеер всегда прилипает к верху; заголовок раскрытого модуля прилипает сразу под ним (--vsm-ph — высота плеера, ставит JS) */
.vsm .mod.open > .modh { position: sticky; top: var(--vsm-ph, 0px); z-index: 4; background: var(--card); border-radius: 12px 12px 0 0; box-shadow: 0 6px 12px -8px color-mix(in srgb, var(--shade) 70%, transparent); }
/* широкая: плеер прилипает внутри левой колонки (она растянута на всю высоту сетки), модули справа — к самому верху */
.vsm .mst[data-lay=wide] .stage { align-self: stretch; }
.vsm .mst[data-lay=wide] .stage > .player { position: sticky; top: 0; }

/* ── v7 ── */
/* заголовки шагов: название всегда в одну строку, итог справа обрезается многоточием */
.vsm .stephead .sh-t { flex: 0 0 auto; white-space: nowrap; }
.vsm .stephead .sh-r { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* заголовок раскрытого шага новичка прилипает под компактным плеером */
.vsm .card.open > .stephead { position: sticky; top: var(--vsm-ph, 0px); z-index: 4; background: var(--card); margin: -16px -16px 0; padding: 16px; width: calc(100% + 32px); border-radius: 16px 16px 0 0; }
/* шаг 4 новичка: «Подробнее» */
.vsm .morebtn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; border-radius: 100px; border: 1px dashed var(--line2); background: none; color: var(--fg2); font-size: 13px; }
.vsm .morebtn:hover { color: var(--fg); border-color: var(--muted); }
.vsm .morebtn[aria-expanded=true] .chev { transform: rotate(180deg); }
.vsm .morebox { display: flex; flex-direction: column; gap: 12px; animation: vsm-fade .25s ease-out; }
@keyframes vsm-fade { from { opacity: 0; transform: translateY(-4px); } }
/* стиль у профи — таблетки с прослушиванием */
.vsm .pchips { display: flex; flex-wrap: wrap; gap: 6px; }
.vsm .pchip { height: 34px; padding: 0 14px 0 4px; border-radius: 100px; border: 1px solid var(--line2); background: none; color: var(--fg2); font-size: 13px; display: inline-flex; align-items: center; gap: 8px; transition: background .15s, border-color .15s; }
.vsm .pchip .sp { width: 26px; height: 26px; border-radius: 50%; background: var(--line); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vsm .pchip .sp svg { width: 9px; height: 9px; }
.vsm .pchip:hover { border-color: var(--muted); color: var(--fg); }
.vsm .pchip[aria-pressed=true] { background: color-mix(in srgb, var(--accent) 14%, transparent); border-color: var(--accent); color: var(--fg); }
.vsm .pchip[aria-pressed=true] .sp { background: var(--accent); }
/* «Без»: удерживайте — модуль выключен, отпустили — включён */
.vsm .holdbtn { display: inline-flex; align-items: center; justify-content: center; line-height: 1; box-sizing: border-box; height: 26px; padding: 0 10px; border-radius: 100px; border: 1px solid var(--line2); background: none; color: var(--muted); font-size: 11px; flex-shrink: 0; user-select: none; -webkit-user-select: none; touch-action: none; transition: background .12s, color .12s, transform .12s; }
.vsm .holdbtn:hover:not(:disabled) { color: var(--fg); border-color: var(--muted); }
.vsm .holdbtn.on { background: var(--fg); color: var(--bg); border-color: var(--fg); transform: scale(.94); }
.vsm .holdbtn:disabled { opacity: .35; }
.vsm .mod.bypass { outline: 1px dashed var(--muted); }
.vsm .mod.bypass .modh .sm::before { content: 'сейчас без модуля · '; color: var(--fg); }
/* индикатор сжатия на паузе */
.vsm .gr.idle .grbar { background: none; height: auto; overflow: visible; justify-content: flex-start; }
.vsm .gr.idle .grbar > i { display: none; }
.vsm .gr.idle .grbar::after { content: 'включите ▶, чтобы увидеть сжатие'; font-size: 11px; color: var(--muted); }
.vsm .zoomctl .chip:disabled { opacity: .3; pointer-events: none; }
/* сравнение версий: метки А / Б в панели, на волне и в списке версий */
.vsm .cmp-legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--fg2); margin-top: 4px; min-width: 0; }
.vsm .cmp-tag { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 6px; font-size: 11px; font-weight: 700; flex-shrink: 0; margin-right: 6px; vertical-align: 1px; }
.vsm .cmp-tag.a { background: #E4E4E7; color: var(--bg); }
:where([data-theme="light"]) .vsm .cmp-tag.a { background-color: var(--fg); } /* светлая */
.vsm .cmp-tag.b { background: var(--accent); color: var(--bg); }
.vsm .ver.in-cmp { background: rgba(162,59,245,.08); }
.vsm .ver.in-cmp.cur { outline: 1px solid rgba(162,59,245,.7); }

/* ── v11 ── */
/* «Скачать» + стрелка формата: одна кнопка из двух частей */
.vsm .dlgroup { position: relative; display: flex; }
.vsm .dlgroup .btn-accent { border-radius: 100px 0 0 100px; }
.vsm .dlfmt { width: 46px; flex-shrink: 0; height: 48px; border: 0; border-left: 1px solid color-mix(in srgb, var(--bg) 28%, transparent); border-radius: 0 100px 100px 0; background: radial-gradient(140% 200% at 120% 20%, #E54270 0%, #D9456F 100%); color: #fff; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px 0 0; transition: filter .15s; }
.vsm .dlfmt svg { transition: transform .2s; }
.vsm .dlfmt[aria-expanded=true] svg { transform: rotate(180deg); }
.vsm .dlfmt:hover:not(:disabled) { filter: brightness(1.12); }
.vsm .dlfmt:disabled { opacity: .5; }
.vsm .fmtmenu { z-index: 90; padding: 8px; animation: vsm-fmtin .18s cubic-bezier(.22,1,.36,1); transform-origin: bottom right; }
@keyframes vsm-fmtin { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.vsm .fmtmenu .mg { font-size: 11px; color: var(--muted); padding: 4px 10px; }
.vsm .fmi { align-items: flex-start; }
.vsm .fmi b { display: block; font-size: 14px; font-weight: 600; }
.vsm .fmi small { display: block; font-size: 12px; color: var(--muted); }
.vsm .fmi .fck { width: 16px; color: var(--accent); font-weight: 700; padding-top: 1px; }
.vsm .fmi[aria-checked=true] { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.vsm .frates { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 2px 4px 4px; }
.vsm .frates button { height: 46px; border-radius: 12px; border: 1px solid var(--line2); background: none; color: var(--fg); font-size: 13px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.vsm .frates button small { font-size: 11px; color: var(--muted); }
.vsm .frates button[aria-pressed=true] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
/* строка версий в шаге 4 новичка */
.vsm .verline { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 12px; background: rgba(162,59,245,.08); border: 1px solid rgba(162,59,245,.3); font-size: 13px; animation: vsm-fade .3s ease-out; }
.vsm .verline svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 6px; }
/* «Без» и «?» — только у раскрытого модуля (на компьютере — ещё и при наведении): цепочка спокойнее */
.vsm .mod:not(.open) .modh .holdbtn, .vsm .mod:not(.open) .modh .q { display: none; }
@media (hover: hover) and (pointer: fine) {
  .vsm .mod:not(.open):hover .modh .holdbtn, .vsm .mod:not(.open):hover .modh .q { display: inline-flex; }
}
/* на телефоне — крупнее зоны нажатия (рисунок прежний) */
@media (pointer: coarse) {
  .vsm .q, .vsm .sw { position: relative; }
  .vsm .q::before { content: ''; position: absolute; inset: -12px; }
  .vsm .sw::before { content: ''; position: absolute; inset: -10px -6px; }
  .vsm .holdbtn { height: 34px; padding: 0 12px; font-size: 12px; }
  .vsm .zoomctl .chip { height: 32px; min-width: 36px; }
  .vsm .vbtn { min-width: 38px; min-height: 34px; }
  .vsm .pill.sm { min-height: 36px; }
}
/* на телефоне поля ввода 16 px — иначе iPhone увеличивает страницу при вводе */
@media (pointer: coarse) { .vsm input, .vsm textarea, .vsm select { font-size: 16px !important; } }

/* обрезка: оставить выделенное или вырезать его */
.vsm .trim-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.vsm .trim-mode button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line2, var(--line2)); background: none; color: var(--fg2, var(--fg2)); text-align: left; }
.vsm .trim-mode button b { font-size: 13px; color: var(--fg); }
.vsm .trim-mode button small { font-size: 11.5px; color: var(--muted, var(--muted)); }
.vsm .trim-mode button:hover { border-color: #6b6b6d; }
:where([data-theme="light"]) .vsm .trim-mode button:hover { border-color: color-mix(in srgb, var(--fg) 30%, transparent); } /* светлая */
.vsm .trim-mode button[aria-checked=true] { border-color: transparent; background: linear-gradient(var(--card, var(--card)), var(--card, var(--card))) padding-box, linear-gradient(135deg, #A23BF5, #E0457B 55%, var(--accent)) border-box; border: 1px solid transparent; }

/* пока мастер считается: кнопка формата прячется, заливка прогресса — на всю кнопку, текст не вылезает */
.vsm .dlgroup:has(#dlBtn.busy) .dlfmt { display: none; }
.vsm .dlgroup .btn-accent.busy { border-radius: 100px; }
.vsm #dlBtn { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vsm #dlBtn.busy { font-size: 14px; padding: 0 14px; }

/* ══════════ Мастер «Свой голос» и запись с микрофона (attach.js, voiceWizard / recorder) ══════════
   Окно — общее #siteModal (.smodal.wide). Один акцент — живая волна и «шар» микрофона; остальное спокойное. */
.ssheet:has(> .vw) { width: 600px; padding: 20px 22px 22px; border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.6); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; }
.vw { gap: 18px; }
.vw .vw-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vw .vw-top .sh-t { font-size: 20px; }
.vw .vw-prog { display: flex; flex-direction: column; gap: 8px; margin-top: -6px; }
.vw .vw-prog > span { font-size: 12.5px; color: var(--muted); }
.vw .vw-prog > span b { color: var(--fg); font-weight: 600; margin-left: 4px; }
.vw .vw-prog ol { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 0; padding: 0; list-style: none; }
.vw .vw-prog li { height: 4px; border-radius: 4px; background: var(--line); }
.vw .vw-prog li.done { background: #E0457B; opacity: .55; }
.vw .vw-prog li.on { background: var(--grad); }
.vw .vr-solo { justify-content: center; }
.vw .vw-body { gap: 16px; }
.vw .vw-lead { margin: 0; font-size: 14px; line-height: 1.5; color: var(--fg2); }

/* кнопки внизу шага: текст по центру, вторичная — по ширине текста */
.vw .pill, .vw .cf-create { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.vw .vw-foot { display: flex; gap: 10px; margin-top: 2px; }
.vw .vw-foot .pill { height: 46px; padding: 0 22px; font-size: 14px; flex: 0 0 auto; }
.vw .vw-foot .cf-create { height: 46px; flex: 1; width: auto; font-size: 15px; font-weight: 600; }
.vw .cf-create:disabled { opacity: 1; cursor: default; background: #2a2a2d; color: var(--muted); }
:where([data-theme="light"]) .vw .cf-create:disabled { background: var(--seg-track); color: var(--muted); } /* светлая: неактивная кнопка — светло-серая */
.vw .cf-create .i { flex-shrink: 0; }

/* шаг 1: два способа */
.vw .vw-choice { gap: 12px; }
.vw .vw-choice button { align-items: center; text-align: center; gap: 8px; min-height: 170px; padding: 22px 16px; justify-content: center; border-radius: 18px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; transition: border-color .18s, background .18s, transform .12s; }
.vw .vw-choice b { font-size: 16px; }
.vw .vw-choice small { font-size: 12.5px; line-height: 1.4; }
.vw .vw-ic { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 4px; color: var(--fg); background: #2a2a2d; transition: background .2s, box-shadow .2s; }
:where([data-theme="light"]) .vw .vw-ic { background-color: color-mix(in srgb, var(--fg) 6%, var(--card)); } /* светлая */
.vw .vw-choice button:hover, .vw .vw-choice button:focus-visible { border-color: transparent; background: linear-gradient(#1c1c1f, #1c1c1f) padding-box, var(--grad) border-box; outline: none; }
:where([data-theme="light"]) .vw .vw-choice button:hover, :where([data-theme="light"]) .vw .vw-choice button:focus-visible { background: linear-gradient(var(--card), var(--card)) padding-box, var(--grad) border-box; } /* светлая */
.vw .vw-choice button:hover .vw-ic, .vw .vw-choice button:focus-visible .vw-ic { background: var(--grad); box-shadow: 0 8px 24px rgba(224,69,123,.35); }
.vw .vw-choice button:active { transform: scale(.98); }

/* запись: подготовка, отсчёт, ошибка */
.vr { display: flex; flex-direction: column; gap: 16px; }
.vr-stage { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 14px 8px 6px; }
.vr-stage.sm { padding: 4px 8px 0; }
.vr-orb { width: 84px; height: 84px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--grad); box-shadow: 0 0 0 8px rgba(224,69,123,.12), 0 14px 34px rgba(224,69,123,.35); margin-bottom: 10px; animation: hm-breath 2.4s ease-in-out infinite; }
.vr-orb.busy { background: #222225; box-shadow: none; animation: none; }
:where([data-theme="light"]) .vr-orb.busy { background-color: var(--card); } /* светлая */
.vr-orb.busy .vw-spin { width: 46px; height: 46px; }
.vr-stage.err .vr-orb { background: rgba(255,107,107,.14); color: var(--bad); box-shadow: none; animation: none; }
.vr-t { font-size: 17px; line-height: 1.3; }
.vr-s { max-width: 420px; font-size: 13.5px; line-height: 1.5; color: var(--fg2); }
.vr-tips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.vr-tips span { height: 28px; padding: 0 12px; border-radius: 100px; background: color-mix(in srgb, var(--fg) 6%, transparent); color: var(--fg2); font-size: 12.5px; display: inline-flex; align-items: center; }
.vr-count { font-size: 38px; font-weight: 700; font-variant-numeric: tabular-nums; animation: none; }
.vr-count.tick { animation: vr-tick .8s ease-out; }
@keyframes vr-tick { 0% { transform: scale(1.18); } 100% { transform: scale(1); } }
.vr-mic { display: flex; align-items: center; gap: 10px; padding: 0 4px 0 14px; height: 44px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.vr-mic span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.vr-mic select { flex: 1; min-width: 0; height: 40px; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 13.5px; outline: none; cursor: pointer; text-overflow: ellipsis; }
.vr-mic select option { background: var(--card); }

/* запись: живая волна */
.vr-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.vr-live { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.vr-live i { width: 10px; height: 10px; border-radius: 50%; background: #FF4D4F; animation: hm-dot 1.2s ease-out infinite; }
.vr-time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vr-time b { font-size: 26px; color: var(--fg); font-weight: 700; }
.vr-wave { width: 100%; height: 112px; border-radius: 16px; background: color-mix(in srgb, var(--shade) 30%, transparent); display: block; }
.vr-need { height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--fg) 8%, transparent); overflow: hidden; margin-top: -6px; }
.vr-need i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s linear; }
.vr-ok .vr-need i { background: var(--ok); }

/* шаг 3: фрагмент */
.vf { display: flex; flex-direction: column; gap: 12px; padding: 14px 14px 12px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.vf-wave { position: relative; height: 104px; margin: 4px 0 24px; border-radius: 12px; background: color-mix(in srgb, var(--shade) 28%, transparent); touch-action: none; cursor: pointer; }
.vf-wave canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 12px; }
.vf-sel { position: absolute; top: -4px; bottom: -4px; border-radius: 10px; background: rgba(224,69,123,.12); box-shadow: inset 0 0 0 2px #E0457B; cursor: grab; }
.vf-wave.drag .vf-sel { cursor: grabbing; }
.vf-h { position: absolute; top: 0; bottom: 0; width: 18px; cursor: ew-resize; display: flex; align-items: center; justify-content: center; }
.vf-h[data-edge=a] { left: -9px; } .vf-h[data-edge=b] { right: -9px; }
.vf-h::before { content: ''; width: 10px; height: 36px; border-radius: 6px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.vf-h:hover::before, .vf-wave.drag .vf-h::before { background: #FFE3EC; }
.vf-h em { position: absolute; top: calc(100% + 6px); font-style: normal; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; padding: 1px 7px; border-radius: 6px; background: #E0457B; color: #fff; white-space: nowrap; pointer-events: none; }
.vf-h[data-edge=a] em { left: 4px; } .vf-h[data-edge=b] em { right: 4px; }
.vf-head { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 8px #fff; pointer-events: none; }
.vf-bar { display: flex; align-items: center; gap: 12px; }
.vf-play { width: 44px; height: 44px; border-radius: 50%; border: 0; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--grad); box-shadow: 0 6px 18px rgba(224,69,123,.3); transition: transform .12s; }
.vf-play:active { transform: scale(.94); }
.vf-play .i:last-child, .vf-play.on .i:first-child { display: none; }
.vf-play.on .i:last-child { display: block; }
.vf-len { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.vf-len b { font-size: 18px; font-variant-numeric: tabular-nums; }
.vf-len small { font-size: 12px; color: var(--muted); }
.vf-bar .pill { height: 36px; padding: 0 14px; }

/* переключатели: язык, уровень */
.vw .vw-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.vw .vw-lbl { font-size: 13.5px; color: var(--fg2); }
.vw .vw-seg { display: inline-flex; padding: 3px; border-radius: 100px; background: var(--panel); border: 1px solid var(--line); gap: 2px; }
:where([data-theme="light"]) .vw .vw-seg { background: var(--seg-track); border-color: transparent; } /* светлая: дорожка переключателя, как .vsp-mode */
.vw .vw-seg button { height: 34px; padding: 0 16px; border-radius: 100px; border: 0; background: transparent; color: var(--fg2); font-size: 13.5px; transition: background .15s, color .15s; }
.vw .vw-seg button:hover { color: var(--fg); }
.vw .vw-seg button[aria-checked=true] { background: #3a3a3e; color: var(--fg); }
:where([data-theme="light"]) .vw .vw-seg button[aria-checked=true] { box-shadow: var(--seg-shadow); } /* светлая */
:where([data-theme="light"]) .vw .vw-seg button[aria-checked=true] { background-color: var(--seg-soft); } /* светлая */

/* шаг 4 и 5 */
.vw .vw-phrase { margin: 0; padding: 22px 20px; border-radius: 18px; text-align: center; font-size: 21px; line-height: 1.35; font-weight: 600; background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.vw .vw-phrase span { color: #E0457B; }

/* шаг 6: профиль */
.vw .vw-f { display: flex; flex-direction: column; gap: 7px; }
.vw .vw-f > span { font-size: 13px; color: var(--fg2); display: flex; justify-content: space-between; gap: 8px; }
.vw .vw-f > span i { font-style: normal; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.vw .vw-f .vw-seg { align-self: flex-start; }
.vw .vw-in { height: 48px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); font: inherit; font-size: 14px; outline: none; transition: border-color .15s, box-shadow .15s; }
.vw .vw-in::placeholder { color: #6d6d70; }
:where([data-theme="light"]) .vw .vw-in::placeholder { color: var(--muted); } /* светлая */
.vw .vw-in:hover { border-color: var(--line2); }
.vw .vw-in:focus { border-color: #E0457B; box-shadow: 0 0 0 3px rgba(224,69,123,.18); }
.vw .vw-in.bad { border-color: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 15%, transparent); }
.vw textarea.vw-in { height: auto; min-height: 92px; max-height: 220px; padding: 12px 16px; line-height: 1.45; resize: vertical; }

@media (max-width: 560px) {
  .smodal.wide:has(.vw) { align-items: flex-end; padding: 0; }
  .ssheet:has(> .vw) { width: 100%; border-radius: 22px 22px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); max-height: 94dvh; }
  .vw { gap: 14px; }
  .vw .vw-choice { grid-template-columns: 1fr 1fr; gap: 10px; }
  .vw .vw-choice button { min-height: 150px; padding: 18px 10px; }
  .vw .vw-foot .pill { padding: 0 18px; }
  .vw .vw-phrase { font-size: 18px; padding: 18px 14px; }
  .vr-wave { height: 96px; }
  .vf { padding: 12px 10px 10px; }
  .vf-bar .pill { padding: 0 12px; }
  .vw .vw-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .vr-orb, .vr-count.tick, .vr-live i { animation: none; } }

/* Раздел не шире окна: без этого при открытом «Мастеринге» на ~1440 px содержимое вылезало за край, и страница съезжала влево */
.app > #content { min-width: 0; }

/* Мастеринг → «Сравнить две»: выбирается вся строка версии; выбранная — с градиентной рамкой и буквой А/Б.
   Оранжевая рамка «сейчас играет» в этом режиме скрыта, чтобы её не путали с выбором */
.vsm .ver.pickable { cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.vsm .ver.pickable.cur { outline: none; }
.vsm .ver.pickable:hover { background: #232326; }
:where([data-theme="light"]) .vsm .ver.pickable:hover { background-color: var(--hover); } /* светлая */
.vsm .ver.pickable:hover .cmp-pick:not(.on) { border-color: var(--muted); }
.vsm .ver.pickable:focus-visible { outline: 2px solid #E0457B; outline-offset: 1px; }
.vsm .ver.picked { background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--grad) border-box; }
.vsm .ver.pickable .cmp-pick { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; }

/* ── мастеринг: плавное появление после «Улучшить звук» (mastering.js) ── */
#masterHost.vsm-pre { height: 0; overflow: hidden; opacity: 0; pointer-events: none; }
#masterHost.vsm-in { animation: vsm-in .34s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes vsm-in { from { opacity: 0; transform: translateY(10px); } }
.mg-go:disabled { opacity: 1; filter: none; cursor: progress; } /* «Готовим студию…» — кнопка остаётся яркой: идёт работа, а не «нельзя нажать» */
.mg-spin { display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--on-media) 35%, transparent); border-top-color: var(--on-media); animation: mg-spin .8s linear infinite; }
@keyframes mg-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #masterHost.vsm-in, .mg-spin { animation: none; } }

/* ── развернуть / вернуть узкую панель одним движением (panel.js, #expandBtn) ── */
.form, .panel.anim { transition: width .32s cubic-bezier(.2, .8, .2, 1); }
.lib { transition: opacity .2s; }
.app.pw-anim .lib { opacity: 0; transition: opacity .1s; } /* список на время движения прячем — иначе он сжимается и прыгает */
.app.pw-anim .panel .scroll { opacity: .55; transition: opacity .1s; }
.panel.pw-in .scroll { animation: pw-in .26s ease-out; }
@keyframes pw-in { from { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .form, .panel.anim, .lib, .app.pw-anim .lib, .app.pw-anim .panel .scroll { transition: none; } .panel.pw-in .scroll { animation: none; } }

/* ══════════ ТЕЛЕФОН: карточка трека — во весь экран ══════════
   Открытый трек — отдельный экран, как в приложениях: шапка, полоса новостей и нижние вкладки раздела
   прячутся (закрыть — × в шапке трека), рабочей области остаётся почти вся высота.
   В «Мастеринге» и «Дорожках» свой плеер, поэтому нижний плеер сайта там прячется, пока стоит на паузе:
   не бывает двух плееров в разном состоянии. Если он играет — виден, его можно остановить. */
@media (max-width: 900px) {
  body.panel-open .panel { inset: 0 0 var(--siteplayer-h, 0px) 0 !important; z-index: 80; padding-top: env(safe-area-inset-top, 0px); }
  body.panel-open #mTabs { visibility: hidden; }
  body.panel-open .siteplayer { bottom: 0 !important; z-index: 81; padding-bottom: env(safe-area-inset-bottom, 0px); }
  body.panel-open:has(#panel:is([data-tab="master"], [data-tab="stems"])) .siteplayer:not(.is-playing) { display: none; }
  body.panel-open:has(#panel:is([data-tab="master"], [data-tab="stems"])):not(:has(.siteplayer.is-playing)) .panel { bottom: 0 !important; }
}
/* нижние кнопки мастеринга на телефоне: ниже и компактнее, «Сохранить версию» — значком (подпись остаётся для чтения с экрана) */
@media (max-width: 560px) {
  .panel-foot { padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); }
  .panel-foot .actions .pill, .panel-foot .actions .btn-accent, .vsm .actions .pill, .vsm .actions .btn-accent, .vsm .dlfmt { height: 44px; }
  .vsm .actions .btn-accent { font-size: 15px; }
  .vsm #mainBtn { flex: 0 0 44px; width: 44px; padding: 0; position: relative; }
  .vsm #mainBtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .vsm .actions .dlgroup { flex: 1; }
}
/* мастеринг на телефоне: липкий плеер с волной ниже (было ~290 px — шагам оставалось мало места),
   переключатель «Начинающий / Профи» — в одну строку */
@media (max-width: 560px) {
  .vsm .mst .player { padding: 6px 10px 8px; }
  .vsm .pcard { padding: 10px; gap: 8px; }
  .vsm .viz { height: 84px; }
  .vsm .modesw { padding: 10px 10px 4px; }
  .vsm .modeopt { padding: 7px 10px; gap: 8px; }
  .vsm .modeopt .mic { width: 28px; height: 28px; border-radius: 8px; }
  .vsm .modeopt .mic svg { width: 15px; height: 15px; }
  .vsm .modeopt small { display: none; }
}
/* «⋯» и ↻ в строке трека: подсветка при наведении была того же тона, что и фон наведённой строки, — не видно */
.tr .tr-ic:hover, .tr .tr-ic[aria-expanded=true] { background: color-mix(in srgb, var(--fg) 12%, transparent); }
@media (max-width: 900px) {
  #pageBtn { display: none; } /* на телефоне панель трека и так во весь экран — отдельная страница не нужна */
}
/* выбор нескольких треков на телефоне: «×» — в первой строке справа, кнопки действий — ниже */
@media (max-width: 560px) {
  .sel-bar [data-sb="close"] { order: 1; margin-left: auto; }
  .sel-bar::after { content: ""; order: 1; flex-basis: 100%; height: 0; }
  .sel-bar .pill { order: 2; }
  .sel-bar .grow { display: none; }
}

/* ══ аудит светлой темы 18.10.26: форма музыки ══ */
:where([data-theme="light"]) .cf-count { color: var(--muted); }                       /* М-Н003: счётчик «0/3000» был 1,6:1 */
:where([data-theme="light"]) .cf-ghost, :where([data-theme="light"]) .cf-card textarea::placeholder { color: var(--ph); } /* М-Н008: пример светлее введённого текста */
:where([data-theme="light"]) .cf-ic:disabled { opacity: .45; }                         /* М-Н010 */
:where([data-theme="light"]) .msw { background: #BDBDC7; }                             /* М-Н007: выключенный тумблер был не виден */
:where([data-theme="light"]) .msw::after { box-shadow: 0 1px 2px rgba(20,20,30,.3); }
:where([data-theme="light"]) .cf-card { box-shadow: 0 0 0 1px var(--line); }          /* С-Н013: край карточки на сером фоне */
:where([data-theme="light"]) .wl-t span, :where([data-theme="light"]) .wl-steps i { color: var(--brand-text); }
:where([data-theme="light"]) .wl-wave .w2 { stroke: color-mix(in srgb, var(--fg) 25%, transparent); }
:where([data-theme="light"]) .vsm .mini-seg, :where([data-theme="light"]) .vsm .seg { background: var(--seg-track); border-color: transparent; }
:where([data-theme="light"]) .vsm .mini-seg button[aria-pressed=true], :where([data-theme="light"]) .vsm .seg button[aria-pressed=true] { background: var(--seg-soft); box-shadow: var(--seg-shadow); }
.cf-instr { white-space: nowrap; }                                                     /* М-Н007: «Без слов» не переносится на телефоне */
@media (max-width: 560px) { .cf-ic:disabled { display: none; } }                       /* М-Н010: на телефоне неактивные значки не занимают место */
/* М-Н016: меню модели — выбранная строка отличается от наведения */
:where([data-theme="light"]) .cf-list button[aria-selected=true] { background: var(--brand-soft); }
:where([data-theme="light"]) .cf-list button:hover:not([aria-selected=true]) { background: var(--hover); }
/* М-Н009: «✓ 2 трека в работе» — зелёный успеха, а не случайный бирюзовый градиент */
:where([data-theme="light"]) .cf-create.done { background: var(--ok); color: #fff; }
/* М-Н017: панель трека сужает список — вкладки прокручиваются, край затухает, а не режет слово */
.app:has(#panel:not([hidden])) .ltabs { mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); padding-right: 24px; }
/* С-Н012: выбранная вкладка «Мои треки» — белая с тенью, как выбранный вариант переключателя */
:where([data-theme="light"]) .ltabs button[aria-selected=true] { box-shadow: var(--seg-shadow); }
/* М-Н013: подсказка «Панель можно расширить» отделена от панели тенью */
:where([data-theme="light"]) .rs-tip { box-shadow: var(--shadow-2); }
/* М-Н011: «Считаем мастер…» в светлой — заливка прогресса мягче, тёмный текст читается по всей ширине */
:where([data-theme="light"]) .vsm #dlBtn.busy { background: linear-gradient(90deg, rgba(229,66,112,.28) var(--pr, 0%), var(--line) var(--pr, 0%)); }
/* М-Н015: градиент названия играющего трека — по ширине текста, а не всей строки: короткое название на компьютере
   было одного (оранжевого) края градиента, на телефоне — полным переливом */
.tr.playing .tr-t { width: fit-content; max-width: 100%; }
/* заставка мастеринга теперь только .mg-wrap > .mg: класс .mg у неё совпадал с заголовками меню мастеринга
   («Формат файла», «Частота», «Добавить в альбом») — они рисовались карточкой с розовым свечением */

/* «Возможности», ремикс: пример — мини-карточка трека (обложка с «играть» + название), а не пилюля в две строки */
.fx-ex { align-self: stretch; display: flex; align-items: center; gap: 10px; height: auto; max-width: 100%; padding: 6px 12px 6px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--tint-1); text-align: left; font-size: 13px; transition: border-color .15s, background .15s; }
.fx-ex:hover { color: var(--fg); border-color: color-mix(in srgb, #E0457B 55%, transparent); background: var(--brand-soft); }
.fx-ex-cov { position: relative; flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--media-bg) center / cover; display: grid; place-items: center; color: var(--on-media); }
.fx-ex-cov::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--media-scrim); }
.fx-ex-cov svg { position: relative; }
.fx-ex-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.fx-ex-t small { font-size: 11.5px; color: var(--muted); }
.fx-ex-t b { font-size: 13.5px; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* телефон: полоса «назад» в панели трека; липкий плеер мастеринга и заголовки шагов — под ней */
.pbar { display: none; }
@media (max-width: 900px) {
  .pbar { display: flex; position: sticky; top: 0; z-index: 7; align-items: center; gap: 4px; height: 48px; margin-bottom: 4px; padding: 0 16px 0 4px; background: var(--panel); border-bottom: 1px solid var(--line); }
  .pbar-back { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--fg); display: grid; place-items: center; }
  .pbar-back:active { background: var(--hover); }
  .pbar-t { min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #panel .pbtns { display: none; }
  .vsm .mst .player { top: 48px; }
  .vsm .card.open > .stephead, .vsm .mod.open > .modh { top: calc(var(--vsm-ph, 0px) + 48px); }
}
/* «Создать трек за 19 ₽» + подпись «2 варианта на выбор» в две строки */
.cf-cl:has(> small) { flex-direction: column; gap: 0; line-height: 1.15; }
.cf-cl > small { font-size: 11px; font-weight: 500; opacity: .85; }
/* «Больше опций»: пояснения под ползунками видны всегда — раньше выезжали при наведении и двигали форму (а на телефоне наведения нет) */
.cf-ctl-d { max-height: none; opacity: 1; margin-top: 4px; transition: none; }
/* «Возможности», цифры в шапке: три равные колонки с разделителями, крупные градиентные числа */
.fx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.35; color: var(--muted); }
.fx-stats span { padding: 0 14px; border-left: 1px solid var(--line); }
.fx-stats span:first-child { padding-left: 0; border-left: 0; }
.fx-stats b { font-size: 30px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; margin-bottom: 4px; }
@media (max-width: 480px) { .fx-stats span { padding: 0 10px; } .fx-stats b { font-size: 26px; } }

/* ── ИИ-помощник в полноэкранном редакторе (28.10.2026) ──
   Базовые стили — unknow.css (Влад); здесь только музыка. «Отправить» — в shell-proto.css (общая для фото, видео, музыки). */
.cf-ed-foot { gap: 8px; }
.cf-ed-saved { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cf-ed-foot .pill { height: 40px; padding: 0 18px; font-size: 14px; }
.cf-ed-foot .pill svg { flex-shrink: 0; }
/* «Готово» — закрыть редактор, не покупка: графитовая/белая кнопка (--sel), а не градиент и не на всю ширину */
.cf-ed-foot .cf-ed-done { min-width: 120px; justify-content: center; background: var(--sel); color: var(--sel-ink); border-color: transparent; font-weight: 600; }
.cf-ed-foot .cf-ed-done:hover { background: var(--sel-hover); }
/* «Новый диалог» — справа в шапке помощника, а не полосой на всю ширину */
.cf-ai-h { position: relative; padding-right: 130px; }
.cf-ai-h .cf-ai-new { position: absolute; top: 14px; right: 16px; }
.cf-ai-quota.out { color: var(--muted); }
@media (max-width: 560px) {
  .cf-ed-saved { display: none; }
  .cf-ed-foot .pill { flex: 1; justify-content: center; }
}

/* вкладки «Текст / Помощник» — только на телефоне; на компьютере — кнопка «ИИ-помощник» */
.cf-ed-tabs { display: none; padding: 2px; border-radius: 100px; background: var(--seg-track, var(--card)); gap: 2px; }
.cf-ed-tabs button { height: 32px; padding: 0 14px; border-radius: 100px; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 600; }
.cf-ed-tabs button[aria-selected=true] { background: var(--seg-soft, var(--line2)); color: var(--fg); box-shadow: var(--seg-shadow, none); }
@media (max-width: 900px) {
  .cf-ed-tabs { display: flex; }
  .cf-ed-aitgl, .cf-ed-head .cf-ed-title, .cf-ed-head [data-count] { display: none; }
  .cf-ed .cf-ai { width: 100%; box-shadow: none; z-index: 2; } /* выше поля текста (у него z-index 1 из-за слоя подсветки) */
}
/* поле текста + слой подсветки изменённых строк (3 с после замены) */
.cf-ed-wrap { flex: 1; min-height: 0; position: relative; display: flex; }
.cf-ed-wrap textarea { position: relative; z-index: 1; background: transparent; scrollbar-gutter: stable; }
.cf-ed-hl { position: absolute; inset: 0; z-index: 0; overflow: hidden; scrollbar-gutter: stable; pointer-events: none; white-space: pre-wrap; overflow-wrap: break-word;
  padding: 24px max(24px, calc((100% - 760px) / 2)); font: inherit; font-size: 16px; line-height: 1.7; color: transparent; }
.cf-ed-hl mark { color: transparent; background: var(--brand-soft); border-radius: 4px; box-shadow: 0 0 0 3px var(--brand-soft); opacity: 0; }
.cf-ed-hl.on mark { animation: cf-hl 3s ease-out forwards; }
@keyframes cf-hl { 0% { opacity: 0; } 8%, 70% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cf-ed-hl.on mark { animation: none; opacity: 1; } }
/* выделенный фрагмент: действия помощника работают с ним */
.cf-ai-sel { display: flex; align-items: center; gap: 8px; margin: 6px 16px 0; padding: 6px 6px 6px 12px; border-radius: 12px; background: var(--brand-soft); color: var(--fg2); font-size: 12.5px; }
.cf-ai-sel[hidden] { display: none; }
.cf-ai-sel span { flex: 1; min-width: 0; }
.cf-ai-selx { width: 26px; height: 26px; border-radius: 100px; border: 0; background: transparent; color: var(--fg2); flex-shrink: 0; }
.cf-ai-selx:hover { background: var(--hover); color: var(--fg); }
/* примеры в поле запроса меняются плавно */
.cf-ai-in textarea::placeholder { transition: opacity .3s; }
.cf-ai-in textarea.swap::placeholder { opacity: 0; }
/* «Анализ промпта»: чуть заметнее остальных действий; ответ — разбор по разделам */
.cf-sg.cf-sg-an { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand-text) 45%, transparent); color: var(--fg); }
.cf-ai-msg.ai-an { max-width: 100%; gap: 6px; }
.ai-an-score { display: flex; align-items: baseline; gap: 2px; font-variant-numeric: tabular-nums; }
.ai-an-score b { font-size: 26px; line-height: 1; }
.ai-an-score span { font-size: 14px; color: var(--muted); }
.ai-an-score small { margin-left: 8px; font-size: 12px; color: var(--muted); }
.ai-an-score.low b { color: var(--bad); }
.ai-an-score.mid b { color: var(--accent); }
.ai-an-score.good b { color: var(--ok); }
.ai-an-h { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--fg); }
.cf-ai-msg.ai-an ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; color: var(--fg2); }
.ai-an-p { margin: 0; color: var(--fg2); }
.cf-ai-msg .cf-ai-apply { gap: 6px; }

/* «Сохранённые»: подпись настроек в меню закладки и у шаблона, «Недавние запуски» (28.10.2026, как в видео) */
.cf-sv-s { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.cf-lib-cfg { display: inline-flex; align-items: center; gap: 3px; color: var(--fg2); }
.cf-lib-cfg svg { color: var(--brand-text); flex-shrink: 0; }
.cf-lib-rec { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.cf-lib-rh { display: block; padding: 4px 10px 2px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.cf-lib-i.rec .tx { -webkit-line-clamp: 2; }

/* баланс в шапке редактора: редактор закрывает шапку сайта, а помощник платный (28.10.2026). Вид — как пилюля баланса
   в шапке телефона (.mtop-bal), на токенах; нажатие — пополнение */
.cf-ed-head .cf-ed-bal { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 5px 0 12px; border: 0; border-radius: 100px; background: var(--card); color: var(--fg); font: inherit; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; cursor: pointer; flex-shrink: 0; }
.cf-ed-head .cf-ed-bal:hover { background: var(--hover); }
.cf-ed-head .cf-ed-bal b { width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: var(--on-media); display: inline-flex; align-items: center; justify-content: center; }
[data-bal=empty] .cf-ed-bal .balance { color: var(--bad); }
.vs-guest .cf-ed-bal { display: none; }
:where([data-theme="light"]) .cf-ed-head .cf-ed-bal { box-shadow: inset 0 0 0 1px var(--edge); }

/* «?» у «Анализа промпта» — элемент кита «?» с облачком (.vp-qw); у действий внизу панели облачко открывается вверх */
.cf-sg-w { position: relative; display: inline-flex; align-items: center; gap: 2px; }
.cf-sg-w .vp-qw { position: static; } /* облачко — от левого края кнопки, чтобы не уходило за панель */
.cf-ai-acts .vp-tip { top: auto; bottom: calc(100% + 6px); left: 0; width: 280px; z-index: 6; }
:where([data-theme="light"]) .cf-ai-acts .vp-tip { background: var(--sheet); box-shadow: var(--shadow-2); }

/* фокус «панель → поле» (28.10.2026): пока открыта библиотека (+ Структура, + Исполнитель, библиотека стилей), остальные
   блоки формы бледнеют; ярко — панель (.vlib), её кнопка ([aria-expanded=true]) и поле вставки (.lib-keep). Не модальное
   окно: список треков и меню не трогаем, клик по бледному блоку закрывает панель (attach.js libFocus) */
#createForm.lib-focus .cf-scroll > :not(.vlib):not(.lib-keep):not(#cfAdds),
#createForm.lib-focus .cf-addrow > :not([aria-expanded=true]),
#createForm.lib-focus .cf-head,
#createForm.lib-focus .cf-sticky { opacity: .38; filter: saturate(.5); transition: opacity .25s, filter .25s; cursor: pointer; }
#createForm.lib-focus .cf-scroll > :not(.vlib):not(.lib-keep):not(#cfAdds) *,
#createForm.lib-focus .cf-addrow > :not([aria-expanded=true]) * { pointer-events: none; }
@media (prefers-reduced-motion: reduce) { #createForm.lib-focus .cf-scroll > *, #createForm.lib-focus .cf-head, #createForm.lib-focus .cf-sticky { transition: none; } }

/* «Возможности» — путь из четырёх шагов, примеры «до / после», «Скоро» (28.10.2026) */
.fx-step + .fx-step { margin-top: 8px; }
.fx-h { display: flex; align-items: center; gap: 10px; }
/* заголовок шага прилипает к верху списка при прокрутке — видно, какой шаг читаем (29.10.2026, Станис) */
.fx-h { position: sticky; top: 0; z-index: 3; margin-left: -4px; margin-right: -4px; padding: 10px 4px; background: var(--bg); box-shadow: 0 6px 10px -2px var(--bg); }
.fx-n { width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: var(--on-media); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fx-sub { margin: -4px 4px 12px 40px; font-size: 13px; color: var(--muted); }
.fx-exs { display: flex; flex-direction: column; gap: 6px; }
.fx-exs-h { font-size: 11.5px; color: var(--muted); }
.fx-exs .fx-ex { height: 36px; padding: 0 12px 0 4px; gap: 8px; }
.fx-ex-cov { position: relative; width: 28px; height: 28px; border-radius: 50%; background: center/cover var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--on-media); flex-shrink: 0; }
.fx-ex-cov::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: var(--media-scrim); }
.fx-ex-cov .i { position: relative; }
.fx-ex .fx-ex-cov .i:last-child, .fx-ex.on .fx-ex-cov .i:first-child { display: none; }
.fx-ex.on .fx-ex-cov .i:last-child { display: block; }
.fx-ex.on { color: var(--fg); border-color: var(--brand-text); background: var(--brand-soft); }
.fx-try.ghost { background: none; color: var(--fg2); }
.fx-price.soon { background: var(--brand-soft); color: var(--brand-text); }
.fx.fx-soon { background: linear-gradient(160deg, var(--brand-soft), transparent 60%), var(--card); }
.fx-wait { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ok); margin-top: auto; }
.fx-ai-demo { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--tint-1, color-mix(in srgb, var(--fg) 4%, transparent)); font-size: 12.5px; line-height: 1.45; color: var(--fg2); }
.fx-ai-demo small { display: block; font-size: 11px; color: var(--muted); }
.fx-ai-demo i { font-style: normal; padding: 0 4px; border-radius: 4px; background: color-mix(in srgb, var(--bad) 20%, transparent); color: var(--fg); } /* жанры, которые спорят: одна подсветка в «Было» и в объяснении оценки */
.fx-ai-sc { display: flex; align-items: baseline; gap: 4px; color: var(--muted); }
.fx-ai-sc b { font-size: 18px; color: var(--bad); font-variant-numeric: tabular-nums; }
.fx-ai-sc span { margin-left: 6px; font-size: 12px; }
@media (max-width: 560px) { .fx-sub { margin-left: 4px; } }
.fx-need { display: inline-flex; align-items: center; gap: 2px; margin-left: 4px; padding: 0; border: 0; background: none; color: var(--brand-text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.fx-need:hover { text-decoration: underline; }
.vw-guest { margin: 4px 0 0; color: var(--fg2); }

/* автоподгрузка «Моих треков»: подвал списка — «Загружаем ещё треки…» или «Показать ещё треки» после сбоя */
.tl-more { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 16px 0 24px; font-size: 12.5px; color: var(--muted); }
.tl-more-sp { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--brand-text); animation: gen-spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .tl-more-sp { animation: none; } }


/* М-Н084: персона без названия — поле подсвечено (как у мастера голоса) */
#auPName.bad { border-color: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 15%, transparent); }

/* «Возможности», шапка: «пульт» вместо пластинки (29.10.2026). Тёмная панель-медиа в обеих темах (как плеер), текст — --on-media.
   Цвета дорожек — точки бренд-градиента. Дорожки по очереди звучат соло (4,8 с цикл), бегунок идёт по трекам, мастер — к −14 LUFS */
.fx-desk { grid-template-columns: minmax(0, 1fr); } /* колонка не шире своей половины шапки — свечение не распирает её */
.fx-desk .fx-glow { width: 100%; height: 240px; border-radius: 40%; }
.fxd { position: relative; width: min(100%, 360px); padding: 14px 14px 12px; display: grid; gap: 10px; border-radius: 18px;
  background: rgba(13,13,16,.86); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 26px 60px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.05);
  transform: perspective(900px) rotateY(-7deg) rotateX(3deg); color: var(--on-media); }
.fxd-h { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.fxd-dot { width: 7px; height: 7px; border-radius: 50%; background: #E0457B; box-shadow: 0 0 0 3px rgba(224,69,123,.25); animation: fx-pulse 1.2s ease-in-out infinite; }
.fxd-t { margin-left: auto; font-size: 10.5px; font-weight: 500; opacity: .55; }
.fxd-ls { position: relative; display: grid; gap: 6px; }
.fxd-l { display: grid; grid-template-columns: 58px 1fr 12px; align-items: center; gap: 10px; height: 32px; opacity: .45; animation: fxd-solo 4.8s ease-in-out infinite; animation-delay: calc(var(--k) * 1.2s); }
.fxd-n { font-size: 10.5px; letter-spacing: .02em; opacity: .8; }
.fxd-w { display: flex; align-items: center; gap: 2px; height: 100%; }
.fxd-w i { flex: 1; height: calc(var(--h) * 100%); border-radius: 2px; transform-origin: center; animation: fxd-eq .9s ease-in-out infinite alternate var(--d); }
.fxd-v .fxd-w i { background: #E0457B; }
.fxd-d .fxd-w i { background: #DE762B; }
.fxd-b .fxd-w i { background: #A23BF5; }
.fxd-s .fxd-w i { background: linear-gradient(to top, #DE762B, #E0457B 55%, #A23BF5); }
.fxd-f { position: relative; justify-self: center; width: 4px; height: 26px; border-radius: 2px; background: rgba(255,255,255,.12); }
.fxd-f i { position: absolute; left: -4px; top: var(--y); width: 12px; height: 6px; border-radius: 2px; background: #E9E9EA; box-shadow: 0 2px 4px rgba(0,0,0,.5); animation: fxd-fader 4.8s ease-in-out infinite; animation-delay: calc(var(--k) * 1.2s); }
.fxd-ph { position: absolute; top: -3px; bottom: -3px; left: 68px; width: 2px; border-radius: 1px; background: #fff; box-shadow: 0 0 10px rgba(255,255,255,.7); animation: fxd-ph 4.8s linear infinite; }
.fxd-m { display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.07); font-size: 10.5px; }
.fxd-m > span:first-child { opacity: .8; }
.fxd-meter { position: relative; height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); }
.fxd-meter i { position: absolute; inset: 0 auto 0 0; width: 70%; border-radius: 4px; background: var(--grad); animation: fxd-meter 1.1s ease-in-out infinite alternate; }
.fxd-meter b { position: absolute; top: -3px; bottom: -3px; left: 78%; width: 2px; border-radius: 1px; background: #fff; }
.fxd-lufs { font-weight: 600; font-variant-numeric: tabular-nums; }
@keyframes fxd-eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@keyframes fxd-solo { 0%, 28% { opacity: 1; } 38%, 100% { opacity: .45; } }
@keyframes fxd-fader { 0%, 28% { transform: translateY(-5px); } 38%, 100% { transform: none; } }
@keyframes fxd-ph { from { left: 68px; } to { left: calc(100% - 18px); } }
@keyframes fxd-meter { from { width: 54%; } to { width: 77%; } }
@media (prefers-reduced-motion: reduce) { .fxd-dot, .fxd-l, .fxd-w i, .fxd-f i, .fxd-ph, .fxd-meter i { animation: none; } .fxd-l { opacity: 1; } }

/* «Возможности», шапка: диджейский пульт (29.10.2026). Тёмная панель-медиа в обеих темах, цвета — точки бренд-градиента.
   Джоги крутятся (A быстрее B), световое кольцо идёт навстречу, пэды мигают бегущим огнём, индикаторы уровня прыгают
   ступенями, ручки EQ покачиваются, кроссфейдер ездит A ↔ B; на экране бегут две волны с бегунком посередине */
@container (min-width: 681px) { .fx-hero:has(.fx-dj) { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); } } /* только когда пульт виден; на телефоне шапка в одну колонку */
/* телефон: шапка «Возможностей» — плотнее, кнопка в одну строку, цифры не переносятся */
@container (max-width: 520px) {
  .fx-hero { padding: 18px 16px; border-radius: 20px; }
  .fx-hero h2 { font-size: 21px; line-height: 1.2; margin: 10px 0 8px; }
  .fx-hero p { font-size: 13.5px; line-height: 1.5; }
  .fx-cta { margin-top: 16px; }
  .fx-cta .fx-go { width: 100%; white-space: nowrap; }
  .fx-stats { margin-top: 18px; padding-top: 14px; }
  .fx-stats span { padding: 0 8px; }
  .fx-stats b { font-size: 22px; white-space: nowrap; }
}
.fx-dj { grid-template-columns: minmax(0, 1fr); height: 300px; }
.fx-dj .fx-glow { width: 100%; height: 260px; border-radius: 40%; }
.dj { position: relative; width: min(100%, 390px); padding: 12px; border-radius: 20px; color: var(--on-media);
  background: linear-gradient(180deg, #1b1b21, #111115); border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 30px 60px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.07); transform: perspective(1100px) rotateX(18deg); transform-origin: 50% 100%; }
.dj-scr { display: grid; gap: 4px; padding: 7px 8px; margin-bottom: 10px; border-radius: 9px; background: #060608; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.dj-wf { position: relative; height: 13px; overflow: hidden; }
.dj-wf > span { display: flex; align-items: center; gap: 1px; width: 200%; height: 100%; animation: dj-scroll 7s linear infinite; }
.dj-wb > span { animation-duration: 6.2s; }
.dj-wf i { flex: 1; height: calc(var(--h) * 100%); border-radius: 1px; background: #DE762B; }
.dj-wb i { background: #A23BF5; }
.dj-wf::after { content: ''; position: absolute; left: 50%; top: -2px; bottom: -2px; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 6px #fff; }
.dj-info { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 9.5px; white-space: nowrap; }
.dj-info b { font-weight: 600; }
.dj-info span { padding: 1px 6px; border-radius: 4px; background: rgba(255,255,255,.08); opacity: .8; font-variant-numeric: tabular-nums; }
.dj-body { display: grid; grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr); gap: 10px; align-items: start; }
.dj-jog { position: relative; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #2b2b32 0 58%, #0b0b0e 59% 63%, #1c1c22 64%); box-shadow: 0 8px 16px rgba(0,0,0,.6), inset 0 0 0 2px rgba(255,255,255,.06); }
.dj-jog::before { content: ''; position: absolute; inset: 2%; border-radius: 50%; background: conic-gradient(#DE762B, #E0457B, #A23BF5, transparent 70%, #DE762B);
  -webkit-mask: radial-gradient(circle, transparent 0 64%, #000 65% 69%, transparent 70%); mask: radial-gradient(circle, transparent 0 64%, #000 65% 69%, transparent 70%); animation: gen-spin 3s linear infinite reverse; }
.dj-plat { position: absolute; inset: 12%; border-radius: 50%; background: repeating-conic-gradient(#17171b 0 5deg, #202026 5deg 10deg); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), inset 0 0 18px rgba(0,0,0,.6); animation: gen-spin 2.2s linear infinite; }
.dj-b .dj-plat { animation-duration: 2.7s; }
.dj-mark { position: absolute; left: 50%; top: 5%; width: 3px; height: 20%; margin-left: -1.5px; border-radius: 2px; background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.8); }
.dj-cap { position: absolute; inset: 37%; display: grid; place-items: center; border-radius: 50%; background: var(--grad); font-size: 10px; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,.5), inset 0 0 0 2px rgba(255,255,255,.15); }
.dj-pads { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 9px; }
.dj-pads i { aspect-ratio: 1.25; border-radius: 3px; background: #26262c; box-shadow: inset 0 -2px 0 rgba(0,0,0,.35); animation: dj-pad-a 2.4s steps(1) infinite var(--p); }
.dj-b .dj-pads i { animation-name: dj-pad-b; }
.dj-mix { display: grid; gap: 9px; align-content: start; padding-top: 2px; }
.dj-knobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px 0; justify-items: center; }
.dj-knob { position: relative; width: 19px; height: 19px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #4d4d55, #1c1c21); box-shadow: 0 2px 4px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08); transform: rotate(var(--r)); animation: dj-knob 3.4s ease-in-out infinite var(--kd); }
.dj-knob::after { content: ''; position: absolute; left: 50%; top: 2px; width: 2px; height: 6px; margin-left: -1px; border-radius: 1px; background: #fff; }
.dj-chs { display: flex; justify-content: space-between; height: 66px; padding: 0 4px; }
.dj-vu { position: relative; display: flex; flex-direction: column-reverse; gap: 2px; width: 6px; }
.dj-vu i { flex: 1; border-radius: 1px; background: #DE762B; }
.dj-vu i:nth-child(n+4) { background: #E0457B; }
.dj-vu i:nth-child(n+7) { background: #A23BF5; }
.dj-vu::after { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 40%; background: #141418; animation: dj-vu .8s steps(5) infinite alternate; animation-delay: calc(var(--v) * -.4s); }
.dj-fd { position: relative; width: 4px; border-radius: 2px; background: #050507; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.dj-fd i { position: absolute; left: -6px; top: var(--fy); width: 16px; height: 9px; border-radius: 2px; background: linear-gradient(#efeff1, #a6a6ac); box-shadow: 0 2px 4px rgba(0,0,0,.6); }
.dj-xf { position: relative; height: 6px; margin: 2px 4px 0; border-radius: 3px; background: #050507; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.dj-xf i { position: absolute; top: -5px; left: calc(50% - 9px); width: 18px; height: 16px; border-radius: 3px; background: linear-gradient(#efeff1, #a6a6ac); box-shadow: 0 2px 5px rgba(0,0,0,.6); animation: dj-xf 4.8s ease-in-out infinite; }
@keyframes dj-scroll { to { transform: translateX(-50%); } }
@keyframes dj-pad-a { 0% { background: #E0457B; box-shadow: 0 0 8px rgba(224,69,123,.8); } 13%, 100% { background: #26262c; box-shadow: inset 0 -2px 0 rgba(0,0,0,.35); } }
@keyframes dj-pad-b { 0% { background: #A23BF5; box-shadow: 0 0 8px rgba(162,59,245,.8); } 13%, 100% { background: #26262c; box-shadow: inset 0 -2px 0 rgba(0,0,0,.35); } }
@keyframes dj-knob { 50% { transform: rotate(calc(var(--r) + 40deg)); } }
@keyframes dj-vu { from { height: 72%; } to { height: 8%; } }
@keyframes dj-xf { 0%, 15% { transform: translateX(-24px); } 45%, 60% { transform: translateX(24px); } 90%, 100% { transform: translateX(-24px); } }
@media (prefers-reduced-motion: reduce) { .dj-wf > span, .dj-jog::before, .dj-plat, .dj-pads i, .dj-knob, .dj-vu::after, .dj-xf i { animation: none; } }


/* ТОП-30: сердце «Нравится» */
.tr-like.pop svg { animation: like-pop .45s ease-out; }
.tr-like.on svg { fill: currentColor; }
@keyframes like-pop { 30% { transform: scale(1.35); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .tr-like.pop svg { animation: none; } }

/* онбординг: после первого показа стрелки и подписи перерисовываются без анимации появления — при переключении вкладок
   они больше не «рисуются» заново и не дёргаются (класс drawn ставит studio.js drawOnb; базовые стили — unknow.css) */
.onb.drawn .onb-a { animation: none; stroke-dashoffset: 0; }
.onb.drawn .onb-h, .onb.drawn .onb-l { animation: none; opacity: 1; }

/* вкладки «Мои треки / ТОП-30 / …»: рамка фокуса внутрь — контейнер с прокруткой обрезал её сверху и снизу, оставались «скобки» */
.ltabs button:focus-visible { outline-offset: -2px; }
.ltabs button:focus:not(:focus-visible) { outline: none; }

/* ТОП-30: шапка-плеер (30.10.2026). Фон — размытая обложка + цвет обложки (--amb, считает studio.js ambient);
   крупная обложка-кнопка, строки песни с подсветкой слов, прогресс, «Создать» и «Сделать похожий» одной высоты */
#tabTop { --amb: 162, 59, 245; transition: background .8s ease; background: radial-gradient(120% 60% at 50% 0%, rgba(var(--amb), .14), transparent 70%); }
.top-pl { position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; align-items: center; margin: 6px 0 12px; padding: 22px; border-radius: 24px; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, rgba(var(--amb), .38), rgba(var(--amb), .12) 55%, rgba(16,16,18,.6)), #121215; border: 1px solid rgba(var(--amb), .35); color: var(--on-media); transition: background .8s ease, border-color .8s ease; }
.top-pl-bg { position: absolute; inset: -40px; z-index: -1; background: center / cover; filter: blur(48px) saturate(1.3); opacity: .35; transform: scale(1.1); }
.top-pl-cvw { align-self: center; }
.top-pl-cv { position: relative; display: block; width: 200px; height: 200px; border: 0; padding: 0; border-radius: 18px; background: #222 center / cover; cursor: pointer; box-shadow: 0 20px 44px rgba(0,0,0,.55); transition: transform .25s ease; }
.top-pl-cv:hover { transform: scale(1.02); }
.top-pl-pp { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px; border-radius: 50%; display: grid; place-items: center; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); color: #fff; opacity: .95; transition: opacity .2s; }
.top-pl.on .top-pl-pp { opacity: 0; }
.top-pl.on .top-pl-cv:hover .top-pl-pp { opacity: .95; }
.top-pl.on .top-pl-cv { animation: top-beat 1.8s ease-in-out infinite; }
@keyframes top-beat { 50% { box-shadow: 0 20px 60px rgba(var(--amb), .55); } }
.top-pl-k { display: inline-block; padding: 4px 10px; border-radius: 100px; background: rgba(0,0,0,.35); font-size: 12px; color: rgba(255,255,255,.85); }
.top-pl h2 { margin: 10px 0 4px; font-size: 26px; line-height: 1.15; letter-spacing: -.01em; color: #fff; }
.top-pl-a { font-size: 13.5px; color: rgba(255,255,255,.78); }
.top-pl-ly { min-height: 66px; margin: 12px 0 4px; }
.ly-l { margin: 0; font-size: 13px; line-height: 1.6; color: rgba(255,255,255,.62); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.ly-l.cur { font-size: 16px; font-weight: 600; color: rgba(255,255,255,.55); }
.ly-l.cur span.on { color: #fff; text-shadow: 0 0 14px rgba(var(--amb), .9); }
.ly-l span { transition: color .15s; }
.ly-hint { color: rgba(255,255,255,.66); font-size: 13px; padding-top: 22px; white-space: normal; }
.ly-hint b { color: #fff; font-weight: 600; }
.top-pl-prog { height: 4px; border-radius: 2px; background: rgba(255,255,255,.15); overflow: hidden; }
.top-pl-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #fff, rgba(var(--amb), 1)); border-radius: 2px; }
.top-pl-time { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11.5px; color: rgba(255,255,255,.55); font-variant-numeric: tabular-nums; }
.top-pl-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.top-pl-act > * { height: 44px; }
.top-pl-act .fx-go { width: auto; padding: 0 22px; }
.top-pl-sim { display: inline-flex; align-items: center; gap: 6px; padding: 0 18px; border-radius: 100px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); color: #fff; font-size: 14px; }
.top-pl-sim:hover { background: rgba(255,255,255,.18); }
@container (max-width: 600px) {
  .top-pl { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 16px; align-items: start; }
  .top-pl-cv { width: 112px; height: 112px; border-radius: 14px; }
  .top-pl-pp { width: 46px; height: 46px; margin: -23px; }
  .top-pl h2 { font-size: 19px; margin-top: 8px; }
  .top-pl-ly, .top-pl-prog, .top-pl-time, .top-pl-act { grid-column: 1 / -1; }
  .top-pl-t { display: contents; }
  .top-pl-k, .top-pl h2, .top-pl-a { grid-column: 2; margin-top: 0; justify-self: start; }
  .top-pl-cvw { grid-row: 1 / span 3; }
  .top-pl { row-gap: 6px; }
  .top-pl-ly { margin: 4px 0 0; min-height: 0; }
  .top-pl-act .fx-go, .top-pl-sim { flex: 1; justify-content: center; }
}
/* строка трека ТОП-30: автор — своей строкой, метки «Хит» / «Новинка» и жанр — третьей */
/* строка трека ТОП-30 (30.10.2026): название + метка / теги / автор · прослушивания */
.tr-top .tr-h { gap: 8px; }
.tr-top .tr-m { margin-top: 4px; }
.tr-top .top-a { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.top-st { display: flex; align-items: center; gap: 14px; margin-right: 6px; }
.tr-top .top-v { margin: 0; gap: 5px; font-size: 12.5px; min-width: 48px; }
.top-lk { display: inline-flex; align-items: center; gap: 5px; min-width: 48px; height: 32px; padding: 0 6px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: inherit; font-size: 12.5px; font-variant-numeric: tabular-nums; cursor: pointer; }
.top-lk:hover { color: var(--fg); background: var(--line); }
.top-lk.on { color: #E0457B; }
@container (max-width: 560px) {
  .top-st { flex-direction: column; align-items: flex-end; gap: 0; margin-right: 0; }
  .top-lk { height: 26px; min-width: 0; padding: 0 4px; }
  .tr-top .top-v { min-width: 0; padding-right: 4px; font-size: 11.5px; }
}
/* метки: «Хит» — огонёк, тёплый контур; «Новинка» — зелёная с «живой» точкой */
.top-b { flex: none; display: inline-flex; align-items: center; gap: 3px; height: 17px; padding: 0 6px; border-radius: 6px; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; line-height: 1; white-space: nowrap; }
.top-b svg { margin-left: -1px; }
.top-b em { font-style: normal; }
/* телефон (М-Н137): в строке списка метки — только значки, чтобы название не обрезалось; подпись — в title и в плеере */
@container (max-width: 560px) {
  .tr-top .top-b { padding: 0 4px; }
  .tr-top .top-b em { display: none; }
  .tr-top .top-b-new { padding: 0 5px; }
}
.top-b-hit { color: #FFA05E; background: rgba(255,122,61,.13); box-shadow: inset 0 0 0 1px rgba(255,122,61,.42); }
.top-b-new { color: #52E09C; background: rgba(46,204,123,.13); box-shadow: inset 0 0 0 1px rgba(46,204,123,.42); }
.top-b-new i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 0 rgba(46,204,123,.6); animation: top-dot 2s ease-out infinite; }
@keyframes top-dot { 70% { box-shadow: 0 0 0 5px rgba(46,204,123,0); } 100% { box-shadow: 0 0 0 0 rgba(46,204,123,0); } }
:where([data-theme="light"]) .top-b-hit { color: #C2410C; background: rgba(234,88,12,.09); box-shadow: inset 0 0 0 1px rgba(234,88,12,.35); }
:where([data-theme="light"]) .top-b-new { color: #047857; background: rgba(16,185,129,.1); box-shadow: inset 0 0 0 1px rgba(16,185,129,.38); }
.top-b-clip { color: #FF6FA3; background: none; box-shadow: inset 0 0 0 1px rgba(255,111,163,.5); }
.top-b-clip svg { width: 10px; height: 10px; }
:where([data-theme="light"]) .top-b-clip { color: #D0306E; box-shadow: inset 0 0 0 1px rgba(208,48,110,.45); }
.top-pl-k .top-b { height: auto; padding: 0; background: none; box-shadow: none; }
/* рамка с переливом — у обложки: наведение, а во время превью — быстрее */
@property --top-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.tr-top .tr-cov::after { content: ''; position: absolute; inset: -3px; border-radius: 15px; padding: 2px; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: conic-gradient(from var(--top-ang), #A23BF5, #E0457B, #DE762B, #E0457B, #A23BF5);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@media (hover: hover) and (pointer: fine) { .tr-top .tr-cov:hover::after { opacity: 1; animation: top-spin 2.4s linear infinite; } }
.tr-top.pv .tr-cov::after { opacity: 1; animation: top-spin 1.1s linear infinite; }
/* превью ещё нельзя (браузер ждёт первого нажатия на странице) — подсказка над обложкой */
.tr-top.pv-wait .tr-cov::before { content: 'Нажмите — и слушайте'; position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); z-index: 3; padding: 5px 9px; border-radius: 8px; background: var(--fg); color: var(--bg); font-size: 11.5px; font-weight: 500; white-space: nowrap; pointer-events: none; animation: top-tip .2s ease-out; }
@keyframes top-tip { from { opacity: 0; transform: translate(-50%, 4px); } }
@keyframes top-spin { to { --top-ang: 360deg; } }
/* превью при наведении: обложка «дышит» */
.tr-top.pv .tr-eq { opacity: 1; }
/* заголовок над плеером */
.top-head { position: relative; overflow: hidden; margin: 6px 0 14px; padding: 22px 24px 20px; border-radius: 24px; isolation: isolate;
  background: radial-gradient(80% 120% at 0% 0%, rgba(222,118,43,.16), transparent 60%), radial-gradient(70% 120% at 100% 0%, rgba(162,59,245,.2), transparent 60%), var(--card); box-shadow: inset 0 0 0 1px var(--line2); }
.top-head-30 { position: absolute; right: -10px; top: 50%; transform: translateY(-50%); z-index: -1; font: 900 190px/1 Inter, Arial, sans-serif; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--fg) 12%, transparent); }
.top-head h2 { margin: 0; font-size: 26px; line-height: 1.15; letter-spacing: -.015em; max-width: 620px; }
.top-head h2 .g { background: var(--grad, linear-gradient(90deg, #DE762B, #E0457B, #A23BF5)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top-head p { margin: 8px 0 14px; font-size: 14px; line-height: 1.5; color: var(--fg2, var(--muted)); max-width: 600px; }
/* факты о ТОПе — просто строка с иконками, без рамок: не похожи на кнопки-фильтры (М-Н131) */
.top-head-c { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.top-head-c span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--fg2, var(--fg)); }
.top-head-c .i, .top-head-c svg { width: 14px; height: 14px; }
/* плеер закреплён сверху; список уезжает под него */
.top-pl { transition: background .8s ease, border-color .8s ease; }
/* компактный вид — плавно: обложка и отступы уменьшаются, лишнее сворачивается по высоте */
/* прогресс: толще под пальцем, тянется */
.top-pl-prog { position: relative; cursor: pointer; touch-action: none; }
.top-pl-prog::before { content: ''; position: absolute; inset: -10px 0; }
.top-pl-prog { transition: transform .15s; transform-origin: 50% 50%; }
.top-pl-prog:hover { transform: scaleY(1.6); }
/* слово, которое звучит сейчас */
.ly-l span { display: inline; transition: color .15s; }
.ly-l.cur { color: color-mix(in srgb, rgb(var(--amb)) 45%, rgba(255,255,255,.62)); }
.ly-l.cur { background-image: linear-gradient(90deg, #FF9F5A, #FF5C93 50%, #B57BFF); -webkit-background-clip: text; background-clip: text; text-shadow: none; }
.ly-l.cur span { color: rgba(255,255,255,.62); }
.ly-l.cur span.on { color: transparent; }
.ly-l.cur span.now { color: #fff; text-shadow: 0 0 14px rgba(255,92,147,.7); } /* звучащее слово — белое; трансформ тут нельзя: слово выпадает из заливки строки */
/* без текста: как сделан трек, бегущей строкой */
.top-pl-how { display: flex; align-items: center; gap: 10px; padding-top: 18px; font-size: 13px; color: rgba(255,255,255,.6); min-width: 0; }
.top-pl-how b { flex: none; font-weight: 600; color: rgba(255,255,255,.8); }
.top-pl-how .mq { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.top-pl-how .mq { -webkit-mask-image: none; mask-image: none; }
.top-pl-how .mq.run { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.top-pl-how .mq.run span { display: inline-block; padding-right: 40px; animation: top-mq 22s linear infinite; }
@keyframes top-mq { 0%, 8% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
.top-v.bump { animation: top-bump .6s ease-out; }
@keyframes top-bump { 30% { transform: translateY(-3px); color: var(--fg); } }
/* фон: слово VeoSuno под музыку */
.top-eq { position: absolute; inset: 0; z-index: -1; pointer-events: none; display: flex; align-items: center; justify-content: flex-end; opacity: .75;
  -webkit-mask-image: linear-gradient(90deg, transparent 18%, #000 62%); mask-image: linear-gradient(90deg, transparent 18%, #000 62%); }
.top-pl-t h2, .top-pl-a, .ly-l { text-shadow: 0 1px 12px rgba(0,0,0,.55); }
.top-eq svg { width: 74%; height: 100%; overflow: visible; --k: 0; }
.top-eq text { font: 900 200px/1 Inter, Arial, sans-serif; letter-spacing: -.03em; }
.top-eq .o { fill: none; stroke: rgba(255,255,255,calc(.1 + var(--k) * .55)); stroke-width: 1.4; }
.top-eq .g { fill: rgba(var(--amb), calc(var(--k) * .55)); }
.top-eq .w { fill: none; stroke: rgba(255,255,255,.45); stroke-width: 2.2; }
.top-eq .w2 { fill: none; stroke: rgba(255,255,255,.12); stroke-width: 1.2; }
.top-eq canvas { width: 74%; height: 100%; object-fit: contain; object-position: right center; }
.top-eq-e canvas, .top-eq-f canvas { opacity: .9; }
.top-eq-sw { position: absolute; right: 10px; top: 10px; z-index: 3; pointer-events: auto; padding: 3px 8px; border-radius: 6px; border: 1px dashed rgba(255,255,255,.35); background: rgba(0,0,0,.35); color: rgba(255,255,255,.75); font: inherit; font-size: 11px; cursor: pointer; }
@container (max-width: 600px) {
  .top-head { padding: 18px 16px 16px; border-radius: 20px; }
  .top-eq-sw { display: none; } /* [прототип] переключатель фона на телефоне не показываем — на телефоне фон «авто» */
  .top-head h2 { font-size: 21px; }
  .top-head p { font-size: 13px; margin: 6px 0 10px; }
  .top-head-30 { font-size: 130px; right: -16px; top: 18%; }
  .top-head { padding: 14px 16px 14px; margin-bottom: 10px; } /* М-Н133: на телефоне шапка ниже — список виден раньше */
  .top-eq { opacity: .45; -webkit-mask-image: linear-gradient(90deg, transparent 25%, #000 75%); mask-image: linear-gradient(90deg, transparent 25%, #000 75%); }
  .top-eq svg, .top-eq canvas { width: 100%; }
}
/* клип: значок в строке и видео вместо обложки в плеере */
.top-pl-cvw { position: relative; }
.top-pl-cv { overflow: hidden; }
.top-pl-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; opacity: 0; transition: opacity .4s; }
.top-pl-vid.show { opacity: 1; }
.top-pl-cv .top-pl-pp { z-index: 1; }
.top-pl-full { position: absolute; right: 8px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border: 0; border-radius: 8px; background: rgba(0,0,0,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.top-pl-full:hover { background: rgba(0,0,0,.75); }
.top-pl-vid:fullscreen { object-fit: contain; background: #000; opacity: 1; }
/* компактный плеер: якорь прокрутки не цепляется за список (иначе браузер сам сдвигает страницу и плеер дёргается) */
#tabTop { overflow-anchor: none; }
#tabTop.tl-list { gap: 0; } /* без щели между строками: курсор переходит со строки на строку без мигания */
/* значок клипа на обложке строки */
/* окно клипа: вертикальное видео и караоке рядом */
.top-cine { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: #050507; animation: top-tip .25s ease-out; }
.top-cine-bg { position: absolute; inset: -60px; background: center / cover; filter: blur(60px) saturate(1.2) brightness(.45); }
.top-cine-in { position: relative; display: grid; grid-template-columns: auto minmax(0, 420px); gap: 48px; align-items: center; padding: 24px; color: #fff; }
.top-cine-v { position: relative; height: min(86vh, 860px); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); background: #000; }
.top-cine-v video { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.top-cine-v video.show { opacity: 1; }
.top-cine-pp { position: absolute; inset: 0; border: 0; background: none; color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .2s; }
.top-cine-pp .i:first-child, .top-cine:not(.on) .top-cine-pp .i:last-child { display: block; }
.top-cine-pp .i:last-child, .top-cine:not(.on) .top-cine-pp .i:first-child { display: none; }
.top-cine-v:hover .top-cine-pp, .top-cine:not(.on) .top-cine-pp { opacity: .9; }
.top-cine-t h2 { margin: 10px 0 4px; font-size: 30px; }
.top-cine-ly { margin-top: 22px; }
.top-cine-ly .ly-l { white-space: normal; font-size: 16px; }
.top-cine-ly .ly-l.cur { font-size: 22px; }
.top-cine-x { position: absolute; right: 18px; top: 18px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.top-cine-x:hover { background: rgba(255,255,255,.22); }
@media (max-width: 760px) {
  .top-cine-in { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .top-cine-v { height: 100dvh; width: 100vw; aspect-ratio: auto; border-radius: 0; }
  .top-cine-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 80px 18px calc(22px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.85) 45%); pointer-events: none; }
  .top-cine-t .top-pl-k { display: none; }
  .top-cine-t h2 { font-size: 22px; }
  .top-cine-ly { margin-top: 10px; }
  .top-cine-ly .ly-l.cur { font-size: 19px; }
}
/* пришёл по ссылке: крупная кнопка поверх плеера */
/* пришли по ссылке ?top=: «Вам прислали» и заметная белая кнопка вместо подсказки (до первого нажатия на странице) */
.top-pl-sent { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 14px 0 12px; }
.top-pl-sent small { order: 2; font-size: 13px; color: rgba(255,255,255,.75); }
.top-pl-start { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px 0 6px; border: 0; border-radius: 100px; background: #fff; color: #141416; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 24px rgba(0,0,0,.35); transition: transform .15s; }
.top-pl-start:hover { transform: scale(1.03); }
.top-pl-start span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--grad, #E0457B); animation: top-ring 1.8s ease-out infinite; }
.top-pl-sent ~ .top-pl-ly { display: none; }
.top-pl-start { white-space: nowrap; }
@container (max-width: 600px) {
  .top-pl-sent { grid-column: 1 / -1; flex-direction: column; align-items: stretch; gap: 6px; margin: 4px 0 8px; }
  .top-pl-sent small { text-align: center; }
  .top-pl-start { justify-content: center; padding: 0 22px; position: relative; }
  .top-pl-start span { position: absolute; left: 6px; top: 6px; }
}
@media (prefers-reduced-motion: reduce) { .top-pl-start span { animation: none; } }
/* строка трека, который прислали по ссылке */
.tr-top.top-sent { box-shadow: inset 0 0 0 1.5px rgba(224,69,123,.6); }
@keyframes top-ring { 70% { box-shadow: 0 0 0 18px rgba(224,69,123,0); } 100% { box-shadow: 0 0 0 0 rgba(224,69,123,0); } }
/* баннеры для гостя: картинка справа (на телефоне сверху), слева — что это, инструменты строкой и кнопка */
.top-ad { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); margin: 16px 0; border-radius: 24px; overflow: hidden; isolation: isolate; background: var(--card); box-shadow: inset 0 0 0 1px var(--line2); min-height: 260px; }
.top-ad-img { grid-column: 2; grid-row: 1; background: center / cover; position: relative; margin-left: -140px; }
.top-ad-30 .top-ad-img { background-position: center 25%; } /* сцена: вывеска VeoSuno и певица в кадре */
.top-ad-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--card) 0%, color-mix(in srgb, var(--card) 40%, transparent) 30%, transparent 70%); }
.top-ad-t { grid-column: 1; grid-row: 1; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 26px 8px 26px 26px; }
.top-ad-k { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: var(--grad, linear-gradient(90deg, #DE762B, #E0457B)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top-ad-t b { margin-top: 6px; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.top-ad-t p { margin: 8px 0 14px; max-width: 320px; font-size: 13.5px; line-height: 1.5; color: var(--muted); } /* текст не заходит на картинку */
.top-ad-g { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.top-ad-i { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding-right: 10px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.top-ad-i .i, .top-ad-i svg { width: 15px; height: 15px; color: #E0457B; }
.top-ad-i small { color: var(--muted); font-size: 11.5px; }
.top-ad .fx-go { width: auto; padding: 0 22px; height: 44px; }
.top-ad-btn { height: 42px; padding: 0 20px; }
@container (max-width: 600px) {
  .top-ad { grid-template-columns: 1fr; min-height: 0; }
  .top-ad-img { grid-column: 1; grid-row: 1; aspect-ratio: 5 / 2; margin-left: 0; } /* М-Н133: баннер на телефоне ниже */
  /* баннер «Почти хит?»: целиком — неоновая вывеска VeoSuno сверху и надпись на майке */
  .top-ad-20 .top-ad-img { aspect-ratio: 1 / 1; background-position: center top; }
  .top-ad-20 .top-ad-img::before { background: linear-gradient(0deg, var(--card) 0%, transparent 22%); }
  .top-ad-g { margin-bottom: 14px; }
  .top-ad-img::before { background: linear-gradient(0deg, var(--card) 0%, transparent 55%); }
  .top-ad-t { grid-row: 2; padding: 0 18px 20px; margin-top: -26px; }
  .top-ad-t > button { align-self: stretch; justify-content: center; }
}
/* «Частые вопросы» и финальная карточка — общий блок, uikit/shell-proto.css; здесь только отличия ТОП-30 */
/* в ТОП-30 финальная карточка заметнее: картинка светлее, фирменное свечение по краю (Станис 31.10) */
.top-land .vsp-land-cta { min-height: 300px; box-shadow: 0 0 0 1px rgba(224,69,123,.45), 0 18px 50px -12px rgba(224,69,123,.45); }
.top-land .vsp-land-cta::after { background: radial-gradient(70% 90% at 50% 50%, rgba(10,10,12,.35), rgba(10,10,12,.7)), linear-gradient(90deg, rgba(222,118,43,.18), transparent 40%, transparent 60%, rgba(162,59,245,.22)); }
.top-land .vsp-land-cta b { font-size: 30px; }
.top-land .vsp-land-cta .cf-create { height: 52px; padding: 0 40px; font-size: 16px; }
/* закреплённая полоса плеера (появляется, когда большой плеер уехал вверх) */
.top-mini-w { position: sticky; top: 0; height: 0; z-index: 6; }
.top-mini { position: absolute; left: 0; right: 0; top: 6px; display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; gap: 14px; padding: 10px 18px 12px 10px; border-radius: 18px; overflow: hidden; color: #fff;
  background: linear-gradient(110deg, rgba(var(--amb), .5), rgba(18,18,21,.9) 60%), rgba(18,18,21,.94); -webkit-backdrop-filter: blur(18px) saturate(1.3); backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(var(--amb), .45); box-shadow: 0 16px 36px rgba(0,0,0,.5); opacity: 0; transform: translateY(-12px) scale(.98); pointer-events: none; transition: opacity .22s ease, transform .22s ease; }
.top-mini.show { opacity: 1; transform: none; pointer-events: auto; }
.top-mini-cv { position: relative; width: 72px; height: 72px; border: 0; padding: 0; border-radius: 12px; background: #222 center / cover; cursor: pointer; }
.top-mini-cv { overflow: hidden; }
.top-mini-cv video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.top-mini-cv video.show { opacity: 1; }
.top-mini-ly .top-pl-how { padding-top: 4px; }
/* фон в полосе сверху: тот же, что у плеера, приглушённый, справа */
.top-mini { isolation: isolate; }
.top-mini-eq { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .7; }
.top-mini-eq .top-eq { -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 75%); mask-image: linear-gradient(90deg, transparent 30%, #000 75%); }
.top-mini-eq .top-eq svg, .top-mini-eq .top-eq canvas { width: 55%; height: 100%; }
.top-mini-pp { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; background: rgba(0,0,0,.3); color: #fff; }
.top-mini.on .top-mini-pp { opacity: 0; transition: opacity .2s; }
.top-mini.on .top-mini-cv:hover .top-mini-pp { opacity: 1; }
.top-mini-t { min-width: 0; }
.top-mini-h { display: flex; align-items: baseline; gap: 10px; max-width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.top-mini-h b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-mini-h small { flex: none; font-size: 12px; color: rgba(255,255,255,.6); }
.top-mini-ly { margin-top: 4px; }
.top-mini-ly .ly-l { font-size: 13px; line-height: 1.4; }
.top-mini-ly .ly-l.cur { font-size: 15.5px; }
.top-mini-prog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.12); }
.top-mini-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #fff, rgba(var(--amb), 1)); }
@container (max-width: 600px) {
  .top-mini { grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 8px 12px 10px 8px; }
  .top-mini-cv { width: 52px; height: 52px; }
  .top-mini-h small { display: none; }
}
/* текущая строка песни переносится (до двух строк), остальные — в одну с многоточием */
.ly-l.cur { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
/* вступление: отсчёт до первой строки */
.ly-l.ly-cd { color: rgba(255,255,255,.6); font-size: 14px; letter-spacing: .02em; }
.ly-l.ly-cd.n { font-size: 26px; font-weight: 800; line-height: 1.1; color: #fff; background: linear-gradient(90deg, #FF9F5A, #FF5C93, #B57BFF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ly-l.ly-cd.pop { animation: top-cd .5s cubic-bezier(.2,.7,.2,1); }
@keyframes top-cd { from { opacity: 0; transform: scale(1.4); } }
/* свайп по плееру на телефоне */
.top-pl.sw-l { animation: top-swl .3s ease-out; } .top-pl.sw-r { animation: top-swr .3s ease-out; }
@keyframes top-swl { from { transform: translateX(24px); opacity: .6; } } @keyframes top-swr { from { transform: translateX(-24px); opacity: .6; } }
#tlLiked svg { width: 15px; height: 15px; }
#tlLiked[aria-pressed="true"] svg { color: #E0457B; fill: currentColor; }
@media (prefers-reduced-motion: reduce) { .top-pl.on .top-pl-cv, .tr-top .tr-cov::after, .top-b-new i, .top-pl-how .mq span { animation: none; } #tabTop, .top-pl { transition: none; } }

/* телефон: кнопки шапки ТОП-30 в одну строку */
@container (max-width: 600px) { .top-pl-act .fx-go, .top-pl-sim { white-space: nowrap; font-size: 14px; padding: 0 14px; } .ly-hint { padding-top: 6px; white-space: normal; } }
/* телефон: две кнопки шапки — друг под другом во всю ширину; у трека без текста пустое место под строки не держим */
@container (max-width: 600px) { .top-pl-act { flex-direction: column; } .top-pl-act .fx-go, .top-pl-sim { width: 100%; flex: none; font-size: 15px; } }
.top-pl-ly:empty { min-height: 0; margin: 6px 0 0; }

/* развёрнутый плеер телефона (#fullPlayer, h1.js) у трека ТОП-30: обложка меньше, под названием — строки песни,
   над «Поделиться» — «Создать» и «Похожий»; клип играет в обложке */
.fplayer.fp-top30 { gap: 10px; }
.fplayer.fp-top30 .fp-cov { width: min(78vw, 40vh, 360px); position: relative; overflow: hidden; }
.fp-ly { min-height: 72px; margin: 0; }
.fp-ly .ly-l { font-size: 14px; text-shadow: none; }
.fp-ly .ly-l.cur { font-size: 18px; }
.fp-act { display: flex; gap: 10px; }
.fp-act .fx-go { flex: 1; height: 46px; width: auto; }
.fp-act .pill { height: 46px; padding: 0 16px; white-space: nowrap; }
