/* =========================
   BorderKnight — BLOOD RED (ONE FILE) — CLEAN
   Чёрная тёмная тема + кроваво-красная палитра
   + Ховер-эффект для блока сезоны/серии (ПК)
   (без дублей и без “старых” оверрайдов)
========================= */

/* ===== Vars ===== */
:root{
  /* DARK (default) */
  --bg0:#000000;
  --bg1:#05060a;
  --card:#07080d;
  --card2:#0b0d14;

  --text:#f3f3f6;
  --muted:rgba(243,243,246,.70);
  --line:rgba(255,255,255,.10);
  --shadow:0 18px 55px rgba(0,0,0,.70);

  /* BLOOD palette */
  --accent:#ff1f3d;     /* яркая кровь */
  --accent2:#b4001b;    /* глубокий кармин */
  --accentRgb:255,31,61;
  --accent2Rgb:180,0,27;

  --radius:18px;
  --radius2:26px;
  --wrap:1160px;

  --hFont:'Cinzel', serif;
  --bFont:'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* episode page */
  --epR:20px;
  --epR2:16px;

  /* episodes */
  --epCardR:22px;
}

html[data-theme="light"]{
  /* LIGHT */
  --bg0:#f4f4f7;
  --bg1:#ffffff;
  --card:#ffffff;
  --card2:#f1f2f6;

  --text:#15141a;
  --muted:rgba(21,20,26,.72);
  --line:rgba(21,20,26,.12);
  --shadow:0 18px 45px rgba(0,0,0,.12);

  --accent:#d10a24;
  --accent2:#7a0010;
  --accentRgb:209,10,36;
  --accent2Rgb:122,0,16;
}

/* ===== Base ===== */
*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--bFont);
  color:var(--text);
  background:linear-gradient(180deg,var(--bg0),var(--bg1));
  min-height:100vh;
    background-attachment:fixed;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.wrap{ width:min(var(--wrap), calc(100% - 32px)); margin:0 auto; }
.main{ padding:22px 0 44px; }

/* ===== Background ===== */
.bg{ position:fixed; inset:0; pointer-events:none; z-index:-1; }
.bg__texture{
  position:absolute; inset:0; opacity:.45;
  background-image:url('../images/pattern.svg');
  background-size:520px 520px;
  background-repeat:repeat;
  mix-blend-mode:overlay;
}
.bg__glow{
  position:absolute; inset:-30%;
  background:
    radial-gradient(closest-side, rgba(var(--accentRgb), .30), transparent 60%),
    radial-gradient(closest-side, rgba(var(--accent2Rgb), .18), transparent 62%);
  filter:blur(26px);
  transform:translate3d(0,0,0);
}

/* ===== Topbar ===== */
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter:saturate(160%) blur(14px);
  border-bottom:1px solid var(--line);
}
html:not([data-theme="light"]) .topbar{
  background:linear-gradient(180deg, rgba(0,0,0,.78), rgba(0,0,0,.42));
  border-bottom:1px solid rgba(var(--accentRgb), .14);
  box-shadow:0 10px 28px rgba(0,0,0,.45);
}
html[data-theme="light"] .topbar{
  background:linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.52));
  box-shadow:0 10px 26px rgba(0,0,0,.08);
}

.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:10px 0;
}

.brand{ display:flex; align-items:center; gap:12px; }
.brand__logo{
  width:35px; height:35px;
  filter:drop-shadow(0 10px 22px rgba(var(--accentRgb), .18));
}
.brand__text{
  font-family:var(--hFont);
  letter-spacing:.6px;
  font-weight:700;
}

.nav{ display:flex; gap:18px; align-items:center; }
.nav__link{
  opacity:.88; font-weight:800; font-size:14px;
  padding:10px 8px; border-radius:12px; transition:.2s;
}
.nav__link:hover{ opacity:1; background:rgba(var(--accentRgb), .10); }
html[data-theme="light"] .nav__link:hover{ background:rgba(0,0,0,.06); }

.topbar__actions{ display:flex; align-items:center; gap:10px; }

/* ===== Buttons ===== */
.btn{
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
  color:var(--text);
  padding:10px 14px;
  border-radius:14px;
  font-weight:800;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:10px;
  transition:transform .15s, box-shadow .15s, background .15s, filter .15s, border-color .15s;
}
.btn:hover{ transform:translateY(-1px); box-shadow:0 16px 34px rgba(0,0,0,.30); }
html[data-theme="light"] .btn{
  background:linear-gradient(180deg, rgba(0,0,0,.03), rgba(0,0,0,0));
    color: black;
}

.btn--primary{
  border-color:rgba(var(--accentRgb), .45);
  background:linear-gradient(135deg, rgba(var(--accentRgb), .22), rgba(var(--accent2Rgb), .14));
}
.btn--primary:hover{ box-shadow:0 18px 44px rgba(var(--accent2Rgb), .22); }

.btn--ghost{ background:transparent; }

/* seasonal button */
.btn.btn--season{
  border:1px solid rgba(var(--accentRgb), .40);
  background:rgba(var(--accent2Rgb), .14);
  color:#fff;
  box-shadow:0 12px 30px rgba(var(--accent2Rgb), .18);
}
.btn.btn--season:hover{
  background:rgba(var(--accent2Rgb), .20);
  border-color:rgba(var(--accentRgb), .60);
  transform:translateY(-1px);
}

.burger{
  width:44px; height:44px; border-radius:14px;
  border:1px solid var(--line);
  background:transparent;
  cursor:pointer;
  display:none;
  align-items:center; justify-content:center;
  gap:5px; flex-direction:column;
}
.burger span{
  display:block; width:18px; height:2px;
  background:var(--text); opacity:.85; border-radius:999px;
}

/* ===== Hero ===== */
.hero{
  position:relative;
  border-radius:var(--radius2);
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:var(--shadow);
  background:rgba(255,255,255,.03);
  margin-top:8px;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.90), rgba(0,0,0,.30)),
    var(--hero-bg);
  background-size:cover;
  background-position:center;
  filter:saturate(1.05) contrast(1.03);
}
html[data-theme="light"] .hero::before{
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.94), rgba(255,255,255,.48)),
    var(--hero-bg);
}

.hero__inner{
  position:relative;
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:22px;
  padding:36px 30px;
}
.hero--screen{ min-height:clamp(520px, 78vh, 820px); }
.hero--screen .hero__inner{ padding:44px 30px; }

.hero__scroll{
  position:absolute; left:50%; bottom:18px;
  transform:translateX(-50%);
  width:34px; height:48px;
  border-radius:999px;
  border:1px solid rgba(var(--accentRgb), .28);
  background:rgba(var(--accent2Rgb), .14);
  display:flex; align-items:flex-start; justify-content:center;
  padding-top:10px;
  box-shadow:0 12px 34px rgba(0,0,0,.42);
}
html[data-theme="light"] .hero__scroll{
  border-color:rgba(var(--accent2Rgb), .18);
  background:rgba(255,255,255,.40);
}
.hero__scrollDot{
  width:8px; height:8px; border-radius:999px;
  background:rgba(var(--accentRgb), .92);
  animation:scrollDot 1.6s infinite;
}
html[data-theme="light"] .hero__scrollDot{ background:rgba(var(--accent2Rgb), .68); }

@keyframes scrollDot{
  0%{ transform:translateY(0); opacity:.95; }
  70%{ transform:translateY(18px); opacity:.25; }
  100%{ transform:translateY(0); opacity:.95; }
}

.kicker{
  display:inline-flex; align-items:center; gap:10px;
  color:var(--muted); font-weight:800; font-size:13px;
  letter-spacing:.2px;
}
.hero__title{
  font-family:var(--hFont);
  font-size:42px;
  line-height:1.06;
  margin:10px 0 10px;
  letter-spacing:.4px;
}
.hero__text{ color:var(--muted); font-size:16px; line-height:1.55; max-width:62ch; }

.meta{ display:flex; flex-wrap:wrap; gap:10px; margin:12px 0 16px; }
.meta__item{
  padding:8px 10px; border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  font-weight:800; font-size:13px;
}
html[data-theme="light"] .meta__item{ background:rgba(0,0,0,.03); }

.ratings{ display:flex; flex-wrap:wrap; gap:10px; margin:10px 0 18px; }
.rate{
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
}
html[data-theme="light"] .rate{ background:rgba(0,0,0,.03); }
.rate__label{ font-size:12px; color:var(--muted); font-weight:900; letter-spacing:.2px; }
.rate__value{ font-size:18px; font-weight:900; }

.hero__cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:18px;
}

/* Hero buttons */
.hero .btn--primary{
  color:#fff;
  background:linear-gradient(135deg, rgba(var(--accentRgb), .98), rgba(var(--accent2Rgb), .92));
  border:1px solid rgba(var(--accentRgb), .70);
  box-shadow:0 16px 40px rgba(var(--accent2Rgb), .26);
}
.hero .btn--primary:hover{ filter:brightness(1.04); transform:translateY(-1px); }

.hero .btn--season{
  color:#fff;
  background:linear-gradient(135deg, rgba(var(--accent2Rgb), .92), rgba(0,0,0,.55));
  border:1px solid rgba(var(--accentRgb), .55);
  box-shadow:0 16px 40px rgba(var(--accent2Rgb), .22);
}
.hero .btn--season:hover{ filter:brightness(1.05); transform:translateY(-1px); }

.hero .btn--ghost{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(var(--accentRgb), .22);
  color:#fff;
}
.hero .btn--ghost:hover{
  background:rgba(var(--accent2Rgb), .16);
  border-color:rgba(var(--accentRgb), .32);
}

.poster{
  align-self:end; justify-self:end;
  width:min(360px, 100%);
  border-radius:22px;
  overflow:hidden;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  box-shadow:0 24px 64px rgba(0,0,0,.62);
}
.poster img{ width:100%; height:auto; }

/* ===== Sections ===== */
.section{ margin-top:22px; }
.section__head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:12px; margin:0 0 12px;
}
.section__title{
  font-family:var(--hFont);
  font-size:22px;
  margin:0;
  letter-spacing:.3px;
}
.section__hint{ color:var(--muted); font-weight:800; font-size:13px; }

/* ===== Generic grids/cards ===== */
.grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:14px; }
.grid--2{ grid-template-columns:1.15fr .85fr; }
@media (max-width:980px){
  .grid{ grid-template-columns:repeat(2, 1fr); }
  .grid--2{ grid-template-columns:1fr; }
}
@media (max-width:760px){
  .grid{ grid-template-columns:1fr; }
}

.card{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  border-radius:20px;
  box-shadow:0 18px 42px rgba(0,0,0,.22);
  padding:18px;
}
html[data-theme="light"] .card{ background:rgba(0,0,0,.015); }
.card.muted{ color:var(--muted); }
.small{ font-size:13px; color:var(--muted); font-weight:800; margin-top:6px; }
.spacer{ height:18px; }

.info{ padding:18px; }
.info__row{
  display:flex; gap:12px; justify-content:space-between; align-items:flex-start;
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,.06);
}
html[data-theme="light"] .info__row{ border-bottom:1px solid rgba(0,0,0,.06); }
.info__row:last-child{ border-bottom:0; }
.info__k{ color:var(--muted); font-weight:900; font-size:13px; min-width:140px; }
.info__v{ font-weight:900; text-align:right; }
.divider{ height:1px; background:rgba(255,255,255,.08); margin:12px 0; }
html[data-theme="light"] .divider{ background:rgba(0,0,0,.08); }

.pill{
  display:inline-flex; align-items:center;
  padding:8px 10px; border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.06);
  font-weight:900; font-size:13px;
}
html[data-theme="light"] .pill{ background:rgba(0,0,0,.03); }

.cardbox{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  border-radius:var(--radius2);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.cardbox__inner{ padding:22px; }

.prose{ color:var(--muted); line-height:1.7; }
.prose h2{ color:var(--text); font-family:var(--hFont); letter-spacing:.3px; margin:20px 0 10px; }
.prose p{ margin:0 0 12px; }

.trailer{
  border-radius:20px; overflow:hidden;
  border:1px solid var(--line);
  background:rgba(0,0,0,.2);
}
.trailer iframe{ width:100%; aspect-ratio:16/9; border:0; display:block; }

/* ===== Characters ===== */
.chars{ display:grid; grid-template-columns:repeat(6, minmax(180px, 220px)); gap:14px; align-items:stretch; }
@media (max-width:900px){ .chars{ grid-template-columns:repeat(2, minmax(160px, 1fr)); } }
@media (max-width:520px){ .chars{ grid-template-columns:1fr; } }

.char{
  display:flex; flex-direction:column; gap:10px;
  padding:12px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  box-shadow:0 10px 26px rgba(0,0,0,.30);
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
  overflow:hidden;
}
.char:hover{ transform:translateY(-2px); background:rgba(255,255,255,.06); border-color:rgba(var(--accentRgb), .22); }

.char__img{
  width:100%;
  aspect-ratio:2/3;
  border-radius:14px;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  position:relative;
}
.char__img:after{
  content:"";
  position:absolute; inset:auto 0 0 0;
  height:45%;
  background:linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
  pointer-events:none;
}
.char__name{ font-weight:900; font-size:16px; line-height:1.15; margin-top:2px; }
.char__role{ font-size:13px; line-height:1.35; opacity:.75; }
.char__name, .char__role{ display:-webkit-box; -webkit-box-orient:vertical; overflow:hidden; }
.char__name{ -webkit-line-clamp:2; }
.char__role{ -webkit-line-clamp:2; }

/* swipe on mobile */
@media (max-width:700px){
  .chars{
    grid-auto-flow:column;
    grid-auto-columns:minmax(240px, 78vw);
    grid-template-columns:unset;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;
    gap:12px;
    padding:4px 12px 10px;
    margin:0 -12px;
    scrollbar-width:none;
  }
  .chars::-webkit-scrollbar{ height:0; }
  .chars > .char{ scroll-snap-align:start; }
  .cards{ overflow:hidden; }
}

/* ===== Seasons tabs ===== */
.tabs{ display:block; }
.tabs__bar{ display:flex; flex-wrap:wrap; gap:10px; margin:0 0 12px; }
.tab{
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
  padding:10px 12px;
  border-radius:999px;
  font-weight:900;
  cursor:pointer;
  transition:.15s;
}
.tab[aria-selected="true"]{
  border-color:rgba(var(--accentRgb), .55);
  background:rgba(var(--accentRgb), .16);
}
html[data-theme="light"] .tab{ background:rgba(0,0,0,.03); }
.pane{ display:none; }
.pane.is-active{ display:block; }

/* =========================================================
   EPISODES GRID — FIX (главная + вкладки)
========================================================= */

/* base */
.pane.is-active .grid,
.eps{
  display:grid;
  gap:14px;
  grid-template-columns:repeat(2, minmax(0,1fr));
}

/* desktop: много карточек в ряд */
@media (min-width: 901px){
  .pane.is-active .grid,
  .eps{
    grid-template-columns:repeat(6, minmax(0,1fr));
    gap:12px;
  }
  .pane.is-active article.ep,
  .ep{ border-radius:18px; }

  .pane.is-active .ep__media img,
  .ep__media img{ height:130px; }

  .pane.is-active .ep__body--desktop,
  .ep__body--desktop{
    padding:10px 12px 12px;
    gap:8px;
  }

  .pane.is-active .ep__number,
  .ep__number{ font-size:20px; }

  .pane.is-active .ep__date,
  .ep__date{ display:none; }

  .pane.is-active .ep__watch,
  .ep__watch{
    padding:9px 12px;
    font-size:12px;
  }
}

/* tablet */
@media (max-width: 720px){
  .pane.is-active .grid,
  .eps{ gap:12px; }
}

/* phone */
@media (max-width: 420px){
  .pane.is-active .grid,
  .eps{ grid-template-columns:1fr; }
}

/* Card */
.pane.is-active article.ep,
.ep{
  position:relative;
  overflow:hidden;
  border-radius:var(--epCardR);
  border:1px solid rgba(var(--accentRgb), .28);
  background:
    radial-gradient(120% 120% at 50% 0%, rgba(var(--accentRgb), .12), transparent 55%),
    radial-gradient(120% 120% at 50% 100%, rgba(var(--accent2Rgb), .14), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow:
    0 28px 74px rgba(0,0,0,.62),
    inset 0 0 0 1px rgba(255,255,255,.06);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.pane.is-active article.ep:hover,
.ep:hover{
  transform: translateY(-3px);
  border-color: rgba(var(--accentRgb), .44);
  box-shadow:
    0 36px 96px rgba(0,0,0,.68),
    0 0 0 1px rgba(var(--accentRgb), .12),
    inset 0 0 0 1px rgba(255,255,255,.07);
}

/* Inner frame */
.pane.is-active article.ep::before,
.ep::before{
  content:"";
  position:absolute; inset:10px;
  border-radius:18px;
  pointer-events:none;
  box-shadow: inset 0 0 0 1px rgba(var(--accentRgb), .22);
  background:
    linear-gradient(rgba(var(--accentRgb), .62), rgba(var(--accentRgb), .62)) left 10px top 10px/34px 2px no-repeat,
    linear-gradient(rgba(var(--accentRgb), .62), rgba(var(--accentRgb), .62)) left 10px top 10px/2px 34px no-repeat,
    linear-gradient(rgba(var(--accentRgb), .62), rgba(var(--accentRgb), .62)) right 10px top 10px/34px 2px no-repeat,
    linear-gradient(rgba(var(--accentRgb), .62), rgba(var(--accentRgb), .62)) right 10px top 10px/2px 34px no-repeat,
    linear-gradient(rgba(var(--accent2Rgb), .34), rgba(var(--accent2Rgb), .34)) left 10px bottom 10px/34px 2px no-repeat,
    linear-gradient(rgba(var(--accent2Rgb), .34), rgba(var(--accent2Rgb), .34)) left 10px bottom 10px/2px 34px no-repeat,
    linear-gradient(rgba(var(--accent2Rgb), .34), rgba(var(--accent2Rgb), .34)) right 10px bottom 10px/34px 2px no-repeat,
    linear-gradient(rgba(var(--accent2Rgb), .34), rgba(var(--accent2Rgb), .34)) right 10px bottom 10px/2px 34px no-repeat;
  opacity:.95;
}

/* Bottom glow */
.pane.is-active article.ep::after,
.ep::after{
  content:"";
  position:absolute; left:0; right:0; bottom:-22px;
  height:120px;
  pointer-events:none;
  background:
    radial-gradient(closest-side at 50% 40%, rgba(var(--accentRgb), .28), transparent 70%),
    radial-gradient(closest-side at 50% 40%, rgba(var(--accent2Rgb), .22), transparent 74%),
    radial-gradient(circle at 20% 55%, rgba(var(--accentRgb), .14), transparent 45%),
    radial-gradient(circle at 70% 65%, rgba(var(--accent2Rgb), .12), transparent 45%);
  opacity:.95;
}

/* Media */
.pane.is-active .ep__media,
.ep__media{
  position:relative;
  display:block;
  margin:12px 12px 0;
  border-radius:16px;
  overflow:hidden;
  border:1px solid rgba(var(--accentRgb), .22);
  box-shadow: 0 18px 44px rgba(0,0,0,.42);
}

.pane.is-active .ep__media img,
.ep__media img{
  width:100%;
  height:200px;
  object-fit:cover;
  transform: scale(1);
  transition: transform .45s ease;
}
.pane.is-active article.ep:hover .ep__media img,
.ep:hover .ep__media img{ transform: scale(1.06); }

@media (max-width: 720px){
  .pane.is-active .ep__media,
  .ep__media{ margin:10px 10px 0; border-radius:14px; }
  .pane.is-active .ep__media img,
  .ep__media img{ height:170px; }
}
@media (max-width: 420px){
  .pane.is-active .ep__media img,
  .ep__media img{ height:150px; }
}

/* vignette */
.pane.is-active .ep__media::before,
.ep__media::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(90% 80% at 50% 35%, rgba(0,0,0,0) 0%, rgba(0,0,0,.38) 70%),
    linear-gradient(to bottom, rgba(0,0,0,.24), rgba(0,0,0,0) 55%);
  opacity:.88;
  z-index:1;
}

/* Play button */
.pane.is-active .ep__play-btn,
.ep__play-btn{
  position:absolute;
  left:50%; top:50%;
  transform:translate(-50%,-50%);
  width:56px; height:56px;
  border-radius:999px;
  display:flex; align-items:center; justify-content:center;
  background:rgba(var(--accentRgb), .94);
  color:#12060a;
  font-weight:900;
  box-shadow:0 18px 44px rgba(var(--accent2Rgb), .24);
  z-index:2;
  opacity:0;
  transition: opacity .18s ease, transform .18s ease;
  pointer-events:none;
}
.pane.is-active article.ep:hover .ep__play-btn,
.ep:hover .ep__play-btn{
  opacity:1;
  transform:translate(-50%,-50%) scale(1.02);
}

/* Badges */
.pane.is-active .ep__number-mobile,
.ep__number-mobile{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  position:absolute;
  top:14px; left:14px;
  z-index:3;
  padding:7px 12px;
  border-radius:12px;
  font-weight:900;
  font-size:13px;
  letter-spacing:.2px;
  color:rgba(255,255,255,.96);
  background:rgba(0,0,0,.60);
  border:1px solid rgba(var(--accentRgb), .42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.pane.is-active .ep__new-badge,
.ep__new-badge{
  position:absolute;
  top:14px; right:14px;
  z-index:3;
  padding:6px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.3px;
  color:#fff;
  background:linear-gradient(135deg, rgba(var(--accentRgb),1), rgba(var(--accent2Rgb),1));
  box-shadow:0 12px 30px rgba(var(--accent2Rgb), .22);
}

/* показывать НОВИНКА только на первой карточке в активной вкладке */
.pane.is-active .grid .ep__new-badge{ display:none; }
.pane.is-active .grid article.ep:first-of-type .ep__new-badge{ display:inline-flex; }

/* Body */
.pane.is-active .ep__body--desktop,
.ep__body--desktop{
  padding:14px 16px 16px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

/* top row */
.pane.is-active .ep__top,
.ep__top{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:14px;
}

.pane.is-active .ep__number,
.ep__number{
  font-weight:900;
  font-size:30px;
  line-height:1.05;
  letter-spacing:.2px;
  color:var(--text);
}

.pane.is-active .ep__date,
.ep__date{
  flex:0 0 auto;
  font-weight:900;
  font-size:13px;
  color:rgba(255,255,255,.88);
  padding:7px 11px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.05);
}

.pane.is-active .ep__season,
.ep__season{
  margin-top:-2px;
  font-weight:900;
  font-size:12px;
  color:rgba(255,255,255,.72);
}

.pane.is-active .ep__meta,
.ep__meta{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  font-weight:900;
  font-size:13px;
  color:rgba(255,255,255,.78);
}

/* meta pills */
.ep__meta > .ep__views,
.ep__meta > .ep__dur{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(var(--accentRgb), .18);
  background:rgba(var(--accent2Rgb), .10);
  color:rgba(255,255,255,.90);
  font-weight:900;
  font-size:12px;
}
html[data-theme="light"] .ep__meta > .ep__views,
html[data-theme="light"] .ep__meta > .ep__dur{
  border:1px solid rgba(0,0,0,.10);
  background:rgba(0,0,0,.03);
  color:rgba(21,20,26,.70);
}

/* icon base */
.ep__meta > .ep__views::before,
.ep__meta > .ep__dur::before{
  content:"";
  width:14px;
  height:14px;
  background:currentColor;
  opacity:.9;
  display:inline-block;
  -webkit-mask-repeat:no-repeat;
  -webkit-mask-position:center;
  -webkit-mask-size:contain;
          mask-repeat:no-repeat;
          mask-position:center;
          mask-size:contain;
}

/* eye icon */
.ep__meta > .ep__views::before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5C6.5 5 2.1 8.3 1 12c1.1 3.7 5.5 7 11 7s9.9-3.3 11-7c-1.1-3.7-5.5-7-11-7zm0 12a5 5 0 1 1 0-10 5 5 0 0 1 0 10zm0-2.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z'/%3E%3C/svg%3E");
          mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5C6.5 5 2.1 8.3 1 12c1.1 3.7 5.5 7 11 7s9.9-3.3 11-7c-1.1-3.7-5.5-7-11-7zm0 12a5 5 0 1 1 0-10 5 5 0 0 1 0 10zm0-2.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5z'/%3E%3C/svg%3E");
}

/* clock icon */
.ep__meta > .ep__dur::before{
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 11h5v-2h-4V6h-2v7z'/%3E%3C/svg%3E");
          mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm1 11h5v-2h-4V6h-2v7z'/%3E%3C/svg%3E");
}

/* "Смотреть" button */
.pane.is-active .ep__watch,
.ep__watch{
  margin-top:6px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  padding:11px 20px;
  border-radius:999px;
  font-weight:900;
  letter-spacing:.2px;
  color:#fff;
  background:linear-gradient(135deg,
    rgba(var(--accentRgb), .98) 0%,
    rgba(var(--accent2Rgb), .92) 55%,
    rgba(0,0,0,.55) 100%);
  border:1px solid rgba(var(--accentRgb), .62);
  box-shadow:0 18px 46px rgba(var(--accent2Rgb), .22);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.pane.is-active .ep__watch:hover,
.ep__watch:hover{
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:0 22px 60px rgba(var(--accent2Rgb), .26);
}

/* MOBILE: убираем нижний блок */
@media (max-width: 900px){
  .pane.is-active article.ep .ep__body--desktop{ display:none; }
  .pane.is-active article.ep{ padding-bottom:0; }
  .pane.is-active article.ep::after{ display:none; }

  .pane.is-active .ep__number-mobile,
  .ep__number-mobile{
    top:auto;
    left:10px; right:10px;
    bottom:10px;
    height:34px;
    padding:0 12px;
    border-radius:12px;
    font-size:12px;
    background:linear-gradient(180deg, rgba(var(--accent2Rgb), .40), rgba(0,0,0,.55));
    border:1px solid rgba(var(--accentRgb), .26);
    box-shadow:0 12px 30px rgba(0,0,0,.45);
    text-shadow:0 1px 8px rgba(0,0,0,.50);
    justify-content:center;
    width:auto;
  }

  .pane.is-active .ep__play-btn,
  .ep__play-btn{ opacity:.92; }
}

@media (max-width: 520px){
  .pane.is-active article.ep,
  .ep{ border-radius:18px; }
  .pane.is-active article.ep::before,
  .ep::before{ inset:8px; border-radius:14px; }

  .pane.is-active .ep__body--desktop,
  .ep__body--desktop{ padding:12px 14px 14px; gap:8px; }

  .pane.is-active .ep__number,
  .ep__number{ font-size:24px; }

  .pane.is-active .ep__date,
  .ep__date{ font-size:12px; padding:6px 10px; }

  .pane.is-active .ep__watch,
  .ep__watch{ padding:10px 18px; font-size:13px; }
}

/* Light */
html[data-theme="light"] .pane.is-active article.ep,
html[data-theme="light"] .ep{
  background:linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.82));
  border-color:rgba(0,0,0,.10);
  box-shadow:0 14px 35px rgba(0,0,0,.08);
}
html[data-theme="light"] .pane.is-active article.ep::before,
html[data-theme="light"] .ep::before{
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08);
  opacity:.9;
}
html[data-theme="light"] .pane.is-active .ep__number-mobile,
html[data-theme="light"] .ep__number-mobile{
  color:rgba(21,20,26,.92);
  background:linear-gradient(180deg, rgba(255,255,255,.88), rgba(255,255,255,.72));
  border:1px solid rgba(var(--accent2Rgb), .18);
  text-shadow:none;
  box-shadow:0 10px 22px rgba(0,0,0,.10);
}
html[data-theme="light"] .pane.is-active .ep__date,
html[data-theme="light"] .ep__date{
  color:rgba(21,20,26,.70);
  border:1px solid rgba(0,0,0,.10);
  background:rgba(0,0,0,.03);
}

/* ===== News ===== */
.news-grid{ display:grid; grid-template-columns:repeat(2, 1fr); gap:12px; }
.news{
  border:1px solid var(--line);
  border-radius:20px;
  background:rgba(255,255,255,.03);
  padding:14px;
  box-shadow:0 14px 34px rgba(0,0,0,.18);
}
.news__title{ font-weight:900; display:inline-block; }
.news__title:hover{ color:var(--accent); }
.news__meta{ margin-top:6px; color:var(--muted); font-weight:900; font-size:12px; }
.news__text{ margin-top:10px; color:var(--muted); line-height:1.6; }

/* ===== Episode page ===== */
.page{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  border-radius:var(--epR);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.episode-hero{
  position:relative;
  border-bottom:1px solid var(--line);
  border-radius:var(--epR);
  overflow:hidden;
  background:rgba(255,255,255,.03);
  margin-bottom:10px;
}
.episode-hero::before{
  content:"";
  position:absolute; inset:0;
  background-image:
    radial-gradient(120% 120% at 20% 10%, rgba(var(--accent2Rgb), .22), transparent 62%),
    radial-gradient(120% 120% at 80% 0%, rgba(var(--accentRgb), .12), transparent 58%),
    linear-gradient(180deg, rgba(0,0,0,.58), rgba(0,0,0,.90));
  filter:none;
}
html[data-theme="light"] .episode-hero{
  background:rgba(255,255,255,.74);
  border-color:rgba(0,0,0,.10);
  box-shadow:0 18px 45px rgba(0,0,0,.10);
}
html[data-theme="light"] .episode-hero::before{
  background-image:
    radial-gradient(120% 120% at 20% 10%, rgba(var(--accent2Rgb), .12), transparent 62%),
    radial-gradient(120% 120% at 80% 0%, rgba(var(--accentRgb), .10), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.62));
}
.episode-hero__inner{
  position:relative;
  padding:28px 22px;
  display:grid;
  gap:22px;
  align-items:end;
}
.crumb{ display:inline-flex; gap:8px; align-items:center; color:var(--muted); font-weight:900; }
.crumb:hover{ color:var(--text); }
.episode-hero__meta{ display:flex; flex-wrap:wrap; gap:10px; margin:10px 0 8px; }
.episode-hero__title{ font-family:var(--hFont); font-size:30px; margin:0; letter-spacing:.3px; }
.episode-hero__actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }

.player{
  padding:16px 16px 10px;
  border-top:1px solid var(--line);
  background:transparent;
}
.player__frame{
  border-radius:var(--epR2);
  background:rgba(0,0,0,.60);
  box-shadow:0 18px 45px rgba(0,0,0,.38), inset 0 0 0 1px rgba(var(--accentRgb), .16);
  overflow:hidden;
}
.player__frame iframe{
  width:100%;
  aspect-ratio:16/9;
  height:auto;
  display:block;
  border:0;
}
html[data-theme="light"] .player__frame{
  background:rgba(0,0,0,.03);
  box-shadow:0 18px 45px rgba(0,0,0,.10), inset 0 0 0 1px rgba(0,0,0,.10);
}
.player__note{ margin-top:10px; color:var(--muted); font-weight:800; font-size:13px; }
.ep-content{ padding:22px; }

.player__head{ display:block; margin:4px 0 10px; }
.player__ttl{ font-family:var(--hFont); font-size:18px; letter-spacing:.3px; font-weight:900; }
.player__hint{ color:var(--muted); font-weight:800; font-size:13px; max-width:46ch; text-align:right; }

/* ===== Watch block ===== */
.watch .section__head{ margin-bottom:14px; }

/* ===== VPN note ===== */
.vpn-note{
  display:flex; gap:12px; align-items:flex-start;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(var(--accentRgb), .45);
  background:rgba(var(--accent2Rgb), .14);
  margin-bottom:14px;
  box-shadow:inset 0 0 0 1px rgba(var(--accentRgb), .16);
}
.vpn-note__icon{ font-size:18px; line-height:1; margin-top:2px; }
.vpn-note__text{ font-size:14px; line-height:1.35; opacity:.95; }

.playerbox{
  border-radius:18px;
  border:1px solid rgba(var(--accentRgb), .18);
  background:rgba(0,0,0,.40);
  overflow:hidden;
  min-height:320px;
}
.playerbox iframe{
  width:100%;
  aspect-ratio:16/9;
  height:auto;
  display:block;
  border:0;
}
.playerbox__placeholder{ padding:22px; opacity:.8; }

/* ===== Footer ===== */
.footer{ border-top:1px solid var(--line); padding:24px 0 30px; margin-top:24px; }
.footer__inner{ display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.footer__title{ font-family:var(--hFont); font-weight:900; letter-spacing:.3px; }
.footer__copy{ margin-top:8px; color:var(--muted); font-weight:800; font-size:13px; line-height:1.55; }
.footer__right{ display:flex; gap:14px; flex-wrap:wrap; }
.footer__link{ color:var(--muted); font-weight:900; font-size:13px; }
.footer__link:hover{ color:var(--accent); }

/* ===== Responsive header/nav + hero ===== */
@media (max-width:980px){
  .hero__inner{ grid-template-columns:1fr; gap:18px; }
  .poster{ justify-self:start; width:min(280px, 70%); }
}
@media (max-width:760px){
  .nav{
    display:none;
    position:absolute;
    left:16px; right:16px; top:64px;
    flex-direction:column; align-items:stretch;
    padding:12px;
    border:1px solid var(--line);
    border-radius:18px;
    background:rgba(0,0,0,.88);
    backdrop-filter:blur(14px);
  }
  html[data-theme="light"] .nav{ background:rgba(255,255,255,.90); }
  .nav.is-open{ display:flex; }
  .nav__link{ padding:12px 12px; }
  .burger{ display:flex; }

  .hero--screen{ min-height:auto; }
  .hero__scroll{ display:none; }
  .hero__title{ font-size:34px; }

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

/* ===== 640 ===== */
@media (max-width:640px){
  .hero__right{ display:none !important; }

  .hero.hero--screen{
    background-image:var(--hero-bg);
    background-size:cover;
    background-position:center;
    background-repeat:no-repeat;
  }
  .hero.hero--screen::before{
    content:"";
    position:absolute; inset:0;
    background:linear-gradient(to bottom, rgba(0,0,0,.58), rgba(0,0,0,.72));
    pointer-events:none;
    z-index:0;
  }
  .hero__inner, .hero__scroll{ position:relative; z-index:1; }

  .hero__cta{
    gap:10px;
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .hero__cta .btn{
    width:100%;
    min-height:44px;
    white-space:nowrap;
    font-size:14px;
    padding:12px 12px;
    border-radius:16px;
  }
  .hero__cta .btn--ghost{ grid-column:1 / -1; }

  .playerbox{ min-height:220px; }
  .playerbox iframe, .playerbox video{ height:56vw; }
  .vpn-note__text{ font-size:13px; }
}

/* =========================
   Seasons/Episodes (scoped)
   only inside #seasons
   + ПК hover эффект (то, что ты просил)
========================= */

#seasons.da-seasons .da-track{
  display:grid;
  grid-template-columns:repeat(4, minmax(0,1fr));
  gap:18px;
}

@media (max-width:1200px){
  #seasons.da-seasons .da-track{ grid-template-columns:repeat(3, minmax(0,1fr)); }
}
@media (max-width:900px){
  #seasons.da-seasons .da-track{ grid-template-columns:repeat(2, minmax(0,1fr)); }
}

#seasons.da-seasons .da-ep{
  cursor:pointer;
  user-select:none;
  transition: transform .18s ease, filter .18s ease;
  will-change: transform;
}

#seasons.da-seasons .da-ep__media{
  position:relative;
  display:block;
  overflow:hidden;
  border:1px solid var(--line);
  box-shadow:0 18px 45px rgba(0,0,0,.40);
  background:rgba(0,0,0,.22);
  border-radius:20px;
  aspect-ratio:16/8.6;
  transition: box-shadow .18s ease, border-color .18s ease, transform .18s ease;
}

#seasons.da-seasons .da-ep__img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  transform:scale(1.02);
  transition: transform .25s ease;
}

#seasons.da-seasons .da-ep__media::after{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(60% 80% at 50% 40%, rgba(0,0,0,.10), rgba(0,0,0,.55));
  pointer-events:none;
}

/* play */
#seasons.da-seasons .da-ep__play{
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:52px;
  height:52px;
  border-radius:999px;
  background:rgba(0,0,0,.28);
  border:1px solid rgba(255,255,255,.20);
  backdrop-filter:blur(8px);
  z-index:2;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, opacity .18s ease;
}

#seasons.da-seasons .da-ep__play::before{
  content:"";
  position:absolute;
  left:21px;
  top:16px;
  width:0;
  height:0;
  border-left:16px solid rgba(255,255,255,.95);
  border-top:11px solid transparent;
  border-bottom:11px solid transparent;
}

/* badges */
#seasons.da-seasons .da-ep__badge{
  position:absolute;
  z-index:3;
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:11px;
  letter-spacing:.3px;
  border:1px solid rgba(255,255,255,.14);
  backdrop-filter:blur(10px);
}

#seasons.da-seasons .da-ep__badge--ep{
  left:10px;
  bottom:10px;
  background:rgba(0,0,0,.28);
  color:rgba(255,255,255,.92);
}

#seasons.da-seasons .da-ep__badge--new{
  left:10px;
  top:10px;
  background:rgba(var(--accentRgb), .92);
  color:#fff;
  border-color:rgba(var(--accentRgb), .25);
  display:none;
}

/* НОВИНКА только у первого эпизода внутри каждого сезона */
#seasons.da-seasons .pane .da-track > .da-ep:first-child .da-ep__badge--new{
  display:inline-flex;
}

/* подпись */
#seasons.da-seasons .da-ep__cap{
  padding-top:10px;
  text-align:center;
  transition: transform .18s ease;
}
#seasons.da-seasons .da-ep__cap-num{
  font-size:16px;
  font-weight:900;
  color:var(--text);
  line-height:1.1;
  transition: color .18s ease;
}
#seasons.da-seasons .da-ep__cap-title{
  margin-top:4px;
  font-size:12px;
  color:var(--muted);
  opacity:.9;
  transition: color .18s ease, opacity .18s ease;
}

/* MOBILE: horizontal scroll */
@media (max-width:720px){
  #seasons.da-seasons .da-track{
    display:flex;
    gap:12px;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    scroll-snap-type:x mandatory;
    padding:2px 2px 14px;
  }
  #seasons.da-seasons .da-track::-webkit-scrollbar{ height:0; }

  #seasons.da-seasons .da-ep{
    flex:0 0 70%;
    scroll-snap-align:start;
    transform:none !important;
    filter:none !important;
  }

  /* hint */
  #seasons.da-seasons .pane.is-active{ position:relative; }
  #seasons.da-seasons .pane.is-active::after{
    content:"";
    position:absolute;
    top:0;
    right:0;
    width:72px;
    height:100%;
    pointer-events:none;
    background:linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,.70));
    border-radius:18px;
  }
  #seasons.da-seasons .pane.is-active::before{
    content:"→";
    position:absolute;
    right:10px;
    top:50%;
    transform:translateY(-50%);
    font-size:14px;
    color:rgba(255,255,255,.78);
    background:rgba(0,0,0,.22);
    border:1px solid rgba(255,255,255,.14);
    border-radius:999px;
    padding:6px 9px;
    pointer-events:none;
    backdrop-filter:blur(8px);
  }
}

/* =========================
   ПК HOVER эффект (то, что ты просил)
   подсветка + чуть больше
========================= */
@media (hover:hover) and (pointer:fine){
  /* мягкий режим: чуть приглушить всё */
  #seasons.da-seasons .da-track > .da-ep{
    filter:saturate(.92) brightness(.96);
  }
  /* когда мышь на треке — остальные приглушаем сильнее */
  #seasons.da-seasons .da-track:hover > .da-ep{
    filter:saturate(.85) brightness(.86);
  }

  /* активная карточка: ярче, больше, подсветка */
  #seasons.da-seasons .da-track:hover > .da-ep:hover{
    filter:saturate(1.10) brightness(1.03);
    transform: translateY(-4px) scale(1.03);
  }

  /* рамка/тень под акцент сайта */
  #seasons.da-seasons .da-ep:hover .da-ep__media{
    border-color:rgba(var(--accentRgb), .45);
    box-shadow:
      0 22px 60px rgba(0,0,0,.55),
      0 0 0 1px rgba(var(--accentRgb), .18);
  }

  /* чуть “живее” картинка */
  #seasons.da-seasons .da-ep:hover .da-ep__img{
    transform: scale(1.06);
  }

  /* легкий блик */
  #seasons.da-seasons .da-ep__media::before{
    content:"";
    position:absolute; inset:0;
    background: radial-gradient(60% 50% at 50% 25%, rgba(255,255,255,.10), transparent 60%);
    opacity:0;
    transition: opacity .18s ease;
    pointer-events:none;
    z-index:1;
  }
  #seasons.da-seasons .da-ep:hover .da-ep__media::before{ opacity:1; }

  /* подпись тоже подсветим */
  #seasons.da-seasons .da-ep:hover .da-ep__cap-num{ color:#fff; }
  #seasons.da-seasons .da-ep:hover .da-ep__cap-title{ opacity:1; color:rgba(255,255,255,.78); }

  /* play немного “кровью” */
  #seasons.da-seasons .da-ep:hover .da-ep__play{
    background:rgba(var(--accentRgb), .18);
    border-color:rgba(var(--accentRgb), .35);
    transform:translate(-50%,-50%) scale(1.04);
  }
}

/* ===== Nav dropdown (NO JS) ===== */
.nav__drop{ position:relative; }
.nav__link--summary{
  list-style:none;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.nav__link--summary::-webkit-details-marker{ display:none; }
.nav__link--summary::after{
  content:"";
  width:10px; height:10px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg);
  opacity:.75;
  margin-top:-2px;
  transition:transform .15s ease, opacity .15s ease;
}
.nav__drop[open] .nav__link--summary::after{
  transform:rotate(-135deg);
  opacity:1;
}
.nav__menu{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  min-width:200px;
  padding:10px;
  border-radius:16px;
  border:1px solid var(--line);
  background:rgba(0,0,0,.92);
  backdrop-filter: blur(14px);
  box-shadow:0 18px 50px rgba(0,0,0,.40);
  z-index:999;
}
html[data-theme="light"] .nav__menu{ background:rgba(255,255,255,.94); }

.nav__item{
  display:block;
  padding:10px 12px;
  border-radius:12px;
  font-weight:900;
  color:var(--text);
  border:1px solid transparent;
  transition:.15s;
}
.nav__item:hover{
  background:rgba(var(--accent2Rgb), .16);
  border-color:rgba(var(--accentRgb), .16);
}
html[data-theme="light"] .nav__item:hover{
  background:rgba(0,0,0,.04);
  border-color:rgba(0,0,0,.08);
}

/* ПК: открывать по hover */
@media (hover:hover){
  .nav__drop:hover .nav__menu{ display:block; }
  .nav__drop .nav__menu{ display:none; }
  .nav__drop[open] .nav__menu{ display:block; }
}
/* Мобилка */
@media (hover:none){
  .nav__menu{ position:static; margin-top:10px; }
}

/* =========================
   Cookie Notice — приведено к палитре (без старых цветов)
========================= */
.cookie-notice{
  position:fixed;
  bottom:0; left:0; right:0;
  z-index:99999;
  background:rgba(0,0,0,.95);
  color:#fff;
  padding:20px;
  border-top:2px solid rgba(var(--accentRgb), 1);
  box-shadow:0 -6px 22px rgba(0,0,0,.35);
  font-family:var(--bFont);
  display:none;
}
.cookie-notice.active{ display:block; animation:slideUp .5s ease; }
@keyframes slideUp{
  from{ transform:translateY(100%); }
  to{ transform:translateY(0); }
}
.cookie-notice__container{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:15px;
}
.cookie-notice__text{
  flex:1;
  min-width:300px;
  font-size:14px;
  line-height:1.5;
}
.cookie-notice__text a{
  color:rgba(var(--accentRgb), 1);
  text-decoration:underline;
}
.cookie-notice__text a:hover{ filter:brightness(1.06); }

.cookie-notice__buttons{ display:flex; gap:10px; flex-wrap:wrap; }
.cookie-btn{
  padding:12px 25px;
  border:none;
  border-radius:10px;
  cursor:pointer;
  font-size:14px;
  font-weight:900;
  transition:all .3s;
  white-space:nowrap;
  min-height:44px;
  min-width:44px;
}
.cookie-btn--accept{
  background:rgba(var(--accentRgb), 1);
  color:#14060a;
}
.cookie-btn--accept:hover{ filter:brightness(1.06); transform:translateY(-2px); }

.cookie-btn--reject{
  background:rgba(255,255,255,.08);
  color:#fff;
  border:1px solid rgba(255,255,255,.16);
}
.cookie-btn--reject:hover{ background:rgba(255,255,255,.10); }

.cookie-btn--settings{
  background:transparent;
  color:rgba(255,255,255,.85);
  border:1px solid rgba(255,255,255,.16);
}
.cookie-btn--settings:hover{ background:rgba(255,255,255,.06); }

/* Cookie Settings Modal */
.cookie-settings{ position:fixed; top:0; left:0; width:100%; height:100%; z-index:100000; display:none; }
.cookie-settings.active{ display:block; }
.cookie-settings__overlay{ position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,.7); }

.cookie-settings__modal{
  position:fixed;
  top:50%; left:50%;
  transform:translate(-50%, -50%);
  background:var(--card);
  color:var(--text);
  width:90%;
  max-width:600px;
  max-height:80vh;
  overflow-y:auto;
  border-radius:16px;
  border:1px solid var(--line);
  box-shadow:0 10px 30px rgba(0,0,0,.3);
}
.cookie-settings__header{
  background:rgba(var(--accent2Rgb), .22);
  color:var(--text);
  padding:20px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-radius:16px 16px 0 0;
  border-bottom:1px solid rgba(var(--accentRgb), .18);
}
.cookie-settings__title{ margin:0; font-size:18px; font-weight:900; }
.cookie-settings__close{
  background:none;
  border:none;
  color:var(--text);
  font-size:28px;
  cursor:pointer;
  line-height:1;
  padding:0;
  width:44px; height:44px;
  display:flex; align-items:center; justify-content:center;
  opacity:.9;
}
.cookie-settings__close:hover{ opacity:1; }

.cookie-settings__content{ padding:20px; }

.cookie-setting{
  border:1px solid var(--line);
  border-radius:14px;
  padding:15px;
  margin-bottom:15px;
  background:rgba(255,255,255,.03);
}
html[data-theme="light"] .cookie-setting{ background:rgba(0,0,0,.02); }

.cookie-setting__header{ display:flex; align-items:flex-start; gap:15px; margin-bottom:10px; }
.cookie-setting__info{ flex:1; }
.cookie-setting__info h4{ margin:0 0 5px; color:var(--text); font-size:15px; }
.cookie-setting__desc{ margin:0; font-size:14px; color:var(--muted); line-height:1.4; }

/* Toggle Switch */
.cookie-switch{ position:relative; display:inline-block; width:50px; height:24px; flex-shrink:0; margin-top:5px; }
.cookie-switch input{ opacity:0; width:0; height:0; }
.cookie-slider{
  position:absolute;
  cursor:pointer;
  top:0; left:0; right:0; bottom:0;
  background-color:rgba(255,255,255,.18);
  transition:.4s;
  border-radius:24px;
  border:1px solid var(--line);
}
.cookie-slider:before{
  position:absolute;
  content:"";
  height:16px;
  width:16px;
  left:4px;
  bottom:4px;
  background-color:#fff;
  transition:.4s;
  border-radius:50%;
}
input:checked + .cookie-slider{
  background-color:rgba(var(--accentRgb), .55);
  border-color:rgba(var(--accentRgb), .40);
}
input:checked + .cookie-slider:before{ transform:translateX(26px); }
input:disabled + .cookie-slider{ opacity:.45; cursor:not-allowed; }

.cookie-settings__links{ margin-top:20px; padding-top:15px; border-top:1px solid var(--line); }
.cookie-settings__links a{ display:block; margin:5px 0; color:var(--accent); font-size:14px; text-decoration:none; }
.cookie-settings__links a:hover{ text-decoration:underline; }

.cookie-settings__footer{
  padding:20px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:flex-end;
  gap:10px;
}
.cookie-settings__save{
  background:rgba(var(--accentRgb), 1);
  color:#14060a;
  border:none;
  padding:10px 20px;
  border-radius:12px;
  cursor:pointer;
  font-size:14px;
  font-weight:900;
  min-height:44px;
  min-width:44px;
}
.cookie-settings__save:hover{ filter:brightness(1.06); }

@media (max-width:768px){
  .cookie-notice__container{ flex-direction:column; align-items:flex-start; }
  .cookie-notice__text{ min-width:auto; margin-bottom:15px; }
  .cookie-notice__buttons{ width:100%; justify-content:center; }
  .cookie-btn{ flex:1; text-align:center; padding:10px 15px; }
  .cookie-settings__modal{ width:95%; max-height:90vh; }
  .cookie-settings__footer{ flex-direction:column; }
  .cookie-settings__save{ width:100%; }
}
@media (max-width:480px){
  .cookie-notice{ padding:15px; }
  .cookie-notice__buttons{ flex-direction:column; width:100%; }
  .cookie-btn{ width:100%; }
  .cookie-settings__header{ padding:15px; }
  .cookie-settings__content{ padding:15px; }
  .cookie-setting{ padding:12px; }
  .cookie-setting__header{ flex-direction:column; gap:10px; }
}
/* =========================
   Episode Schedule (table)
   .ep-schedule / #schedule
========================= */

.ep-schedule{ margin-top:22px; }

.ep-schedule__box{
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  border-radius:var(--radius2);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.ep-schedule__wrap{
  padding:16px;
}

/* table base */
.ep-schedule__table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border-radius:18px;
  border:1px solid rgba(var(--accentRgb), .18);
  background:rgba(0,0,0,.22);
  box-shadow:0 16px 40px rgba(0,0,0,.35);
}

/* head */
.ep-schedule__table thead th{
  text-align:left;
  padding:14px 14px;
  font-size:12px;
  letter-spacing:.25px;
  text-transform:uppercase;
  font-weight:900;
  color:rgba(255,255,255,.88);
  background:
    linear-gradient(135deg, rgba(var(--accentRgb), .14), rgba(var(--accent2Rgb), .10)),
    rgba(0,0,0,.30);
  border-bottom:1px solid rgba(255,255,255,.10);
}

/* cells */
.ep-schedule__table td{
  padding:14px 14px;
  font-weight:800;
  color:rgba(255,255,255,.88);
  border-bottom:1px solid rgba(255,255,255,.08);
  vertical-align:middle;
}

/* column widths (optional, but makes it neat) */
.ep-schedule__table th:nth-child(1),
.ep-schedule__table td:nth-child(1){ width:72px; }
.ep-schedule__table th:nth-child(2),
.ep-schedule__table td:nth-child(2){ width:80px; }
.ep-schedule__table th:nth-child(4),
.ep-schedule__table td:nth-child(4){ width:140px; }
.ep-schedule__table th:nth-child(5),
.ep-schedule__table td:nth-child(5){ width:130px; }

/* title cell */
.ep-schedule__ttl{
  font-weight:900;
  color:#fff;
}

/* zebra + hover */
.ep-schedule__table tbody tr:nth-child(odd) td{
  background:rgba(255,255,255,.02);
}
.ep-schedule__table tbody tr:hover td{
  background:rgba(var(--accent2Rgb), .10);
}

/* rounded corners */
.ep-schedule__table thead th:first-child{ border-top-left-radius:18px; }
.ep-schedule__table thead th:last-child{ border-top-right-radius:18px; }
.ep-schedule__table tbody tr:last-child td:first-child{ border-bottom-left-radius:18px; }
.ep-schedule__table tbody tr:last-child td:last-child{ border-bottom-right-radius:18px; }
.ep-schedule__table tbody tr:last-child td{ border-bottom:0; }

/* badges */
.ep-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  letter-spacing:.2px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:rgba(255,255,255,.92);
  white-space:nowrap;
}
.ep-badge::before{
  content:"";
  width:8px; height:8px;
  border-radius:999px;
  background:rgba(255,255,255,.65);
}

.ep-badge.is-released{
  border-color:rgba(var(--accentRgb), .35);
  background:rgba(var(--accent2Rgb), .16);
  color:#fff;
}
.ep-badge.is-released::before{
  background:rgba(var(--accentRgb), .95);
  box-shadow:0 0 0 3px rgba(var(--accentRgb), .16);
}

.ep-badge.is-upcoming{
  border-color:rgba(255,255,255,.18);
  background:rgba(255,255,255,.05);
  color:rgba(255,255,255,.88);
}
.ep-badge.is-upcoming::before{
  background:rgba(255,255,255,.70);
  box-shadow:0 0 0 3px rgba(255,255,255,.10);
}

/* note */
.ep-schedule__note{
  padding:14px 16px;
  border-top:1px solid rgba(255,255,255,.08);
  color:var(--muted);
  font-weight:800;
  line-height:1.45;
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(var(--accent2Rgb), .12), transparent 60%),
    rgba(0,0,0,.18);
}

/* ===== Light theme ===== */
html[data-theme="light"] .ep-schedule__box{
  background:rgba(0,0,0,.015);
  box-shadow:0 18px 45px rgba(0,0,0,.10);
}
html[data-theme="light"] .ep-schedule__table{
  background:#fff;
  border-color:rgba(0,0,0,.10);
  box-shadow:0 16px 34px rgba(0,0,0,.08);
}
html[data-theme="light"] .ep-schedule__table thead th{
  color:rgba(21,20,26,.78);
  border-bottom:1px solid rgba(0,0,0,.10);
  background:
    linear-gradient(135deg, rgba(var(--accentRgb), .10), rgba(var(--accent2Rgb), .08)),
    rgba(0,0,0,.02);
}
html[data-theme="light"] .ep-schedule__table td{
  color:rgba(21,20,26,.82);
  border-bottom:1px solid rgba(0,0,0,.08);
}
html[data-theme="light"] .ep-schedule__table tbody tr:nth-child(odd) td{
  background:rgba(0,0,0,.01);
}
html[data-theme="light"] .ep-schedule__table tbody tr:hover td{
  background:rgba(var(--accent2Rgb), .08);
}
html[data-theme="light"] .ep-schedule__ttl{ color:rgba(21,20,26,.92); }
html[data-theme="light"] .ep-schedule__note{
  border-top:1px solid rgba(0,0,0,.08);
  background:
    radial-gradient(120% 120% at 20% 0%, rgba(var(--accent2Rgb), .08), transparent 60%),
    rgba(0,0,0,.01);
}

/* =========================
   Mobile: table -> cards
   uses td[data-label]
========================= */
@media (max-width: 760px){
  .ep-schedule__wrap{ padding:12px; }

  .ep-schedule__table,
  .ep-schedule__table thead,
  .ep-schedule__table tbody,
  .ep-schedule__table th,
  .ep-schedule__table td,
  .ep-schedule__table tr{
    display:block;
  }

  .ep-schedule__table thead{
    display:none;
  }

  .ep-schedule__table{
    border-radius:18px;
    background:transparent;
    border:none;
    box-shadow:none;
  }

  .ep-schedule__table tbody tr{
    border:1px solid rgba(var(--accentRgb), .18);
    background:rgba(0,0,0,.22);
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 16px 40px rgba(0,0,0,.35);
    margin-bottom:12px;
  }
  html[data-theme="light"] .ep-schedule__table tbody tr{
    background:#fff;
    border-color:rgba(0,0,0,.10);
    box-shadow:0 12px 26px rgba(0,0,0,.08);
  }

  .ep-schedule__table td{
    border-bottom:1px solid rgba(255,255,255,.08);
    padding:12px 12px;
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
  }
  html[data-theme="light"] .ep-schedule__table td{
    border-bottom:1px solid rgba(0,0,0,.08);
  }

  .ep-schedule__table td:last-child{ border-bottom:0; }

  .ep-schedule__table td::before{
    content:attr(data-label);
    color:rgba(255,255,255,.65);
    font-weight:900;
    font-size:12px;
    letter-spacing:.2px;
    flex:0 0 auto;
  }
  html[data-theme="light"] .ep-schedule__table td::before{
    color:rgba(21,20,26,.55);
  }

  .ep-schedule__ttl{ text-align:right; }
}

/* small phones */
@media (max-width: 420px){
  .ep-schedule__table td{ padding:11px 11px; }
  .ep-badge{ padding:6px 10px; font-size:11px; }
}
/* =========================
   FAQ — BorderKnight (BLOOD, optimized)
   depends on: --accent, --accent2, --line, --muted, --radius2, --shadow
========================= */

.faq .cardbox{
  position:relative;
  border-radius:var(--radius2);
  overflow:hidden;

  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(120% 160% at 12% 0%, rgba(179,0,27,.12), transparent 58%),
    radial-gradient(120% 160% at 88% 0%, rgba(255,31,61,.10), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow:
    0 26px 70px rgba(0,0,0,.60),
    inset 0 0 0 1px rgba(255,255,255,.06);
}

/* LIGHT */
html[data-theme="light"] .faq .cardbox{
  border:1px solid rgba(0,0,0,.10);
  background:linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.80));
  box-shadow:0 14px 35px rgba(0,0,0,.08);
}

.faq__item{
  border-bottom:1px solid rgba(255,255,255,.08);
  background:transparent;
  transition: background .18s ease, border-color .18s ease;
}
.faq__item:last-child{ border-bottom:0; }

html[data-theme="light"] .faq__item{
  border-bottom:1px solid rgba(0,0,0,.08);
}

/* summary */
.faq__q{
  list-style:none;
  cursor:pointer;
  padding:16px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;

  font-weight:900;
  letter-spacing:.2px;
  color:rgba(243,243,246,.94);
  transition: color .18s ease;
}
.faq__q::-webkit-details-marker{ display:none; }

html[data-theme="light"] .faq__q{
  color:rgba(21,20,26,.92);
}

/* left text + dot */
.faq__qtext{
  display:flex;
  align-items:center;
  gap:10px;
}
.faq__qtext::before{
  content:"";
  width:10px; height:10px;
  border-radius:999px;

  /* use our accents */
  background:linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow:0 10px 26px rgba(0,0,0,.25);
  opacity:.92;
  flex:0 0 auto;
}

/* arrow */
.faq__ico{
  width:14px; height:14px;
  border-right:2px solid rgba(255,255,255,.70);
  border-bottom:2px solid rgba(255,255,255,.70);
  transform:rotate(45deg);
  opacity:.75;
  transition: transform .18s ease, opacity .18s ease, border-color .18s ease;
}
html[data-theme="light"] .faq__ico{
  border-right-color:rgba(0,0,0,.55);
  border-bottom-color:rgba(0,0,0,.55);
}

/* hover */
.faq__item:hover{
  background:rgba(255,255,255,.03);
}
html[data-theme="light"] .faq__item:hover{
  background:rgba(0,0,0,.02);
}
.faq__item:hover .faq__q{ color:rgba(243,243,246,1); }
html[data-theme="light"] .faq__item:hover .faq__q{ color:rgba(21,20,26,1); }
.faq__item:hover .faq__ico{
  border-color:rgba(255,255,255,.92);
  opacity:1;
}
html[data-theme="light"] .faq__item:hover .faq__ico{
  border-color:rgba(0,0,0,.70);
}

/* open state */

html[data-theme="light"] .faq__item[open]{
  background:rgba(0,0,0,.015);
  border-bottom-color:rgba(0,0,0,.10);
}
.faq__item[open] .faq__ico{
  transform:rotate(-135deg);
  opacity:1;
}

/* answer */
.faq__a{
  padding:0 18px 16px;
  color:var(--muted);
  line-height:1.7;
  font-weight:800;
  max-width:90ch;
}
.faq__item > .faq__a{ animation:faqIn .18s ease both; }
.faq .cardbox{ border-color: rgba(var(--accentRgb), .18); }


@keyframes faqIn{
  from{ opacity:0; transform:translateY(-4px); }
  to{ opacity:1; transform:translateY(0); }
}

/* mobile spacing */
@media (max-width:640px){
  .faq__q{ padding:14px 14px; }
  .faq__a{ padding:0 14px 14px; }
  .faq__qtext::before{ width:9px; height:9px; }
}
/* ===== Episode description (ep-desc) ===== */
.ep-desc{
  margin:14px 0px 16px;
  padding:14px 14px;
  border-radius:18px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
}

.ep-desc__ttl{
  font-weight:900;
  letter-spacing:.2px;
  margin:0 0 8px;
}

.ep-desc__txt{
  color:var(--muted);
  line-height:1.65;
  
}
.ep-desc__txt strong,b {
  color: white;  
}

/* blood accent for dark */
html:not([data-theme="light"]) .ep-desc{
  border-color:rgba(var(--accentRgb,255,31,61), .18);
  box-shadow: inset 0 0 0 1px rgba(var(--accentRgb,255,31,61), .10);
}

/* light */
html[data-theme="light"] .ep-desc{
  background:rgba(0,0,0,.02);
  border-color:rgba(0,0,0,.10);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.05);
}
html[data-theme="light"] .bg__glow{
  opacity:0 !important;
  background:none !important;
  filter:none !important;
}
html, body { height: 100%; }

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main{
  flex: 1 0 auto; /* занимает всё свободное место */
}

.footer{
  margin-top: auto; /* прижимает футер вниз */
}
/* Readmore: по умолчанию (ПК) показываем весь текст */
.readmore__toggle{display:none;}
.readmore__btn{display:none;}
.readmore__text{max-height:none; overflow:visible;}

/* Только мобилка: режем текст + делаем плавное затухание + кнопка */
@media (max-width: 720px){
  .readmore{
    position:relative;
  }

  .readmore__toggle{
    position:absolute;
    width:1px;height:1px;
    opacity:0;
    pointer-events:none;
  }

  .readmore__text{
    position:relative;
    overflow:hidden;
    line-height:1.65;
    max-height: 12.8em; /* ~7-8 строк, подгони если надо */
    transition:max-height .35s ease;
  }

  /* плавное затухание снизу */
  .readmore__text::after{
    content:"";
    position:absolute;
    left:0; right:0; bottom:0;
    height:4.8em;
    pointer-events:none;
    /* подложка под твой тёмный карточный фон */
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(40,8,14,.85) 60%, rgba(40,8,14,1));
    transition:opacity .25s ease;
  }

  .readmore__btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-top:12px;
    padding:10px 14px;
    border-radius:14px;
    border:1px solid rgba(236,236,243,.14);
    background: rgba(16,18,26,.55);
    color: rgba(236,236,243,.92);
    cursor:pointer;
    user-select:none;
  }

  .readmore__btn::before{
    content:"▾";
    opacity:.9;
    transition:transform .25s ease;
  }

  .rm-close{display:none;}

  /* Открыто */
  .readmore__toggle:checked ~ .readmore__text{
    max-height: 200vh;
  }
  .readmore__toggle:checked ~ .readmore__text::after{
    opacity:0;
  }
  .readmore__toggle:checked ~ .readmore__btn::before{
    transform: rotate(180deg);
  }
  .readmore__toggle:checked ~ .readmore__btn .rm-open{display:none;}
  .readmore__toggle:checked ~ .readmore__btn .rm-close{display:inline;}
}
.grid--episodes{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));
  gap:18px;
}
/* ===== Episodes cards (category) — same as home behavior ===== */

/* 1) Превью: всегда фикс-рамка, ничего не пляшет */
.eps .ep-cover,
.eps .card__cover,
.eps .episode__cover,
.eps .da-ep__cover {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0,0,0,.25);
  transform: translateZ(0);
}

/* Если картинка/iframe внутри */
.eps .ep-cover img,
.eps .card__cover img,
.eps .episode__cover img,
.eps .da-ep__cover img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  transition: transform .28s ease;
}

/* 2) Hover как на главной: лёгкое приближение + подсветка */
.eps :is(a, article, .card, .ep-card, .episode-card):hover
  :is(.ep-cover img, .card__cover img, .episode__cover img, .da-ep__cover img){
  transform: scale(1.04);
}

.eps :is(a, article, .card, .ep-card, .episode-card){
  transition: box-shadow .28s ease, transform .28s ease, border-color .28s ease;
}

.eps :is(a, article, .card, .ep-card, .episode-card):hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 55px rgba(0,0,0,.55);
}

/* 3) Плей: строго по центру, не “уплывает” */
.eps .ep-play,
.eps .card__play,
.eps .episode__play,
.eps .da-ep__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.20);
  backdrop-filter: blur(6px);
  pointer-events: none;
  transition: transform .28s ease, opacity .28s ease;
}

/* Чуть “оживает” при наведении */
.eps :is(a, article, .card, .ep-card, .episode-card):hover
  :is(.ep-play, .card__play, .episode__play, .da-ep__play){
  transform: translate(-50%,-50%) scale(1.06);
}

/* 4) Бейдж "5 серия": делаем одним блоком и запрещаем перенос */
.eps .ep-badge,
.eps .card__badge,
.eps .episode__badge,
.eps .da-ep__badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);

  font-weight: 800;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap; /* <= ключ: “5 серия” не переносится */
}

/* если “серия” у тебя отдельным span — тоже фикс */
.eps .ep-badge span,
.eps .card__badge span,
.eps .episode__badge span,
.eps .da-ep__badge span{
  white-space: nowrap;
}
.crumbs {font-size: 13px;}
.footer__copy{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap; /* если совсем узко — аккуратно перенесёт */
}

.footer__brand{
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
}

.footer__brand .brand__logo{
  width:24px;
  height:24px;
  display:block;   /* можно оставить block, т.к. обёртка flex */
}

.footer__inner{
  align-items:center; /* чтобы правая часть не прыгала */
}

.footer__right{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.ep-tabs{display:flex;gap:10px;margin:12px 0 14px;flex-wrap:wrap}
.ep-tab{
  padding:10px 14px;border-radius:999px;
  border:1px solid rgba(236,236,243,.12);
  background:rgba(255,255,255,.03);
  color:rgba(236,236,243,.85);
  font-weight:700;cursor:pointer;
}
.ep-tab.is-active{border-color:rgba(214,178,94,.45);background:rgba(214,178,94,.10);color:#ececf3}
.ep-pane{display:none}
.ep-pane.is-active{display:block}
/* ===== FIX: tabs in schedule (центр + красная тема) ===== */
.section.ep-schedule .ep-tabs{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:center;   /* чтобы не “липли” слева */
  margin: 12px 0 16px;
  padding: 0 14px;          /* чтобы не прилипали к краю */
}

.section.ep-schedule .ep-tab{
  appearance:none;
  border: 1px solid rgba(255, 64, 96, .35);
  background: rgba(255, 64, 96, .08);
  color: rgba(236,236,243,.90);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor:pointer;
}

.section.ep-schedule .ep-tab:hover{
  border-color: rgba(255, 64, 96, .55);
  background: rgba(255, 64, 96, .12);
}

.section.ep-schedule .ep-tab.is-active{
  border-color: rgba(255, 64, 96, .70);
  background: rgba(255, 64, 96, .18);
  box-shadow: 0 0 0 3px rgba(255, 64, 96, .10);
}
/* ===== Scroll To Top (в стиле сайта) ===== */
.to-top{
  position: fixed;
  right: 22px;
  bottom: 22px;

  width: 56px;            /* было 46 */
  height: 56px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 22px;        /* чтобы стрелка была норм */
  font-weight: 900;
  line-height: 1;

  cursor: pointer;
  z-index: 9999;

  /* твой стиль: красный/бордо + подсветка */
  border: 1px solid rgba(255, 64, 92, .35);
  background: linear-gradient(180deg, rgba(92,10,22,.92), rgba(16,18,26,.80));
  color: rgba(236,236,243,.95);
  box-shadow:
    0 18px 45px rgba(0,0,0,.55),
    0 0 0 1px rgba(255,64,92,.12) inset;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(.98);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease, filter .18s ease;
}

.to-top.is-show{
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.to-top:hover{
  filter: brightness(1.08);
}

.to-top:active{
  transform: translateY(0) scale(.96);
}

/* На больших экранах ещё чуть больше */
@media (min-width: 1100px){
  .to-top{ width: 62px; height: 62px; font-size: 24px; right: 26px; bottom: 26px; }
}

/* На мобилке компактнее */
@media (max-width: 520px){
  .to-top{ width: 50px; height: 50px; font-size: 20px; right: 14px; bottom: 14px; }
}

