/* ===== Глобальные переменные (цветовая схема, тени, скругления) ===== */
:root {
  --bg: #0f1117;                /* основной фон страницы */
  --panel: #171a22;             /* фон панелей/карточек (верхний градиент) */
  --panel2: #1d2230;            /* фон панелей/карточек (нижний градиент) */
  --text: #f4f6fb;              /* основной цвет текста */
  --muted: #9aa3b2;             /* приглушённый текст (подписи, второстепенные элементы) */
  --accent: #7c3aed;            /* основной акцентный цвет (фиолетовый) */
  --accent2: #a855f7;           /* вторичный акцент для градиентов */
  --good: #34d399;              /* цвет для иконок "успешно" (зелёный) */
  --shadow: 0 16px 40px rgba(0,0,0,.35);  /* тень для карточек */
  --line: rgba(255,255,255,.08);          /* цвет разделителей/границ */
}

/* ===== Сброс box-sizing для всех элементов ===== */
* {
  box-sizing: border-box;
}

/* ===== Плавная прокрутка (для якорных ссылок) ===== */
html {
  scroll-behavior: smooth;
}

/* ===== Общие стили body ===== */
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Ubuntu", sans-serif;
  font-weight: 400;
  font-style: normal;
  /* Два радиальных градиента создают «свечение» по углам */
  background:
    radial-gradient(1100px 520px at 15% 0%, rgba(124,58,237,.12) 0%, transparent 60%),
    radial-gradient(900px 500px at 100% 10%, rgba(255,92,92,.08) 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* ===== Ссылки ===== */
a {
  color: inherit;
  text-decoration: none;
  transition: color .2s ease, transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}
a:hover {
  color: #fff;
}

/* ===== Изображения ===== */
img {
  max-width: 100%;
  display: block;
}

/* ===== Формы ===== */
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}

/* ===== Выделение текста ===== */
::selection {
  background: rgba(124,58,237,.35);
  color: #fff;
}

/* ===== Кастомный скроллбар (WebKit) ===== */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #0a0a0f;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb {
  background: #7c3aed;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #6d28d9;
}

/* ===== Скроллбар для Firefox ===== */
* {
  scrollbar-width: thin;
  scrollbar-color: #7c3aed #0a0a0f;
}

/* ===== Обёртка-контейнер с максимальной шириной ===== */
.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px;
}

/* ===== Отступ для секций ===== */
.section {
  margin-top: 34px;
}

/* ===== Базовая панель (карточка) с градиентом и тенью ===== */
.panel {
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 22px;
}

/* ===== Заголовок секции (с декоративной линией и ссылкой "Смотреть всё") ===== */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 18px;
  padding: 0 4px;
}
.section-head h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: #fff;
}
/* Декоративная полоска под заголовком */
.section-head h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
.section-head a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.section-head a:hover {
  color: #fff;
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.12);
  transform: translateY(-1px);
}

/* ===== Универсальная кнопка ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform .2s ease,
    background .2s ease,
    color .2s ease,
    border-color .2s ease,
    box-shadow .2s ease,
    opacity .2s ease;
  user-select: none;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
  opacity: .96;
}
.btn:focus-visible {
  outline: 2px solid rgba(124,58,237,.85);
  outline-offset: 3px;
}

/* Размеры */
.btn.small {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
}
.btn.large {
  padding: 16px 22px;
  border-radius: 18px;
  font-size: 15px;
}
.btn.block {
  width: 100%;
}
.btn i {
  font-size: 14px;
  line-height: 1;
}

/* ===== Верхняя панель (шапка) с липким позиционированием ===== */
.topbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  position: sticky;          /* фиксируется при прокрутке */
  top: 0;
  backdrop-filter: blur(14px); /* размытие фона под панелью */
  z-index: 20;               /* поверх остального контента */
  background: linear-gradient(to bottom, rgba(15,17,23,.92), rgba(15,17,23,.55), transparent);
}

/* ===== ОБЩАЯ БАЗА ДЛЯ ЛОГОТИПОВ ===== */
.logo,
.logo-kids {
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  font-size: 32px;
  letter-spacing: 0.5px;
  text-decoration: none;
  font-family: 'Eater', sans-serif; /* можно заменить на любой другой */
  transition: transform 0.3s ease, filter 0.3s ease;
  text-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

/* Ховер – общий для обоих */
.logo:hover,
.logo-kids:hover {
  transform: scale(1.04);
  filter: brightness(1.05) drop-shadow(0 0 25px rgba(124, 58, 237, 0.25));
}

/* Все буквы внутри – inline-block для анимаций */
.logo span,
.logo-kids span {
  display: inline-block;
  transition: transform 0.2s ease;
  opacity: 0; /* начально скрыты для анимации появления */
  transform: translateY(-8px);
  animation: logoFade 0.5s ease forwards;
}

/* Задержки для каждой буквы (порядок: 1-я, 2-я, 3-я, 4-я) */
.logo span:nth-child(1),
.logo-kids span:nth-child(1) { animation-delay: 0.1s; }
.logo span:nth-child(2),
.logo-kids span:nth-child(2) { animation-delay: 0.2s; }
.logo span:nth-child(3),
.logo-kids span:nth-child(3) { animation-delay: 0.3s; }
.logo span:nth-child(4),
.logo-kids span:nth-child(4) { animation-delay: 0.4s; }

/* Ключевые кадры анимации появления букв */
@keyframes logoFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== ИНДИВИДУАЛЬНЫЕ ЦВЕТА ДЛЯ БУКВ (пастельная радуга) ===== */

/* FLOW */
.logo span:nth-child(1) { /* F */
  background: linear-gradient(135deg, #f9a8d4, #f472b6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #f472b6;
}
.logo span:nth-child(2) { /* L */
  background: linear-gradient(135deg, #a78bfa, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #8b5cf6;
}
.logo span:nth-child(3) { /* O */
  background: linear-gradient(135deg, #6ee7b7, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #34d399;
}
.logo span:nth-child(4) { /* W */
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #f59e0b;
}

/* KIDS */
.logo-kids span:nth-child(1) { /* K */
  background: linear-gradient(135deg, #fca5a5, #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #ef4444;
}
.logo-kids span:nth-child(2) { /* I */
  background: linear-gradient(135deg, #fdba74, #f97316);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #f97316;
}
.logo-kids span:nth-child(3) { /* D */
  background: linear-gradient(135deg, #fde047, #eab308);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #eab308;
}
.logo-kids span:nth-child(4) { /* S */
  background: linear-gradient(135deg, #86efac, #22c55e);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #22c55e;
}

/* ===== ДЕКОРАТИВНЫЕ ЭЛЕМЕНТЫ (общие) ===== */

/* Точка после FLOW (как у вас) */
.logo::after {
  content: "●";
  margin-left: 6px;
  font-size: 14px;
  color: #8b5cf6;
  animation: pulse 2s infinite;
}
/* Звёздочка после KIDS (появляется при ховере, но теперь упрощённо – всегда видна с анимацией) */
.logo-kids::after {
  content: "✦";
  margin-left: 6px;
  font-size: 16px;
  color: #f472b6;
  animation: pulse 2s infinite 0.5s;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* ===== Навигационное меню ===== */
.nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 700;
}
nav a {
  color: #d1d5db; /* gray-300 */
  transition: color 0.2s ease;
}

nav a:hover {
  color: #ffffff;
}

/* ===== Строка поиска ===== */
.search {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  padding: 10px 14px;
  border-radius: 16px;
  min-width: min(420px, 100%);
}
.search input {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  width: 100%;
  font-size: 15px;
}

/* ===== Блок пользователя (аватар + имя) ===== */
.user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff7aa2, #7dd3fc);
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
}

/* ----- страница-заглушка (контент за модалкой) ----- */
.page-content {
    text-align: center;
    padding: 2rem;
    color: #6b6b80;
}
.page-content .logo {
    font-size: 3rem;
    font-weight: 700;
    color: #7c3aed;
    letter-spacing: -0.5px;
}
.page-content p {
    margin-top: 0.5rem;
    font-size: 1.1rem;
    color: #4a4a5e;
}
.page-content .demo-card {
    margin-top: 2rem;
    padding: 2rem 3rem;
    border-radius: 2rem;
    background: #16161f;
    border: 1px solid #2a2a38;
    display: inline-block;
}
.page-content .demo-card .avatar {
    display: inline-flex;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #7c3aed;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}
.page-content .demo-card .name {
    color: #e4e4f0;
    font-weight: 500;
}
.page-content .demo-card .hint {
    font-size: 0.85rem;
    color: #5a5a72;
    margin-top: 0.25rem;
}

/* ----- кнопка, открывающая модалку (для демо) ----- */
.open-modal-btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 999px;
    background: #7c3aed;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
}
.open-modal-btn:hover {
    background: #6d28d9;
}
.open-modal-btn i {
    margin-right: 0.5rem;
}

/* ----- OVERLAY (полный экран) ----- */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;           /* скрыт по умолчанию */
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(12px); /* размытие фона */
    -webkit-backdrop-filter: blur(12px);
    animation: overlayFade 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes overlayFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ----- сама модалка (карточка) ----- */
.modal-card {
    position: relative;
    width: 100%;
    max-width: 460px;
    margin: 1.5rem;
    padding: 2.5rem 2rem 2rem;
    background: #13131e;
    border-radius: 2.5rem;
    border: 1px solid #2a2a3a;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8);
    text-align: center;
    animation: cardPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cardPop {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ----- кнопка закрытия (крестик) ----- */
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: #6b6b84;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    transition: background 0.2s, color 0.2s;
    line-height: 1;
}
.modal-close:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e4e4f0;
}

/* ----- иконка / аватар ----- */
.modal-icon {
    display: inline-flex;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #7c3aed;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #fff;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.35);
}

/* ----- заголовки ----- */
.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #f0f0ff;
    letter-spacing: -0.3px;
}
.modal-sub {
    margin-top: 0.4rem;
    font-size: 0.95rem;
    color: #8a8aa0;
    line-height: 1.5;
}
.modal-sub strong {
    color: #c4c4e0;
    font-weight: 600;
}

/* ----- кнопки действий ----- */
.modal-actions {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-primary,
.btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    border: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: #7c3aed;
    color: #fff;
    box-shadow: 0 4px 16px rgba(124, 58, 237, 0.3);
}
.btn-primary:hover {
    background: #6d28d9;
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.4);
    transform: scale(1.01);
}
.btn-primary:active {
    transform: scale(0.97);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #d0d0e8;
    border: 1px solid #2e2e42;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: #4a4a66;
    color: #f0f0ff;
}

/* ----- разделитель "или" ----- */
.modal-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0 0.25rem;
    color: #4a4a62;
    font-size: 0.85rem;
}
.modal-divider::before,
.modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #28283a;
}

/* ----- ссылка "гость" ----- */
.guest-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: #6a6a86;
    font-size: 0.9rem;
    text-decoration: none;
    border-bottom: 1px dashed #3a3a52;
    transition: color 0.2s, border-color 0.2s;
}
.guest-link:hover {
    color: #a0a0c8;
    border-color: #5a5a7a;
}
.guest-link i {
    margin-right: 0.4rem;
    font-size: 0.8rem;
}

/* ----- адаптивность модалки ----- */
@media (max-width: 480px) {
    .modal-card {
        padding: 2rem 1.25rem 1.75rem;
        border-radius: 2rem;
        margin: 1rem;
    }
    .modal-title {
        font-size: 1.5rem;
    }
    .modal-icon {
        width: 68px;
        height: 68px;
        font-size: 2rem;
    }
    .btn-primary,
    .btn-secondary {
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
    }
}

/* ----- состояние закрытия (анимация) ----- */
.modal-overlay.closing {
    animation: overlayFadeOut 0.25s ease forwards;
}
@keyframes overlayFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

.modal-card.closing {
    animation: cardPopOut 0.25s ease forwards;
}
@keyframes cardPopOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.95) translateY(16px);
    }
}

/* ===== Герой-секция (главный баннер) ===== */
.hero {
  margin-top: 18px;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  min-height: 640px;
  background:
    linear-gradient(90deg, rgba(15,17,23,.18) 0%, rgba(15,17,23,.45) 48%, rgba(15,17,23,.92) 100%),
    center/cover no-repeat;
}
/* Декоративный оверлей (свечение и затемнение) */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 280px at 18% 18%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(180deg, rgba(15,17,23,.1) 0%, rgba(15,17,23,.82) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
  padding: 48px;
  align-items: end;
  min-height: 640px;
}

/* ===== Movie hero (постер с кнопкой воспроизведения) ===== */
.poster-hero{
  position:relative;
  overflow:hidden;
  border-radius:24px;
  background:#1c1c24;
  border:1px solid rgba(255,255,255,.06);
  box-shadow:var(--shadow);
}

.poster-hero__img{
  width:100%;
  display:block;
  object-fit:cover;
  max-height:560px;
}

.poster-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
}

.poster-action-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:11px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.05);
  color:#f4f6fb;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  transition:transform .2s ease,background .2s ease,border-color .2s ease,opacity .2s ease;
}

.poster-action-btn:hover{
  transform:translateY(-2px);
  background:rgba(255,255,255,.09);
  border-color:rgba(255,255,255,.14);
}

.poster-action-btn--active{
  background:rgba(124,58,237,.16);
  border-color:rgba(124,58,237,.28);
  color:#fff;
}

.poster-action-btn--active:hover{
  background:rgba(124,58,237,.22);
}

.poster-action-btn i{
  font-size:14px;
}

@media (max-width:720px){
  .poster-actions{
    gap:8px;
  }

  .poster-action-btn{
    width:100%;
    justify-content:center;
  }
}

.player-section{
  margin-top:0rem;
}

.player-card{
  position:relative;
  overflow:hidden;
  border-radius:28px;
  box-shadow:var(--shadow);
  background:
    linear-gradient(90deg,rgba(15,17,23,.62) 0%,rgba(15,17,23,.42) 48%,rgba(15,17,23,.82) 100%),
    url('https://avatars.mds.yandex.net/i?id=da11f16ff2c0469dafc5aa285fea3b0c_l-5859311-images-thumbs&n=13')
    center/cover no-repeat;
  min-height:460px;
  animation:fadeUpIn .65s cubic-bezier(.22,1,.36,1) both;
}

.player-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(0,0,0,.18),rgba(0,0,0,.64));
  z-index:0;
}

.player-lock{
  position:relative;
  z-index:1;
  min-height:460px;
  padding:40px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  background:
    radial-gradient(700px 260px at 20% 0%, rgba(124,58,237,.18), transparent 60%),
    radial-gradient(520px 180px at 100% 20%, rgba(255,92,92,.12), transparent 55%),
    linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));
  animation:fadeUpIn .75s cubic-bezier(.22,1,.36,1) both;
}

.player-lock__content{
  max-width:720px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:18px;
}

.player-lock__icon{
  width:72px;
  height:72px;
  border-radius:22px;
  display:grid;
  place-items:center;
  background:rgba(124,58,237,.14);
  border:1px solid rgba(124,58,237,.22);
  color:#e9ddff;
  font-size:26px;
  flex:0 0 auto;
}

.player-lock__title{
  margin: 0;
  font-size: 44px;
  font-weight: bold;
  line-height: 1.05;
  letter-spacing: -.04em;
  color: #fff;
}

.player-lock__text{
  margin:0;
  color:#dbe1eb;
  line-height:1.75;
  font-size:17px;
}

.player-lock__actions{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:12px;
  min-width:240px;
  margin-left:auto;
}

.player-lock__actions .btn{
  width:100%;
  justify-content:center;
}

@media (max-width:900px){
  .player-lock{
    flex-direction:column;
    align-items:flex-start;
  }

  .player-lock__actions{
    width:100%;
    min-width:0;
    margin-left:0;
  }
}

@media (max-width:720px){
  .player-card,
  .player-lock{
    min-height:auto;
  }

  .player-lock{
    padding:22px;
  }

  .player-lock__title{
    font-size:30px;
    max-width:none;
  }

  .player-lock__icon{
    width:62px;
    height:62px;
    font-size:22px;
  }

  .player-lock__actions .btn{
    width:100%;
  }
}

@keyframes fadeUpIn{
  from{
    opacity:0;
    transform:translateY(18px) scale(.98);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

/* Затемнение поверх постера и центрирование кнопки */
.poster-hero__overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,rgba(0,0,0,.15),rgba(0,0,0,.55));
  border:0;
  cursor:pointer;
  transition:background .2s ease, transform .2s ease;
}

.poster-hero__overlay:hover{
  background:linear-gradient(180deg,rgba(0,0,0,.1),rgba(0,0,0,.62));
}

/* Круглая кнопка воспроизведения */
.poster-hero__play{
  width:76px;
  height:76px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#7c3aed,#a855f7);
  color:#fff;
  box-shadow:0 16px 34px rgba(124,58,237,.35);
  transform:scale(1);
  transition:transform .2s ease, box-shadow .2s ease;
}

.poster-hero__overlay:hover .poster-hero__play{
  transform:scale(1.08);
  box-shadow:0 18px 40px rgba(124,58,237,.42);
}

.poster-hero__play i{
  font-size:22px;
  margin-left:3px;
}

@media (max-width:720px){
  .poster-hero{
    border-radius:20px;
  }

  .poster-hero__play{
    width:62px;
    height:62px;
  }

  .poster-hero__play i{
    font-size:18px;
  }
}

/* ===== Видео-модальное окно (плеер) ===== */
.video-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  opacity:1;
  transition:opacity .25s ease;
}

.video-modal.hidden{
  opacity:0;
  pointer-events:none;
}

.video-modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(8px);
}

.video-modal__content{
  position:relative;
  z-index:1;
  width:min(1100px,100%);
  background:#0f1117;
  border:1px solid rgba(255,255,255,.08);
  border-radius:24px;
  box-shadow:0 24px 80px rgba(0,0,0,.6);
  padding:16px;
}

.video-modal__close{
  position:absolute;
  top:20px;
  right:20px;
  z-index:2;
  width:40px;
  height:40px;
  border:0;
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#fff;
  display:grid;
  place-items:center;
  cursor:pointer;
}

.video-modal__close:hover{
  background:rgba(255,255,255,.14);
}

.comments-section{
  margin-top:34px;
}

.comments-layout{
  display:grid;
  grid-template-columns:1.35fr .95fr;
  gap:22px;
  align-items:start;
}

.comments-layout__list,
.comments-layout__form{
  min-width:0;
}

.comments-layout__list{
  display:grid;
  gap:18px;
}

.comments-layout__form{
  position:sticky;
  top:24px;
}

@media (max-width:1100px){
  .comments-layout{
    grid-template-columns:1fr;
  }

  .comments-layout__form{
    position:static;
  }
}

/* ===== Тэги и мелкие бейджи ===== */
.tag,
.kids-kicker,
.pricing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

/* ===== Заголовки героя ===== */
.hero h1,
.kids-hero h1,
.pricing-header__text h3 {
  margin: 16px 0 12px;
  letter-spacing: -.03em;
}
.hero h1 {
  font-size: 64px;
  line-height: 1.02;
  max-width: 11ch;
}

/* ===== Текстовое описание ===== */
.desc,
.hero p {
  max-width: 60ch;
  color: #dbe1eb;
  line-height: 1.7;
  font-size: 16px;
}

/* ===== Группа кнопок действий ===== */
.actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ===== Карточка в герое (правая часть) ===== */
.hero-card,
.kids-spotlight {
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}
.hero-card-top,
.kids-spotlight__poster {
  aspect-ratio: 16/12;
  background: center/cover no-repeat;
  position: relative;
}
/* Градиентное затемнение внизу картинки */
.hero-card-top::after,
.kids-spotlight__poster::after,
.kid-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.35));
}
.hero-card-bottom,
.kids-spotlight__meta,
.kid-meta {
  padding: 18px;
}
.mini-title,
.kids-spotlight__meta strong {
  font-size: 18px;
  font-weight: 900;
  display: block;
  margin-bottom: 8px;
}
.mini-sub,
.kids-spotlight__meta p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ===== Сетка фич (4 колонки) ===== */
.feature-grid,
.kids-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-card,
.kids-feature-card {
  position: relative;
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
/* Цветная полоска сверху */
.feature-card::before,
.kids-feature-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ff7aa2, #7dd3fc, #fbbf24, #34d399);
}
.feature-card:hover,
.kids-feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.14);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  font-size: 20px;
}
.feature-card h3,
.kids-feature-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}
.feature-card p,
.kids-feature-card p,
.price-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

/* ===== Интерактивная секция (настроение / викторина) ===== */
.interactive,
.kids-interactive {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 16px;
}

/* ===== Сетка кнопок настроения ===== */
.mood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mood-btn,
.quiz-option {
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
  color: #fff;
  border-radius: 18px;
  padding: 16px 14px;
  text-align: left;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.mood-btn {
  min-height: 110px;
}
.mood-btn:hover,
.mood-btn.active,
.quiz-option:hover,
.quiz-option.correct {
  transform: translateY(-2px);
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.14);
}
.mood-btn strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}
.mood-btn span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ===== Блок «Сейчас смотрят» (для детской страницы) ===== */
.kids-current {
  margin-top: 18px;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}
.kids-current span {
  color: #7dd3fc;
}
.kids-note {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ===== Список превью (карточки) ===== */
.kids-preview,
.preview {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.preview-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
}
.thumb {
  width: 70px;
  aspect-ratio: 1/1;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  flex: 0 0 auto;
}
.preview-card strong,
.kid-title {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 800;
}
.preview-card p,
.kid-sub,
.quiz-result {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

/* ===== Викторина ===== */
.quiz,
.quiz-result {
  display: grid;
  gap: 14px;
}
.quiz-q {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 12px;
}
.quiz-options {
  display: grid;
  gap: 10px;
}
.quiz-option {
  padding: 14px 16px;
}
.quiz-result {
  margin-top: 4px;
  color: #cdeed8;
  min-height: 20px;
}

/* ===== Дополнительная карточка с действиями (для детской страницы) ===== */
.kids-actions-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.06);
}
.kids-actions-card strong {
  display: block;
  margin-bottom: 8px;
}

/* ===== Секция цен ===== */
.pricing-wrap {
  display: grid;
  gap: 18px;
}
.pricing-header {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 28px;
  background:
    radial-gradient(700px 220px at 20% 0%, rgba(124,58,237,.20), transparent 60%),
    radial-gradient(520px 180px at 100% 0%, rgba(255,92,92,.14), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow);
}
.pricing-header__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
  margin-bottom: 18px;
}
.pricing-chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}
.pricing-header__content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  position: relative;
  z-index: 1;
}
.pricing-header__text {
  max-width: 760px;
}
.pricing-header__text h3 {
  margin: 0;
  font-size: 34px;
  line-height: 1.08;
  color: #fff;
}
.pricing-header__text p {
  margin: 12px 0 0;
  color: #dbe1eb;
  line-height: 1.7;
  font-size: 15px;
  max-width: 62ch;
}
.pricing-header__cta {
  flex: 0 0 auto;
  min-width: 190px;
  justify-content: center;
}

/* ===== Таблица цен (3 колонки) ===== */
.pricing-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.price-card {
  position: relative;
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.price-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,92,92,.35);
  box-shadow: 0 20px 48px rgba(0,0,0,.42);
}
/* Популярный план — выделен фиолетовым и приподнят */
.price-card.popular {
  border-color: rgba(124,58,237,.5);
  transform: translateY(-6px);
  background:
    linear-gradient(180deg, rgba(124,58,237,.14), rgba(255,255,255,.03)),
    linear-gradient(180deg, var(--panel), var(--panel2));
}
.popular-label {
  position: absolute;
  top: -12px;
  left: 22px;
  padding: 7px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(124,58,237,.28);
}
.price-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.price-name {
  font-size: 22px;
  font-weight: 800;
}
.price-badge {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.price-value {
  font-size: 38px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.03em;
}
.price-value small {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 11px;
}
.price-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e7ebf5;
  font-size: 14px;
}
.price-list i {
  color: var(--good);
  width: 18px;
  text-align: center;
}
.price-btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* ===== Специальная страница «Детям» ===== */
.kids-page {
  display: grid;
  gap: 34px;
}
.kids-hero {
  overflow: hidden;
  position: relative;
  min-height: 680px;
  background:
    linear-gradient(90deg, rgba(15,17,23,.12) 0%, rgba(15,17,23,.45) 42%, rgba(15,17,23,.94) 100%),
    center/cover no-repeat;
}
.kids-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px 280px at 18% 18%, rgba(255,255,255,.10), transparent 60%),
    linear-gradient(180deg, rgba(15,17,23,.1) 0%, rgba(15,17,23,.84) 100%);
}
.kids-hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 24px;
  padding: 48px;
  align-items: end;
}
.kids-hero h1 {
  font-size: 64px;
  line-height: 1.02;
}
.kids-hero p {
  max-width: 60ch;
  color: #dbe1eb;
  line-height: 1.7;
  font-size: 16px;
}
.kids-hero__right {
  justify-self: end;
  width: min(100%, 400px);
}

/* ===== Карточка контента для детей ===== */
.kid-card {
  background: linear-gradient(180deg, var(--panel), var(--panel2));
  border: 1px solid rgba(255,255,255,.06);
  box-shadow: var(--shadow);
  border-radius: 22px;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.kid-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.14);
}
.kid-thumb {
  aspect-ratio: 2/3;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* ===== Сетка коллекции детского контента (6 колонок) ===== */
.kids-collection {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.kid-sub {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

/* ===== Настройки видео-плеера (прозрачная панель управления) ===== */
video::-webkit-media-controls-panel {
  background-image: linear-gradient(transparent, rgba(0,0,0,.7));
}

/* ===== Модальное окно поиска (скрыто по умолчанию) ===== */
#search-modal {
  transition: opacity .3s ease;
}
#search-modal:not(.hidden) {
  opacity: 1;
}
#search-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.recommend-card{
  position:relative;
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px;
  border-radius:20px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.06);
  box-shadow:var(--shadow);
  overflow:hidden;
  transition:transform .22s ease,border-color .22s ease,background .22s ease,box-shadow .22s ease;
}

.recommend-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(124,58,237,.14),transparent 38%);
  opacity:0;
  transition:opacity .22s ease;
  pointer-events:none;
}

.recommend-card:hover{
  transform:translateY(-3px);
  border-color:rgba(124,58,237,.24);
  box-shadow:0 18px 34px rgba(0,0,0,.32);
  background:
    linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.04));
}

.recommend-card:hover::before{
  opacity:1;
}

.recommend-card__poster{
  position:relative;
  flex-shrink:0;
  width:64px;
  height:92px;
}

.recommend-card__poster img{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:16px;
  box-shadow:0 10px 24px rgba(0,0,0,.35);
}

.recommend-card__rating{
  position:absolute;
  top:-8px;
  right:-8px;
  min-width:28px;
  height:28px;
  padding:0 8px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,#7c3aed,#a855f7);
  color:#fff;
  font-size:11px;
  font-weight:800;
  box-shadow:0 10px 20px rgba(124,58,237,.35);
  border:2px solid #0f1117;
}

.recommend-card__content{
  flex:1;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.recommend-card__title{
  margin:0;
  font-size:15px;
  font-weight:800;
  color:#fff;
  line-height:1.25;
}

.recommend-card__year{
  margin-left:8px;
  font-size:12px;
  color:var(--muted);
  font-weight:600;
}

.recommend-card__meta{
  margin:0;
  font-size:12px;
  color:var(--muted);
  line-height:1.4;
}

.recommend-card__arrow{
  flex-shrink:0;
  width:34px;
  height:34px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:rgba(124,58,237,.12);
  border:1px solid rgba(124,58,237,.18);
  color:#cdb9ff;
  opacity:0;
  transform:translateX(-4px);
  transition:opacity .22s ease,transform .22s ease,background .22s ease;
}

.recommend-card:hover .recommend-card__arrow{
  opacity:1;
  transform:translateX(0);
  background:rgba(124,58,237,.18);
}

@media (max-width:720px){
  .recommend-card{
    padding:12px;
    gap:12px;
  }

  .recommend-card__poster{
    width:56px;
    height:80px;
  }

  .recommend-card__arrow{
    opacity:1;
    transform:none;
  }
}

/* ============================================================ */
/* ===== АДАПТИВНОСТЬ ===== */
/* ============================================================ */

/* Для планшетов и небольших ноутбуков (ширина ≤ 1100px) */
@media (max-width: 1100px) {
  .hero-content,
  .pricing-header__content,
  .kids-hero__content,
  .interactive,
  .kids-interactive {
    grid-template-columns: 1fr;   /* все блоки становятся в одну колонку */
  }
  .hero,
  .hero-content,
  .kids-hero {
    min-height: auto;            /* убираем фиксированную высоту */
  }
  .pricing-table,
  .feature-grid,
  .kids-features,
  .kids-collection {
    grid-template-columns: repeat(3, 1fr);  /* уменьшаем количество колонок */
  }
  .search {
    min-width: 0;
    width: 100%;
  }
  .kids-hero__right {
    display: none;               /* скрываем правую часть на планшетах */
  }
  .price-card.popular {
    transform: none;             /* убираем поднятие у популярного плана */
  }
}

/* Для мобильных устройств (ширина ≤ 720px) */
@media (max-width: 720px) {
  .wrap {
    padding: 14px;
  }
  .topbar {
    flex-wrap: wrap;            /* элементы шапки переносятся */
  }
  .nav {
    width: 100%;
  }
  .hero-content,
  .kids-hero__content {
    padding: 24px;
  }
  .hero h1,
  .kids-hero h1 {
    font-size: 36px;            /* уменьшаем заголовки */
  }
  .pricing-header {
    padding: 20px;
    border-radius: 24px;
  }
  .section-head,
  .pricing-header__top {
    align-items: flex-start;
    flex-direction: column;
  }
  /* Все сетки превращаются в одну колонку */
  .pricing-table,
  .feature-grid,
  .kids-features,
  .kids-collection,
  .mood-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 18px;
  }
  .pricing-header__text h3 {
    font-size: 28px;
  }
}

/* Для очень маленьких экранов (ширина ≤ 480px) – уже есть внутри модалки */
/* Дополнительно можно добавить правила при необходимости */

.collections-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
}

.collection-card{
  position:relative;
  display:block;
  border-radius:24px;
  overflow:hidden;
  background:linear-gradient(180deg,var(--panel),var(--panel2));
  border:1px solid rgba(255,255,255,.06);
  box-shadow:var(--shadow);
  transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;
}

.collection-card:hover{
  transform:translateY(-6px);
  border-color:rgba(124,58,237,.28);
  box-shadow:0 20px 44px rgba(0,0,0,.38);
}

.collection-card__media{
  position:relative;
  aspect-ratio:3/4;
  overflow:hidden;
}

.collection-card__media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.01);
  transition:transform .35s ease;
}

.collection-card:hover .collection-card__media img{
  transform:scale(1.06);
}

.collection-card__overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(180deg,rgba(0,0,0,.12) 0%,rgba(0,0,0,.28) 42%,rgba(0,0,0,.9) 100%),
    linear-gradient(90deg,rgba(124,58,237,.08),transparent 45%);
}

.collection-card__badge{
  position:absolute;
  top:14px;
  left:14px;
  padding:7px 10px;
  border-radius:999px;
  background:rgba(15,17,23,.62);
  border:1px solid rgba(255,255,255,.08);
  color:#fff;
  font-size:12px;
  font-weight:800;
  backdrop-filter:blur(10px);
}

.collection-card__title-wrap{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  padding:18px;
  z-index:1;
}

.collection-card__title-wrap h3{
  margin:0 0 6px;
  color:#fff;
  font-size:22px;
  line-height:1.1;
  letter-spacing:-.03em;
}

.collection-card__title-wrap p{
  margin:0;
  color:#dbe1eb;
  font-size:13px;
  line-height:1.5;
  max-width:24ch;
}

@media (max-width:1100px){
  .collections-grid{
    grid-template-columns:repeat(3,1fr);
  }
}

@media (max-width:720px){
  .collections-grid{
    grid-template-columns:repeat(2,1fr);
    gap:14px;
  }

  .collection-card__title-wrap h3{
    font-size:18px;
  }
}

@media (max-width:520px){
  .collections-grid{
    grid-template-columns:1fr;
  }
}

.rating-low {
  background-color: #ef4444; /* красный */
}
.rating-mid {
  background-color: #f59e0b; /* жёлтый/оранжевый */
}
.rating-high {
  background-color: #22c55e; /* зелёный */
}

.aspect-video {
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
}

.aspect-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Затемнение (фон модалки) */
.modal-overlay {
    display: none; /* скрыт по умолчанию */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

/* Само модальное окно */
.modal {
    background: #ffffff;
    max-width: 600px;
    width: 92%;
    border-radius: 24px;
    padding: 30px 35px 35px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

/* Заголовок модалки */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #eef2f6;
    padding-bottom: 15px;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h2 i {
    color: #3b82f6;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    padding: 0 6px;
}

.modal-close:hover {
    color: #ef4444;
}

/* Содержимое */
.modal-body {
    color: #334155;
    line-height: 1.6;
}

.modal-body p {
    margin-top: 0;
    font-size: 1.05rem;
}

.modal-body ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 10px;
}

.modal-body ul li {
    padding: 12px 0 12px 40px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
    font-size: 1rem;
}

.modal-body ul li:last-child {
    border-bottom: none;
}

.modal-body ul li i {
    position: absolute;
    left: 6px;
    top: 14px;
    font-size: 1.3rem;
    color: #3b82f6;
    width: 28px;
    text-align: center;
}

.modal-body .highlight {
    background: #eff6ff;
    padding: 4px 12px;
    border-radius: 20px;
    color: #2563eb;
    font-weight: 500;
}

.modal-footer {
    margin-top: 25px;
    text-align: right;
}

.modal-footer .btn-ok {
    background: #3b82f6;
    color: #fff;
    border: none;
    padding: 12px 34px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-footer .btn-ok:hover {
    background: #2563eb;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Адаптивность для маленьких экранов */
@media (max-width: 480px) {
    .modal {
        padding: 20px;
    }
    .modal-header h2 {
        font-size: 1.4rem;
    }
    .modal-body ul li {
        padding-left: 32px;
    }
}

.profile-page--split{
  display:grid;
  gap:18px;
  margin-top:34px;
}

.glass-panel{
  position:relative;
  overflow:hidden;
  border-radius:28px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:var(--shadow);
  backdrop-filter:blur(16px) saturate(120%);
  -webkit-backdrop-filter:blur(16px) saturate(120%);
}

.profile-banner{
  min-height:300px;
  padding:28px;
  background:
    radial-gradient(800px 260px at 10% 0%, rgba(124,58,237,.22), transparent 55%),
    radial-gradient(520px 200px at 100% 20%, rgba(255,92,92,.12), transparent 58%),
    rgba(255,255,255,.04);
}

.profile-banner__overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg,rgba(15,17,23,.12),rgba(15,17,23,.86)),
    url('https://avatars.mds.yandex.net/i?id=da11f16ff2c0469dafc5aa285fea3b0c_l-5859311-images-thumbs&n=13')
    center/cover no-repeat;
  opacity:.24;
  pointer-events:none;
}

.profile-banner__content{
  position:relative;
  z-index:1;
  min-height:244px;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:24px;
}

.profile-banner__identity{
  display:flex;
  align-items:center;
  gap:20px;
}

.profile-banner__avatar{
  width:124px;
  height:124px;
  border-radius:30px;
  overflow:hidden;
  border:2px solid rgba(255,255,255,.12);
  box-shadow:0 18px 40px rgba(0,0,0,.34);
}

.profile-banner__avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.profile-banner__kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  color:var(--muted);
  font-size:13px;
  font-weight:700;
}

.profile-banner__name{
  margin:0;
  font-size:52px;
  line-height:1;
  letter-spacing:-.05em;
  color:#fff;
}

.profile-banner__meta{
  margin:12px 0 0;
  max-width:60ch;
  color:#dbe1eb;
  font-size:15px;
  line-height:1.7;
}

.profile-banner__stats{
  display:grid;
  grid-template-columns:repeat(3, minmax(110px, 1fr));
  gap:12px;
  min-width:380px;
}

.banner-stat{
  padding:16px 18px;
  border-radius:22px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  text-align:left;
}

.banner-stat strong{
  display:block;
  color:#fff;
  font-size:28px;
  line-height:1;
  margin-bottom:8px;
  text-align: center;
}

.banner-stat span{
  color:var(--muted);
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
  text-align: center;
}

.profile-shell{
  display:grid;
  grid-template-columns:320px 1fr;
  gap:18px;
  align-items:start;
}

.profile-sidebar{
  position:sticky;
  top:24px;
  padding:20px;
  display:grid;
  gap:18px;
}

.profile-sidebar__user{
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px;
  border-radius:22px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
}

.profile-sidebar__avatar{
  width:52px;
  height:52px;
  border-radius:16px;
  overflow:hidden;
  flex:0 0 52px;
}

.profile-sidebar__avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.profile-sidebar__user strong{
  display:block;
  color:#fff;
  font-size:15px;
  margin-bottom:4px;
}

.profile-sidebar__user span{
  color:#10b981;
  font-size:12px;
  font-weight:800;
}

.profile-sidebar__nav{
  display:grid;
  gap:10px;
}

.profile-sidebtn{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:#e7ebf5;
  font-size:14px;
  font-weight:800;
  text-align:left;
  cursor:pointer;
  transition:transform .2s ease,background .2s ease,border-color .2s ease,color .2s ease;
}

.profile-sidebtn:hover{
  transform:translateY(-1px);
  background:rgba(255,255,255,.08);
}

.profile-sidebtn.active{
  background:linear-gradient(135deg,#7c3aed,#a855f7);
  border-color:transparent;
  color:#fff;
  box-shadow:0 12px 26px rgba(124,58,237,.22);
}

.profile-sidebar__info{
  display:grid;
  gap:10px;
}

.sideinfo-item{
  padding:12px 14px;
  border-radius:16px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
}

.sideinfo-item span{
  display:block;
  color:var(--muted);
  font-size:12px;
  margin-bottom:6px;
}

.sideinfo-item strong{
  color:#fff;
  font-size:14px;
}

.profile-main{
  display:grid;
  gap:18px;
}

.profile-tabs{
  display:flex;
  gap:10px;
  padding:12px;
}

.profile-tab{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:#e7ebf5;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
  transition:transform .2s ease,background .2s ease,border-color .2s ease,color .2s ease;
}

.profile-tab.active{
  background:linear-gradient(135deg,#7c3aed,#a855f7);
  border-color:transparent;
  color:#fff;
  box-shadow:0 12px 26px rgba(124,58,237,.26);
}

.profile-panel {
    display: none;
    opacity: 0;
    transition: opacity .2s ease;
}

.profile-panel.active {
    display: block;
    opacity: 1;
}

.profile-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
}

.mini-card{
  display:block;
  overflow:hidden;
  border-radius:22px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
  transition:transform .22s ease,border-color .22s ease,background .22s ease;
}

.mini-card:hover{
  transform:translateY(-4px);
  border-color:rgba(124,58,237,.22);
  background:rgba(255,255,255,.06);
}

.mini-card__poster{
  aspect-ratio:2/3;
  overflow:hidden;
}

.mini-card__poster img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .35s ease;
}

.mini-card:hover .mini-card__poster img{
  transform:scale(1.06);
}

.mini-card__body{
  padding:14px;
}

.mini-card__body h3{
  margin:0 0 6px;
  color:#fff;
  font-size:15px;
  line-height:1.3;
}

.mini-card__body p{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}

.timeline{
  display:grid;
  gap:14px;
}

.timeline-item{
  display:grid;
  grid-template-columns:14px 1fr;
  gap:12px;
  align-items:start;
}

.timeline-item__dot{
  width:14px;
  height:14px;
  margin-top:16px;
  border-radius:50%;
  background:linear-gradient(135deg,#7c3aed,#a855f7);
  box-shadow:0 0 0 5px rgba(124,58,237,.12);
}

.timeline-item__body{
  padding:16px;
  border-radius:20px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
}

.timeline-item__top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-bottom:8px;
}

.timeline-item__top strong{
  color:#fff;
  font-size:14px;
}

.timeline-item__top span{
  color:var(--muted);
  font-size:12px;
}

.timeline-item__body p{
  margin:0;
  color:#dbe1eb;
  font-size:14px;
  line-height:1.75;
}

@media (max-width:1200px){
  .profile-shell{
    grid-template-columns:1fr;
  }

  .profile-sidebar{
    position:static;
  }

  .profile-banner__content{
    flex-direction:column;
    align-items:flex-start;
  }

  .profile-banner__stats{
    min-width:0;
    width:100%;
    grid-template-columns:repeat(3,1fr);
  }
}

@media (max-width:1100px){
  .profile-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

@media (max-width:720px){
  .profile-banner{
    padding:18px;
    border-radius:24px;
    min-height:auto;
  }

  .profile-banner__content{
    min-height:auto;
  }

  .profile-banner__identity{
    flex-direction:column;
    align-items:flex-start;
  }

  .profile-banner__avatar{
    width:92px;
    height:92px;
    border-radius:24px;
  }

  .profile-banner__name{
    font-size:30px;
  }

  .profile-banner__stats{
    grid-template-columns:1fr;
  }

  .profile-sidebar,
  .profile-panel{
    padding:18px;
    border-radius:24px;
  }

  .profile-tabs{
    padding:10px;
    overflow:auto;
    scrollbar-width:none;
  }

  .profile-tabs::-webkit-scrollbar{
    display:none;
  }

  .profile-grid{
    grid-template-columns:1fr;
  }

  .timeline-item__body{
    padding:14px;
  }
}

.activity-list{
  display:grid;
  gap:12px;
}

.activity-item{
  display:flex;
  gap:14px;
  align-items:flex-start;
  padding:14px;
  border-radius:20px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
}

.activity-item__icon{
  flex:0 0 42px;
  width:42px;
  height:42px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:rgba(124,58,237,.14);
  border:1px solid rgba(124,58,237,.18);
  color:#e9ddff;
}

.activity-item__body{
  min-width:0;
  flex:1;
}

.activity-item__body strong{
  display:block;
  color:#fff;
  font-size:14px;
  margin-bottom:6px;
}

.activity-item__body p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}

.subscription-grid{
  display:grid;
  gap:12px;
}

.subscription-card{
  display:grid;
  grid-template-columns:54px 1fr auto;
  gap:14px;
  align-items:center;
  padding:14px;
  border-radius:20px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
}

.subscription-card__avatar{
  width:54px;
  height:54px;
  border-radius:16px;
  overflow:hidden;
  flex:0 0 54px;
}

.subscription-card__avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.subscription-card__body strong{
  display:block;
  color:#fff;
  font-size:14px;
  margin-bottom:6px;
}

.subscription-card__body p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}

.subscription-card .btn.small{
  padding:10px 14px;
  border-radius:14px;
}

.profile-panel{
  display:none;
  padding:22px;
  border-radius:28px;
  background:linear-gradient(180deg,var(--panel),var(--panel2));
  border:1px solid rgba(255,255,255,.06);
  box-shadow:var(--shadow);
}

.profile-panel.active{
  display:block;
}

.profile-sidebtn.active,
.profile-tab.active {
    background: linear-gradient(135deg, #7c3aed, #a855f7);
    color: #fff;
    border-color: rgba(124,58,237,.6);
}

.profile-banner__actions{
  position:relative;
  z-index:1;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
}

.profile-follow-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:11px 18px;
  border-radius:999px;
  border:1px solid transparent;
  background:linear-gradient(135deg,#7c3aed,#a855f7);
  color:#fff;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 12px 26px rgba(124,58,237,.3);
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,border-color .18s ease,opacity .18s ease;
}

.profile-follow-btn i{
  font-size:14px;
}

.profile-follow-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 16px 32px rgba(124,58,237,.36);
}

/* Состояние «Вы подписаны» */
.profile-follow-btn.is-following{
  background:rgba(34,197,94,.14);
  border-color:rgba(34,197,94,.4);
  color:#bbf7d0;
  box-shadow:0 12px 24px rgba(22,163,74,.3);
}

.profile-follow-btn.is-following i{
  color:#4ade80;
}

.profile-follow-btn.is-following:hover{
  background:rgba(34,197,94,.24);
}

.profile-edit-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.profile-edit-modal.active {
    display: flex;
}

.profile-edit-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px);
}

.profile-edit-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    overflow: auto;
    padding: 24px 22px 22px;
    border-radius: 24px;
    background: linear-gradient(180deg, var(--panel), var(--panel2));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.profile-edit-modal__title {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 800;
    color: #fff;
}

.profile-edit-modal__body {
    max-height: 70vh;
    overflow-y: auto;
}

/* Кнопка закрытия */
.profile-edit-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.profile-edit-modal__close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    transform: translateY(-1px);
}

.profile-edit-form {
    padding: 18px 18px 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, var(--panel), var(--panel2));
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: var(--shadow);
}

.profile-edit-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 20px;
}

.profile-edit-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.profile-edit-section--full {
    grid-column: 1 / -1;
}

.profile-edit-section__title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--muted);
}

.profile-edit-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-edit-field label {
    font-size: 13px;
    font-weight: 700;
    color: #e5e7eb;
}

.profile-edit-field input[type="text"],
.profile-edit-field input[type="email"],
.profile-edit-field input[type="password"],
.profile-edit-field textarea {
    width: 100%;
    padding: 9px 11px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(15,17,23,.9);
    color: #f4f6fb;
    font-size: 14px;
    outline: none;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.profile-edit-field textarea {
    resize: vertical;
    min-height: 80px;
}

.profile-edit-field input:focus,
.profile-edit-field textarea:focus {
    border-color: rgba(124,58,237,.75);
    box-shadow: 0 0 0 1px rgba(124,58,237,.5);
    background: rgba(15,17,23,1);
}

.profile-edit-select select {
    width: 100%;
    padding: 8px 11px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(15,17,23,.9);
    color: #f4f6fb;
    font-size: 14px;
}

.profile-edit-checkbox,
.profile-edit-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    font-size: 13px;
    color: var(--muted);
}

.profile-edit-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
}

.profile-edit-check input[type="checkbox"] {
    width: 15px;
    height: 15px;
}

.profile-edit-xfields,
.profile-edit-social-list,
.profile-edit-soc {
    padding: 8px 10px;
    border-radius: 14px;
    border: 1px dashed rgba(255,255,255,.12);
    background: rgba(15,17,23,.7);
}

/* Низ формы */
.profile-edit-actions {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.profile-edit-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Адаптив */
@media (max-width: 900px) {
    .profile-edit-form__grid {
        grid-template-columns: 1fr;
    }
}


/* Секция */
.tv-section {
  margin-top: 28px;
  padding: 22px 22px 20px;
  border-radius: 24px;
  background: #020617; /* плоский тёмный фон */
  border: 1px solid rgba(148,163,184,0.25);
}

/* Заголовок */
.tv-section__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}

.tv-section__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f9fafb;
}

.tv-section__subtitle {
  margin: 0;
  font-size: 13px;
  color: #9ca3af;
}

/* Фильтры */
.tv-section__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  width: 100%;
  box-sizing: border-box;
}

/* Ровное распределение кнопок по ширине */
.tv-section__filters--full .tv-filter {
  flex: 1 1 auto;
  text-align: center;
}

/* Если хочешь горизонтальный скролл на мобильных */
@media (max-width: 640px) {
    .tv-section__filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .tv-section__filters::-webkit-scrollbar {
        height: 4px;
    }
    .tv-section__filters::-webkit-scrollbar-thumb {
        background: rgba(148,163,184,0.6);
        border-radius: 999px;
    }

    .tv-filter {
        flex: 0 0 auto;       /* фиксированная ширина кнопок, скроллим */
    }
}

/* Фильтр каналов */
.tv-filter {
  position: relative;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.35);
  background: #020617;
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background .16s ease,
    color .16s ease,
    transform .1s ease,
    border-color .16s ease;
}

.tv-filter:hover {
  background: #111827;
  color: #f9fafb;
  border-color: rgba(148,163,184,0.8);
  transform: translateY(-1px);
}

.tv-filter.active {
  background: #111827;
  color: #fff;
  border-color: rgba(124,58,237,.8);
}

/* Сетка каналов */
.tv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

/* Карточка канала */
.tv-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 20px;
  background: #020617;
  border: 1px solid rgba(30,64,175,0.35);
  overflow: hidden;
  transition:
    transform .14s ease,
    border-color .14s ease,
    background .14s ease;
}

/* glow‑оверлей больше не нужен */
.tv-card__overlay {
  display: none;
}

.tv-card:hover {
  transform: translateY(-3px);
  border-color: rgba(96,165,250,0.8);
  background: #020819;
}

/* Логотип */
.tv-card__logo {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15,23,42,0.9);
}

.tv-card__logo img {
  object-fit: cover;
  border-radius: 10px;
}

/* Текстовая часть */
.tv-card__body {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tv-card__topline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tv-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #f9fafb;
}

.tv-card__meta {
  margin: 0;
  font-size: 12px;
  color: #9ca3af;
}

.tv-card__meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

/* Жанр + качество */
.tv-card__tag {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #020617;
  color: #c4b5fd;
  border: 1px solid rgba(129,140,248,0.55);
}

.tv-card__quality {
  padding: 2px 7px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(22,163,74,0.15);
  color: #86efac;
  border: 1px solid rgba(74,222,128,0.7);
}

/* Кнопка "Смотреть" — простой тёмный чип */
.tv-card__play {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px 7px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.45);
  background: #020617;
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background .16s ease,
    color .16s ease,
    border-color .16s ease,
    transform .1s ease;
}

.tv-card__play-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f97316;   /* без градиента */
  color: #020617;
  font-size: 11px;
}

.tv-card__play-label {
  padding-right: 2px;
}

.tv-card__play:hover {
  background: #111827;
  color: #f9fafb;
  border-color: rgba(124,58,237,0.8);
  transform: translateY(-1px);
}

.tv-card__play:hover .tv-card__play-icon {
  background: #fbbf24;
}

/* Адаптив */
@media (max-width: 768px) {
    .tv-section {
        padding: 18px 16px 16px;
        border-radius: 22px;
    }

    .tv-grid {
        grid-template-columns: 1fr;
    }

    .tv-card {
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
    }

    .tv-card__play {
        grid-column: 1 / -1;
        justify-self: flex-start;
        margin-top: 6px;
    }
}

@media (max-width: 480px) {
    .tv-section__title {
        font-size: 18px;
    }

    .tv-card {
        padding: 10px 11px;
        border-radius: 18px;
    }

    .tv-card__logo {
        width: 50px;
        height: 50px;
        border-radius: 16px;
    }
}


/* Общий layout */
.channel-page {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Шапка канала */
.channel-hero {
    position: relative;
    padding: 18px 18px 16px;
    border-radius: 24px;
    background:
        radial-gradient(circle at 0 0, rgba(124,58,237,0.18), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(56,189,248,0.16), transparent 65%),
        rgba(15,23,42,0.96);
    border: 1px solid rgba(148,163,184,0.4);
    box-shadow: 0 18px 45px rgba(15,23,42,0.95);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    overflow: hidden;
}

.channel-hero__overlay {
    position: absolute;
    inset: -40%;
    pointer-events: none;
    background:
        radial-gradient(circle at 10% 0%, rgba(59,130,246,0.22), transparent 55%),
        radial-gradient(circle at 90% 100%, rgba(168,85,247,0.20), transparent 55%);
    opacity: 0.6;
}

.channel-hero__main,
.channel-hero__actions {
    position: relative;
    z-index: 1;
}

.channel-hero__main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.channel-hero__logo {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 10px 24px rgba(15,23,42,0.95),
        inset 0 0 0 1px rgba(15,23,42,0.9);
}

.channel-hero__logo img {
    object-fit: cover;
    border-radius: 10px;
}

.channel-hero__info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.channel-hero__kicker {
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #a5b4fc;
}

.channel-hero__title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: #f9fafb;
}

.channel-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.channel-hero__desc {
    margin: 4px 0 0;
    font-size: 13px;
    color: #e5e7eb;
}

/* Бейджи */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e5e7eb;
    background: rgba(15,23,42,0.9);
    border: 1px solid rgba(148,163,184,0.6);
}

.badge--live {
    background: rgba(248,113,113,0.12);
    border-color: rgba(248,113,113,0.7);
    color: #fecaca;
}

.badge--quality {
    background: rgba(22,163,74,0.18);
    border-color: rgba(74,222,128,0.8);
    color: #bbf7d0;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 0;
    font-size: 13px;
    cursor: pointer;
    transition: background .18s ease, box-shadow .18s ease, transform .12s ease, color .16s ease;
}

.btn.primary {
    background: #151521;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn.primary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transform: translateY(-1px);
}

.btn.ghost {
  background: #fff;
  color: #6B7280;
  border: none;
}

.btn.ghost:hover {
  background: #F3F4F6;
  color: #111827;
}

/* Основной двухколоночный layout */
.channel-layout {
    display: grid;
    grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.2fr);
    gap: 16px;
}

/* Плеер */
.channel-player {
    padding: 12px 12px 10px;
    border-radius: 20px;
    background: rgba(15,23,42,0.98);
    border: 1px solid rgba(30,64,175,0.6);
    box-shadow: 0 16px 40px rgba(15,23,42,0.95);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.channel-player__frame {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #020617;
    aspect-ratio: 16/9;
}

.channel-player__frame iframe {
    width: 100%;
    height: 100%;
}

.channel-player__stub {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 13px;
}

.channel-player__stub i {
    font-size: 42px;
    color: #4ade80;
}

/* Блок "сейчас в эфире" */
.channel-now {
    padding: 8px 10px;
    border-radius: 14px;
    background: rgba(15,23,42,0.96);
    border: 1px solid rgba(148,163,184,0.45);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.channel-now__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
}

.channel-now__info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.channel-now__titles {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.channel-now__title {
    font-size: 14px;
    color: #f9fafb;
}

.channel-now__subtitle {
    font-size: 12px;
    color: #9ca3af;
}

.channel-now__time {
    font-size: 12px;
    color: #e5e7eb;
}

/* Прогресс */
.channel-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.channel-progress__bar {
    flex: 1 1 auto;
    height: 4px;
    border-radius: 999px;
    background: rgba(30,64,175,0.45);
    overflow: hidden;
}

.channel-progress__fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #22c55e, #eab308);
}

.channel-progress__percent {
    font-size: 11px;
    color: #e5e7eb;
}

/* Блок "О канале" */
.channel-about {
    margin-top: 14px;
    padding: 14px 14px 12px;
    border-radius: 20px;
    background: rgba(15,23,42,0.98);
    border: 1px solid rgba(31,41,55,0.9);
    box-shadow: 0 10px 26px rgba(15,23,42,0.9);
}

.channel-section-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #e5e7eb;
}

.channel-about p {
    margin: 0 0 10px;
    font-size: 13px;
    color: #d1d5db;
}

.channel-meta-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px 16px;
    margin: 0;
}

.channel-meta-list dt {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #9ca3af;
}

.channel-meta-list dd {
    margin: 2px 0 0;
    font-size: 13px;
    color: #e5e7eb;
}

/* Программа передач */
.channel-schedule {
    padding: 14px 14px 12px;
    border-radius: 20px;
    background: rgba(15,23,42,0.98);
    border: 1px solid rgba(31,41,55,0.9);
    box-shadow: 0 10px 26px rgba(15,23,42,0.9);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.channel-schedule__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.channel-schedule__tabs {
    display: inline-flex;
    padding: 2px;
    border-radius: 999px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(31,41,55,0.9);
}

.schedule-tab {
    border: 0;
    background: transparent;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
}

.schedule-tab.active {
    background: rgba(37,99,235,0.95);
    color: #f9fafb;
}

.channel-schedule__list {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Скролл */
.channel-schedule__list::-webkit-scrollbar {
    width: 4px;
}
.channel-schedule__list::-webkit-scrollbar-thumb {
    background: rgba(148,163,184,0.9);
    border-radius: 999px;
}

/* Элемент программы */
.schedule-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 8px;
    padding: 6px 6px;
    border-radius: 12px;
    transition: background .14s ease;
}

.schedule-item:hover {
    background: rgba(31,41,55,0.9);
}

.schedule-item--current {
    background: rgba(30,64,175,0.35);
}

.schedule-item__time {
    font-size: 13px;
    color: #e5e7eb;
}

.schedule-item__body {
    overflow: hidden;
}

.schedule-item__title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.schedule-item__body strong {
    font-size: 13px;
    color: #f9fafb;
}

.schedule-item__meta {
    margin: 1px 0 0;
    font-size: 12px;
    color: #9ca3af;
}

.schedule-item__label {
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: rgba(56,189,248,0.18);
    color: #bae6fd;
}

/* Адаптив */
@media (max-width: 1024px) {
    .channel-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .channel-hero {
        flex-direction: column;
        align-items: flex-start;
    }
    .channel-hero__actions {
        justify-content: flex-start;
    }
}


/* Обёртка со списком актёров */
.cast-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 10px 14px;                 /* вертикальный и горизонтальный зазор */
    margin-top: 8px;
}

/* Сама карточка (ссылка) */
.actor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

/* Аватар */
.actor-card__avatar {
    /* tailwind-классы делают размеры/скругления, тут только на всякий случай */
    background-color: #020617;
}

/* Имя актёра */
.actor-card__name {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
    color: #e5e7eb;
}

/* Ховер по имени и кольцу вокруг аватара реализуется твоими group-классами,
   можно чуть усилить плавность */
.cast-list .actor-card img {
    transition: transform .25s ease;
}

.cast-list .actor-card:hover img {
    transform: scale(1.03);
}