/* ===== UTILITY ===== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

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

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  transition: background var(--duration-normal) var(--ease-out),
              transform var(--duration-normal) var(--ease-out);
}

.nav--hidden { transform: translateY(-100%); }

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-3) var(--space-6);
  gap: var(--space-4);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--accent-gold);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav__logo svg { width: 28px; height: 28px; flex-shrink: 0; }

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  justify-content: center;
}
.nav__links::-webkit-scrollbar { display: none; }

.nav__link {
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  text-decoration: none;
}
.nav__link:hover,
.nav__link--active {
  color: var(--accent-gold);
  background: rgba(201, 168, 76, 0.08);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.nav__toggle-theme {
  background: none;
  border: 1px solid var(--border);
  color: var(--accent-gold);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
}
.nav__toggle-theme:hover {
  border-color: var(--accent-gold);
  background: rgba(201, 168, 76, 0.08);
}
.nav__toggle-theme svg { width: 18px; height: 18px; }

.nav__hamburger {
  display: none;
  background: none; border: none;
  color: var(--accent-gold);
  width: 36px; height: 36px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__hamburger svg { width: 22px; height: 22px; }

/* Mobile nav */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__hamburger { display: flex; }

  .nav__links--open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--border);
    gap: var(--space-1);
  }
  .nav__links--open .nav__link {
    font-size: var(--text-sm);
    padding: var(--space-3) var(--space-4);
    width: 100%;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 15, 0.5) 0%,
    rgba(10, 10, 15, 0.65) 40%,
    rgba(10, 10, 15, 0.75) 60%,
    rgba(10, 10, 15, 0.95) 100%
  );
  z-index: 1;
}

/* Grain texture */
.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 3;
  padding: var(--space-6);
}

.hero__logo {
  margin: 0 auto var(--space-8);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  overflow: hidden;
}
.hero__logo svg {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  color: var(--accent-gold);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

.hero__title {
  font-size: var(--text-hero);
  color: var(--accent-gold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 40px rgba(201, 168, 76, 0.3), 0 0 80px rgba(10, 10, 15, 0.8), 0 4px 20px rgba(10, 10, 15, 0.9);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--accent-gold);
  font-style: italic;
  max-width: 50ch;
  margin: 0 auto;
  font-family: 'Playfair Display', Georgia, serif;
  text-shadow: 0 2px 20px rgba(10, 10, 15, 1), 0 0 60px rgba(10, 10, 15, 0.9), 0 0 30px rgba(10, 10, 15, 0.8);
  opacity: 0.85;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-10);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-faint);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollPulse 2s ease-in-out infinite;
}

.hero__scroll svg { width: 20px; height: 20px; }

@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(6px); }
}

/* ===== SECTION BASE ===== */
.section {
  padding: var(--space-24) 0;
  position: relative;
}
.section--alt { background: var(--surface); }

.section__header {
  text-align: center;
  margin-bottom: var(--space-16);
}

.section__eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  color: var(--accent-gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.section__title {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-4);
}

.section__lead {
  font-size: var(--text-lg);
  color: var(--text-muted);
  max-width: 60ch;
  margin: 0 auto;
  line-height: 1.7;
}

/* Divider */
.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  margin: var(--space-6) auto;
}

/* ===== FRANCHISE OVERVIEW ===== */
.overview-intro {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.8;
  max-width: var(--max-w-prose);
  margin: 0 auto var(--space-12);
  text-align: center;
}

/* Box Office Table */
.table-wrap {
  overflow-x: auto;
  margin: var(--space-8) 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.table-wrap th {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--text-sm);
  color: var(--accent-gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-weight: 600;
}

.table-wrap td {
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--divider);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.table-wrap tr:last-child td { border-bottom: none; }
.table-wrap tr:hover td { background: rgba(201, 168, 76, 0.03); }

.table-wrap td:first-child {
  color: var(--text);
  font-weight: 600;
}

/* Timeline */
.timeline {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-12);
  padding: 0 var(--space-4);
  position: relative;
  flex-wrap: wrap;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
}

.timeline__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  min-width: 120px;
  max-width: 180px;
  position: relative;
  z-index: 1;
}

.timeline__dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent-gold);
  transition: background var(--duration-fast) var(--ease-out);
}

.timeline__item:hover .timeline__dot { background: var(--accent-gold); }

.timeline__year {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--text-xl);
  color: var(--accent-gold);
  font-weight: 700;
}

.timeline__label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-align: center;
  line-height: 1.4;
}

/* ===== FILM SECTION ===== */
.film-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.film-hero__bg {
  position: absolute;
  inset: 0;
}

.film-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.film-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 10, 15, 0.2) 0%,
    rgba(10, 10, 15, 0.7) 60%,
    rgba(10, 10, 15, 1) 100%
  );
}

.film-hero__content {
  position: relative;
  z-index: 2;
  padding: var(--space-16) var(--space-6) var(--space-10);
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.film-hero__num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--text-hero);
  color: rgba(201, 168, 76, 0.15);
  font-weight: 900;
  line-height: 1;
  margin-bottom: var(--space-4);
}

.film-hero__title {
  font-size: var(--text-3xl);
  color: var(--accent-gold);
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.film-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  margin-bottom: var(--space-6);
}

.film-hero__meta-item {
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.film-hero__meta-item strong {
  color: var(--text);
  font-weight: 600;
}

/* Rating Badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-3) var(--space-4);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: var(--radius-md);
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(10px);
  min-width: 90px;
  transition: border-color var(--duration-fast) var(--ease-out);
}
.badge:hover { border-color: var(--accent-gold); }

.badge__score {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--text-xl);
  color: var(--accent-gold);
  font-weight: 700;
  line-height: 1;
}

.badge__label {
  font-size: var(--text-xs);
  color: var(--text-faint);
  margin-top: var(--space-1);
  text-align: center;
  letter-spacing: 0.02em;
}

/* ===== FILM CONTENT ===== */
.film-content {
  padding: var(--space-16) 0;
}

.film-content .container { max-width: 900px; }

.content-section {
  margin-bottom: var(--space-16);
}

.content-section__title {
  font-size: var(--text-2xl);
  color: var(--text);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--divider);
}

.content-section__subtitle {
  font-size: var(--text-xl);
  color: var(--accent-gold);
  margin: var(--space-8) 0 var(--space-4);
  font-weight: 600;
}

.prose {
  color: var(--text-muted);
  line-height: 1.85;
  font-size: var(--text-base);
}

.prose p { margin-bottom: var(--space-5); }
.prose p:last-child { margin-bottom: 0; }

.prose em {
  font-style: italic;
  color: var(--text);
}

/* Blockquote */
.pull-quote {
  border-left: 3px solid var(--accent-gold);
  padding: var(--space-5) var(--space-8);
  margin: var(--space-8) 0;
  background: var(--surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.pull-quote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--text-lg);
  color: var(--text);
  font-style: italic;
  line-height: 1.7;
  max-width: none;
}

.pull-quote cite {
  display: block;
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  color: var(--accent-gold);
  font-style: normal;
  font-family: 'Inter', sans-serif;
}

/* ===== CHARACTER CARDS ===== */
.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.char-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  transition: border-color var(--duration-normal) var(--ease-out),
              box-shadow var(--duration-normal) var(--ease-out);
}
.char-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 0 30px rgba(201, 168, 76, 0.06);
}

.char-card__rank {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--text-3xl);
  color: rgba(201, 168, 76, 0.15);
  font-weight: 900;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.char-card__name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--text-xl);
  color: var(--text);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.char-card__actor {
  font-size: var(--text-sm);
  color: var(--accent-gold);
  font-weight: 500;
  margin-bottom: var(--space-4);
}

.char-card__bio {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== FRANCHISE THEMES ===== */
.themes-content {
  max-width: 900px;
  margin: 0 auto;
}

.themes-content h3 {
  font-size: var(--text-xl);
  color: var(--accent-gold);
  margin: var(--space-10) 0 var(--space-4);
}

.arc-table {
  overflow-x: auto;
  margin: var(--space-8) 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.arc-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.arc-table th {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--text-xs);
  color: var(--accent-gold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-weight: 600;
}

.arc-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--divider);
  font-size: var(--text-sm);
  color: var(--text-muted);
  vertical-align: top;
}

.arc-table tr:last-child td { border-bottom: none; }

.arc-table td:first-child {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}

.choreo-table { margin-top: var(--space-8); }

/* ===== RT CONSENSUS ===== */
.rt-consensus {
  background: var(--surface);
  border-left: 3px solid var(--accent-gold);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.7;
}
.rt-consensus strong {
  color: var(--accent-gold);
  font-style: normal;
  display: block;
  margin-bottom: var(--space-1);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ===== FOOTER ===== */
.footer {
  padding: var(--space-16) 0 var(--space-8);
  background: var(--surface);
  border-top: 1px solid var(--divider);
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-6);
  text-align: center;
}

.footer__brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: var(--text-xl);
  color: var(--accent-gold);
  margin-bottom: var(--space-4);
  letter-spacing: 0.1em;
}

.footer__sources {
  margin: var(--space-6) 0;
  font-size: var(--text-xs);
  color: var(--text-faint);
  line-height: 1.8;
}

.footer__sources a {
  color: var(--text-muted);
}
.footer__sources a:hover { color: var(--accent-gold); }

.footer__attrib {
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--divider);
  font-size: var(--text-xs);
  color: var(--text-faint);
}

.footer__attrib a {
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--ease-out);
}
.footer__attrib a:hover { color: var(--accent-gold); }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
}
.reveal--visible { opacity: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .section { padding: var(--space-16) 0; }
  .hero__title { letter-spacing: 0.06em; }
  .film-hero { min-height: 60vh; }
  .film-hero__num { font-size: var(--text-3xl); }
  .film-hero__content { padding: var(--space-10) var(--space-4) var(--space-6); }
  .characters-grid { grid-template-columns: 1fr; }
  .timeline { gap: var(--space-4); flex-direction: column; align-items: center; }
  .timeline::before { display: none; }
  .timeline__item { flex-direction: row; gap: var(--space-4); max-width: none; width: 100%; }
  .pull-quote { padding: var(--space-4) var(--space-5); }
  .badges { gap: var(--space-2); }
  .badge { min-width: 76px; padding: var(--space-2) var(--space-3); }
}

@media (max-width: 480px) {
  .container { padding: 0 var(--space-4); }
  .film-hero__meta { gap: var(--space-2); }
  .badge__score { font-size: var(--text-lg); }
}
