/*
Theme Name: Classic TV & Film
Theme URI: https://classictvandfilm.com
Author: ClassicTVandFilm.com
Description: A black-and-white minimalist theme for classic film and television streaming.
Version: 3.0.5
License: GNU General Public License v2 or later
Text Domain: classictvfilm
Tags: custom-post-types, streaming, classic-film, minimalist
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --color-bg:          #0a0a0a;
  --color-surface:     #141414;
  --color-surface-2:   #1c1c1c;
  --color-border:      #2a2a2a;
  --color-border-soft: #1e1e1e;

  --color-text:        #efefef;
  --color-text-muted:  #8a8a8a;
  --color-text-faint:  #555555;
  --color-accent:      #d4d4d4;
  --color-white:       #ffffff;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Jost', 'Helvetica Neue', sans-serif;
  --font-mono:    'Courier Prime', 'Courier New', monospace;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  16px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-deep: 0 12px 48px rgba(0,0,0,0.7);

  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;

  --max-width: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Subtle film grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; font-family: var(--font-body); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; }

p { line-height: 1.75; color: var(--color-text-muted); }
p + p { margin-top: 1em; }

.text-mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--color-text-faint);
}

.label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container--narrow {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.site-main { min-height: 60vh; }

/* ============================================================
   HEADER & NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-soft);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-logo span {
  color: var(--color-text-muted);
  font-weight: 300;
}

.site-nav { display: flex; align-items: center; gap: 2px; }

.site-nav a {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.site-nav a:hover,
.site-nav a.current {
  color: var(--color-white);
  background: var(--color-surface-2);
}

.site-header__search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  min-width: 200px;
}

.site-header__search input {
  background: none;
  border: none;
  outline: none;
  color: var(--color-text);
  font-size: 0.8rem;
  width: 100%;
}

.site-header__search input::placeholder { color: var(--color-text-faint); }

.mobile-header-actions {
  display: none; /* hidden on desktop, shown on mobile */
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.mobile-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--color-text-muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}
.mobile-search-btn:hover { color: var(--color-white); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--color-text);
  transition: var(--transition);
}

/* Animated to X when open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Mobile nav panel ──────────────────────────────────────── */
/* Drops below the header bar as a full-width overlay */
.mobile-nav {
  display: none;
  position: absolute;
  top: 100%; /* flush below header */
  left: 0;
  right: 0;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border-soft);
  z-index: 99;
  padding: 8px 0 16px;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav__links {
  display: flex;
  flex-direction: column;
}

.mobile-nav__links a {
  display: block;
  padding: 13px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--color-border-soft);
  transition: color var(--transition), background var(--transition);
}

.mobile-nav__links a:last-child {
  border-bottom: none;
}

.mobile-nav__links a:hover,
.mobile-nav__links a.current {
  color: var(--color-white);
  background: var(--color-surface);
}

/* ============================================================
   HERO / FEATURED (homepage)
   ============================================================ */
.hero--featured {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  /* No overlay — backdrop image shows clean */
  background: transparent;
}

/* Two-column layout matching the detail page */
.hero__featured-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  padding: clamp(40px, 6vw, 64px) 0;
  width: 100%;
}

.hero__featured-poster-wrap {
  flex-shrink: 0;
}

.hero__featured-poster {
  width: clamp(180px, 22vw, 300px);
  aspect-ratio: 16/9;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.12);
  display: block;
}

.hero__featured-info {
  padding-top: 4px;
  /* Text shadow for readability without dark overlay */
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.hero__synopsis {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

@media (max-width: 640px) {
  .hero__featured-inner {
    grid-template-columns: 1fr;
  }
  .hero__featured-poster {
    width: 100%;
    max-width: 320px;
  }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-white);
  color: var(--color-bg);
}
.btn--primary:hover { background: var(--color-accent); }

.btn--ghost {
  border: 1px solid var(--color-border);
  color: var(--color-text);
}
.btn--ghost:hover {
  border-color: var(--color-text-muted);
  background: var(--color-surface-2);
}

.btn--icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}
.btn--icon:hover { border-color: var(--color-text); color: var(--color-white); }

.btn svg { width: 16px; height: 16px; }

/* ============================================================
   BADGES & TAGS
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  color: var(--color-text-muted);
}

.badge--type {
  border-color: #c9a84c;
  color: #c9a84c;
  background-color: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
}

.tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.7rem;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 2px;
  color: var(--color-text-muted);
  transition: var(--transition);
}
.tag:hover {
  background: var(--color-surface);
  border-color: var(--color-text-faint);
  color: var(--color-text);
}

/* ============================================================
   CARD GRID
   ============================================================ */
.section {
  padding: clamp(40px, 6vw, 80px) 0;
}

.section__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-soft);
}

.section__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--color-text);
}

.section__link {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  transition: color var(--transition);
}
.section__link:hover { color: var(--color-text); }

/* Poster Grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.card-grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.card-grid--episodes {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* Poster Card */
.poster-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition);
  cursor: pointer;
}

.poster-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-deep);
  border-color: var(--color-border);
}

.poster-card__thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-surface-2);
}

.poster-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  filter: none;
  opacity: 1;
  transition: opacity var(--transition-slow);
}

.poster-card:hover .poster-card__thumb img {
  opacity: 0.82;
}

.poster-card__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16/9;
  background: var(--color-surface-2);
}

.poster-card__thumb--placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--color-border);
}

.poster-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10,10,10,0.5);
  opacity: 0;
  transition: opacity var(--transition);
}

.poster-card:hover .poster-card__play { opacity: 1; }

.poster-card__play-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.3);
}

.poster-card__play-icon svg {
  width: 20px;
  height: 20px;
  color: white;
  margin-left: 3px;
}

.poster-card__info {
  padding: 12px;
}

.poster-card__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.poster-card__meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-text-faint);
  letter-spacing: 0.04em;
}

.poster-card__series {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #c9a84c;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Episode / Landscape Card */
.episode-card {
  display: flex;
  gap: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 0;
  transition: border-color var(--transition), background var(--transition);
}

.episode-card:hover {
  border-color: var(--color-border);
  background: var(--color-surface-2);
}

.episode-card__thumb {
  position: relative;
  width: 160px;
  flex-shrink: 0;
  aspect-ratio: 16/9;
  background: var(--color-surface-2);
  overflow: hidden;
}

.episode-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
  opacity: 1;
  transition: opacity var(--transition-slow);
}

.episode-card:hover .episode-card__thumb img {
  opacity: 0.82;
}

.episode-card__ep-num {
  position: absolute;
  bottom: 6px;
  left: 6px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: rgba(10,10,10,0.8);
  padding: 2px 6px;
  border-radius: 2px;
  color: var(--color-text-muted);
}

.episode-card__info {
  padding: 14px 14px 14px 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.episode-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.episode-card__synopsis {
  font-size: 0.8rem;
  color: var(--color-text-faint);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   PERSON / CAST CARD
   ============================================================ */
.person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}

.person-card {
  text-align: center;
  transition: transform var(--transition);
}

.person-card:hover { transform: translateY(-3px); }

.person-card__photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 8px;
  filter: grayscale(100%);
  border: 1.5px solid var(--color-border);
  transition: filter var(--transition-slow), border-color var(--transition);
  background: var(--color-surface-2);
}

.person-card:hover .person-card__photo {
  filter: grayscale(0%);
  border-color: var(--color-text-muted);
}

.person-card__name {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.3;
}

.person-card__role {
  font-size: 0.7rem;
  color: var(--color-text-faint);
  margin-top: 2px;
}

/* ============================================================
   SHARE BAR — horizontal share buttons below video player
   ============================================================ */
.share-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 14px 0;
    border-top: 1px solid var(--color-border-soft);
    border-bottom: 1px solid var(--color-border-soft);
    margin-bottom: 40px;
    margin-left: 40px;
}

.share-bar__label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #c9a84c;
    margin-right: 4px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid var(--color-border-soft);
    background: transparent;
    color: var(--color-text-muted);
    transition: background var(--transition), color var(--transition),
                border-color var(--transition);
    line-height: 1;
}

.share-btn:hover {
    border-color: var(--color-border);
    color: var(--color-white);
    background: rgba(255,255,255,0.06);
}

/* Facebook — blue on hover */
.share-btn--facebook:hover {
    background: rgba(24,119,242,0.15);
    border-color: rgba(24,119,242,0.4);
    color: #4d8fef;
}

/* Twitter/X — subtle on hover */
.share-btn--twitter:hover {
    background: rgba(255,255,255,0.08);
    border-color: var(--color-border);
    color: var(--color-white);
}

/* WhatsApp — green on hover */
.share-btn--whatsapp:hover {
    background: rgba(37,211,102,0.12);
    border-color: rgba(37,211,102,0.35);
    color: #25d366;
}

/* Copy link */
.share-btn--copy {
    font-family: var(--font-mono);
}

/* ============================================================
   VIDEO PLAYER
   ============================================================ */
.player-wrapper {
  width: 100%;
  background: #000;
  position: relative;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-deep);
}

.player-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Custom fullscreen button ────────────────────────────── */
.ctvf-fs-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(201, 168, 76, 0.6);
    border-radius: 4px;
    color: #c9a84c;
    cursor: pointer;
    z-index: 25;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* invisible = non-interactive */
}

/* Visible state — triggered by mouse/touch activity */
.ctvf-fs-btn--visible {
    opacity: 0.8;
    pointer-events: auto;
}

.ctvf-fs-btn--visible:hover {
    opacity: 1;
    background: rgba(201, 168, 76, 0.2);
    border-color: #c9a84c;
}

.ctvf-fs-btn svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Fullscreen wrapper CSS */
.player-wrapper:-webkit-full-screen,
.player-wrapper:-moz-full-screen,
.player-wrapper:fullscreen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: unset;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.player-wrapper:-webkit-full-screen video,
.player-wrapper:-moz-full-screen video,
.player-wrapper:fullscreen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.player-wrapper:-webkit-full-screen .ima-ad-container,
.player-wrapper:-moz-full-screen .ima-ad-container,
.player-wrapper:fullscreen .ima-ad-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 9999;
}

/* Custom HLS.js controls override */
.plyr--video .plyr__controls {
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

/* ============================================================
   SINGLE CONTENT PAGES
   ============================================================ */
.content-hero {
  position: relative;
  background: var(--color-surface);
}

.content-hero__backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  opacity: 0.25;
}

.content-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
}

.content-hero__poster {
  width: clamp(200px, 30vw, 360px);
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-deep);
  border: 1px solid var(--color-border);
}

.content-hero__poster--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-2);
  border-radius: var(--radius-md);
  width: clamp(200px, 30vw, 360px);
  aspect-ratio: 16/9;
  border: 1px solid var(--color-border);
}

.content-hero__info { padding-top: 8px; }

.content-hero__type {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c9a84c;
  margin-bottom: 8px;
}

.content-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.05;
  margin-bottom: 16px;
}

.content-hero__tagline {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: 20px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 24px;
}

.meta-row__item {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-text-faint);
  letter-spacing: 0.04em;
}

.meta-row__divider {
  width: 1px;
  height: 12px;
  background: var(--color-border);
}

.content-body {
  padding: clamp(40px, 6vw, 72px) 0;
}

.content-synopsis {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  max-width: 680px;
  margin-bottom: 40px;
}

/* ============================================================
   PERSON SINGLE PAGE
   ============================================================ */
.person-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: start;
  padding: clamp(40px, 6vw, 80px) var(--gutter);
}

.person-hero__photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%);
  border: 2px solid var(--color-border);
  box-shadow: var(--shadow-deep);
}

.person-bio {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--color-text-muted);
}

.person-bio p { color: var(--color-text-muted); }

/* ============================================================
   TAXONOMY / ARCHIVE PAGES
   ============================================================ */
.archive-header {
  padding: clamp(40px, 6vw, 72px) var(--gutter) 0;
  border-bottom: 1px solid var(--color-border-soft);
  margin-bottom: 40px;
}

.archive-header__label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 8px;
}

.archive-header__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 20px;
}

.archive-header__count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--color-text-faint);
  padding-bottom: 24px;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.filter-bar__label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  padding: 6px 0;
  margin-right: 8px;
  align-self: center;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--color-border-soft);
  margin: 48px 0;
}

/* ============================================================
   SEARCH
   ============================================================ */
.search-form {
  display: flex;
  gap: 0;
  margin-bottom: 48px;
}

.search-form input[type="search"] {
  flex: 1;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-right: none;
  color: var(--color-text);
  padding: 14px 20px;
  font-size: 1rem;
  outline: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.search-form input[type="search"]:focus {
  border-color: var(--color-text-muted);
}

.search-form button {
  background: var(--color-white);
  color: var(--color-bg);
  padding: 14px 24px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.search-form button:hover { background: var(--color-accent); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 48px 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  transition: var(--transition);
}

.pagination a:hover {
  border-color: var(--color-text-muted);
  color: var(--color-white);
}

.pagination .current {
  background: var(--color-white);
  border-color: var(--color-white);
  color: var(--color-bg);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--color-border-soft);
  padding: 48px 0;
  margin-top: 80px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand__logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 8px;
}

.footer-brand__tagline {
  font-size: 0.82rem;
  color: var(--color-text-faint);
  line-height: 1.6;
}

.footer-col__title {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 8px; }

.footer-col a {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--color-text); }

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-soft);
  font-size: 0.75rem;
  color: var(--color-text-faint);
}

/* ============================================================
   AD SLOTS
   ============================================================ */
.ad-slot {
  width: 100%;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-sm);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px 0;
}

.ad-slot--leaderboard { min-height: 90px; }
.ad-slot--rectangle  { min-height: 250px; max-width: 336px; }
.ad-slot--sidebar    { min-height: 600px; }

/* ============================================================
   UTILITY
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }

/* Season Tabs */
.season-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 32px;
  overflow-x: auto;
}

.season-tab {
  padding: 10px 20px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: var(--transition);
  cursor: pointer;
}

.season-tab:hover,
.season-tab.active {
  color: var(--color-white);
  border-bottom-color: var(--color-white);
}

.season-episodes { display: none; }
.season-episodes.active { display: grid; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  /* Hide desktop nav and search — replaced by mobile panel + icon */
  .site-nav            { display: none; }
  .site-header__search { display: none; }
  .mobile-header-actions { display: flex; }

  .content-hero__inner {
    grid-template-columns: 1fr;
  }
  .content-hero__poster {
    width: 100%;
  }

  .person-hero {
    grid-template-columns: 1fr;
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
  }

  .episode-card__thumb { width: 120px; }

  .hero__content { max-width: 100%; }
}

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

/* ============================================================
   LOADING STATE
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-surface-2) 50%, var(--color-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Page fade in */
.site-main {
  animation: fadeIn 0.3s ease;
}

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



/* ============================================================
   HERO POSTER THUMBNAIL (homepage featured)
   ============================================================ */
.hero__poster-thumb {
  display: none; /* hidden on mobile */
  flex-shrink: 0;
  width: clamp(160px, 18vw, 240px);
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: var(--shadow-deep);
}

.hero__poster-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 640px) {
  .hero__poster-thumb { display: block; }
}

/* ============================================================
   AD SLOT LABEL (shows when slot is empty, hides when ad loads)
   ============================================================ */
.ad-slot {
  position: relative;
}
.ad-slot:empty::after {
  content: 'Ad Placement';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

/* ============================================================
   DETAIL PAGE GRID (movie, series, short, cartoon)
   Main content + sidebar, collapses to single column on mobile
   ============================================================ */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 56px;
  align-items: start;
}

.detail-grid__main {
  min-width: 0; /* prevent overflow in grid */
}

.detail-grid__sidebar {
  min-width: 0;
}

/* Detail panel (the grey info box) */
.detail-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 24px;
}

.detail-panel__title {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 16px;
}

.detail-panel__list {
  display: grid;
  row-gap: 14px;
}

.detail-panel__row dt {
  margin-bottom: 2px;
}

.detail-panel__row dd {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* ── Mobile: stack sidebar below main content ── */
@media (max-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Move sidebar after main on mobile using order */
  .detail-grid__main   { order: 1; }
  .detail-grid__sidebar { order: 2; }

  /* Ad rectangle goes full width on mobile */
  .ad-slot--rectangle {
    max-width: 100%;
    min-height: 120px;
  }
}

/* ============================================================
   LIVE TV STRIP — full-width CTA between hero and On This Day
   ============================================================ */

.livetv-strip {
    background: #0d0d0d;
    border-top: 1px solid var(--color-border-soft);
    border-bottom: 1px solid var(--color-border-soft);
    padding: 18px var(--gutter);
}

.livetv-strip__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

/* Red live badge */
.livetv-strip__badge {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.livetv-strip__dot {
    width: 12px;
    height: 12px;
    background: #e53935;
    border-radius: 50%;
    animation: ltvstripPulse 1.4s infinite;
    flex-shrink: 0;
}

@keyframes ltvstripPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(229,57,53,0.5); }
    50%       { opacity: 0.7; box-shadow: 0 0 0 4px rgba(229,57,53,0); }
}

.livetv-strip__label {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    letter-spacing: 0.02em;
    color: #e53935;
    font-weight: 600;
    white-space: nowrap;
}

/* Channel names */
.livetv-strip__channels {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.livetv-strip__ch {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    white-space: nowrap;
}

.livetv-strip__divider {
    color: var(--color-border);
    font-size: 0.7rem;
}

/* Watch Live button */
.livetv-strip__btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    background: transparent;
    border: 1px solid #c9a84c;
    border-radius: 3px;
    color: #c9a84c;
    font-family: var(--font-display);
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    white-space: nowrap;
}

.livetv-strip__btn:hover {
    background: #c9a84c;
    color: #0d0d0d;
}

/* Mobile: stack vertically */
@media (max-width: 640px) {
    .livetv-strip__channels { display: none; }
    .livetv-strip__inner { justify-content: space-between; }
}


/* ============================================================
   ON THIS DAY — Homepage section
   ============================================================ */
.otd-section {
  padding: 56px 0 48px;
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
  margin-bottom: 64px;
  background: linear-gradient(180deg, var(--color-surface) 0%, transparent 100%);
}

.otd-header {
  margin-bottom: 28px;
}

.otd-date-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  display: block;
  margin-bottom: 6px;
}

.otd-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--color-white);
  margin: 0;
}

.otd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.otd-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.otd-card:hover {
  border-color: var(--color-border);
  transform: translateY(-3px);
}

/* Subtle left accent by type */
.otd-card--birthday::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: #c9a84c; /* warm gold for birthdays */
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.otd-card--anniversary::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--color-text-faint);
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.otd-card__icon {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 0.65rem;
  color: var(--color-text-faint);
  letter-spacing: 0.05em;
}

.otd-card__photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--color-border);
}

.otd-card__photo--placeholder {
  background: var(--color-surface-2);
}

.otd-card__body {
  min-width: 0;
}

.otd-card__heading {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 3px;
}

.otd-card--birthday .otd-card__heading { color: #c9a84c; }

.otd-card__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.otd-card__label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

.otd-card__year {
  color: var(--color-text-faint);
  margin-left: 4px;
}

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

/* ============================================================
   ON THIS DAY — additions for 7-day rolling section
   ============================================================ */

/* Day badge on homepage card (Today / Tomorrow / May 23) */
.otd-card__day-badge {
  position: absolute;
  top: 10px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

/* Landscape poster for movies (16:9 vs circular for persons) */
.otd-card__photo--landscape {
  width: 80px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

/* More link in section header */
.otd-more-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition);
}
.otd-more-link:hover { color: var(--color-white); }

/* Release type accent — blue tint */
.otd-card--release::before {
  background: #64b5f6;
}
.otd-card--release .otd-card__heading { color: #64b5f6; }

/* Outline button used under the grid */
.btn--outline {
  display: inline-block;
  padding: 10px 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color var(--transition), color var(--transition);
}
.btn--outline:hover {
  border-color: var(--color-text-muted);
  color: var(--color-white);
}

/* ============================================================
   CONTENT TYPE TABS (Movies / TV Series / Cartoons)
   ============================================================ */
.ctvf-type-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 16px 0 4px;
}

.ctvf-type-tab {
  padding: 6px 18px;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: border-color var(--transition), color var(--transition);
}

.ctvf-type-tab:hover {
  border-color: var(--color-border);
  color: var(--color-white);
}

.ctvf-type-tab.active {
  border-color: var(--color-white);
  color: var(--color-white);
  background: rgba(255,255,255,0.06);
}

/* ============================================================
   CARTOON SERIES ROWS (archive-cartoon.php)
   ============================================================ */
.cartoon-series-row {
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--color-border-soft);
}

.cartoon-series-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.cartoon-series-row__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: 20px;
}

.cartoon-series-row__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--grid-gap, 16px);
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .cartoon-series-row__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .cartoon-series-row__grid { grid-template-columns: repeat(2, 1fr); }
}

.cartoon-series-row__footer {
  text-align: right;
}

.cartoon-series-row__view-all {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  text-decoration: none;
  transition: color var(--transition);
}

.cartoon-series-row__view-all span {
  color: var(--color-text-faint);
  font-size: 0.7rem;
  opacity: 0.7;
}

.cartoon-series-row__view-all:hover {
  color: var(--color-white);
}

/* ============================================================
   IMA AD CONTAINER
   ============================================================ */
.ima-ad-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 10;
  pointer-events: none; /* transparent until ad plays */
}

/* ============================================================
   BLOG — single.php + home.php
   ============================================================ */

/* ── Post Hero ─────────────────────────────────────────── */
.post-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(48px,8vw,96px) 0 clamp(40px,6vw,72px);
  border-bottom: 1px solid var(--color-border-soft);
}

.post-hero__backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(4px);
  transform: scale(1.06);
  opacity: 0.18;
}

.post-hero__backdrop-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(10,10,10,.6) 0%,
    rgba(10,10,10,.95) 100%);
}

.post-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.post-hero__breadcrumb {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  margin-bottom: 20px;
}

.post-hero__breadcrumb a {
  color: var(--color-text-faint);
  text-decoration: none;
  transition: color var(--transition);
}
.post-hero__breadcrumb a:hover { color: var(--color-white); }

.post-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem,4vw,3rem);
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.25;
  margin-bottom: 20px;
}

.post-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: .82rem;
  color: var(--color-text-muted);
}

/* ── Post Content ──────────────────────────────────────── */
.post-content {
  padding: clamp(40px,6vw,72px) 0;
}

/* Narrow prose wrapper for non-page-builder posts */
.post-content__prose {
  max-width: 720px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--color-text-muted);
}

.post-content__prose h2,
.post-content__prose h3,
.post-content__prose h4 {
  font-family: var(--font-display);
  color: var(--color-white);
  margin: 2em 0 .6em;
}

.post-content__prose p   { margin-bottom: 1.4em; }
.post-content__prose img { max-width: 100%; border-radius: var(--radius-sm); }
.post-content__prose a   { color: var(--color-white); text-decoration: underline; }
.post-content__prose blockquote {
  border-left: 3px solid var(--color-border);
  padding-left: 20px;
  margin: 1.5em 0;
  color: var(--color-text-faint);
  font-style: italic;
}

.post-content__tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border-soft);
}

/* ── Prev / Next post nav ──────────────────────────────── */
.post-nav {
  border-top: 1px solid var(--color-border-soft);
  padding: 32px 0 48px;
}

.post-nav__inner {
  display: flex;
  gap: 24px;
  justify-content: space-between;
}

.post-nav__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  max-width: 45%;
  padding: 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  transition: border-color var(--transition);
}
.post-nav__item:hover { border-color: var(--color-border); }
.post-nav__item--next { text-align: right; margin-left: auto; }

.post-nav__label {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}

.post-nav__title {
  font-family: var(--font-display);
  font-size: .95rem;
  color: var(--color-white);
  line-height: 1.3;
}

/* ── Blog listing grid ─────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition-slow);
}

.blog-card:hover {
  border-color: var(--color-border);
  transform: translateY(-3px);
}

.blog-card__thumb-link { display: block; }

.blog-card__thumb {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.blog-card__thumb--placeholder {
  background: var(--color-surface-2);
}

.blog-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__cats {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.blog-card__cat {
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  text-decoration: none;
  transition: color var(--transition);
}
.blog-card__cat:hover { color: var(--color-white); }

.blog-card__title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 10px;
}

.blog-card__title a {
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--transition);
}
.blog-card__title a:hover { color: var(--color-text-muted); }

.blog-card__excerpt {
  font-size: .88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  color: var(--color-text-faint);
  margin-bottom: 14px;
}

.blog-card__read-more {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  text-decoration: none;
  transition: color var(--transition);
}
.blog-card__read-more:hover { color: var(--color-white); }

@media (max-width: 640px) {
  .blog-grid { grid-template-columns: 1fr; }
  .post-nav__inner { flex-direction: column; }
  .post-nav__item { max-width: 100%; }
}

/* ============================================================
   FOOTER MENU (Terms, Privacy, etc.)
   Appears between the 3-column grid and the copyright line.
   Managed at Appearance → Menus → Footer Navigation.
   ============================================================ */
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--color-border-soft);
  margin-top: 32px;
}

.footer-menu a {
  font-size: 0.78rem;
  color: var(--color-text-faint);
  text-decoration: none;
  padding: 4px 14px;
  transition: color var(--transition);
  border-right: 1px solid var(--color-border-soft);
  line-height: 1;
}

.footer-menu a:first-child { padding-left: 0; }
.footer-menu a:last-child  { border-right: none; }
.footer-menu a:hover       { color: var(--color-white); }

@media (max-width: 640px) {
  .footer-menu { gap: 8px; }
  .footer-menu a { border-right: none; padding: 4px 10px; }
  .footer-menu a:first-child { padding-left: 10px; }
}

/* ============================================================
   HOME SHELVES — horizontal carousel rows
   ============================================================ */

/* Wrapper for all shelf rows */
.home-shelves {
    padding-bottom: clamp(40px, 6vw, 80px);
}

/* Individual shelf row */
.shelf {
    margin-bottom: clamp(32px, 5vw, 56px);
    /* No overflow here — clipping is handled by .shelf__track-wrap */
}

/* Row header: title + View All link */
.shelf__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.shelf__title {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 600;
    color: var(--color-white);
    margin: 0;
    letter-spacing: 0.01em;
}

.shelf__view-all {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gold, #c9a84c);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity var(--transition);
}

.shelf__view-all:hover { opacity: 0.75; }

/* Track wrapper: clips the scroll track and positions the arrow buttons */
.shelf__track-wrap {
    position: relative;
    overflow: hidden;          /* clips track content cleanly at this level */
}

/* Scrollable track — full bleed, pads to align with container */
.shelf__track {
    display: flex;
    gap: 14px;
    overflow-x: auto;          /* horizontal scroll only */
    scroll-snap-type: x mandatory;
    scrollbar-width: none;           /* Firefox */
    -ms-overflow-style: none;        /* IE/Edge */
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    padding-bottom: 12px;            /* room for box-shadow */
}

.shelf__track::-webkit-scrollbar { display: none; }

/* ── Arrow buttons ── */
.shelf__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(calc(-50% - 6px)); /* adjust for bottom padding */
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 72px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: var(--color-white);
    cursor: pointer;
    transition: background var(--transition), opacity var(--transition),
                border-color var(--transition);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.shelf__arrow:hover {
    background: rgba(0, 0, 0, 0.92);
    border-color: rgba(255, 255, 255, 0.35);
}

.shelf__arrow--prev { left: 0; }
.shelf__arrow--next { right: 0; }

.shelf__arrow.is-hidden {
    opacity: 0;
    pointer-events: none;
}

/* Hide arrows on touch/mobile */
@media (hover: none), (max-width: 768px) {
    .shelf__arrow { display: none; }
}

/* ── Shelf card item ── */
.shelf-item {
    flex: 0 0 auto;
    scroll-snap-align: start;
    position: relative;
}

/* Landscape: 16:9 */
.shelf-item--landscape {
    width: clamp(200px, 22vw, 280px);
}

/* Portrait: 2:3 */
.shelf-item--portrait {
    width: clamp(140px, 15vw, 196px);
}

/* The card itself */
.shelf-card {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: var(--color-surface);
}

.shelf-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Image wrapper — maintains aspect ratio */
.shelf-item--landscape .shelf-card__img-wrap {
    aspect-ratio: 16 / 9;
}

.shelf-item--portrait .shelf-card__img-wrap {
    aspect-ratio: 2 / 3;
}

.shelf-card__img-wrap {
    position: relative;
    overflow: hidden;
    background: #111;
}

.shelf-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.shelf-card:hover .shelf-card__img {
    transform: scale(1.04);
}

/* Placeholder when no image */
.shelf-card__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-border);
}

/* Gradient overlay — reveals on hover for legibility */
.shelf-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 40%,
        rgba(0, 0, 0, 0.25) 70%,
        rgba(0, 0, 0, 0.75) 100%
    );
    transition: opacity 0.3s;
}

/* Type badge top-left */
.shelf-card__type-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-white);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 3px;
    padding: 2px 6px;
    line-height: 1.5;
    backdrop-filter: blur(4px);
}

/* Title + year footer */
.shelf-card__footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px 10px 8px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.85));
}

.shelf-card__title {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shelf-card__meta {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 2px;
}

/* Heart button on shelf card */
.shelf-card__heart {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-white);
    transition: background var(--transition), color var(--transition),
                border-color var(--transition);
    padding: 0;
    opacity: 0;
    transition: opacity 0.2s;
}

.shelf-item:hover .shelf-card__heart,
.shelf-card__heart.is-active {
    opacity: 1;
    pointer-events: auto;
}

.shelf-card__heart.is-active {
    color: var(--color-accent, #e53935);
    border-color: var(--color-accent, #e53935);
    background: rgba(229, 57, 53, 0.15);
}

.shelf-card__heart:hover {
    background: rgba(0,0,0,0.8);
}

/* Responsive card widths */
@media (max-width: 1024px) {
    .shelf-item--landscape { width: clamp(180px, 26vw, 240px); }
    .shelf-item--portrait  { width: clamp(130px, 18vw, 172px); }
}

@media (max-width: 600px) {
    .shelf__track { gap: 10px; }
    /* Show ~2.3 cards on mobile to hint at scrollability */
    .shelf-item--landscape { width: calc(43vw); }
    .shelf-item--portrait  { width: calc(32vw); }
    .shelf__title { font-size: 1rem; }
}

/* ============================================================
   WATCHLIST — heart button on cards + watchlist page
   ============================================================ */

/* Heart button — sits top-right of the poster thumbnail */
.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(4px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: color .2s, background .2s, transform .15s;
  padding: 0;
  /* Hidden by default, shown on card hover or when active */
  opacity: 0;
  pointer-events: none;
}

.poster-card:hover .fav-btn,
.fav-btn.active {
  opacity: 1;
  pointer-events: auto;
}

/* On touch devices always show */
@media (hover: none) {
  .fav-btn { opacity: 1; pointer-events: auto; }
}

.fav-btn:hover {
  background: rgba(10,10,10,0.92);
  transform: scale(1.1);
  color: #fff;
}

/* SVG path visibility */
.fav-heart-fill    { display: none; }
.fav-heart-outline { display: block; }

/* Active (saved) state — show filled red heart */
.fav-btn.active {
  color: #e05252;
}
.fav-btn.active .fav-heart-fill    { display: block; }
.fav-btn.active .fav-heart-outline { display: none; }

.fav-btn.active:hover { color: #c94444; }

/* Watchlist empty state */
.watchlist-empty {
  text-align: center;
  color: var(--color-text-muted);
  padding: 48px 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

/* ============================================================
   SITE REVIEWS — dark theme overrides
   Forces the plugin's white form/cards to match the dark theme.
   ============================================================ */

.ctvf-reviews-section {
  padding: clamp(40px,6vw,72px) 0;
  border-top: 1px solid var(--color-border-soft);
  margin-top: 0;
}

.ctvf-reviews__heading {
  font-family: var(--font-display);
  font-size: clamp(1.3rem,2.5vw,1.8rem);
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: 24px;
}

/* ── Summary (star average bar) ─────────────────────────── */
.glsr-summary {
  background: transparent !important;
  border: none !important;
  padding: 0 0 24px !important;
  margin-bottom: 8px !important;
}

.glsr-summary .glsr-star-rating {
  color: #c9a84c !important;
}

.glsr-summary .glsr-rating {
  color: var(--color-white) !important;
  font-family: var(--font-display) !important;
  font-size: 2.4rem !important;
  font-weight: 400 !important;
}

.glsr-summary .glsr-rating-count {
  color: var(--color-text-muted) !important;
  font-size: 0.85rem !important;
}

/* ── Individual review cards ────────────────────────────── */
.glsr-review {
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border-soft) !important;
  border-radius: var(--radius-md) !important;
  padding: 20px !important;
  margin-bottom: 12px !important;
}

.glsr-review .glsr-review-title {
  color: var(--color-white) !important;
  font-family: var(--font-display) !important;
}

.glsr-review .glsr-review-content {
  color: var(--color-text-muted) !important;
  line-height: 1.7 !important;
}

.glsr-review .glsr-review-author {
  color: var(--color-text-faint) !important;
  font-size: 0.82rem !important;
}

.glsr-review .glsr-star-rating {
  color: #c9a84c !important;
}

.glsr-review .glsr-avatar img {
  border-radius: 50% !important;
  border: 1px solid var(--color-border-soft) !important;
}

/* ── Review form ────────────────────────────────────────── */
.glsr-review-form {
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border-soft) !important;
  border-radius: var(--radius-md) !important;
  padding: 24px !important;
  margin-top: 20px !important;
}

.glsr-review-form .glsr-field label {
  color: var(--color-text-muted) !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.04em !important;
  margin-bottom: 6px !important;
  display: block !important;
}

.glsr-review-form input[type="text"],
.glsr-review-form input[type="email"],
.glsr-review-form textarea {
  background: var(--color-background-primary, #0a0a0a) !important;
  border: 1px solid var(--color-border-soft) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--color-white) !important;
  padding: 10px 14px !important;
  font-family: var(--font-sans) !important;
  font-size: 0.9rem !important;
  width: 100% !important;
  transition: border-color 0.2s !important;
}

.glsr-review-form input:focus,
.glsr-review-form textarea:focus {
  border-color: var(--color-border) !important;
  outline: none !important;
}

.glsr-review-form textarea {
  min-height: 100px !important;
  resize: vertical !important;
}

/* Star rating selector in form */
.glsr-review-form .glsr-star-rating {
  color: #c9a84c !important;
  font-size: 1.8rem !important;
  cursor: pointer !important;
}

.glsr-review-form .glsr-star-rating .glsr-star {
  color: var(--color-border) !important;
  transition: color 0.15s !important;
}

.glsr-review-form .glsr-star-rating .glsr-star.glsr-star--filled,
.glsr-review-form .glsr-star-rating:hover .glsr-star {
  color: #c9a84c !important;
}

/* Submit button */
.glsr-review-form button[type="submit"],
.glsr-review-form input[type="submit"] {
  background: transparent !important;
  border: 1px solid var(--color-border) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--color-white) !important;
  font-family: var(--font-mono) !important;
  font-size: 0.78rem !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  padding: 10px 28px !important;
  cursor: pointer !important;
  transition: background 0.2s, border-color 0.2s !important;
  margin-top: 8px !important;
}

.glsr-review-form button[type="submit"]:hover {
  background: var(--color-border) !important;
}

/* "No reviews yet" fallback text */
.glsr-reviews-fallback {
  color: var(--color-text-faint) !important;
  font-style: italic !important;
  padding: 16px 0 !important;
}

/* Pagination */
.glsr-pagination .page-numbers {
  color: var(--color-text-muted) !important;
  border: 1px solid var(--color-border-soft) !important;
  border-radius: var(--radius-sm) !important;
  padding: 4px 10px !important;
  text-decoration: none !important;
  transition: border-color 0.2s !important;
}

.glsr-pagination .page-numbers.current,
.glsr-pagination .page-numbers:hover {
  border-color: var(--color-border) !important;
  color: var(--color-white) !important;
}

/* Login prompt for guests */
.glsr-review-form .glsr-must-login {
  color: var(--color-text-muted) !important;
  font-size: 0.88rem !important;
  padding: 16px !important;
  text-align: center !important;
  background: var(--color-surface) !important;
  border: 1px solid var(--color-border-soft) !important;
  border-radius: var(--radius-md) !important;
}

.glsr-review-form .glsr-must-login a {
  color: var(--color-white) !important;
  text-decoration: underline !important;
}

/* ── Hero poster watchlist button ──────────────────────────── */
.content-hero__poster-wrap {
  position: relative;
  display: inline-block;
}

/* Always visible on the hero poster (no hover required) */
.content-hero__poster-wrap .fav-btn,
.hero-fav-btn {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Slightly larger on the hero since the poster is bigger */
.content-hero__poster-wrap .fav-btn {
  width: 38px;
  height: 38px;
  top: 10px;
  right: 10px;
}

/* ============================================================
   SIGN-IN PAGE — template-signin.php
   ============================================================ */
.signin-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.signin-card {
  width: 100%;
  max-width: 420px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: clamp(28px,5vw,48px);
}

.signin-logo {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-white);
  text-decoration: none;
  text-align: center;
  margin-bottom: 28px;
}

/* Mode tabs */
.signin-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border-soft);
  margin-bottom: 24px;
}

.signin-tab {
  flex: 1;
  text-align: center;
  padding: 10px;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
}

.signin-tab.active {
  color: var(--color-white);
  border-bottom-color: var(--color-white);
}

.signin-tab:hover:not(.active) { color: var(--color-text-muted); }

/* Error */
.signin-error {
  background: rgba(229,72,72,.12);
  border: 1px solid rgba(229,72,72,.3);
  border-radius: var(--radius-sm);
  color: #e54848;
  font-size: .85rem;
  padding: 10px 14px;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Social buttons from Nextend */
.signin-social {
  margin-bottom: 16px;
}

.signin-social .nextend-social-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.signin-social .nextend-social-login a,
.signin-social .nextend-social-login button {
  width: 100% !important;
  justify-content: center !important;
  border-radius: var(--radius-sm) !important;
  height: 44px !important;
}

/* Divider */
.signin-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--color-text-faint);
  font-size: .78rem;
}

.signin-divider::before,
.signin-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border-soft);
}

/* Form fields */
.signin-field {
  margin-bottom: 16px;
}

.signin-field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: .78rem;
  color: var(--color-text-muted);
  margin-bottom: 6px;
  letter-spacing: .04em;
}

.signin-forgot {
  font-size: .72rem;
  color: var(--color-text-faint);
  text-decoration: none;
  transition: color var(--transition);
}
.signin-forgot:hover { color: var(--color-white); }

.signin-field input {
  width: 100%;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: .9rem;
  transition: border-color var(--transition);
  box-sizing: border-box;
}

.signin-field input:focus {
  border-color: var(--color-border);
  outline: none;
  background: rgba(255,255,255,.06);
}

.signin-field input::placeholder { color: var(--color-text-faint); }

/* Submit button */
.signin-submit {
  width: 100%;
  background: var(--color-white);
  color: #0a0a0a;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
  transition: opacity var(--transition);
}

.signin-submit:hover { opacity: .88; }

/* Legal / switch */
.signin-legal {
  font-size: .72rem;
  color: var(--color-text-faint);
  text-align: center;
  line-height: 1.6;
  margin-top: 14px;
}

.signin-legal a {
  color: var(--color-text-muted);
  text-decoration: underline;
}

.signin-switch {
  text-align: center;
  font-size: .82rem;
  color: var(--color-text-faint);
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border-soft);
}

.signin-switch a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
  transition: opacity var(--transition);
}
.signin-switch a:hover { opacity: .75; }

/* ============================================================
   GUEST LOGIN PROMPT — shown on film pages for non-members
   ============================================================ */
.ctvf-login-prompt {
  text-align: center;
  padding: clamp(40px,6vw,64px) 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  max-width: 460px;
  margin: 0 auto;
}

.ctvf-login-prompt__icon {
  font-size: 2.2rem;
  color: var(--color-border);
  margin-bottom: 16px;
}

.ctvf-login-prompt__heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-white);
  margin-bottom: 8px;
}

.ctvf-login-prompt__sub {
  font-size: .88rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.ctvf-login-prompt__social {
  margin-bottom: 12px;
}

.ctvf-login-prompt__social .nextend-social-login {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ctvf-login-prompt__social .nextend-social-login a,
.ctvf-login-prompt__social .nextend-social-login button {
  width: 100% !important;
  justify-content: center !important;
  border-radius: var(--radius-sm) !important;
}

.ctvf-login-prompt__divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  font-size: .72rem;
  color: var(--color-text-faint);
}

.ctvf-login-prompt__divider::before,
.ctvf-login-prompt__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-border-soft);
}

.ctvf-login-prompt__email-btn {
  display: block;
  padding: 11px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-white);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: background var(--transition), border-color var(--transition);
}

.ctvf-login-prompt__email-btn:hover {
  background: var(--color-border-soft);
}

.ctvf-login-prompt__register {
  font-size: .8rem;
  color: var(--color-text-faint);
  margin-top: 16px;
}

.ctvf-login-prompt__register a {
  color: var(--color-text-muted);
  text-decoration: underline;
  transition: color var(--transition);
}

.ctvf-login-prompt__register a:hover { color: var(--color-white); }

/* ============================================================
   HERO SLIDER — pre-rendered slides, CSS crossfade
   ============================================================ */

/* ── Hero Slider — CSS Grid stacking ──────────────────────────
   All slides share the same grid cell so they overlay perfectly.
   Grid height = tallest slide. No position:absolute hacks needed.
   ────────────────────────────────────────────────────────────── */
.hero--featured {
    display: grid !important; /* override base flex */
    position: relative;
    overflow: hidden;
}

/* All slides in the same grid cell — stack on top of each other */
.hero-slide {
    grid-column: 1;
    grid-row: 1;
    position: relative;   /* containing block for .hero__bg */
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
    min-height: 360px;    /* fallback if no content */
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* Backdrop covers the full slide (which stretches to grid row height) */
.hero-slide .hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.65); /* dim bright backdrops for readability */
    z-index: 0;
}

/* No directional overlay — subtle uniform dark tint instead */
.hero-slide .hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: rgba(0,0,0,0.25);
}

/* Content above backdrop */
.hero-slide .container {
    position: relative;
    z-index: 2;
}

/* Poster sizing — enforce 16:9 box, cover-crop all image types consistently */
.hero__featured-poster-wrap {
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
}

/* Dot container */
.hero-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

/* Individual dot */
.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.5);
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.hero-dot.active {
    background: var(--color-white);
    border-color: var(--color-white);
    transform: scale(1.2);
}

.hero-dot:hover:not(.active) {
    background: rgba(255,255,255,0.4);
    border-color: rgba(255,255,255,0.8);
}



/* ── Footer Roku badge ───────────────────────────────────────── */
.footer-roku {
    text-align: center;
    padding: 40px 0 32px;
    margin-bottom: 0;
}

.footer-roku__badge {
    height: 48px;
    width: auto;
    display: inline-block;
    transition: opacity var(--transition);
}

.footer-roku__link:hover .footer-roku__badge {
    opacity: 0.8;
}

.footer-roku__label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-faint);
    margin-top: 10px;
}

/* ── Footer Promo Blocks ── */
.footer-promo-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    padding: 28px 0 32px;
    border-top: 1px solid var(--color-border-soft);
    border-bottom: 1px solid var(--color-border-soft);
    margin-bottom: 40px;
    align-items: center;
    justify-items: center;
}

.footer-promo-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    width: 100%;
}

.footer-promo-block__link {
    display: inline-block;
    transition: opacity var(--transition);
}

.footer-promo-block__link:hover {
    opacity: 0.75;
}

.footer-promo-block__img {
    max-width: 250px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.footer-promo-block__label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-faint);
    margin: 0;
}

@media (max-width: 600px) {
    .footer-promo-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ============================================================
   MY ACCOUNT PAGE — tabs + review cards
   ============================================================ */

/* ── Tab navigation ─────────────────────────────────────────── */
.account-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--color-border-soft);
    margin-bottom: 40px;
}

.account-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-faint);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color var(--transition), border-color var(--transition);
}

.account-tab:hover { color: var(--color-text-muted); }

.account-tab.active {
    color: var(--color-white);
    border-bottom-color: var(--color-white);
}

.account-tab__count {
    background: var(--color-border-soft);
    color: var(--color-text-muted);
    font-size: 0.7rem;
    padding: 2px 7px;
    border-radius: 20px;
    font-family: var(--font-sans);
    letter-spacing: 0;
}

.account-tab.active .account-tab__count {
    background: rgba(255,255,255,0.15);
    color: var(--color-white);
}

/* ── Review cards ───────────────────────────────────────────── */
.account-reviews {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.account-review-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--radius-md);
    padding: 20px;
    align-items: start;
    transition: border-color var(--transition);
}

.account-review-card:hover {
    border-color: var(--color-border);
}

.account-review-card__poster-link {
    display: block;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.account-review-card__poster {
    width: 120px;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-sm);
}

.account-review-card__body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.account-review-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.account-review-card__pending {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #c9a84c;
    background: rgba(201,168,76,0.12);
    padding: 2px 8px;
    border-radius: 3px;
}

.account-review-card__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--color-white);
    text-decoration: none;
    line-height: 1.3;
    transition: opacity var(--transition);
}

.account-review-card__title:hover { opacity: 0.75; }

.account-review-card__stars {
    display: flex;
    gap: 2px;
    margin: 2px 0;
}

.account-review-card__star {
    color: var(--color-border);
    font-size: 1rem;
}

.account-review-card__star.filled {
    color: #c9a84c;
}

.account-review-card__content {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0;
}

.account-review-card__date {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--color-text-faint);
    letter-spacing: 0.04em;
    margin-top: 4px;
}

.account-review-card__link {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    text-decoration: none;
    text-transform: uppercase;
    transition: color var(--transition);
    align-self: flex-start;
}

.account-review-card__link:hover { color: var(--color-white); }

@media (max-width: 480px) {
    .account-review-card {
        grid-template-columns: 80px 1fr;
        gap: 14px;
        padding: 16px;
    }
    .account-review-card__poster { width: 80px; }
    .account-tab { padding: 12px 16px; font-size: 0.7rem; }
}

/* ============================================================
   ACCOUNT SETTINGS TAB
   ============================================================ */

.account-settings__notice {
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.account-settings__notice p { margin: 4px 0; }

.account-settings__notice--ok {
    background: rgba(76,175,80,0.1);
    border: 1px solid rgba(76,175,80,0.4);
    color: #4caf50;
}

.account-settings__notice--err {
    background: rgba(244,67,54,0.1);
    border: 1px solid rgba(244,67,54,0.4);
    color: #f44336;
}

.account-settings__form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.account-settings__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.account-settings__field label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.account-settings__field input {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 5px;
    color: var(--color-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 10px 14px;
    width: 100%;
    transition: border-color var(--transition);
}

.account-settings__field input:focus {
    outline: none;
    border-color: var(--color-gold, #c9a84c);
    box-shadow: 0 0 0 2px rgba(201,168,76,0.12);
}

.account-settings__hint {
    font-size: 0.78rem;
    color: var(--color-text-faint);
    margin: 0;
}

.account-settings__divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 8px 0 4px;
}

.account-settings__section-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin: 0 0 4px;
}


/* ============================================================
   SCROLL TO TOP BUTTON
   ============================================================ */

.scroll-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 42px;
    height: 42px;
    background: rgba(20, 20, 20, 0.85);
    border: 1px solid #c9a84c;
    border-radius: 50%;
    color: #c9a84c;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s, background 0.2s;
}

.scroll-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: #c9a84c;
    color: #0d0d0d;
}

@media (max-width: 480px) {
    .scroll-top { bottom: 16px; right: 16px; width: 38px; height: 38px; }
}

/* ============================================================
   FOOTER NEWSLETTER FORM
   ============================================================ */

.footer-newsletter {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border-soft);
}

.footer-newsletter__heading {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #c9a84c;
    margin: 0 0 4px;
}

.footer-newsletter__sub {
    font-size: 0.8rem;
    color: var(--color-text-faint);
    margin: 0 0 12px;
    line-height: 1.4;
}

.footer-newsletter__row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-newsletter__input {
    flex: 1;
    min-width: 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--color-border);
    border-radius: 3px;
    color: var(--color-white);
    font-size: 0.82rem;
    padding: 9px 12px;
    font-family: var(--font-body);
    transition: border-color var(--transition);
}

.footer-newsletter__input::placeholder { color: var(--color-text-faint); }

.footer-newsletter__input:focus {
    outline: none;
    border-color: #c9a84c;
}

.footer-newsletter__btn {
    flex-shrink: 0;
    background: #c9a84c;
    border: none;
    border-radius: 3px;
    color: #0d0d0d;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 9px 18px;
    cursor: pointer;
    transition: background var(--transition);
}

.footer-newsletter__btn:hover { background: #b8973e; }
.footer-newsletter__btn:disabled { opacity: 0.6; cursor: default; }

.footer-newsletter__msg {
    margin: 10px 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
}

.footer-newsletter__msg--ok { color: #4caf50; }
.footer-newsletter__msg--err { color: #ef5350; }


/* ============================================================
   MEMBERSHIP POP-UP
   ============================================================ */

.ctvf-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}

.ctvf-popup-overlay--visible {
    opacity: 1;
    pointer-events: auto;
}

.ctvf-popup {
    position: relative;
    background: #141414;
    border: 1px solid #2d2d2d;
    border-radius: 10px;
    box-shadow: 0 24px 80px rgba(0,0,0,0.7);
    max-width: 480px;
    width: 100%;
    padding: 48px 40px 36px;
    text-align: center;
    transform: translateY(16px);
    transition: transform 0.3s;
}

.ctvf-popup-overlay--visible .ctvf-popup { transform: translateY(0); }

.ctvf-popup__close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: transparent;
    border: none;
    color: var(--color-text-faint);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: color var(--transition);
}

.ctvf-popup__close:hover { color: var(--color-white); }

.ctvf-popup__icon {
    font-size: 2.2rem;
    margin-bottom: 14px;
    display: block;
}

.ctvf-popup__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-white);
    margin: 0 0 14px;
    line-height: 1.15;
}

.ctvf-popup__body {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0 0 28px;
}

.ctvf-popup__cta {
    display: block;
    background: #c9a84c;
    color: #0d0d0d;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 4px;
    margin-bottom: 12px;
    transition: background var(--transition);
}

.ctvf-popup__cta:hover { background: #b8973e; }

.ctvf-popup__skip {
    background: transparent;
    border: none;
    color: var(--color-text-faint);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px 8px;
    transition: color var(--transition);
    display: block;
    width: 100%;
    margin-bottom: 20px;
}

.ctvf-popup__skip:hover { color: var(--color-text-muted); }

.ctvf-popup__signin {
    font-size: 0.78rem;
    color: var(--color-text-faint);
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid var(--color-border-soft);
}

.ctvf-popup__signin a {
    color: #c9a84c;
    text-decoration: none;
}

.ctvf-popup__signin a:hover { text-decoration: underline; }

@media (max-width: 480px) {
    .ctvf-popup { padding: 40px 24px 28px; }
}


/* ============================================================
   AD BLOCKER DETECTION MODAL
   ============================================================ */

.ctvf-ab-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}

.ctvf-ab-modal {
    background: #1a1a1a;
    border: 1px solid rgba(201, 168, 76, 0.35);
    border-radius: 12px;
    padding: 40px 36px 32px;
    max-width: 540px;
    width: 100%;
    margin: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.ctvf-ab-header {
    text-align: center;
    margin-bottom: 20px;
}

.ctvf-ab-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 8px;
}

.ctvf-ab-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #c9a84c;
    margin: 0;
    line-height: 1.2;
}

.ctvf-ab-body {
    color: #c0c0c0;
    font-size: 0.95rem;
    line-height: 1.65;
    margin: 0 0 12px;
}

.ctvf-ab-body strong {
    color: #e0e0e0;
}

.ctvf-ab-ask {
    color: #a0a0a0;
    font-size: 0.88rem;
    margin-bottom: 20px;
}

/* ── Buttons ── */
.ctvf-ab-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 12px;
    border: none;
    letter-spacing: 0.02em;
}

.ctvf-ab-btn--primary {
    background: #c9a84c;
    color: #0d0d0d;
}

.ctvf-ab-btn--primary:hover {
    background: #d4b55a;
    transform: translateY(-1px);
}

.ctvf-ab-btn--secondary {
    background: transparent;
    color: #c9a84c;
    border: 1.5px solid #c9a84c;
}

.ctvf-ab-btn--secondary:hover {
    background: rgba(201, 168, 76, 0.1);
    transform: translateY(-1px);
}

/* ── Whitelist tip ── */
.ctvf-ab-tip {
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 6px;
    padding: 12px 16px;
    color: #c0c0c0;
    font-size: 0.88rem;
    line-height: 1.6;
    margin-top: -4px;
    margin-bottom: 14px;
}

.ctvf-ab-tip strong { color: #c9a84c; }
.ctvf-ab-tip em { color: #e0e0e0; font-style: normal; font-weight: 600; }

/* ── Email/Account section ── */
.ctvf-ab-email-wrap {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
    margin-top: 4px;
}

.ctvf-ab-email-label {
    color: #c0c0c0;
    font-size: 0.9rem;
    margin: 0 0 10px;
}

.ctvf-ab-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ctvf-ab-email-row {
    display: flex;
    gap: 8px;
}

.ctvf-ab-pw-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ctvf-ab-pw-input {
    flex: 1;
    padding-right: 44px !important;
}

.ctvf-ab-pw-toggle {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #777;
    padding: 4px;
    line-height: 1;
}

.ctvf-ab-email-input {
    width: 100%;
    background: #111;
    border: 1px solid rgba(201, 168, 76, 0.4);
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 0.9rem;
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.ctvf-ab-email-input:focus {
    border-color: #c9a84c;
}

.ctvf-ab-email-input::placeholder {
    color: #555;
}

.ctvf-ab-fine-print {
    color: #666;
    font-size: 0.78rem;
    margin: 4px 0 0;
    line-height: 1.4;
}

.ctvf-ab-email-msg {
    font-size: 0.88rem;
    margin: 8px 0 0;
    line-height: 1.4;
}

/* ── Sign In ── */
.ctvf-ab-signin {
    text-align: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.ctvf-ab-signin-link {
    color: #777;
    font-size: 0.85rem;
    text-decoration: underline;
    transition: color 0.2s;
}

.ctvf-ab-signin-link:hover {
    color: #c9a84c;
}

/* ── Mobile ── */
@media (max-width: 480px) {
    .ctvf-ab-modal {
        padding: 28px 20px 24px;
    }

    .ctvf-ab-title {
        font-size: 1.4rem;
    }

    .ctvf-ab-email-row {
        flex-direction: column;
    }

    .ctvf-ab-btn--email {
        width: 100%;
    }
}


/* ============================================================
   YOUTUBE MOVIE STYLES
   ============================================================ */

/* ── YouTube badge variant ── */
.badge--youtube {
    background: rgba(255, 0, 0, 0.15) !important;
    border-color: rgba(255, 80, 80, 0.7) !important;
    color: #ff6b6b !important;
}

/* ── YouTube poster/thumbnail ── */
.yt-poster {
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    position: relative;
    background: #111 center/cover no-repeat;
    border-radius: var(--radius-lg, 8px);
    overflow: hidden;
    cursor: pointer;
}

.yt-poster::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    transition: background 0.2s;
}

.yt-poster:hover::after {
    background: rgba(0, 0, 0, 0.2);
}

.yt-poster__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    z-index: 2;
    width: 80px;
    height: 80px;
    transition: transform 0.2s;
}

.yt-poster:hover .yt-poster__play {
    transform: translate(-50%, -60%) scale(1.1);
}

.yt-poster__label {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: #c9a84c;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    background: rgba(0,0,0,0.6);
    padding: 4px 12px;
    border-radius: 4px;
    border: 1px solid rgba(201,168,76,0.4);
}

/* ── YouTube iframe wrapper ── */
.player-wrapper--youtube {
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-lg, 8px);
    overflow: hidden;
}
