/* ============================================================
   Вселенная Breaking Bad — production stylesheet
   Design: handoff «2A / Тёплый уголь» (design_handoff_breakingkino)
   Palette: warm charcoal #17130d · copper accent #c67b3e/#d59a5f
   Type: Fraunces (headings) + Space Grotesk (UI/body)
   ============================================================ */

:root {
  --bg: #17130d;
  --panel: #1e1811;
  --panel-2: #1a150e;
  --footer-bg: #120e09;

  --text: #ece0cd;
  --text-lead: #c9b89e;
  --text-dim: #b6a68e;
  --text-muted: #8a7c67;
  --text-badge: #e4d8c4;
  --crumb-sep: #5a4f3f;

  --accent: #c67b3e;
  --accent-2: #d59a5f;
  --on-accent: #20140a;

  --line: rgba(198, 123, 62, .16);
  --line-strong: rgba(198, 123, 62, .18);
  --line-soft: rgba(198, 123, 62, .12);
  --line-hover: rgba(198, 123, 62, .5);
  --line-voice: rgba(198, 123, 62, .3);
  --line-neutral: rgba(236, 224, 205, .2);
  --line-neutral-2: rgba(236, 224, 205, .24);

  --player-bg: #0a0a0a;
  --scroll-thumb: #5a3f24;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;

  --header-h: 74px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  text-wrap: balance;
}

p { margin: 0 0 1em; }

.container { width: min(100% - 48px, 1240px); margin-inline: auto; }

/* SEO-подзаголовок внутри H1 */
.h1-seo {
  display: block;
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0;
  margin-top: 14px;
  color: var(--accent-2);
}

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.muted { color: var(--text-muted); }
.lead { color: var(--text-lead); font-size: 18px; line-height: 1.62; }

.section { margin-block: 82px; }
.section--tight { margin-block: 52px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.section-head h2 { font-size: 32px; margin: 0; }
.section-head .head-link { font-size: 14px; color: var(--accent-2); white-space: nowrap; }
.section-head .head-link:hover { color: var(--accent); }
.section-head .head-note { color: var(--text-muted); font-size: 14px; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid var(--line-neutral-2);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  transition: border-color .18s, background .18s, color .18s;
}
.btn:hover { border-color: var(--line-hover); color: var(--accent-2); }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn[aria-disabled="true"] { opacity: .38; pointer-events: none; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(23, 19, 13, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-strong);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--text); }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}
.brand-name { font-family: var(--serif); font-size: 19px; font-weight: 600; white-space: nowrap; }

.main-nav { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--text-dim); }
.main-nav a { transition: color .15s; }
.main-nav a:hover, .main-nav a[aria-current="true"] { color: var(--accent-2); }

.menu-btn {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: none;
  border: 1px solid var(--line-neutral);
  color: var(--text);
  cursor: pointer;
  font-size: 18px; line-height: 1;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 49;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 18px 24px 26px;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.mobile-menu.is-open { display: block; }
.mobile-menu .mm-label {
  font-size: 11px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--text-muted);
  margin: 16px 0 8px;
}
.mobile-menu .mm-label:first-child { margin-top: 0; }
.mobile-menu a {
  display: block; padding: 10px 0;
  color: var(--text); font-size: 16px;
  border-bottom: 1px solid var(--line-soft);
}

/* ---------- Breadcrumbs ---------- */

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 26px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--accent-2); }
.crumbs .sep { color: var(--crumb-sep); }
.crumbs .here { color: var(--text-dim); }

/* ---------- Layout: content + rail ---------- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 56px;
  align-items: start;
}
.rail { position: sticky; top: 98px; display: grid; gap: 28px; }

.rail-panel { background: var(--panel); border: 1px solid var(--line); padding: 22px; }
.rail-panel--bar { border-top: 3px solid var(--accent); }
.rail-panel h3 { font-size: 17px; margin: 0 0 14px; }

.rail-poster { border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.rail-poster img { width: 100%; aspect-ratio: 2/3; height: auto; object-fit: cover; }

/* ---------- Facts ---------- */

.facts { margin: 0; font-size: 14px; }
.facts > div {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--text-muted); }
.facts dd { margin: 0; text-align: right; font-weight: 500; }
.facts dd a { color: var(--text); }
.facts dd a:hover { color: var(--accent-2); }

.facts--cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  font-size: 14.5px;
}

.facts-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  padding: 26px 30px;
}

/* ---------- Rating widget ---------- */

.user-rating { display: grid; gap: 10px; }
.user-rating .ur-value { font-family: var(--serif); font-size: 34px; font-weight: 600; }
.user-rating .ur-value small { font-size: 15px; color: var(--text-muted); font-family: var(--sans); font-weight: 400; }
.stars { display: inline-flex; gap: 0; font-size: 19px; letter-spacing: 2px; line-height: 1; }
.stars .on { color: var(--accent-2); }
.stars .off { color: var(--crumb-sep); }
.rating-stars button {
  background: none; border: 0; padding: 2px;
  font-size: 22px; line-height: 1; letter-spacing: 0;
  color: var(--crumb-sep); cursor: pointer;
  transition: color .12s, transform .12s;
}
.rating-stars button.is-on, .rating-stars button:hover { color: var(--accent-2); }
.rating-stars button:hover { transform: scale(1.12); }
.rating-status { font-size: 12.5px; color: var(--text-muted); }

/* ---------- Panels / insets ---------- */

.panel { background: var(--panel); border: 1px solid var(--line); padding: 32px; }
.panel--bar { border-top: 3px solid var(--accent); }
.inset { border-left: 3px solid var(--accent); background: var(--panel-2); padding: 20px 26px; }
.inset h2 { font-size: 22px; margin-bottom: 10px; }
.inset p { margin: 0; font-size: 15px; line-height: 1.66; color: var(--text-dim); max-width: 68ch; }

.prose { max-width: 72ch; }
.prose p { color: var(--text-dim); font-size: 15.5px; line-height: 1.66; }
.prose p:first-of-type { color: var(--text-lead); font-size: 16.5px; }
.prose a { color: var(--accent-2); }
.prose a:hover { color: var(--accent); }

/* ============================================================
   HOME
   ============================================================ */

.home-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center 30%;
}
.home-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(23, 19, 13, .97) 32%, rgba(23, 19, 13, .55) 64%, rgba(45, 26, 10, .2)),
    linear-gradient(to top, rgba(23, 19, 13, .78), transparent 50%);
}
.home-hero .hh-inner { position: relative; width: min(100% - 48px, 1240px); margin: 0 auto; padding: 70px 0; }
.home-hero .hh-copy { max-width: 720px; }
.home-hero .eyebrow { letter-spacing: .26em; margin-bottom: 20px; }
.home-hero h1 { font-size: 72px; line-height: 1.02; font-weight: 700; margin: 0 0 22px; letter-spacing: -.02em; }
.home-hero h1 .h1-seo { font-size: 19px; margin-top: 18px; }
.home-hero .lead { max-width: 54ch; margin: 0 0 34px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-actions .btn { padding: 15px 30px; }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: 48px;
  border-top: 1px solid rgba(198, 123, 62, .22);
  padding-top: 24px;
}
.hero-stats b { display: block; font-family: var(--serif); font-size: 36px; font-weight: 600; }
.hero-stats span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); }

/* ---------- Title cards ---------- */

.title-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

.title-card {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color .18s;
}
.title-card:hover { border-color: var(--line-hover); }
.title-card .tc-poster { position: relative; display: block; }
.title-card .tc-poster img { width: 100%; height: 100%; aspect-ratio: 2/3; object-fit: cover; }
.title-card .tc-type {
  position: absolute; top: 10px; left: 10px;
  background: rgba(23, 19, 13, .72);
  border: 1px solid rgba(236, 224, 205, .28);
  color: var(--text-badge);
  font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 3px 8px;
  backdrop-filter: blur(4px);
}
.title-card .tc-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.title-card h3 { font-size: 24px; font-weight: 600; line-height: 1.12; margin: 0; }
.title-card .tc-orig { font-size: 13px; color: var(--text-muted); letter-spacing: .04em; }
.title-card .tc-meta {
  margin-top: auto; padding-top: 12px;
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  font-size: 13px; color: var(--text-dim);
}
.title-card .tc-rating { color: var(--accent-2); font-weight: 700; }

/* ---------- Routes ---------- */

.routes-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.route-card {
  display: block;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  padding: 24px 26px;
  transition: background .18s;
}
.route-card:hover { background: var(--panel); }
.route-card .rc-step {
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-2);
}
.route-card h3 { font-size: 20px; margin: 9px 0 7px; }
.route-card p { margin: 0; font-size: 14px; color: var(--text-dim); line-height: 1.55; }

/* ---------- Quick-nav link grid (home, above footer) ---------- */

.quick-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 0 0 90px; }
.quick-nav h3 {
  font-family: var(--sans);
  font-size: 15px; color: var(--text-muted); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  margin: 0 0 12px;
}
.quick-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.quick-nav a { color: var(--text-dim); }
.quick-nav a:hover { color: var(--accent-2); }

/* ============================================================
   TITLE page
   ============================================================ */

/* Hero: осознанно БЕЗ рамки вокруг блока (решение дизайн-ревью) */
.t-hero {
  position: relative;
  margin-top: 26px;
  background-size: cover;
  background-position: center 22%;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
}
.t-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(23, 19, 13, .97) 8%, rgba(23, 19, 13, .58) 46%, rgba(23, 19, 13, .18)),
    linear-gradient(to right, rgba(23, 19, 13, .74), transparent 55%);
}
.t-hero-inner { position: relative; padding: 46px 44px 40px; max-width: 760px; }
.t-hero h1 { font-size: 58px; font-weight: 700; margin: 0 0 10px; letter-spacing: -.01em; }
.t-hero h1 .h1-seo { font-size: 16px; margin-top: 12px; }
.t-hero .th-orig { font-size: 15px; color: var(--text-dim); letter-spacing: .05em; margin-bottom: 18px; }
.t-hero .th-meta { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 20px; }
.t-hero .lead { font-size: 16px; margin: 0; max-width: 60ch; }
.t-hero .t-actions { margin-top: 30px; }

.badge {
  display: inline-block;
  background: rgba(23, 19, 13, .68);
  border: 1px solid rgba(236, 224, 205, .22);
  color: var(--text-badge);
  font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 10px;
}
.badge--fill { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

.t-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Season cards ---------- */

.season-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.season-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color .18s;
}
.season-card:hover { border-color: var(--line-hover); }
.season-card img { width: 100%; aspect-ratio: 2/3; height: auto; object-fit: cover; }
.season-card .sc-body { display: block; padding: 12px 13px 14px; }
.season-card h3 { font-size: 17px; margin: 0; }
.season-card .sc-meta { display: block; font-size: 12px; color: var(--text-muted); margin-top: 3px; }

/* ---------- Cast strip ---------- */

/* Ровная сетка вместо flex: имена разной длины не сбивают колонки */
.cast-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 30px; }
.cast-strip .cs-person { display: flex; align-items: center; gap: 13px; min-width: 0; transition: opacity .15s; }
.cast-strip .cs-person:hover { opacity: .85; }
.cast-strip img {
  width: 58px; height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--line-voice);
}
.cast-strip .cs-name { font-size: 14.5px; font-weight: 600; }
.cast-strip .cs-char { font-size: 12.5px; color: var(--text-muted); }

.rail-cast { display: grid; gap: 10px; margin-bottom: 14px; }
.rail-cast a { display: flex; align-items: center; gap: 10px; transition: opacity .15s; }
.rail-cast a:hover { opacity: .8; }
.rail-cast img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--line-voice); }
.rail-cast span { font-size: 13px; font-weight: 600; }
.rail-more { font-size: 13px; font-weight: 600; color: var(--accent-2); }
.rail-more:hover { color: var(--accent); }
.rail-divider { border-top: 1px solid rgba(198, 123, 62, .14); margin-top: 16px; padding-top: 16px; }

/* ---------- FAQ ---------- */

.faq details {
  border: 1px solid var(--line);
  border-left: 3px solid transparent;
  background: var(--panel);
  margin-bottom: 10px;
}
.faq details[open] { border-left-color: var(--accent); }
.faq summary {
  cursor: pointer;
  padding: 17px 22px;
  font-weight: 600; font-size: 15.5px;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent-2); font-size: 20px; flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq .faq-body { padding: 0 22px 18px; font-size: 14.5px; color: var(--text-dim); line-height: 1.6; }

/* ---------- Share ---------- */

.share-block {
  border-left: 3px solid var(--accent);
  background: var(--panel-2);
  padding: 22px 26px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px;
}
.share-block .sb-label { font-weight: 600; font-size: 15px; }
.share-block .sb-links { display: flex; gap: 10px; }
.share-block .sb-links a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 14px;
  border: 1px solid var(--line-neutral);
  color: var(--text-dim);
  font-size: 13px; font-weight: 600;
  transition: border-color .15s, color .15s;
}
.share-block .sb-links a:hover { border-color: var(--line-hover); color: var(--accent-2); }

/* ---------- Comments ---------- */

.comments { display: grid; gap: 18px; }
.comment { background: var(--panel); border: 1px solid var(--line); padding: 18px 22px; }
.comment .cm-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.comment .cm-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  flex-shrink: 0;
}
.comment .cm-name { font-weight: 600; font-size: 14.5px; }
.comment .cm-date { font-size: 12.5px; color: var(--text-muted); }
.comment p { margin: 0; font-size: 14.5px; color: var(--text-dim); line-height: 1.6; }
.comment.is-pending { opacity: .7; }

.comments-empty {
  background: var(--panel-2);
  border: 1px dashed var(--line-voice);
  padding: 20px 24px;
  color: var(--text-muted);
  font-size: 14.5px;
}

.comment-form { background: var(--panel); border: 1px solid var(--line); padding: 22px; display: grid; gap: 12px; }
.comment-form label { display: grid; gap: 6px; font-size: 13px; color: var(--text-muted); }
.comment-form input, .comment-form textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-neutral);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14.5px;
  padding: 12px 14px;
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); }
.comment-form textarea { min-height: 96px; resize: vertical; }
.comment-form .btn { justify-self: start; border: 0; }
.comment-form .form-status { font-size: 13px; color: var(--text-muted); }
.comment-form .form-status.is-error { color: #d9805f; }
.comment-form .form-status.is-ok { color: var(--accent-2); }
.turnstile-slot { min-height: 0; }

/* ---------- Universe ---------- */

.universe-list { display: grid; gap: 2px; }
.universe-list a {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px;
  background: var(--panel-2);
  color: var(--text-dim);
  font-size: 13.5px; font-weight: 500;
  transition: color .15s;
}
.universe-list a:hover { color: var(--accent-2); }
.universe-list img { width: 34px; aspect-ratio: 2/3; height: auto; object-fit: cover; }
.universe-list .ul-type { margin-left: auto; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }

/* Universe cards (film page, 2-col) */
.universe-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.universe-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px;
  transition: border-color .18s;
}
.universe-card:hover { border-color: var(--line-hover); }
.universe-card img { width: 96px; aspect-ratio: 2/3; height: auto; object-fit: cover; }
.universe-card .uc-body { display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.universe-card .uc-tag { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.universe-card h3 { font-size: 19px; margin: 0; }
.universe-card .uc-note { font-size: 13px; color: var(--text-muted); }

/* ============================================================
   SEASON page
   ============================================================ */

.page-h1 { font-size: 52px; line-height: 1.06; font-weight: 700; margin: 18px 0 8px; letter-spacing: -.01em; }
.page-sub { font-size: 15px; color: var(--text-muted); margin-bottom: 22px; }
.page-intro { font-size: 16px; line-height: 1.66; color: var(--text-lead); max-width: 74ch; margin: 0 0 56px; }

.ep-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ep-card {
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color .18s;
}
.ep-card:hover { border-color: var(--line-hover); }
.ep-card .ec-media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--footer-bg); }
.ep-card .ec-media img { width: 100%; height: 100%; object-fit: cover; }
.ep-card .ec-num {
  position: absolute; top: 10px; left: 10px;
  background: rgba(23, 19, 13, .82);
  border: 1px solid var(--line-hover);
  color: var(--accent-2);
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  padding: 3px 9px;
}
.ep-card .ec-body { padding: 15px 17px 17px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.ep-card h3 { font-size: 17px; margin: 0; }
.ep-card .ec-meta { font-size: 12.5px; color: var(--text-muted); margin-top: auto; padding-top: 8px; }

.ep-card.is-soon .ec-media img { filter: grayscale(.8) brightness(.45); }
.ep-card.is-soon .ec-soon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.ep-card.is-soon .ec-soon span {
  padding: 6px 14px;
  background: rgba(23, 19, 13, .85);
  border: 1px solid var(--line-neutral);
  color: var(--text-dim);
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}

.key-episodes { display: grid; gap: 14px; }
.key-episodes .ke-row { border-left: 3px solid var(--accent); background: var(--panel-2); padding: 16px 22px; }
.key-episodes b { font-family: var(--serif); font-weight: 600; }
.key-episodes .ke-dash { color: var(--text-muted); }
.key-episodes .ke-text { color: var(--text-dim); font-size: 14.5px; }

.voice-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.voice-pills span {
  border: 1px solid var(--line-voice);
  color: var(--accent-2);
  font-size: 12px; font-weight: 600;
  padding: 6px 12px;
}

/* Season aside: компактный постер + факты в одной строке (финальное решение mobile) */
.season-side-card { display: block; }

/* ============================================================
   EPISODE page — player
   ============================================================ */

.watch-h1 { font-size: 48px; line-height: 1.06; font-weight: 700; margin: 18px 0 6px; letter-spacing: -.01em; }
.watch-h1 .h1-seo { font-size: 17px; margin-top: 14px; }
.watch-orig { color: var(--text-muted); font-size: 14px; letter-spacing: .04em; margin-bottom: 26px; }

.player-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 30px;
}
.player-col { min-width: 0; display: flex; flex-direction: column; gap: 14px; }

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--player-bg);
  border: 1px solid var(--line);
  overflow: hidden;
}
.player-shell iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }

/* Состояние «скоро» (нет русской дорожки) */
.player-soon {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: var(--player-bg);
  padding: 0 24px;
}
.player-soon .soon-badge {
  padding: 8px 18px;
  border: 1px solid var(--line-voice);
  color: var(--accent-2);
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.player-soon .soon-text { max-width: 52ch; text-align: center; font-size: 14px; color: var(--text-dim); margin: 0; }

.player-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.player-controls .btn { padding: 13px; font-size: 14px; }
.player-controls .btn--next { border-color: var(--line-hover); color: var(--accent-2); }
.player-controls .btn--next:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.player-controls--two { grid-template-columns: 1fr 1fr; }

/* Список серий рядом с плеером */
.ep-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  min-height: 0;
}
.ep-panel .epc-head { padding: 16px 18px 13px; border-bottom: 1px solid var(--line); }
.ep-panel .epc-head .eyebrow { margin-bottom: 3px; font-size: 11px; letter-spacing: .2em; }
.ep-panel .epc-head h3 { font-size: 17px; margin: 0; }
.epc-list {
  overflow-y: auto;
  max-height: 452px;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-thumb) var(--bg);
}
.epc-list::-webkit-scrollbar { width: 8px; }
.epc-list::-webkit-scrollbar-thumb { background: var(--scroll-thumb); }
.epc-list::-webkit-scrollbar-track { background: var(--bg); }
.epc-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 14px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line-soft);
  background: var(--panel-2);
  transition: background .15s;
}
.epc-item:hover { background: #241c12; }
.epc-item img { width: 92px; aspect-ratio: 16/9; height: auto; object-fit: cover; }
.epc-item .ei-body { display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.epc-item .ei-num { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--text-muted); }
.epc-item .ei-title { font-size: 13.5px; font-weight: 500; line-height: 1.35; }
.epc-item.is-active { background: #241c12; color: var(--text); }
.epc-item.is-active .ei-num { color: var(--accent-2); }
.epc-item.is-soon { opacity: .55; }

/* Film: правая колонка (постер + детали) */
.film-side { display: flex; flex-direction: column; gap: 20px; }
.film-side .fs-poster { border: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0, 0, 0, .5); }
.film-side .fs-poster img { width: 100%; aspect-ratio: 2/3; height: auto; object-fit: cover; }
.film-side .fs-facts { background: var(--panel); border: 1px solid var(--line); padding: 22px; }

/* Полоса «Коротко о фильме» */
.film-strip {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 20px 24px;
  display: flex; flex-wrap: wrap; gap: 16px 40px;
}
.film-strip .fst-label { font-family: var(--serif); font-size: 15px; color: var(--accent-2); align-self: center; }
.film-strip .fst-item { display: flex; align-items: baseline; gap: 8px; font-size: 14px; }
.film-strip .fst-item span:first-child { color: var(--text-muted); }
.film-strip .fst-item span:last-child { font-weight: 500; }

/* ============================================================
   ACTORS
   ============================================================ */

.actors-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.actor-tile {
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  transition: border-color .18s;
}
.actor-tile:hover { border-color: var(--line-hover); }
.actor-tile .at-photo { position: relative; aspect-ratio: 3/4; overflow: hidden; background: var(--footer-bg); }
.actor-tile .at-photo img { width: 100%; height: 100%; object-fit: cover; }
.actor-tile .at-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.actor-tile h3 { font-size: 15.5px; margin: 0; line-height: 1.2; }
.actor-tile .at-role { font-size: 12px; color: var(--text-muted); }
.actor-tile .at-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 7px; }
.actor-tile .at-badges span {
  border: 1px solid var(--line-voice);
  color: var(--accent-2);
  font-size: 10px; font-weight: 600; letter-spacing: .03em;
  padding: 3px 7px;
}

/* Детальная карточка актёра (страницы «актёры тайтла») */
.actor-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 26px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 26px;
}
.actor-card img { width: 100%; aspect-ratio: 2/3; height: auto; object-fit: cover; border: 1px solid var(--line); }
.actor-card h3 { font-size: 24px; margin: 0 0 2px; }
.actor-card .ac-role { font-size: 14px; color: var(--accent-2); font-weight: 600; margin-bottom: 12px; }
.actor-card .ac-bio { font-size: 14.5px; color: var(--text-dim); line-height: 1.62; }
.actor-card .facts { margin-top: 14px; font-size: 13.5px; }
.actor-card .ac-fun { margin-top: 16px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.actor-card .ac-fun-label {
  display: block;
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.actor-card .ac-fun ul { margin: 0; padding: 0 0 0 18px; display: grid; gap: 7px; }
.actor-card .ac-fun li { font-size: 13.5px; color: var(--text-dim); line-height: 1.55; }
.actor-card .ac-fun li::marker { color: var(--accent); }

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--line);
  padding: 44px 0 40px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.site-footer--full { padding-top: 54px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a { color: var(--text-muted); }
.footer-grid a:hover { color: var(--accent-2); }
.footer-about .brand-name { font-size: 17px; color: var(--text); }
.footer-about p { margin: 14px 0 0; line-height: 1.6; max-width: 40ch; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 12.5px;
}
.site-footer--full .footer-bottom { border-top: 1px solid var(--line-soft); padding-top: 22px; }
.footer-bottom .fb-note { max-width: 66ch; }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent-2); }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .home-hero h1 { font-size: 54px; }
  .t-hero h1 { font-size: 44px; }
  .page-h1 { font-size: 40px; }
  .watch-h1 { font-size: 38px; }
  .layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 36px; }
  .season-grid { grid-template-columns: repeat(3, 1fr); }
  .ep-grid { grid-template-columns: repeat(2, 1fr); }
  .actors-grid { grid-template-columns: repeat(4, 1fr); }
  .actor-card { grid-template-columns: 150px minmax(0, 1fr); gap: 20px; }
}

@media (max-width: 820px) {
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }

  .layout { grid-template-columns: 1fr; gap: 44px; }
  .rail { position: static; }

  .home-hero { min-height: 0; }
  .home-hero .hh-inner { padding: 52px 0; }
  .home-hero h1 { font-size: 34px; }
  .home-hero h1 .h1-seo { font-size: 16px; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; }
  .hero-stats b { font-size: 30px; }

  .title-grid { grid-template-columns: 1fr; }
  .title-card { grid-template-columns: 96px minmax(0, 1fr); }
  .title-card .tc-body { padding: 14px 16px; gap: 5px; }
  .title-card h3 { font-size: 19px; }
  .routes-grid { grid-template-columns: 1fr; }
  .quick-nav { grid-template-columns: 1fr 1fr; gap: 24px; }

  .t-hero { min-height: 320px; }
  .t-hero-inner { padding: 28px 20px 26px; }
  .t-hero h1 { font-size: 30px; }
  .t-hero .t-actions .btn { flex: 1 1 100%; }

  .season-grid { grid-template-columns: repeat(2, 1fr); }

  .ep-grid { grid-template-columns: 1fr; }
  .ep-card { flex-direction: row; }
  .ep-card .ec-media { width: 110px; flex-shrink: 0; aspect-ratio: 16/10; }
  .ep-card .ec-media .ec-num { top: 6px; left: 6px; font-size: 10px; padding: 2px 6px; }
  .ep-card .ec-body { padding: 12px 14px; }
  .ep-card h3 { font-size: 15px; }

  .page-h1 { font-size: 30px; }
  .page-intro { margin-bottom: 40px; }
  .watch-h1 { font-size: 27px; }
  .watch-h1 .h1-seo { font-size: 15px; }

  .player-row { grid-template-columns: 1fr; }
  .player-row .ep-panel { display: none; } /* список серий скрыт; кнопка «Список сезона» ведёт на страницу сезона */

  /* Сезон/фильм: компактный постер слева + факты справа (финальные решения хендоффа) */
  .season-side-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; }
  .season-side-card .rail-poster { margin: 0; }
  .film-side { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; }
  .film-side .fs-poster { grid-column: 1; }
  .film-side .fs-strip-mobile { grid-column: 2; }
  .film-side .fs-facts { grid-column: 1 / -1; }

  .actors-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .cast-strip { grid-template-columns: 1fr 1fr; gap: 16px 18px; }
  .actor-tile h3 { font-size: 16px; }
  .actor-card { grid-template-columns: 120px minmax(0, 1fr); padding: 18px; }
  .actor-card h3 { font-size: 19px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section { margin-block: 56px; }
  .section-head h2 { font-size: 24px; }
  .universe-cards { grid-template-columns: 1fr; }
  .facts--cols { grid-template-columns: 1fr; }
  .film-strip { gap: 12px 24px; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 36px); }
  .home-hero h1 { font-size: 30px; }
  .hero-actions .btn { flex: 1; padding: 13px 18px; }
  .season-grid { gap: 12px; }
  .season-card .sc-body { padding: 10px 11px 12px; }
  .season-card h3 { font-size: 15px; }
  .brand-name { font-size: 16px; }
  .panel { padding: 22px; }
  .facts-panel { padding: 20px 22px; }
  .player-controls { grid-template-columns: 1fr 1fr; }
  .player-controls .btn:nth-child(2) { order: 3; grid-column: 1 / -1; }
  .player-controls--two { grid-template-columns: 1fr 1fr; }
  .player-controls--two .btn:nth-child(2) { order: 0; grid-column: auto; }
  .actor-card { grid-template-columns: 1fr; }
  .actor-card img { max-width: 190px; }
  .quick-nav { grid-template-columns: 1fr; }
  .cast-strip { grid-template-columns: 1fr; }
  .actors-grid { grid-template-columns: 1fr 1fr; }
}
