/* ═══════════════════════════════════════════════
   MCU Timeline — Odeon Cinematic Scroll
   ═══════════════════════════════════════════════ */

/* ── Variables ── */
.mcu-page {
  --mcu-text: #f4eee7;
  --mcu-muted: #c3b5a7;
  --mcu-accent: #d7392f;
  --mcu-accent-soft: rgba(215, 57, 47, 0.18);
  --mcu-glow: rgba(215, 57, 47, 0.35);
  --mcu-bg: transparent; /* Changed to transparent to see video */
}

/* --- INTRO OVERLAY --- */
.mcu-intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 1s ease-out, visibility 1s;
}

.mcu-intro-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.mcu-intro-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 1200px;
}

.mcu-intro-controls {
  position: absolute;
  bottom: 40px;
  right: 40px;
  display: flex;
  gap: 15px;
}

.mcu-unmute-btn,
.mcu-skip-intro {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 10px 24px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.mcu-unmute-btn:hover,
.mcu-skip-intro:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

/* --- PAGE STRUCTURE --- */
.mcu-page {
  background: #08080a; /* Fallback */
}
/* When video is present, the page itself should be transparent */
body.mcu-page {
  background-color: #08080a;
}

/* ── Ambient glow overlay ── */
.mcu-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 15%, var(--mcu-accent-soft), transparent 28%),
    linear-gradient(180deg, rgba(5,5,7,0.24) 0%, rgba(7,7,10,0.54) 58%, rgba(5,5,7,0.78) 100%);
  transition: background 0.6s ease;
  z-index: -1; /* Move behind content */
}

/* ── Subtle grid texture ── */
.mcu-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.016) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.1;
  z-index: -1; /* Move behind content */
}

/* ── Video background ── */
.mcu-video-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -5;
}

.mcu-video-dim {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7,7,10,0.2), rgba(7,7,10,0.48)),
    radial-gradient(circle at center, transparent 0%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
  z-index: -2;
  transition: background 0.6s ease;
}

/* ── Chapter backdrop (TMDB images) ── */
.mcu-chapter-backdrop {
  position: fixed;
  inset: 0;
  z-index: -4;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 1.5s ease-out;
  pointer-events: none;
  filter: saturate(1.1) brightness(0.9);
}

.mcu-chapter-backdrop.active {
  opacity: 1;
  transform: scale(1);
}

/* ── Page content layer ── */
.mcu-page-content {
  position: relative;
  z-index: 1;
}

/* ── Override Odeon nav on MCU page ── */
.mcu-page .nav {
  border-top-color: #d7392f;
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.mcu-hero {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 0 20px;
}

.mcu-hero-inner {
  width: min(1300px, 100%);
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 26px;
  text-align: center;
}

.mcu-hero-title {
  width: min(1200px, 94vw);
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  animation: mcuHeroIn 1.2s ease forwards;
}

@keyframes mcuHeroIn {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.mcu-hero-arrow {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 4px;
  color: rgba(244,238,231,0.92);
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  animation: mcuFadeArrow 0.6s ease 1.6s forwards;
}

.mcu-hero-arrow::after {
  content: "";
  width: 10px;
  height: 10px;
  border-bottom: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  animation: mcuBounce 2s infinite ease-in-out;
}

@keyframes mcuFadeArrow { to { opacity: 1; } }
@keyframes mcuBounce {
  0%, 100% { transform: translateY(0) rotate(45deg); }
  50% { transform: translateY(10px) rotate(45deg); }
}

/* ═══════════════════════════════════════════════
   SAGA RAIL
   ═══════════════════════════════════════════════ */
.mcu-rail {
  position: fixed;
  right: 50px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mcu-rail.visible {
  opacity: 1;
  pointer-events: auto;
}

.mcu-rail::before {
  content: "";
  position: absolute;
  right: 4.5px; /* Half of 10px dot */
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, 
    rgba(255,255,255,0) 0%, 
    rgba(255,255,255,0.1) 15%, 
    rgba(255,255,255,0.1) 85%, 
    rgba(255,255,255,0) 100%
  );
}

.mcu-rail-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  padding: 4px 0;
  cursor: pointer;
  opacity: 0.35;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mcu-rail-item:hover {
  opacity: 0.8;
  transform: translateX(-4px);
}

.mcu-rail-item.active {
  opacity: 1;
  transform: translateX(-12px);
}

.mcu-rail-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
  order: 2;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mcu-rail-item.active .mcu-rail-dot {
  background: var(--mcu-accent, #d7392f);
  border-color: var(--mcu-accent, #d7392f);
  transform: scale(1.6);
  box-shadow: 
    0 0 0 6px rgba(215,57,47,0.15),
    0 0 20px var(--mcu-accent, #d7392f);
}

.mcu-rail-name {
  color: #dbd0c2;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
  text-align: right;
  order: 1;
  white-space: nowrap;
  transition: color 0.4s ease;
}

.mcu-rail-item.active .mcu-rail-name {
  color: #fff;
  text-shadow: 0 0 15px rgba(255,255,255,0.4);
}

/* ═══════════════════════════════════════════════
   CHAPTERS
   ═══════════════════════════════════════════════ */
.mcu-chapters {
  width: min(1300px, calc(100% - 30px));
  margin: 0 auto;
  padding: 0 240px 160px 0;
}

.mcu-chapter {
  position: relative;
  min-height: 150vh;
}

.mcu-chapter-stage {
  position: sticky;
  top: 58px;
  min-height: calc(100vh - 58px);
  display: grid;
  align-items: center;
  opacity: 0.35;
  transform: scale(0.97);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.mcu-chapter.active .mcu-chapter-stage {
  opacity: 1;
  transform: scale(1);
}

/* Radial glow behind each chapter */
.mcu-chapter-stage::before {
  content: "";
  position: absolute;
  inset: 10% 0 12%;
  background:
    radial-gradient(circle at var(--glow-x, 24%) 50%, var(--bg-glow), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  filter: blur(10px);
  opacity: 0.92;
  pointer-events: none;
}

.mcu-chapter-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(320px, 1fr);
  gap: 44px;
  align-items: center;
  min-height: 80vh;
}

/* ── Chapter copy (right side) ── */
.mcu-chapter-copy {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 18px;
  align-content: center;
  max-width: 560px;
  justify-self: end;
  text-align: right;
}

.mcu-eyebrow {
  color: var(--accent);
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mcu-chapter-title {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4rem, 10vw, 7.7rem);
  line-height: 0.88;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--mcu-text);
}

.mcu-chapter-hook {
  max-width: 34ch;
  margin: 0;
  color: var(--mcu-muted);
  font-family: "Inter", sans-serif;
  font-size: 1.02rem;
  line-height: 1.7;
  justify-self: end;
}

.mcu-chapter-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.mcu-chapter-year {
  color: #f1e6d7;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mcu-impact {
  color: #e8d8c7;
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
}

.mcu-watch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  padding: 12px 18px;
  border: 1px solid color-mix(in srgb, var(--accent) 60%, white 12%);
  background: color-mix(in srgb, var(--accent) 20%, rgba(255,255,255,0.02));
  color: #fff4e6;
  font-family: "Bebas Neue", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease;
  text-decoration: none;
  justify-self: end;
}

.mcu-watch-btn:hover,
.mcu-watch-btn:focus-visible {
  transform: translateY(-3px);
  background: color-mix(in srgb, var(--accent) 34%, rgba(255,255,255,0.04));
  outline: none;
}

.mcu-watch-btn svg {
  width: 12px;
  height: 14px;
  fill: white;
}

/* ── Clean poster (left side) ── */
.mcu-chapter-visual {
  position: relative;
  z-index: 3;
  justify-self: start;
  width: min(100%, 420px);
}

.mcu-clean-poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  border-radius: 4px;
}

/* ── Logo title (right side) ── */
.mcu-title-wrap {
  margin: 12px 0 24px;
}

.mcu-title-logo {
  max-width: min(100%, 500px);
  max-height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.nav-mcu-img {
  height: 16px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(215,57,47,0.5));
  transition: all 0.3s ease;
}

.mcu-chapter-title {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(4rem, 10vw, 7.7rem);
  line-height: 0.88;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--mcu-text);
}

.mcu-chapter-hook {
  margin: 0;
  color: var(--mcu-muted);
  font-family: "Inter", sans-serif;
  font-size: 1.1rem;
  line-height: 1.75;
  justify-self: end;
  /* Remove max-width constraint if you want it longer, or keep it balanced */
  max-width: 48ch; 
}

/* ═══════════════════════════════════════════════
   LOADING STATE
   ═══════════════════════════════════════════════ */
.mcu-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 120px 0;
  color: var(--mcu-muted);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
}

.mcu-loading-spinner {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--mcu-accent);
  border-radius: 50%;
  animation: mcuSpin 0.8s linear infinite;
}

@keyframes mcuSpin {
  to { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.mcu-footer {
  position: relative;
  z-index: 2;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .mcu-rail {
    right: 12px;
    width: 118px;
  }
  .mcu-chapter-layout {
    gap: 30px;
  }
  .mcu-chapters {
    padding-right: 136px;
  }
}

@media (max-width: 900px) {
  .mcu-rail {
    display: none;
  }

  .mcu-chapter,
  .mcu-chapter-stage {
    min-height: auto;
  }

  .mcu-chapter-stage {
    position: relative;
    top: auto;
    opacity: 1;
    transform: none;
    padding: 48px 0;
  }

  .mcu-chapter-layout {
    grid-template-columns: 1fr;
    gap: 26px;
    min-height: auto;
  }

  .mcu-chapter-copy {
    justify-self: start;
    text-align: left;
  }

  .mcu-chapter-hook {
    justify-self: start;
  }

  .mcu-chapter-meta {
    justify-content: flex-start;
  }

  .mcu-watch-btn {
    justify-self: start;
  }

  .mcu-chapter-visual {
    width: min(100%, 420px);
    justify-self: center;
  }

  .mcu-scene-card {
    min-height: 480px;
    transform: none;
  }

  .mcu-chapters {
    padding-right: 0;
  }
}
