/* ============================================================
   CinemaHub — Основные стили (тёмная тема, Netflix/YouTube стиль)
   CSS Grid + Flexbox, полностью адаптивная вёрстка
   ============================================================ */

:root {
  --bg: #0f0f14;
  --bg-elevated: #1a1a24;
  --bg-card: #1e1e2a;
  --text: #f1f1f5;
  --text-muted: #9a9ab0;
  --accent: #e50914;       /* фирменный красный Netflix-стиль */
  --accent-hover: #ff2b3a;
  --border: #2a2a3a;
  --radius: 12px;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  --transition: 0.25s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===================== ШАПКА ===================== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 2rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header__logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.header__logo span { color: var(--accent); }

.header__search {
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 520px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  transition: var(--transition);
}
.header__search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

.header__search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
}

.header__search-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0 1.2rem;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}
.header__search-btn:hover { color: var(--text); }

.header__back {
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
}
.header__back:hover { color: var(--text); }

/* ===================== HERO БАННЕР ===================== */
.hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: flex-end;
  padding: 3rem 2rem;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-elevated);
  margin-bottom: 1rem;
}

.hero__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(15, 15, 20, 0.95) 0%,
    rgba(15, 15, 20, 0.6) 45%,
    rgba(15, 15, 20, 0.1) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero__title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}

.hero__description {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ===================== КНОПКИ ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.8rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-2px); }

.btn--ghost {
  background: rgba(255,255,255,0.12);
  color: var(--text);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255,255,255,0.22); }

/* ===================== ОСНОВНОЙ КОНТЕНТ ===================== */
.main {
  padding: 1rem 2rem 3rem;
}

.content { display: flex; flex-direction: column; gap: 2rem; }

/* Секция-категория */
.category { margin-bottom: 0.5rem; }

/* Выделенная секция "Доступно для просмотра" */
.category--featured {
  margin-bottom: 2rem;
}
.category--featured .category__title {
  color: var(--accent);
}

.category__title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-left: 0.25rem;
}

/* Горизонтальная лента карточек */
.category__row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 180px;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x mandatory;
}
.category__row::-webkit-scrollbar { height: 6px; }
.category__row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* Сетка карточек (для результатов поиска) */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.2rem;
}

/* ===================== КАРТОЧКА ФИЛЬМА ===================== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  scroll-snap-align: start;
  position: relative;
}
.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow);
  z-index: 5;
}

.card__poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--bg-elevated);
}

.card__poster--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-muted);
}

.card__body { padding: 0.7rem 0.8rem; }

.card__title {
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card__meta {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 0.2rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.card__rating {
  color: #ffc107;
  font-weight: 700;
}

/* Краткое описание фильма на карточке (обрезается до 3 строк) */
.card__description {
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.35;
  margin: 0.45rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Значок возрастной маркировки (436-ФЗ) поверх постера */
.card__age {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.28rem 0.45rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  z-index: 2;
}

/* ===================== СТРАНИЦА ПРОСМОТРА ===================== */
.watch {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  padding: 1rem 2rem 3rem;
  max-width: 1500px;
  margin: 0 auto;
}

.watch__player-wrap { min-width: 0; }

.player {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  position: relative;
}

.player iframe,
.player video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: #000;
}

.player__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  font-size: 1.2rem;
}

/* Заглушка плеера, когда источник видео ещё не подключён */
.player__stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 0.75rem;
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, #1a1a24, #0f0f14);
}
.player__stub-icon {
  font-size: 3rem;
  opacity: 0.6;
}
.player__stub-text {
  font-size: 1.25rem;
  font-weight: 700;
}
.player__stub-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 420px;
}

/* Рекламный контейнер (оверлей поверх видео) */
.ad-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 20;
}
.ad-overlay__label {
  color: #ffc107;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ad-overlay__video { width: 100%; height: 100%; }
.ad-overlay__skip {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.4);
  padding: 0.4rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}

.watch__info {
  margin-top: 1.2rem;
  padding: 0 0.25rem;
}

.watch__title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.watch__meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.watch__description {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 800px;
}

/* Сайдбар рекомендаций */
.watch__sidebar {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 1.2rem;
  align-self: start;
  position: sticky;
  top: 4.5rem;
  max-height: 85vh;
  overflow-y: auto;
}

.watch__sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.recommendations { display: flex; flex-direction: column; gap: 0.9rem; }

.rec-item {
  display: flex;
  gap: 0.8rem;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 8px;
  transition: var(--transition);
}
.rec-item:hover { background: var(--bg-card); }

.rec-item__poster {
  width: 100px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  background: var(--bg-card);
}

.rec-item__info { min-width: 0; }
.rec-item__title {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
}
.rec-item__meta {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin-top: 0.3rem;
}

/* ===================== ПОДВАЛ ===================== */
.footer {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* ===================== ЗАГРУЗКА / СОСТОЯНИЯ ===================== */
.loading {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
  font-size: 1rem;
}

.error-state {
  text-align: center;
  color: var(--text-muted);
  padding: 2rem;
}
.error-state strong { color: var(--accent); }

/* ===================== АДАПТИВ ===================== */
@media (max-width: 900px) {
  .watch {
    grid-template-columns: 1fr;
  }
  .watch__sidebar {
    position: static;
    max-height: none;
  }
}

@media (max-width: 640px) {
  .header { padding: 0.8rem; flex-wrap: wrap; }
  .header__search { order: 3; max-width: 100%; flex-basis: 100%; }
  .hero { min-height: 52vh; padding: 1.5rem 1rem; }
  .main, .watch { padding: 0.8rem 1rem 2rem; }
  .category__row { grid-auto-columns: 140px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .rec-item__poster { width: 72px; }
}
/* ===================== РАЗДЕЛ СЕРИАЛОВ ===================== */
.header__nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.header__nav-link {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.35rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}
.header__nav-link:hover { color: var(--text); }
.header__nav-link.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.catalog {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem 2rem 3rem;
}
.catalog__title { font-size: 2rem; margin-bottom: 0.5rem; }
.catalog__lead {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  max-width: 760px;
}
.catalog__source {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-top: 2rem;
}
.catalog__source a { color: var(--text-muted); text-decoration: underline; }

.series-group { margin-bottom: 2.5rem; }
.series-group__title { font-size: 1.3rem; margin-bottom: 1rem; }
.series-grid__items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.2rem;
}

.series-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.series-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.series-card__poster-wrap { position: relative; }
.series-card__poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--bg-elevated);
}
.series-card__poster--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-muted);
  aspect-ratio: 2 / 3;
}
.series-card__badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}
.series-card__badge--soft { background: rgba(0, 0, 0, 0.75); }
.series-card__body {
  padding: 0.8rem 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.series-card__title { font-weight: 700; font-size: 1rem; }
.series-card__meta {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.8rem;
  align-items: center;
}
.series-card__desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tv-rating { color: #ffc107; font-weight: 700; }

.tv-page, .episode-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
}

.tv-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0.5rem 0 2rem;
  background: var(--bg-elevated);
}
.tv-hero__backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.28;
  filter: blur(2px);
}
.tv-hero__content {
  position: relative;
  display: flex;
  gap: 1.5rem;
  padding: 2rem;
  align-items: flex-start;
}
.tv-hero__poster {
  width: 200px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--bg-elevated);
  border-radius: 10px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}
.tv-hero__title { font-size: 2rem; line-height: 1.15; margin-bottom: 0.3rem; }
.tv-hero__original { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.6rem; }
.tv-hero__meta {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
  align-items: center;
}
.tv-status {
  border: 1px solid var(--border);
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.78rem;
}
.tv-hero__desc {
  max-width: 760px;
  line-height: 1.55;
  opacity: 0.92;
}
.tv-hero__genres { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.seasons__title { font-size: 1.3rem; margin-bottom: 0.9rem; }
.seasons__tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.season-tab {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  transition: var(--transition);
}
.season-tab:hover { color: var(--text); }
.season-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.season-tab__count { opacity: 0.7; margin-left: 0.35rem; font-size: 0.78rem; }

.episodes { display: flex; flex-direction: column; gap: 0.5rem; }
.episode-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: var(--bg-card);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  transition: var(--transition);
}
.episode-row:hover { background: var(--bg-elevated); transform: translateX(3px); }
.episode-row__num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.episode-row__body { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.episode-row__name { font-weight: 600; }
.episode-row__desc {
  color: var(--text-muted);
  font-size: 0.82rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.episode-row__date { margin-left: auto; color: var(--text-muted); font-size: 0.8rem; white-space: nowrap; }

.breadcrumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 1rem 0;
}
.breadcrumbs a:hover { color: var(--text); }

.episode-player {
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 1.5rem;
}
.episode-player__frame { width: 100%; height: 100%; border: 0; display: block; }
.episode-player__placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--bg-elevated);
  color: var(--text-muted);
  text-align: center;
}
.episode-player__icon { font-size: 2.2rem; }
.episode-player__title { color: var(--text); font-weight: 600; font-size: 1.1rem; }
.episode-player__note { font-size: 0.85rem; }

.episode-info__title { font-size: 1.6rem; margin-bottom: 0.5rem; }
.episode-info__meta {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
  align-items: center;
}
.episode-info__desc { max-width: 820px; line-height: 1.6; opacity: 0.92; }

.episode-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.episode-nav__link { color: var(--text-muted); font-size: 0.9rem; max-width: 45%; }
.episode-nav__link:hover { color: var(--text); }
.episode-nav__link--next { text-align: right; margin-left: auto; }

.error-box {
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.4);
  padding: 1rem;
  border-radius: 10px;
  max-width: 760px;
  margin-bottom: 1rem;
}
.link-back { color: var(--text-muted); }

@media (max-width: 720px) {
  .catalog { padding: 1rem; }
  .tv-page, .episode-page { padding: 0 1rem 2rem; }
  .tv-hero__content { flex-direction: column; padding: 1.2rem; }
  .tv-hero__poster { width: 140px; }
  .tv-hero__title { font-size: 1.5rem; }
  .episode-row__date { display: none; }
  .series-grid__items { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* ===================== ТРЕЙЛЕР И ДЕЙСТВИЯ ===================== */
.tv-hero__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: var(--transition);
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.18); }

.episode-player__caption {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: -1rem 0 1.5rem;
}

.trailer-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1.5rem;
}
.trailer-modal.hidden { display: none; }
.trailer-modal__box {
  position: relative;
  width: min(960px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.trailer-modal__frame { width: 100%; height: 100%; border: 0; display: block; }
.trailer-modal__close {
  position: absolute;
  top: -2.6rem;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.link-btn {
  background: transparent;
  border: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.link-btn:hover { color: var(--accent-hover); }

/* ===================== ПОДВАЛ: ССЫЛКИ НА КАТАЛОГ ===================== */
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  max-width: 1100px;
  margin: 0 auto 1rem;
  font-size: 0.85rem;
}
.footer__links a { color: var(--text-muted); transition: var(--transition); }
.footer__links a:hover { color: var(--text); }

/* Только для скринридеров и поисковиков */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===================== СТРАНИЦА «О ПРОЕКТЕ» ===================== */
.about { max-width: 820px; }
.about__section { margin-top: 2rem; }
.about__section h2 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.about__section p { color: var(--text-muted); line-height: 1.65; margin-bottom: 0.8rem; }
.about__section ul { margin: 0 0 0.8rem 1.1rem; color: var(--text-muted); line-height: 1.65; }
.about__section li { margin-bottom: 0.35rem; }
.about__section a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

/* Резерв высоты под контент, который рендерит JS.
   Иначе футер попадает в первый экран и «уезжает» при вставке карточек — это CLS. */
.main, .catalog, .tv-page, .watch, .episode-page { min-height: 100vh; }
.content, .series-grid { min-height: 60vh; }

/* ===================== ВВОДНЫЙ БАННЕР ГЛАВНОЙ ===================== */
.hero--intro {
  min-height: 40vh;
  background:
    radial-gradient(900px 420px at 16% 20%, rgba(229, 9, 20, 0.22), transparent 62%),
    radial-gradient(800px 420px at 88% 0%, rgba(90, 90, 180, 0.16), transparent 60%),
    var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.hero--intro .hero__content { max-width: 880px; }
.hero--intro .hero__description { max-width: 620px; }

@media (max-width: 640px) {
  .hero--intro {
    min-height: auto;
    padding: 1.8rem 1rem 2.2rem;
  }
  .hero--intro .hero__title { font-size: 1.7rem; }
}
