:root {
  --bg: #0a0a0b;
  --panel: #141416;
  --panel-2: #1b1b1f;
  --border: #2a2a30;
  --text: #f5f5f7;
  --muted: #9a9aa4;
  --white: #ffffff;
  --red: #d81f3c;      /* used sparingly: New badge + 18+ */
  --green: #46d369;    /* rating only */
  --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: inherit; text-decoration: none; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
}
.logo img {
  height: 30px;
  width: auto;
  display: block;
}
.nav {
  display: flex;
  gap: 34px;
  margin-left: auto;
}
.nav-link {
  font-weight: 700;
  font-size: 0.98rem;
  color: #fff;
  opacity: 0.92;
  transition: opacity 0.15s;
}
.nav-link:hover { opacity: 0.6; }
/* ---- compact header search ---- */
.search { position: relative; display: flex; align-items: center; }
.search-input {
  width: 0;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  border-radius: 8px;
  opacity: 0;
  transition: width 0.2s ease, padding 0.2s ease, opacity 0.15s ease;
}
.search.open .search-input {
  width: 210px;
  padding: 8px 12px;
  opacity: 1;
  background: var(--panel);
  border-color: var(--border);
  margin-right: 6px;
}
.search.open .search-input:focus { outline: none; border-color: #666; }
.search-toggle {
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  padding: 6px;
  opacity: 0.92;
  flex-shrink: 0;
}
.search-toggle:hover { opacity: 0.6; }

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 320px;
  max-width: 80vw;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  z-index: 60;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
.search-results a {
  display: block;
  padding: 11px 15px;
  border-bottom: 1px solid var(--border);
}
.search-results a:last-child { border-bottom: none; }
.search-results a:hover { background: var(--panel-2); }
.sr-title { display: block; font-weight: 700; color: #fff; font-size: 0.92rem; }
.sr-sub { display: block; color: var(--muted); font-size: 0.78rem; margin-top: 2px; }
.search-empty { padding: 13px 15px; color: var(--muted); font-size: 0.85rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s, background 0.15s, color 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: #fff;
  color: #0a0a0b;
  border-color: #fff;
}
.btn-primary:hover { background: #e2e2e6; border-color: #e2e2e6; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); border-color: #fff; }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(1200px 500px at 78% -10%, rgba(216,31,60,0.16), transparent 60%),
    radial-gradient(900px 500px at 100% 30%, rgba(120,60,180,0.14), transparent 60%);
}
.hero-cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.4s;
}
.hero-cover.on { opacity: 1; }
/* keep the left readable: dark on the left, cover shows on the right */
.hero-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #0b0810 0%, #0b0810 30%, rgba(11, 8, 16, 0.62) 58%, rgba(11, 8, 16, 0.12) 100%),
    linear-gradient(0deg, #0b0810 0%, rgba(11, 8, 16, 0) 45%);
}
.hero-glyph {
  position: absolute;
  right: -3%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28vw;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,0.05);
  pointer-events: none;
  user-select: none;
  line-height: 1;
}
.hero-inner {
  position: relative;
  z-index: 1;
  padding: 92px 24px 76px;
  max-width: var(--maxw);
}
.hero-badges { margin-bottom: 22px; }
.badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 6px;
}
.badge-new { background: var(--red); color: #fff; }
.hero-title {
  font-size: clamp(3rem, 9vw, 6.5rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.hero-lead {
  max-width: 540px;
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 30px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  list-style: none;
}
.meta-row li {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
}
.meta-rating { color: var(--green) !important; border-color: rgba(70,211,105,0.4) !important; font-weight: 800 !important; }
.meta-age { color: #fff !important; border-color: rgba(216,31,60,0.55) !important; }

/* ---- Sections ---- */
.section { padding: 66px 0; border-bottom: 1px solid var(--border); }
.section-title {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.prose { max-width: 760px; }
.prose p { color: #d0d0d6; margin-bottom: 16px; font-size: 1.05rem; }

/* facts: plain text rows, no boxes */
.facts {
  margin-top: 28px;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.facts > div { display: flex; gap: 10px; align-items: baseline; }
.facts dt { color: var(--muted); font-size: 1rem; min-width: 140px; flex-shrink: 0; }
.facts dt::after { content: ":"; }
.facts dd { color: var(--text); font-weight: 600; font-size: 1rem; }

/* ---- Season tabs ---- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.tab {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.14s;
}
.tab:hover { color: #fff; border-color: #555; }
.tab.active { background: #fff; color: #0a0a0b; border-color: #fff; }

.episode-head { margin-bottom: 18px; }
.episode-count { color: var(--muted); font-weight: 600; font-size: 0.95rem; }

/* ---- Episodes: text cards, no thumbnails ---- */
.episodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.ep-card {
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  padding: 20px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ---- episode cover (image, or branded placeholder) ---- */
.ep-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #141118;
  border: 1px solid var(--border);
  margin-bottom: 4px;
  transition: border-color 0.15s;
}
.ep-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep-cover-ph {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1c1622, #100c16);
}
.ep-cover-ph span {
  font-size: 3.6rem; font-weight: 800; line-height: 1; color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,0.14);
}
.ep-cover-ph b {
  position: absolute; right: 12px; bottom: 10px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; color: rgba(255,255,255,0.28);
}
.ep-card:hover .ep-cover { border-color: #4a4a52; }
.ep-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ep-num { font-size: 1.5rem; font-weight: 800; }
.ep-dur { color: var(--muted); font-size: 0.86rem; font-weight: 600; white-space: nowrap; }
.ep-guest {
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.3;
}
.ep-desc {
  color: #c4c4cc;
  font-size: 0.96rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ep-foot { margin-top: auto; padding-top: 8px; }
.ep-link {
  display: inline-block;
  font-weight: 700;
  font-size: 0.88rem;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  padding: 7px 16px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ep-card:hover .ep-link,
.ep-link:hover { background: #fff; color: #0a0a0b; border-color: #fff; }

.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---- News ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.news-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
}
.news-date { color: var(--muted); font-size: 0.82rem; font-weight: 600; margin-bottom: 8px; }
.news-title { font-size: 1.12rem; font-weight: 800; margin-bottom: 8px; line-height: 1.3; }
.news-text { color: #c4c4cc; font-size: 0.95rem; }

/* ---- Footer ---- */
.site-footer { padding: 48px 0 40px; border-top: 1px solid var(--border); margin-top: 20px; }

.footer-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px 48px;
  padding-bottom: 40px;
}
.footer-col-title { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 20px; }
.footer-row { margin-bottom: 15px; }
.footer-row:last-child { margin-bottom: 0; }
.footer-k { display: block; color: var(--muted); font-size: 0.8rem; margin-bottom: 4px; }
.footer-v { display: block; color: #e6e6ea; font-size: 0.95rem; line-height: 1.45; }
.f-badge { display: inline-block; padding: 3px 10px; border-radius: 6px; font-weight: 700; font-size: 0.82rem; border: 1px solid var(--border); }
.f-rating { color: var(--green); border-color: rgba(70, 211, 105, 0.4); }
.f-age { color: #fff; border-color: rgba(216, 31, 60, 0.55); }

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.footer-brand { display: inline-flex; align-items: center; }
.footer-brand img { height: 24px; width: auto; display: block; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; margin-left: auto; }
.footer-nav a { font-weight: 700; color: #fff; opacity: 0.9; }
.footer-nav a:hover { opacity: 0.55; }
.footer-copy { width: 100%; color: var(--muted); font-size: 0.85rem; padding-top: 6px; }

@media (max-width: 800px) {
  .footer-info { grid-template-columns: 1fr; gap: 28px; }
}

/* ---- shared: section head, more-links, active nav ---- */
.section-first { padding-top: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.more-link { font-weight: 700; color: #fff; opacity: 0.82; white-space: nowrap; }
.more-link:hover { opacity: 0.55; }
.nav-link.active { opacity: 1; border-bottom: 2px solid #fff; padding-bottom: 4px; }

/* ---- breadcrumbs + page headings ---- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: #fff; }
.crumbs span { color: #4a4a52; }
.page-title { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 24px; }
.page-search { margin-bottom: 20px; max-width: 520px; }
.page-search input {
  width: 100%; background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; color: var(--text); font: inherit; padding: 12px 16px;
}
.page-search input:focus { outline: 2px solid rgba(255,255,255,0.22); border-color: #555; }

/* ---- seasons page ---- */
.season-block { margin-bottom: 42px; }
.lib-section-title {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 1.3rem; font-weight: 800; color: #fff;
  padding-bottom: 10px; margin-bottom: 16px; border-bottom: 1px solid var(--border);
}
.lib-section-count { color: var(--muted); font-size: 0.85rem; font-weight: 600; }

/* ---- watch page ---- */
.watch { max-width: 1000px; }
.watch-title { font-size: clamp(1.5rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; margin-bottom: 22px; }
.player {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #000; border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
}
.player video,
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-note { color: var(--muted); font-size: 0.85rem; margin-top: 10px; }
.watch-nav { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: center; margin: 22px 0; }
.watch-nav .btn { font-size: 0.92rem; padding: 11px 20px; }

/* branded poster + our own play button in front of the embed */
.player-poster {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; padding: 0; cursor: pointer;
  background: #100c16 center / cover no-repeat;
  display: flex; align-items: center; justify-content: center;
}
.player-poster::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.28); transition: background 0.15s; }
.player-poster:hover::before { background: rgba(0,0,0,0.12); }
.player-play {
  position: relative; width: 82px; height: 82px; border-radius: 50%;
  background: #fff; color: #0a0a0b;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 34px rgba(0,0,0,0.55); transition: transform 0.15s;
}
.player-poster:hover .player-play { transform: scale(1.08); }
.player-play svg { width: 34px; height: 34px; margin-left: 3px; }
#watch-meta { margin-bottom: 26px; }
.watch-body { max-width: 760px; }
.muted { color: var(--muted) !important; }
.related { margin-top: 40px; }

@media (max-width: 720px) {
  .hero-inner { padding: 64px 24px 54px; }
  .episodes, .news-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .header-inner { height: auto; flex-wrap: wrap; gap: 10px 16px; padding-top: 12px; padding-bottom: 12px; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 18px; flex-wrap: wrap; }
  .nav-link { font-size: 0.9rem; }
  .search-toggle { margin-left: auto; }
  .watch-nav { flex-direction: column; align-items: stretch; }
  .watch-nav .btn { width: 100%; }
}
