:root {
  --bg: #07070d;
  --fg: #fff;
  --dim: rgba(255, 255, 255, .58);
  --faint: rgba(255, 255, 255, .38);
  --line: rgba(255, 255, 255, .10);
  --card: rgba(255, 255, 255, .055);
  --card-hi: rgba(255, 255, 255, .11);
  --violet: #7c5cff;
  --pink: #ff4d8d;
  --cyan: #27e1ff;
  --grad: linear-gradient(135deg, #7c5cff 0%, #ff4d8d 100%);
  --display: 'Unbounded', 'Arial Black', Impact, sans-serif;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --safe-top-raw: calc(var(--tg-safe-area-inset-top, 0px) + var(--tg-content-safe-area-inset-top, 0px));
  --safe-top: var(--safe-top-raw);
  /* насколько поднять поле ввода над кнопками телефона */
  --safe-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --lift: calc(var(--safe-bottom) + 22px);
}
html.android { --lift: calc(var(--safe-bottom) + 64px); }
/* полноэкранный режим: опускаем контент ниже кнопок «Закрыть» / меню Телеграма */
html.fs { --safe-top: max(var(--safe-top-raw), 96px); }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

html, body {
  margin: 0; height: 100%;
  overflow: hidden; overscroll-behavior: none;
  background: var(--bg); color: var(--fg);
  font-family: var(--font); font-weight: 600;
  -webkit-user-select: none; user-select: none;
}

/* ---------- Фон: северное сияние ---------- */
.aurora { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.aurora i:nth-child(1) { width: 70vmax; height: 70vmax; left: -30vmax; top: -34vmax; background: var(--violet); animation: drift1 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 56vmax; height: 56vmax; right: -28vmax; top: 18vh; background: var(--pink); opacity: .32; animation: drift2 26s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 60vmax; height: 60vmax; left: -10vmax; bottom: -38vmax; background: var(--cyan); opacity: .22; animation: drift1 30s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(10vmax, 8vmax) scale(1.12); } }
@keyframes drift2 { to { transform: translate(-12vmax, -6vmax) scale(.9); } }
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none; } }

/* ---------- Кнопки и общее ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.btn {
  font: 800 12px/1 var(--display); letter-spacing: .04em; text-transform: uppercase;
  color: var(--fg); background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 18px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .12s;
}
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--grad); border: 0; box-shadow: 0 10px 30px rgba(124, 92, 255, .45); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 0 rgba(255, 77, 141, .7); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255, 77, 141, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 77, 141, 0); } }

/* ---------- Заглушка ---------- */
.gate {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 24px; gap: 16px;
}
.gate-logo { height: 104px; filter: drop-shadow(0 10px 40px rgba(124, 92, 255, .7)); }
.gate h1 { margin: 0; font: 900 26px/1 var(--display); letter-spacing: .06em; }
.gate h1 span, .brand-name span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gate p { margin: 0; color: var(--dim); font-size: 14px; max-width: 280px; line-height: 1.5; }

/* ---------- Каркас ---------- */
#app {
  position: relative; z-index: 1;
  height: var(--tg-viewport-height, 100dvh);
  display: flex; flex-direction: column;
  padding: var(--safe-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
}
.top { position: relative; flex: none; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 16px 6px; min-height: 42px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-logo { height: 26px; filter: drop-shadow(0 3px 12px rgba(124, 92, 255, .8)); }
.brand-name { font: 900 15px/1 var(--display); letter-spacing: .08em; white-space: nowrap; }
.live-pill {
  display: flex; align-items: center; gap: 8px; flex: none;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); border: 1px solid var(--line);
  font: 800 9px/1 var(--display); letter-spacing: .08em; text-transform: uppercase;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}

/* ---------- Прокручиваемая область (вся страница, кроме поля ввода) ---------- */
.scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }

/* ---------- Каналы ---------- */
.channels { flex: none; display: flex; gap: 8px; padding: 2px 16px 8px; overflow-x: auto; scrollbar-width: none; }
.channels::-webkit-scrollbar { display: none; }
.ch {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  padding: 5px 14px 5px 5px; border-radius: 999px; cursor: pointer;
  font: 800 12px/1.2 var(--font); color: var(--dim);
  background: var(--card); border: 1px solid var(--line);
  transition: transform .12s, background .2s, color .2s;
}
.ch:active { transform: scale(.96); }
.ch img { width: 32px; height: 32px; object-fit: contain; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .08); padding: 2px; }
.ch.active { color: #fff; background: var(--card-hi); border-color: transparent; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .85), 0 8px 28px rgba(124, 92, 255, .4); }

/* ---------- Плеер ---------- */
.player {
  position: relative; overflow: hidden;
  margin: 0 14px; width: calc(100% - 28px);
  aspect-ratio: 16 / 9;
  background: #000; border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(124, 92, 255, .28), 0 0 0 1px rgba(255, 255, 255, .03);
}
.player video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: rgba(7, 7, 13, .72); text-align: center; padding: 16px;
  font-size: 13px; font-weight: 700; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* ---------- Сейчас в эфире ---------- */
.now { flex: none; margin: 8px 14px 0; padding: 9px 14px 10px; }
.now-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.now-label { display: flex; align-items: center; gap: 8px; font: 800 9px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
/* Название передачи: одна строка на всю ширину, размер подбирается в app.js (fitTitle) */
.now-title { width: 100%; font: 800 18px/1.2 var(--display); letter-spacing: .01em; white-space: nowrap; overflow: hidden; }
.now-title.wrap { white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
.bar { height: 4px; background: rgba(255, 255, 255, .12); border-radius: 4px; margin: 8px 0 5px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 4px; transition: width .6s; }
.now-time { font-size: 11px; font-weight: 700; color: var(--dim); letter-spacing: .04em; min-height: 13px; }

/* ---------- Вкладки ---------- */
.tabs { position: sticky; top: 6px; z-index: 5; display: grid; grid-template-columns: 1fr 1fr; margin: 12px 14px 2px; padding: 3px; background: rgba(20, 20, 32, .86); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line); border-radius: 16px; }
.tabs::before {
  content: ''; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 12px; background: var(--card-hi); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
  transition: transform .28s cubic-bezier(.3, .9, .3, 1);
}
.tabs[data-active="epg"]::before { transform: translateX(100%); }
.tab { position: relative; z-index: 1; font: 800 11px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: var(--faint); background: none; border: 0; padding: 11px 8px; cursor: pointer; transition: color .2s; }
.tab.active { color: #fff; }

/* ---------- Панели ---------- */
.panels { position: relative; }
/* блок комментариев занимает целый экран под плеером: листаем вниз, свежие сообщения добавляются в конец списка */
.panel { padding: 8px 14px 14px; min-height: calc(var(--scroll-h, 70vh) - 64px); }
#panel-comments:not([hidden]) { display: flex; flex-direction: column; justify-content: flex-start; }

/* ---------- Комментарии ---------- */
.comments { display: flex; flex-direction: column; gap: 8px; }
.empty { text-align: center; color: var(--faint); font-size: 13px; padding: 34px 8px; line-height: 1.7; }
.cm { display: flex; gap: 10px; align-items: flex-end; border-radius: 18px; animation: pop .25s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.cm.flash .cm-body { background: rgba(124, 92, 255, .35); }
.ava {
  width: 34px; height: 34px; border-radius: 50%; flex: none; object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font: 800 13px/1 var(--display); color: #fff;
}
.cm-body { min-width: 0; flex: 0 1 auto; max-width: calc(100% - 44px); padding: 7px 12px 5px; background: var(--card); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; transition: background .4s; }
.cm.me { flex-direction: row-reverse; }
.cm.me .cm-body { background: linear-gradient(135deg, rgba(124, 92, 255, .38), rgba(255, 77, 141, .28)); border-color: rgba(255, 255, 255, .16); border-radius: 18px 18px 6px 18px; }
.cm-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.cm-nick { font: 800 12px/1.2 var(--font); max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: linear-gradient(90deg, #b9a8ff, #ff9cc2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cm.me .cm-nick { background: none; color: #fff; }
.cm-time { font-size: 10px; color: var(--faint); font-weight: 600; }
.cm-text { margin-top: 3px; font-size: 14px; font-weight: 500; line-height: 1.42; white-space: pre-wrap; overflow-wrap: anywhere; -webkit-user-select: text; user-select: text; }
.cm-quote {
  margin-top: 5px; padding: 5px 10px; font-size: 12px; font-weight: 500; line-height: 1.35;
  border-left: 3px solid var(--violet); background: rgba(0, 0, 0, .22);
  border-radius: 4px 10px 10px 4px; color: var(--dim); cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.cm-quote b { color: #fff; font-weight: 800; margin-right: 6px; }
.cm-quote b::after { content: ':'; }
.cm-actions { display: flex; gap: 16px; margin-top: 2px; }
.link { font: 700 11px/1 var(--font); color: var(--faint); background: none; border: 0; padding: 4px 0; cursor: pointer; }
.link:active { color: #fff; }

/* ---------- Программа ---------- */
.epg { display: flex; flex-direction: column; gap: 10px; }
.ep { padding: 12px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.ep.cur { background: linear-gradient(#10101a, #10101a) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: 0 10px 30px rgba(124, 92, 255, .25); }
.ep-t { font-size: 11px; font-weight: 700; color: var(--dim); letter-spacing: .03em; }
.ep.cur .ep-t { color: #ff9cc2; }
.ep-n { margin-top: 4px; font-size: 14px; font-weight: 800; line-height: 1.3; }
.ep-d { margin-top: 5px; font-size: 12px; font-weight: 500; color: var(--dim); line-height: 1.45; }

/* ---------- Ввод ---------- */
.composer {
  flex: none; margin: 0 12px var(--lift); padding: 6px 6px 6px 8px;
  border-radius: 26px; background: rgba(18, 18, 28, .78);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 14px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(124, 92, 255, .12);
  backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
}
.replybar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 2px 4px 6px; padding: 6px 6px 6px 10px; border-left: 3px solid var(--violet); background: rgba(255, 255, 255, .06); border-radius: 4px 12px 12px 4px; }
.replybar-text { min-width: 0; font-size: 12px; font-weight: 500; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.replybar-text b { color: #fff; font-weight: 800; margin-right: 6px; }
.btn-x { font-size: 12px; color: var(--dim); background: rgba(255, 255, 255, .08); border: 0; width: 26px; height: 26px; border-radius: 50%; cursor: pointer; flex: none; }
.composer-row { display: flex; align-items: center; gap: 8px; }
.composer-row input {
  flex: 1; min-width: 0; font: 600 16px/1.2 var(--font); color: #fff;
  background: none; border: 0; padding: 12px 8px; outline: none;
  -webkit-user-select: text; user-select: text;
}
.composer-row input::placeholder { color: var(--faint); font-weight: 500; }
.btn-send {
  flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); box-shadow: 0 6px 20px rgba(255, 77, 141, .45);
  transition: transform .12s;
}
.btn-send:active { transform: scale(.9); }

/* клавиатура открыта — убираем нижний отступ под кнопки телефона */
#app.typing { --lift: 10px; }
html.android #app.typing { --lift: 10px; }

/* ---------- Уведомление про VPN ---------- */
.vpn-hint { max-width: 290px; font-size: 12px; font-weight: 600; line-height: 1.45; color: var(--dim); }
.vpn-note {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 3;
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 12px;
  border-radius: 16px; background: rgba(18, 18, 28, .9); border: 1px solid rgba(255, 178, 30, .5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  animation: pop .3s ease-out;
}
.vpn-note-text { flex: 1; min-width: 0; font-size: 11.5px; font-weight: 500; line-height: 1.35; color: var(--dim); }
.vpn-note-text b { display: block; color: #ffd36a; font-weight: 800; margin-bottom: 2px; }
.vpn-btn { flex: none; font: 800 10px/1 var(--display); letter-spacing: .04em; text-transform: uppercase; color: #fff; background: var(--grad); border: 0; border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.vpn-x { flex: none; width: 24px; height: 24px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: var(--dim); font-size: 11px; cursor: pointer; }

/* ---------- Плашки ролей ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  padding: 3px 8px 3px 6px; border-radius: 999px;
  font: 800 8.5px/1 var(--display); letter-spacing: .1em; text-transform: uppercase;
  position: relative; overflow: hidden;
}
.badge svg { width: 11px; height: 11px; flex: none; }
.badge-owner { color: #3a2400; background: linear-gradient(135deg, #ffe27a, #ffb21e 55%, #ff8a00); box-shadow: 0 2px 12px rgba(255, 178, 30, .55), inset 0 0 0 1px rgba(255, 255, 255, .45); }
.badge-admin { color: #fff; background: linear-gradient(135deg, #7c5cff, #27e1ff); box-shadow: 0 2px 12px rgba(39, 225, 255, .4), inset 0 0 0 1px rgba(255, 255, 255, .35); }
.badge::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .65) 50%, transparent 70%); transform: translateX(-120%); animation: shine 3.4s ease-in-out infinite; }
@keyframes shine { 55%, 100% { transform: translateX(120%); } }
.ava.role-owner { box-shadow: 0 0 0 2px #ffb21e, 0 0 14px rgba(255, 178, 30, .6); }
.ava.role-admin { box-shadow: 0 0 0 2px #27e1ff, 0 0 12px rgba(39, 225, 255, .5); }
.cm.owner .cm-body { border-color: rgba(255, 178, 30, .5); background: linear-gradient(135deg, rgba(255, 178, 30, .16), var(--card)); }
.cm.admin .cm-body { border-color: rgba(39, 225, 255, .4); }
.cm.owner .cm-nick { background: linear-gradient(90deg, #ffe27a, #ffb21e); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cm.admin .cm-nick { background: linear-gradient(90deg, #9fe8ff, #b9a8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }


/* ================= Кнопка меню ================= */
.menu-btn {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border-radius: 13px; cursor: pointer; color: #fff;
  display: flex; align-items: center; justify-content: center;
  background: var(--card-hi); border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .15s, background .2s;
}
.menu-btn:active { transform: translateY(-50%) scale(.9); background: rgba(255, 255, 255, .2); }

/* ================= Боковое меню ================= */
.dwrap { position: fixed; inset: 0; z-index: 50; visibility: hidden; pointer-events: none; transition: visibility 0s linear .5s; }
.dwrap.open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.scrim { position: absolute; inset: 0; background: rgba(3, 3, 9, .6); opacity: 0; transition: opacity .45s ease; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.dwrap.open .scrim { opacity: 1; }
.drawer {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(84vw, 330px);
  display: flex; flex-direction: column; gap: 10px;
  padding: calc(var(--safe-top) + 16px) 16px calc(var(--safe-bottom) + 20px);
  background: linear-gradient(180deg, rgba(26, 22, 48, .97), rgba(10, 10, 18, .98));
  border-right: 1px solid rgba(255, 255, 255, .14); border-radius: 0 28px 28px 0;
  box-shadow: 24px 0 70px rgba(0, 0, 0, .65), 0 0 60px rgba(124, 92, 255, .22);
  transform: translateX(-104%);
  transition: transform .5s cubic-bezier(.32, .72, 0, 1);
  will-change: transform; overflow-y: auto;
}
.dwrap.open .drawer { transform: none; }
.drawer::before { /* мягкое свечение сверху */
  content: ''; position: absolute; left: -40%; top: -20%; width: 120%; height: 40%;
  background: radial-gradient(closest-side, rgba(124, 92, 255, .35), transparent); pointer-events: none;
}
.dr-head { position: relative; display: flex; align-items: center; gap: 10px; padding: 4px 2px 14px; }
.dr-head .brand-name { flex: 1; min-width: 0; }
.dr-close { width: 32px; height: 32px; }
.dr-label { position: relative; font: 800 9px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); padding: 4px 4px 2px; }

.dr-label, .dr-item { opacity: 0; transform: translateX(-18px); }
.dwrap.open .dr-label, .dwrap.open .dr-item {
  opacity: 1; transform: none;
  transition: opacity .4s ease calc(var(--i) * 70ms + 160ms), transform .5s cubic-bezier(.2, .9, .2, 1) calc(var(--i) * 70ms + 160ms), background .2s, border-color .2s;
}
.dr-item {
  position: relative; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 12px 14px 12px 12px; border-radius: 20px; cursor: pointer; color: var(--fg);
  font-family: var(--font); background: var(--card); border: 1px solid var(--line);
}
.dr-item:active { background: var(--card-hi); }
.dr-ico { flex: none; width: 42px; height: 42px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .08); color: var(--dim); transition: background .25s, color .25s; }
.dr-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.dr-txt b { font: 800 13px/1.2 var(--display); letter-spacing: .02em; }
.dr-txt small { font-size: 11.5px; font-weight: 500; color: var(--dim); line-height: 1.25; }
.dr-count { flex: none; min-width: 28px; padding: 6px 9px; border-radius: 999px; text-align: center; font: 800 11px/1 var(--display); background: rgba(255, 255, 255, .1); color: #fff; }
.dr-item.active { background: linear-gradient(#14121f, #14121f) padding-box, var(--grad) border-box; border: 1.5px solid transparent; box-shadow: 0 10px 30px rgba(124, 92, 255, .28); }
.dr-item.active .dr-ico { background: var(--grad); color: #fff; }
.dr-item.active .dr-count { background: var(--grad); }
@media (prefers-reduced-motion: reduce) { .drawer, .scrim, .dr-label, .dr-item { transition-duration: .01s !important; transition-delay: 0s !important; } }

/* ================= Радио ================= */
.radio-view { position: absolute; inset: 0; display: flex; align-items: center; gap: 16px; padding: 12px 16px; overflow: hidden; background: #0b0b14; }
.rv-bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(34px) saturate(1.5); opacity: .5; transform: scale(1.15); }
.rv-art { position: relative; height: 82%; aspect-ratio: 1; flex: none; border-radius: 18px; object-fit: cover; background: rgba(255, 255, 255, .08); box-shadow: 0 14px 34px rgba(0, 0, 0, .6); }
.rv-side { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.rv-name { max-width: 100%; font: 800 11px/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-status { font-size: 11px; font-weight: 700; color: var(--dim); min-height: 13px; }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.eq i { width: 4px; height: 4px; border-radius: 2px; background: linear-gradient(var(--pink), var(--violet)); }
.radio-view[data-state="playing"] .eq i { animation: eq 1s ease-in-out infinite; }
.radio-view[data-state="playing"] .eq i:nth-child(2) { animation-duration: .8s; animation-delay: -.3s; }
.radio-view[data-state="playing"] .eq i:nth-child(3) { animation-duration: 1.15s; animation-delay: -.6s; }
.radio-view[data-state="playing"] .eq i:nth-child(4) { animation-duration: .9s; animation-delay: -.1s; }
.radio-view[data-state="playing"] .eq i:nth-child(5) { animation-duration: 1.05s; animation-delay: -.45s; }
.radio-view[data-state="loading"] .eq i { animation: eqLoad 1.2s ease-in-out infinite; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 22px; } }
@keyframes eqLoad { 0%, 100% { height: 4px; opacity: .4; } 50% { height: 9px; opacity: 1; } }
.rv-play {
  width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad); box-shadow: 0 8px 26px rgba(255, 77, 141, .5); transition: transform .12s;
}
.rv-play:active { transform: scale(.92); }
.rv-play .i-pause { display: none; }
.radio-view[data-state="playing"] .i-play, .radio-view[data-state="loading"] .i-play { display: none; }
.radio-view[data-state="playing"] .i-pause, .radio-view[data-state="loading"] .i-pause { display: block; }
.radio-view[data-state="error"] .rv-status { color: #ffd36a; }

/* карточки треков во вкладке «Программа» */
.sec-h { font: 800 9px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); padding: 6px 4px 0; }
.trk { display: flex; align-items: center; gap: 12px; }
.trk-art { width: 46px; height: 46px; flex: none; border-radius: 12px; object-fit: cover; background: rgba(255, 255, 255, .08); }
.trk-body { min-width: 0; flex: 1; }
.trk .ep-n, .trk .ep-d { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trk.past { opacity: .6; }
.trk-rel { color: #9fe8ff; }
