/* =======================================================================
   RE:VINYL — финальная полировка (подключается после styles.css)
   Токены контраста, «жидкое стекло», свет под курсором, кинетика
   заголовков, переключение темы «из иглы». Всё — прогрессивно:
   без поддержки фичи сайт выглядит как раньше.
   ======================================================================= */

/* ----------------------------- ТОКЕНЫ ----------------------------- */
:root {
  --paper-mute: #8a8780;            /* было 3.6:1 → теперь ≥5:1 на бетоне */
  --line: rgba(237, 233, 225, 0.11);
  --glass: rgba(18, 18, 21, 0.62);
  --glass-edge: rgba(255, 255, 255, 0.09);
  --glass-hi: rgba(255, 255, 255, 0.06);
  --spot: rgba(247, 148, 30, 0.16);
  --spot-edge: rgba(247, 148, 30, 0.55);
  --ring: var(--acid);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --scroll-thumb: rgba(237, 233, 225, 0.18);
}

html[data-theme="light"] {
  --ink: #f1e5cc;
  --paper: #2a1a10;
  --paper-dim: #37545c;
  --paper-mute: #6b4e38;            /* 4.9:1 на белом стекле */
  --acid-text: #4a6b00;             /* 6:1 — кислотный текст читается */
  --line: rgba(13, 35, 41, 0.12);
  --line-strong: rgba(13, 35, 41, 0.28);
  --glass: rgba(255, 255, 255, 0.66);
  --glass-edge: rgba(255, 255, 255, 0.95);
  --glass-hi: rgba(255, 255, 255, 0.9);
  --spot: rgba(190, 236, 20, 0.22);
  --spot-edge: rgba(74, 107, 0, 0.45);
  --ring: #2a1a10;
  --scroll-thumb: rgba(13, 35, 41, 0.22);
  --shadow-card: 0 1px 2px rgba(18, 60, 72, 0.06), 0 14px 32px -8px rgba(18, 60, 72, 0.16);
}

/* ----------------------------- БАЗА ----------------------------- */
html { scrollbar-color: var(--scroll-thumb) transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--scroll-thumb);
  border-radius: 10px;
  border: 3px solid transparent;
  background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--acid-deep); }

html[data-theme="light"] ::selection { background: #f7941e; color: #2a1a10; }

body { text-rendering: optimizeLegibility; font-feature-settings: "cv11", "ss01"; }

h1, h2, h3, .section__title, .hero__title, .redcarpet__title, .manifesto__title { text-wrap: balance; }
p, li, .section__sub { text-wrap: pretty; }

/* единое кольцо фокуса: видно на бетоне, на стекле и на кислоте */
:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}
.btn--acid:focus-visible { outline-color: var(--paper); box-shadow: 0 0 0 6px rgba(247, 148, 30, 0.28); }

/* ------------------- СВЕТЛАЯ ТЕМА: спокойные стеклоблоки -------------------
   Сетка стеклоблоков остаётся, но растворяется к центру страницы:
   фон перестаёт спорить с обложками и текстом. */
html[data-theme="light"] body {
  background-color: #f1e5cc;
  background-image:
    radial-gradient(60% 40% at 88% 0%, rgba(247, 148, 30, 0.22), transparent 70%),
    radial-gradient(50% 40% at 0% 100%, rgba(120, 196, 206, 0.22), transparent 70%),
    linear-gradient(180deg, #f4f8f7 0%, #eaf1f0 100%);
  background-size: 100% 100%;
  background-attachment: fixed;
}
html[data-theme="light"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(120, 160, 168, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 168, 0.18) 1px, transparent 1px),
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.9), transparent 42%);
  background-size: 112px 112px, 112px 112px, 112px 112px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 40%, transparent 30%, #000 85%);
  mask-image: radial-gradient(120% 90% at 50% 40%, transparent 30%, #000 85%);
}
html[data-theme="light"] .grain { opacity: 0.07; }

/* ----------------------- ЖИДКОЕ СТЕКЛО: шапка ----------------------- */
.header.is-solid {
  background: var(--glass);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  border-bottom-color: var(--line);
  box-shadow: inset 0 -1px 0 var(--glass-hi), 0 12px 32px -18px rgba(var(--shade-rgb), 0.5);
}
.header__progress {
  background: linear-gradient(90deg, var(--acid-deep), var(--acid));
  box-shadow: 0 0 12px rgba(247, 148, 30, 0.55);
  border-radius: 0 2px 2px 0;
}
html[data-theme="light"] .header__progress { background: linear-gradient(90deg, #e5482c, #f7941e); box-shadow: none; }

.header__link { transition: color 0.25s var(--ease); }
.header__link::after { height: 2px; border-radius: 2px; background: var(--acid-text); }
.header__link:hover,
.header__link:focus-visible { color: var(--paper); }

.icon-btn { transition: background 0.25s var(--ease), color 0.25s, transform 0.35s var(--ease-spring); }
.icon-btn:hover { background: rgba(var(--tint-rgb), 0.09); transform: translateY(-1px); }
.theme-toggle svg { transition: transform 0.6s var(--ease-spring); }
.theme-toggle:hover svg { transform: rotate(-24deg) scale(1.08); }

/* ----------------------------- КНОПКИ ----------------------------- */
.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-spring), background 0.25s, color 0.25s,
    border-color 0.25s, box-shadow 0.35s var(--ease);
}
.btn:active { transform: scale(0.96); transition-duration: 0.12s; }

/* блик по кислоте: как свет по виниловой дорожке */
.btn--acid { box-shadow: 0 8px 24px -10px rgba(247, 148, 30, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.55); }
.btn--acid::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.65) 48%, transparent 66%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease);
}
@media (hover: hover) {
  .btn--acid:hover { background: #ffab4a; box-shadow: 0 14px 34px -10px rgba(247, 148, 30, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.6); }
  .btn--acid:hover::after { transform: translateX(120%); }
  .btn--ghost:hover { background: rgba(var(--tint-rgb), 0.07); }
}
html[data-theme="light"] .btn--acid { box-shadow: 0 8px 22px -10px rgba(116, 156, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 0 0 1px rgba(13, 35, 41, 0.08); }
html[data-theme="light"] .btn--ghost:hover { color: var(--paper); border-color: var(--paper); background: rgba(255, 255, 255, 0.85); }

/* стрелки в кнопках чуть уходят вперёд */
.btn svg { transition: transform 0.35s var(--ease-spring); }
.btn:hover svg { transform: translateX(3px); }

/* магнитные кнопки (класс ставит polish.js на десктопе) */
.is-magnetic { transform: translate(var(--tx, 0), var(--ty, 0)); }
.is-magnetic:active { transform: translate(var(--tx, 0), var(--ty, 0)) scale(0.96); }

/* --------------------- СВЕТ ПОД КУРСОРОМ --------------------- */
/* polish.js пишет --mx/--my; без JS эффект просто не появляется */
.card__sleeve::after,
.merch-card::after,
.retro-card::after,
.collection::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), var(--spot), transparent 70%);
  transition: opacity 0.35s var(--ease);
}
.card__sleeve::after { border-radius: var(--r-md); mix-blend-mode: soft-light; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.55), transparent 65%); }
.merch-card, .retro-card, .collection { position: relative; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__sleeve::after,
  .merch-card:hover::after,
  .retro-card:hover::after,
  .collection:hover::after { opacity: 1; }
}

/* кромка карточки подсвечивается кислотой там, где курсор */
@media (hover: hover) and (pointer: fine) {
  .card:hover .card__face--front {
    box-shadow: 0 18px 40px -12px rgba(var(--shade-rgb), 0.55), inset 0 0 0 1px rgba(247, 148, 30, 0.35);
  }
  html[data-theme="light"] .card:hover .card__face--front {
    box-shadow: 0 18px 40px -14px rgba(18, 60, 72, 0.35), inset 0 0 0 1px rgba(74, 107, 0, 0.35);
  }
  .card__img { transition: opacity 0.5s, transform 0.9s var(--ease-out), filter 0.4s; }
  .card:hover .card__img { transform: scale(1.045); filter: saturate(1.05) contrast(1.05); }
}

/* кнопка «в корзину» пружинит */
.card__add { transition: transform 0.35s var(--ease-spring), background 0.2s, box-shadow 0.3s; }
.card__add:hover { transform: scale(1.12) rotate(90deg); box-shadow: 0 6px 18px -4px rgba(247, 148, 30, 0.75); }
.card__add:active { transform: scale(0.9); }

/* ----------------------------- АТМОСФЕРА ----------------------------- */
/* было: 2+1+1 и одинокая плитка во втором ряду. Стало: шахматка 2/1 · 1/2 */
@media (min-width: 900px) {
  .atmo__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 24vw, 340px); }
  .atmo__cell,
  .atmo__cell--wide { aspect-ratio: auto; height: 100%; }
  .atmo__cell--wide { grid-column: span 2; }
}
@media (min-width: 768px) and (max-width: 899px) {
  .atmo__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atmo__cell--wide { grid-column: span 2; aspect-ratio: 16 / 9; }
}
/* подпись всегда на тёмной вуали — читается в обеих темах */
.atmo__cell::after,
html[data-theme="light"] .atmo__cell::after {
  background: linear-gradient(180deg, transparent 42%, rgba(6, 8, 9, 0.35) 62%, rgba(6, 8, 9, 0.86) 100%);
}
.atmo__cell figcaption {
  backdrop-filter: none;
  font-size: 12px;
  color: #f2f0ea;
  left: 18px;
  bottom: 16px;
}
.atmo__cell figcaption::before {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  margin-bottom: 8px;
  background: #f7941e;
  border-radius: 2px;
  transition: width 0.45s var(--ease);
}
.atmo__cell:hover figcaption::before { width: 44px; }
.atmo__cta,
html[data-theme="light"] .atmo__cta { color: #f7941e; }
html[data-theme="light"] .atmo__cell { border-color: rgba(13, 35, 41, 0.1); }

/* ----------------------------- ЭФИР: светлая тема ----------------------------- */
html[data-theme="light"] .live__track { color: var(--paper); background: rgba(255, 255, 255, 0.7); border-color: var(--line); }
html[data-theme="light"] .live__track:hover { border-color: var(--spot-edge); }
html[data-theme="light"] .live__track.is-playing { border-color: var(--acid-text); background: rgba(247, 148, 30, 0.28); }
html[data-theme="light"] .live__track-play { background: rgba(247, 148, 30, 0.5); color: var(--paper); }
html[data-theme="light"] .live__setup-btn:hover { border-color: var(--acid-text); color: var(--acid-text); }

/* ----------------------------- ГЕРОЙ ----------------------------- */
html[data-theme="light"] .hero__eq i { background: linear-gradient(180deg, #7fa600, rgba(127, 166, 0, 0.05)); }
html[data-theme="light"] .hero__eq { opacity: 1; }
.hero__vinyl { filter: drop-shadow(0 40px 60px rgba(var(--shade-rgb), 0.45)); }
html[data-theme="light"] .hero__vinyl { filter: drop-shadow(0 34px 50px rgba(18, 60, 72, 0.28)); }

/* ----------------------------- ПАНЕЛИ ----------------------------- */
html[data-theme="light"] .card,
html[data-theme="light"] .filters,
html[data-theme="light"] .live__panel,
html[data-theme="light"] .live__side,
html[data-theme="light"] .retro-card {
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.retro-card { transition: transform 0.45s var(--ease), border-color 0.3s, box-shadow 0.45s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .retro-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -20px rgba(var(--shade-rgb), 0.6); }
  .merch-card { transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
  .merch-card img { transition: transform 0.9s var(--ease-out); }
  .merch-card:hover img { transform: scale(1.05); }
}

/* ----------------------------- ТИКЕР ----------------------------- */
@media (hover: hover) { .ticker:hover * { animation-play-state: paused; } }

/* --------------- КИНЕТИКА ЗАГОЛОВКОВ (scroll-driven, без JS) --------------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section__title,
    .manifesto__title,
    .redcarpet__title {
      animation: titleIn linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 28%;
    }
    .atmo__cell img,
    .portrait-merch img {
      animation: parallaxImg linear both;
      animation-timeline: view();
      animation-range: cover;
    }
  }
}
@keyframes titleIn {
  from { opacity: 0; transform: translateY(28px); clip-path: inset(0 0 100% 0); }
  to   { opacity: 1; transform: none; clip-path: inset(0 0 -20% 0); }
}
@keyframes parallaxImg {
  from { object-position: 50% 30%; }
  to   { object-position: 50% 70%; }
}

/* --------------- СМЕНА ТЕМЫ: круг расходится от кнопки --------------- */
::view-transition-old(root),
::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 9999; }
html.theme-swap,
html.theme-swap * { transition: none !important; }

/* ----------------------------- ТОСТ ----------------------------- */
.toast {
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
}

/* ----------------------------- МОУШН ----------------------------- */
@media (prefers-reduced-motion: reduce) {
  .btn--acid::after,
  .card__sleeve::after,
  .merch-card::after,
  .retro-card::after,
  .collection::after { display: none; }
  .is-magnetic { transform: none !important; }
  .card:hover .card__img,
  .merch-card:hover img,
  .atmo__cell:hover img { transform: none; }
}

/* =======================================================================
   СВЕТЛАЯ ТЕМА: плотные поверхности вместо полупрозрачных
   ======================================================================= */
html[data-theme="light"] {
  --ink-2: #ffffff;
  --ink-3: #fbf4e6;
  --ink-4: #ffffff;
  --surface: #ffffff;
  --surface-2: #fbf4e6;
}
:root { --surface: #141417; --surface-2: #1b1b1f; }

html[data-theme="light"] .card,
html[data-theme="light"] .filters,
html[data-theme="light"] .live__panel,
html[data-theme="light"] .live__side,
html[data-theme="light"] .retro-card,
html[data-theme="light"] .collection,
html[data-theme="light"] .modal__card,
html[data-theme="light"] .cart,
html[data-theme="light"] .sheet,
html[data-theme="light"] .newsletter__form,
html[data-theme="light"] .live__msg,
html[data-theme="light"] .live__track {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-theme="light"] .header.is-solid { background: rgba(247, 250, 250, 0.94); }
html[data-theme="light"] .tabbar { background: rgba(255, 255, 255, 0.97); }
html[data-theme="light"] .manifesto,
html[data-theme="light"] .manifesto__bg { background: #ffffff; }
html[data-theme="light"] .retro-card { background: #ffffff; }
html[data-theme="light"] .btn--ghost { background: #ffffff; backdrop-filter: none; }
html[data-theme="light"] body::before { opacity: 0.55; }

/* =======================================================================
   КАРТОЧКА ТОВАРА: аккуратнее и спокойнее
   ======================================================================= */
.card__info { padding: 12px 4px 0; }
.card__artist {
  font-family: var(--ff-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--paper-dim);
}
.card__title {
  margin-top: 2px;
  font-family: var(--ff-body);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-transform: none;
  min-height: 2.6em;
}
.card__meta { margin-top: 8px; gap: 6px; font-size: 11.5px; }
.card__price { margin-top: 8px; }
.card__price b { font-size: 16px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.card__media { border-radius: 14px; }
.card__face { border-radius: 14px; }

.card__meta--editions { flex-wrap: wrap; }
.card__editions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--paper);
  font-weight: 600;
}
.card__editions::before {
  content: "";
  width: 14px;
  height: 10px;
  background:
    radial-gradient(circle at 30% 50%, currentColor 0 3.5px, transparent 4px),
    radial-gradient(circle at 70% 50%, currentColor 0 3.5px, transparent 4px);
  opacity: 0.55;
}
.card__fmt {
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--paper-dim);
}

/* =======================================================================
   МОДАЛКА: издания и прослушивание
   ======================================================================= */
.modal__card.is-swapping .modal__info > *,
.modal__card.is-swapping .modal__media img { animation: swapIn 0.45s var(--ease-out) both; }
@keyframes swapIn { from { opacity: 0.35; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.variants { margin-top: 18px; }
.variants__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 13px;
}
.variants__head span { color: var(--paper-mute); font-size: 12px; }
.variants__list {
  display: grid;
  gap: 6px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 2px;
  scrollbar-width: thin;
}
.variant {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 7px 12px 7px 7px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease-spring);
}
.variant:hover { border-color: var(--line-strong); }
.variant:active { transform: scale(0.985); }
.variant.is-active {
  border-color: var(--acid-text);
  box-shadow: inset 0 0 0 1px var(--acid-text);
  background: rgba(247, 148, 30, 0.08);
}
html[data-theme="light"] .variant.is-active { background: #fdf1df; }
.variant__thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink-3);
}
.variant__thumb img { width: 100%; height: 100%; object-fit: cover; }
.variant__body { display: grid; gap: 2px; min-width: 0; }
.variant__body b {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.variant__body i { font-style: normal; font-size: 11.5px; color: var(--paper-mute); }
.variant__fmt {
  display: inline-block;
  margin-right: 6px;
  padding: 0 5px;
  border-radius: 4px;
  background: rgba(var(--tint-rgb), 0.08);
  color: var(--paper-dim);
  font-weight: 600;
}
.variant__price { font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }

.listen-box { margin-top: 16px; display: grid; gap: 8px; }
.listen {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px 10px 10px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  text-align: left;
  color: var(--paper);
  transition: border-color 0.2s, transform 0.3s var(--ease-spring);
}
.listen:hover { border-color: var(--acid-text); }
.listen:active { transform: scale(0.985); }
.listen__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffcc00;   /* фирменный жёлтый Яндекс Музыки */
  color: #1a1a1a;
}
.listen--search .listen__icon { background: rgba(var(--tint-rgb), 0.08); color: var(--paper); }
.listen__text { display: grid; gap: 1px; }
.listen__text b { font-size: 14px; font-weight: 600; }
.listen__text i { font-style: normal; font-size: 12px; color: var(--paper-mute); }
.listen__out {
  justify-self: start;
  font-size: 12px;
  color: var(--paper-dim);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
.listen__out:hover { color: var(--paper); }
.listen__frame {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-2);
}

/* =======================================================================
   МУЗЫКА ИЗ КИНО — плёнка
   Плёнка всегда тёмная (объект, как пластинка), тон кадра — свой у фильма.
   ======================================================================= */
.films { padding-top: 64px; }
.filmstrip-wrap {
  position: relative;
  margin: 22px calc(var(--pad) * -1) 0;
  padding: 0 var(--pad);
}
.filmstrip {
  --hole: rgba(237, 233, 225, 0.85);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 26px 0;
  border-radius: 6px;
  background-color: #0e0d0c;
  background-image:
    radial-gradient(ellipse 5px 4px at 50% 50%, var(--hole) 0 98%, transparent 100%),
    radial-gradient(ellipse 5px 4px at 50% 50%, var(--hole) 0 98%, transparent 100%);
  background-size: 22px 26px, 22px 26px;
  background-position: 0 0, 0 100%;
  background-repeat: repeat-x;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.filmstrip::-webkit-scrollbar { display: none; }
html[data-theme="light"] .filmstrip { --hole: #f1e5cc; box-shadow: 0 24px 46px -26px rgba(18, 60, 72, 0.55); }

.frame {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto auto auto;
  min-height: 236px;
  margin: 0 5px;
  padding: 16px 16px 14px;
  border-radius: 3px;
  text-align: left;
  color: #f2efe8;
  scroll-snap-align: start;
  overflow: hidden;
  isolation: isolate;
  container-type: inline-size;
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--tone) 70%, transparent), transparent 70%),
    linear-gradient(165deg, color-mix(in srgb, var(--tone) 38%, #121110) 0%, #121110 78%);
  filter: saturate(0.55) brightness(0.78);
  transition: filter 0.45s var(--ease), transform 0.45s var(--ease);
}
.frame::before {   /* зерно и царапины плёнки */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.35;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 37px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.frame::after {    /* рамка кадра: появляется у выбранного */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px #f7941e;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.frame:hover { filter: saturate(0.85) brightness(0.95); }
.frame.is-active,
.frame[aria-selected="true"] { filter: none; }
.frame.is-active::after,
.frame[aria-selected="true"]::after { opacity: 1; }
.frame:focus-visible { outline: 2px solid #f7941e; outline-offset: -6px; }

.frame__year {
  align-self: start;
  font-family: var(--ff-display);
  font-size: 29cqw;
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 1.2px rgba(242, 239, 232, 0.55);
  transition: color 0.45s var(--ease), -webkit-text-stroke-color 0.45s;
}
.frame.is-active .frame__year,
.frame[aria-selected="true"] .frame__year { color: #f2efe8; -webkit-text-stroke-color: transparent; }
.frame__title {
  margin-top: 14px;
  font-family: var(--ff-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.frame__meta { margin-top: 2px; font-size: 12.5px; color: rgba(242, 239, 232, 0.66); }
.frame__count {
  margin-top: 12px;
  justify-self: start;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #121110;
  background: rgba(242, 239, 232, 0.88);
}
.frame.is-active .frame__count,
.frame[aria-selected="true"] .frame__count { background: #f7941e; }

/* панель фильма */
.film-panel {
  margin-top: 18px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 120% at 0% 0%, color-mix(in srgb, var(--tone, #888) 16%, transparent), transparent 60%),
    var(--surface);
}
.film-panel.is-swapping > * { animation: swapIn 0.5s var(--ease-out) both; }
.film-panel.is-swapping > *:nth-child(2) { animation-delay: 0.05s; }
.film-panel.is-swapping > *:nth-child(3) { animation-delay: 0.1s; }
html[data-theme="light"] .film-panel { box-shadow: var(--shadow-card); }

.film-panel__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 24px;
}
.film-panel__year { font-size: 13px; color: var(--paper-mute); font-variant-numeric: tabular-nums; }
.film-panel__title {
  margin-top: 4px;
  font-family: var(--ff-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}
.film-panel__note { margin-top: 10px; max-width: 56ch; color: var(--paper-dim); font-size: 14.5px; }
.film-panel__actions { display: flex; flex-wrap: wrap; gap: 10px; }
[data-film-catalog].is-active { box-shadow: 0 0 0 3px rgba(247, 148, 30, 0.35); }

.film-player {
  display: grid;
  place-items: center;
  min-height: 72px;
  margin-top: 20px;
  border-radius: 14px;
  border: 1px dashed var(--line-strong);
  color: var(--paper-mute);
  font-size: 13px;
  overflow: hidden;
  transition: min-height 0.4s var(--ease);
}
.film-player.is-live { border-style: solid; border-color: var(--line); min-height: 180px; display: block; }
.film-player__frame { display: block; width: 100%; height: 180px; border: 0; }

.tracklist {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin-top: 14px;
  counter-reset: none;
}
@media (min-width: 900px) { .tracklist { grid-template-columns: 1fr 1fr; column-gap: 18px; } }
.track {
  display: grid;
  grid-template-columns: 26px 40px 1fr 32px;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 7px 8px;
  border-radius: 12px;
  text-align: left;
  color: var(--paper);
  transition: background 0.2s;
}
.track:hover { background: rgba(var(--tint-rgb), 0.05); }
.track__n { font-size: 12px; color: var(--paper-mute); font-variant-numeric: tabular-nums; }
.track__cover {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  background:
    radial-gradient(circle, #111 0 16%, transparent 17%),
    repeating-radial-gradient(circle, #1b1b1d 0 1px, #232326 1px 3px);
}
.track__cover img { width: 100%; height: 100%; object-fit: cover; }
.track__name { display: grid; min-width: 0; }
.track__name b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track__name i { font-style: normal; font-size: 12px; color: var(--paper-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track__play {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--paper);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.3s var(--ease-spring);
}
.track:hover .track__play { border-color: var(--paper); transform: scale(1.06); }
.track.is-playing { background: rgba(247, 148, 30, 0.09); }
html[data-theme="light"] .track.is-playing { background: #f3fadc; }
.track.is-playing .track__play { background: #f7941e; border-color: #f7941e; color: #0a0a0b; }
.track.is-playing .track__n { color: var(--acid-text); }
.track--out .track__play { border-style: dashed; color: var(--paper-mute); }

@media (max-width: 599px) {
  .film-panel { padding: 18px 14px; border-radius: 16px; }
  .filmstrip { grid-auto-columns: 72%; }
  .frame { min-height: 210px; }
  .track { grid-template-columns: 22px 36px 1fr 30px; gap: 10px; }
  .track__cover { width: 36px; height: 36px; }
  .film-panel__actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .film-panel.is-swapping > *,
  .modal__card.is-swapping .modal__info > * { animation: none; }
}

/* таббар: пять пунктов, включая «Кино» */
.tabbar { grid-template-columns: repeat(5, 1fr); }
.tabbar__item span { font-size: 10px; letter-spacing: 0.06em; }

/* счётчик каталога на телефоне — только альбомы */
@media (max-width: 599px) { .count__ed { display: none; } }

/* эфир в светлой теме: плотные панели и читаемые кнопки на тёмном экране */
html[data-theme="light"] .live__chat,
html[data-theme="light"] .live__queue,
html[data-theme="light"] .live__queue-box,
html[data-theme="light"] .live__player,
html[data-theme="light"] .live__setup {
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--shadow-card);
}
.live__setup-btn { color: rgba(242, 239, 232, 0.86); border-color: rgba(242, 239, 232, 0.3); }
html[data-theme="light"] .live__screen .live__setup-btn { color: #fbf4e6; border-color: rgba(255, 255, 255, 0.42); }
html[data-theme="light"] .live__screen .live__setup-btn:hover { color: #f7941e; border-color: #f7941e; }


/* =======================================================================
   ФИНАЛ: карточка как конверт на полке
   Плотная подложка, обложка со своим скруглением, цена всегда внизу.
   ======================================================================= */
.grid { gap: 22px 14px; align-items: stretch; }
.card {
  display: flex;
  flex-direction: column;
  padding: 8px 8px 12px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}
html[data-theme="light"] .card {
  background: #ffffff;
  border-color: rgba(13, 35, 41, 0.08);
  box-shadow: 0 1px 2px rgba(18, 60, 72, 0.05), 0 10px 28px -14px rgba(18, 60, 72, 0.18);
}
.card__media,
.card__face { border-radius: 12px; }
.card__info {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 12px 6px 0;
}
.card__title { min-height: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__edition {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--paper-mute);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}
.card__meta .sep { display: none; }
.card__grade,
.card__year {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.card__grade {
  padding: 2px 7px;
  border-radius: 6px;
  color: var(--acid-text);
  background: rgba(247, 148, 30, 0.1);
}
html[data-theme="light"] .card__grade { background: #fbe3c4; color: #8a4a00; }
.card__year { color: var(--paper-mute); font-weight: 500; }
.card__price {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover { border-color: var(--line-strong); }
}

/* запасная обложка: слова не рвутся посередине, длинные — уменьшаются */
.art-type,
.art-type--stack,
.art-band span {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: manual;
  text-wrap: balance;
}
.art-type { font-size: clamp(10px, 11cqw, 34px); }
.art-type--stack { font-size: clamp(10px, 9cqw, 30px); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

/* ----------------------------- ТУЛБАР КАТАЛОГА ----------------------------- */
html[data-theme="light"] .toolbar {
  background: rgba(244, 248, 247, 0.96);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-theme="light"] .search { background: #ffffff; border-color: rgba(13, 35, 41, 0.12); }

/* ----------------------------- МОДАЛКА ----------------------------- */
.modal__close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--paper);
  box-shadow: 0 6px 16px -8px rgba(var(--shade-rgb), 0.5);
  transition: transform 0.35s var(--ease-spring), background 0.2s;
}
.modal__close:hover { transform: rotate(90deg); background: var(--surface-2); }
.variant__body b {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.variant__fmt { font-variant-numeric: tabular-nums; }
html[data-theme="light"] .variant { background: #f6f9f9; }

/* ----------------------------- ГЕРОЙ: светлая тема ----------------------------- */
/* фото за героем было туманом — теперь это чёткий, но тихий фон */
html[data-theme="light"] .hero__photo {
  opacity: 0.14;
  filter: grayscale(1) contrast(1.15) brightness(1.1);
  mix-blend-mode: multiply;
}

/* светлая тема: под фото — светлая подложка, без серой «грязи» снизу */
html[data-theme="light"] .card__media { background: #f6ecda; }
html[data-theme="light"] .card__face { box-shadow: inset 0 0 0 1px rgba(13, 35, 41, 0.06); background: #f6ecda; }
html[data-theme="light"] .card__face--front::after { box-shadow: inset 0 0 0 1px rgba(13, 35, 41, 0.06); }
.card__face--front::after { border-radius: inherit; }

/* =======================================================================
   ПОЛКА «ПЛАСТИНКИ ИЗ ФИЛЬМА» — альбомы рядом с трек-листом
   ======================================================================= */
.film-shelf { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.film-shelf__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15px;
}
.film-shelf__head span { font-size: 12.5px; color: var(--paper-mute); }
.film-shelf__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(132px, 15vw, 168px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}
.film-shelf__list li { scroll-snap-align: start; }
.film-rec {
  display: grid;
  gap: 3px;
  width: 100%;
  text-align: left;
  color: var(--paper);
}
.film-rec__cover {
  position: relative;
  display: block;
  aspect-ratio: 1;
  margin-bottom: 8px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 10px 22px -14px rgba(var(--shade-rgb), 0.7), inset 0 0 0 1px var(--line);
  transition: transform 0.45s var(--ease-spring), box-shadow 0.35s var(--ease);
}
.film-rec__cover .card__art { position: absolute; inset: 0; }
.film-rec__cover img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s;
}
.film-rec__cover img.is-loaded { opacity: 1; }
.film-rec__title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.film-rec__meta { font-size: 11.5px; color: var(--paper-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.film-rec__price { margin-top: 2px; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .film-rec:hover .film-rec__cover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 18px 30px -16px rgba(var(--shade-rgb), 0.8), inset 0 0 0 1px var(--line); }
}
.film-rec:focus-visible { outline-offset: 4px; border-radius: 10px; }

/* эфир в светлой теме: вместо розовой дымки — тихий «красный свет» студии у края */
html[data-theme="light"] .live { background: linear-gradient(180deg, #f7f0ee 0%, rgba(244, 248, 247, 0) 38%); border-color: rgba(13, 35, 41, 0.08); }
html[data-theme="light"] .live__glow {
  background:
    radial-gradient(40% 40% at 12% 0%, rgba(255, 59, 48, 0.1), transparent 70%),
    radial-gradient(40% 40% at 92% 6%, rgba(247, 148, 30, 0.16), transparent 70%);
}

/* полка на телефоне: заголовок и счётчик в одну строку */
@media (max-width: 559px) {
  .film-shelf__head { flex-direction: column; gap: 2px; }
  .film-shelf__list { grid-auto-columns: 42%; }
}

/* подписка в светлой теме: плотное поле вместо тёмной полупрозрачной плашки */
html[data-theme="light"] .newsletter input {
  background: #ffffff;
  color: #2a1a10;
  border-color: rgba(13, 35, 41, 0.18);
}
html[data-theme="light"] .newsletter input::placeholder { color: #6b4e38; }

/* =======================================================================
   ЭФИР — компактный пульт
   Экран — не главное: 16:9 слева, справа одна панель «Очередь / Чат».
   Главное действие посетителя — «Выбрать пластинку»; пульт ведущего спрятан.
   ======================================================================= */
.onair { padding-block: clamp(48px, 7vw, 88px); }
.onair__head,
.onair__console { max-width: 1360px; margin-inline: auto; }
.onair__head { margin-bottom: 24px; }
.onair__head .section__sub { max-width: 52ch; }

.onair__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: var(--paper-dim);
}
.onair__status .live__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--paper-mute);
  box-shadow: none;
}
.onair__status .live__dot.is-on { background: var(--red); animation: pulseRed 2s infinite; }
.onair__clock { padding-left: 10px; border-left: 1px solid var(--line-strong); font-variant-numeric: tabular-nums; }
.onair__clock b { color: var(--paper); font-weight: 600; }

.onair__console {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
@media (min-width: 960px) {
  .onair__console { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
}
@media (min-width: 1200px) {
  .onair__console { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); }
}

/* ----------------------------- экран ----------------------------- */
.onair__stage { display: grid; gap: 10px; align-content: start; }
.onair__screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #0b0b0c;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: #f2f0ea;
}
html[data-theme="light"] .onair__screen { box-shadow: 0 18px 40px -22px rgba(18, 60, 72, 0.45); }
.onair__frame,
.onair__video,
.onair__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.onair__video { object-fit: cover; filter: saturate(0.9) brightness(0.82); }
.onair__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 30%);
}
.onair__badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(10, 10, 11, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: rgba(242, 240, 234, 0.82);
}
.onair__badge--on { background: var(--red); color: #fff; }
.onair__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 11px; }
.onair__bars i { width: 2px; height: 100%; background: currentColor; border-radius: 1px; animation: eqBounce 0.9s ease-in-out infinite alternate; }
.onair__bars i:nth-child(2) { animation-delay: -0.3s; }
.onair__bars i:nth-child(3) { animation-delay: -0.6s; }
.onair__bars i:nth-child(4) { animation-delay: -0.15s; }

/* пульт ведущего: шестерёнка в углу */
.onair__host { position: absolute; z-index: 3; top: 10px; right: 10px; }
.onair__host summary {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  list-style: none;
  cursor: pointer;
  color: rgba(242, 240, 234, 0.7);
  background: rgba(10, 10, 11, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color 0.2s, transform 0.4s var(--ease-spring);
}
.onair__host summary::-webkit-details-marker { display: none; }
.onair__host summary:hover { color: #fff; transform: rotate(45deg); }
.onair__host[open] summary { color: #fff; }
.onair__host-menu {
  position: absolute;
  top: 40px;
  right: 0;
  width: 248px;
  padding: 12px;
  display: grid;
  gap: 6px;
  border-radius: 14px;
  background: #17171a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.7);
  animation: swapIn 0.25s var(--ease-out) both;
}
.onair__host-title { font-size: 11.5px; color: rgba(242, 240, 234, 0.5); margin-bottom: 2px; }
.onair__host-btn {
  height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  text-align: left;
  font-size: 13px;
  color: #f2f0ea;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}
.onair__host-btn:hover { background: rgba(255, 255, 255, 0.1); }
.onair__host-btn.is-on { background: var(--red); color: #fff; }
.onair__setup { display: grid; gap: 6px; margin-top: 4px; }
.onair__setup label { font-size: 11.5px; color: rgba(242, 240, 234, 0.6); }
.onair__setup input {
  height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0e0e10;
  color: #f2f0ea;
  font-size: 13px;
}
.onair__setup .btn { height: 36px; font-size: 11px; }

/* «сейчас на вертушке» */
.onair__now {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 12px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
html[data-theme="light"] .onair__now { background: #fff; border-color: rgba(13, 35, 41, 0.08); box-shadow: var(--shadow-card); }
.onair__disc {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--acid) 0 5px, #111 5.5px 7px, transparent 7.5px),
    repeating-radial-gradient(circle, #1b1b1e 0 1px, #0b0b0c 1px 2.5px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.onair.is-on .onair__disc { animation: spin 1.8s linear infinite; }
.onair__now-text { display: grid; gap: 1px; min-width: 0; flex: 1; }
.onair__now-text i { font-style: normal; font-size: 11.5px; color: var(--paper-mute); }
.onair__now-text b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.onair__cta { height: 40px; padding: 0 16px; font-size: 11.5px; flex: none; }

/* ----------------------------- панель ----------------------------- */
.onair__panel {
  display: flex;
  flex-direction: column;
  min-height: 340px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
}
html[data-theme="light"] .onair__panel { background: #fff; border-color: rgba(13, 35, 41, 0.08); box-shadow: var(--shadow-card); }
@media (min-width: 960px) { .onair__panel { min-height: 0; } }

.onair__tabs {
  display: flex;
  gap: 4px;
  padding: 6px;
  margin: 10px 10px 0;
  border-radius: 12px;
  background: var(--surface-2);
}
html[data-theme="light"] .onair__tabs { background: #fbf4e6; }
.onair__tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--paper-dim);
  transition: background 0.25s var(--ease), color 0.2s;
}
.onair__tab:hover { color: var(--paper); }
.onair__tab.is-active { background: var(--surface); color: var(--paper); box-shadow: 0 1px 3px rgba(var(--shade-rgb), 0.25); }
html[data-theme="light"] .onair__tab.is-active { background: #fff; box-shadow: 0 1px 3px rgba(18, 60, 72, 0.14); }
.onair__count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  background: var(--acid);
  color: var(--on-acid);
}
.onair__count--muted { background: transparent; color: var(--paper-mute); font-weight: 500; padding: 0; }

.onair__pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 10px 10px 12px;
}
.onair__pane[hidden] { display: none; }

/* очередь */
.onair__queue {
  flex: 1;
  display: grid;
  align-content: start;
  gap: 6px;
  overflow-y: auto;
  max-height: 300px;
  margin: 0;
  padding: 0;
}
.onair .live__queue-item {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
}
.onair .live__queue-item.is-next { border-color: var(--acid-text); background: rgba(247, 148, 30, 0.06); }
html[data-theme="light"] .onair .live__queue-item.is-next { background: #fdf1df; }
.onair .live__queue-num { font-size: 12px; color: var(--paper-mute); font-variant-numeric: tabular-nums; }
.onair .live__queue-text { display: grid; gap: 1px; min-width: 0; }
.onair .live__queue-text b { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.onair .live__queue-text i { font-style: normal; font-size: 12px; color: var(--paper-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.onair .live__queue-price-tag { display: none; }
.onair .live__queue-del {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  color: var(--paper-mute);
  transition: background 0.2s, color 0.2s;
}
.onair .live__queue-del:hover { background: rgba(var(--tint-rgb), 0.08); color: var(--paper); }
.onair .live__queue-empty {
  display: grid;
  gap: 4px;
  place-content: center;
  text-align: center;
  min-height: 200px;
  padding: 20px;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  color: var(--paper-mute);
  font-size: 13px;
}
.onair .live__queue-empty b { color: var(--paper); font-size: 14px; }
.onair__note { margin-top: 10px; font-size: 12px; color: var(--paper-mute); }

/* чат */
.onair__messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
  min-height: 200px;
  max-height: 300px;
  padding: 2px;
}
.onair__messages:empty::before {
  content: "Пока тихо. Напишите, что поставить следующим.";
  margin: auto;
  font-size: 13px;
  color: var(--paper-mute);
}
.onair .live__msg {
  align-self: flex-start;
  max-width: 86%;
  display: grid;
  gap: 1px;
  padding: 7px 11px;
  border-radius: 14px 14px 14px 4px;
  background: var(--surface-2);
  font-size: 13.5px;
  line-height: 1.4;
}
html[data-theme="light"] .onair .live__msg { background: #fbf4e6; }
.onair .live__msg.is-mine { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: rgba(247, 148, 30, 0.16); }
html[data-theme="light"] .onair .live__msg.is-mine { background: #fbe3c4; }
.onair .live__msg-author { font-size: 11px; font-weight: 600; color: var(--acid-text); }
.onair .live__msg-time { font-size: 10.5px; color: var(--paper-mute); justify-self: end; }
.onair__form {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}
.onair__form input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--paper);
  font-size: 14px;
  transition: border-color 0.2s;
}
html[data-theme="light"] .onair__form input { background: #fff; }
.onair__form input:focus { outline: none; border-color: var(--acid-text); }
.onair__send {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--acid);
  color: var(--on-acid);
  transition: transform 0.35s var(--ease-spring);
}
.onair__send:hover { transform: translateX(2px); }
.onair__send:active { transform: scale(0.92); }

@media (max-width: 559px) {
  .onair__now { flex-wrap: wrap; }
  .onair__cta { width: 100%; }
  .onair__screen { border-radius: 14px; }
}

/* превью «настроения жанра» в окне товара убрано: слушаем настоящий альбом */
#modalWaveBox,
.wave__note { display: none !important; }

/* чат: автор и время — отдельными строками внутри пузыря */
.onair .onair__messages .live__msg { display: flex; flex-direction: column; align-items: stretch; gap: 2px; }
.onair .onair__messages .live__msg-time { align-self: flex-end; }
/* светлая тема: фон эфира без розового оттенка */
html[data-theme="light"] .onair { background: transparent; }
html[data-theme="light"] .onair .live__glow { background: radial-gradient(40% 50% at 8% 0%, rgba(255, 59, 48, 0.06), transparent 70%); }
.onair { padding-bottom: clamp(32px, 5vw, 64px); }
