/* ============================================================
   Sci-Fi & Fantasy Hub — Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=DM+Sans:wght@400;500;600&display=swap');

/* ---- Custom Properties ----------------------------------------- */
:root {
  --bg:            #0D1B2E;
  --surface:       #1A2B42;
  --surface-alt:   #1F3254;
  --navy:          #1B3A6B;
  --accent:        #3B82F6;
  --accent-light:  #60A5FA;
  --accent-dim:    rgba(59,130,246,0.15);
  --gold:          #C4956A;
  --gold-dark:     #5C3D1E;
  --gold-pale:     #F0E6D3;
  --text:          #F8F8F5;
  --text-muted:    #8AA5C7;
  --text-dim:      #4A6080;
  --border:        rgba(59,130,246,0.18);
  --border-gold:   rgba(196,149,106,0.3);
  --green:         #22C55E;
  --red:           #EF4444;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, -apple-system, sans-serif;

  --sp-xs:  0.25rem;
  --sp-sm:  0.5rem;
  --sp-md:  1rem;
  --sp-lg:  1.5rem;
  --sp-xl:  2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;

  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;
  --r-xl: 12px;

  --t: 0.2s ease;
  --t-slow: 0.45s ease;

  --shadow: 0 4px 24px rgba(0,0,0,0.45);
  --glow:   0 0 28px rgba(59,130,246,0.18);
  --glow-gold: 0 0 24px rgba(196,149,106,0.18);
}

/* ---- Reset ----------------------------------------------------- */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  min-height: 100vh;
  /* subtle grain */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}

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

/* ---- Typography ------------------------------------------------ */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--text);
}
h1 { font-size: clamp(2rem,   5vw, 3.5rem);  font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem);font-weight: 600; }
h4 { font-size: 1.2rem;  font-weight: 600; }
h5 { font-size: 1.05rem; font-weight: 600; }
p  { margin-bottom: var(--sp-md); }
p:last-child { margin-bottom: 0; }

/* ---- Layout ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}
.container--narrow { max-width: 820px; }
.container--wide   { max-width: 1600px; }

section { padding: var(--sp-4xl) 0; }

/* ---- Buttons --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 0.6rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--r-sm);
  transition: all var(--t);
  white-space: nowrap;
  line-height: 1;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-light); transform: translateY(-1px); box-shadow: var(--glow); }
.btn--secondary { border: 1px solid var(--gold); color: var(--gold); }
.btn--secondary:hover { background: var(--gold); color: var(--bg); transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--border); color: var(--text-muted); }
.btn--ghost:hover { border-color: var(--accent); color: var(--text); }
.btn--lg { padding: 0.85rem 2.25rem; font-size: 1rem; }
.btn--amazon {
  background: #FF9900; color: #111; font-weight: 700;
  padding: 0.75rem 1.75rem; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; gap: var(--sp-sm);
  transition: all var(--t);
}
.btn--amazon:hover { background: #FFB84D; transform: translateY(-1px); }

/* ---- Navigation ------------------------------------------------ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 64px;
  background: rgba(10,20,36,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: 1600px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
  padding: 0 var(--sp-xl);
}
.nav__logo {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.nav__logo span { color: var(--accent); }
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  flex: 1;
}
.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--t);
  white-space: nowrap;
}
.nav__link:hover, .nav__link--active { color: var(--text); }
.nav__link--active { color: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: var(--sp-md); margin-left: auto; }
.nav__mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-sm);
}
.nav__mobile-btn span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all var(--t);
}

/* ---- Nav Search (compact, lives inside nav) ------------------- */
.nav-search {
  position: relative;
  width: 240px;
  flex-shrink: 0;
  margin: 0;        /* override .search-form { margin: var(--sp-xl) auto 0 } */
  max-width: none;  /* override .search-form { max-width: 680px } */
}
.nav-search .search-form__input {
  height: 36px;
  padding: 0 2.6rem 0 0.85rem;
  font-size: 0.83rem;
  border-radius: var(--r-md);
}
.nav-search .search-form__btn {
  height: 26px;
  padding: 0 0.75rem;
  font-size: 0.78rem;
  right: 5px;
}
/* Dropdown expands leftward from the right edge of the input */
.nav-search .search-autocomplete {
  z-index: 1100;
  min-width: 340px;
  left: auto;
  right: 0;
}
@media (max-width: 1100px) { .nav-search { width: 190px; } }
@media (max-width: 900px)  { .nav-search { width: 155px; } }
@media (max-width: 768px)  { .nav-search { display: none; } }

/* ---- Hero Search Section --------------------------------------- */
.hero-search {
  padding: 130px var(--sp-xl) var(--sp-3xl);
  text-align: center;
  background: linear-gradient(180deg, #080F1C 0%, var(--bg) 100%);
}
.hero-search__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-xl);
}
.hero-search__tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.hero-search__tagline .sep {
  margin: 0 0.75em;
  color: var(--border);
  font-weight: 300;
}
.hero-search__tagline strong { color: var(--text); font-weight: 600; }

.search-form {
  max-width: 680px;
  margin: var(--sp-xl) auto 0;
  position: relative;
}
.search-form__input {
  width: 100%;
  padding: 1rem 5rem 1rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  outline: none;
  transition: all var(--t);
}
.search-form__input::placeholder { color: var(--text-dim); }
.search-form__input:focus { border-color: var(--accent); box-shadow: var(--glow); }
.search-form__btn {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 1.1rem;
  border-radius: var(--r-sm);
  font-size: 0.875rem;
  font-weight: 600;
  transition: background var(--t);
}
.search-form__btn:hover { background: var(--accent-light); }

.search-autocomplete {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  z-index: 200;
  overflow: hidden;
  display: none;
  box-shadow: var(--shadow);
}
.search-autocomplete.visible { display: block; }
.search-ac__item {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: 0.85rem var(--sp-lg);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background var(--t);
  text-align: left;
  color: var(--text);
  width: 100%;
}
.search-ac__item:last-child { border-bottom: none; }
.search-ac__item:hover { background: var(--surface-alt); }
.search-ac__type {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.search-ac__name { font-size: 0.9rem; font-weight: 500; color: var(--text); }

/* ---- Site Header ----------------------------------------------- */
.site-header {
  text-align: center;
  padding: var(--sp-2xl) var(--sp-xl) var(--sp-3xl);
}
.site-header__title {
  font-size: clamp(1.75rem, 4.5vw, 3.5rem);
  margin-bottom: var(--sp-md);
  background: linear-gradient(135deg, var(--text) 40%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.site-header__rule {
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin: var(--sp-md) auto;
}
.site-header__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

/* ---- Hero Gallery ---------------------------------------------- */
.hero-gallery { padding: 0 0 var(--sp-3xl); }
.hero-gallery__track {
  position: relative;
  height: 500px;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.06);
  transition: transform 7s ease;
}
.hero-slide.active .hero-slide__bg { transform: scale(1); }
.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,15,28,0.97) 0%, rgba(8,15,28,0.7) 55%, rgba(8,15,28,0.3) 100%);
}
.hero-slide__content {
  position: relative;
  z-index: 1;
  padding: var(--sp-3xl) var(--sp-4xl);
  max-width: 640px;
}
.hero-slide__genre {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-md);
}
.hero-slide__title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: var(--sp-md);
}
.hero-slide__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-xl);
}

/* ---- Hero Slide Timeline (vertical, right side) ---------------- */
.hero-slide__timeline {
  position: absolute;
  right: var(--sp-4xl);
  top: 50%;
  transform: translateY(-50%);
  width: 260px;
  z-index: 2;
}
.hero-slide__tl-track {
  display: flex;
  flex-direction: column;
  border-left: 1px solid rgba(59,130,246,0.25);
  padding: var(--sp-xs) 0;
}
.hero-slide__tl-item {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 6px 0 6px var(--sp-md);
  position: relative;
}
.hero-slide__tl-dot {
  position: absolute;
  left: -4px;          /* centre on the border-left line */
  top: 50%;
  transform: translateY(-50%);
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid rgba(59,130,246,0.4);
  flex-shrink: 0;
}
.hero-slide__tl-item--first .hero-slide__tl-dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(59,130,246,0.55);
}
.hero-slide__tl-year {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(96,165,250,0.55);
  letter-spacing: 0.05em;
  white-space: nowrap;
  flex-shrink: 0;
}
.hero-slide__tl-item--first .hero-slide__tl-year {
  color: var(--accent-light);
}
.hero-slide__tl-label {
  font-size: 0.65rem;
  color: rgba(138,165,199,0.45);
  line-height: 1.3;
}
.hero-slide__tl-item--first .hero-slide__tl-label {
  color: var(--text-muted);
}
@media (max-width: 1024px) { .hero-slide__timeline { display: none; } }

.hero-gallery__dots {
  display: flex;
  justify-content: center;
  gap: var(--sp-sm);
  padding: var(--sp-lg) 0 0;
}
.hero-gallery__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all var(--t);
  border: none;
  cursor: pointer;
}
.hero-gallery__dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* ---- Section Header -------------------------------------------- */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--sp-2xl);
  padding-bottom: var(--sp-md);
  border-bottom: 1px solid var(--border);
  gap: var(--sp-md);
}
.section-header__see-all {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
  transition: color var(--t);
  white-space: nowrap;
}
.section-header__see-all:hover { color: var(--accent-light); }

/* ---- Franchise Cards ------------------------------------------- */
.franchise-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: all var(--t);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.franchise-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--glow);
}
.franchise-card__image {
  height: 175px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.franchise-card__badge {
  position: absolute;
  top: var(--sp-sm); left: var(--sp-sm);
  background: rgba(8,15,28,0.85);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
}
.franchise-card__body { padding: var(--sp-md) var(--sp-lg); }
.franchise-card__name { font-size: 1.05rem; margin-bottom: 3px; }
.franchise-card__meta { font-size: 0.8rem; color: var(--text-muted); }

/* ---- IP Chip (small clickable tile) ---------------------------- */
.ip-chip {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: 0.85rem var(--sp-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: all var(--t);
  text-decoration: none;
  color: var(--text);
}
.ip-chip:hover {
  border-color: var(--accent);
  background: var(--surface-alt);
  transform: translateY(-2px);
}
.ip-chip__icon {
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.ip-chip__name { font-size: 0.9rem; font-weight: 600; }
.ip-chip__count { font-size: 0.75rem; color: var(--text-muted); }

/* ---- IP Grid --------------------------------------------------- */
.ip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--sp-md);
}

/* ---- Carousel / Scroll Row ------------------------------------ */
.carousel-outer { position: relative; }
.carousel-nav {
  display: flex;
  gap: var(--sp-sm);
  justify-content: flex-end;
  margin-bottom: var(--sp-md);
}
.carousel-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t);
  font-size: 1rem;
}
.carousel-btn:hover { border-color: var(--accent); color: var(--text); background: var(--surface-alt); }

.scroll-track {
  display: flex;
  gap: var(--sp-lg);
  overflow-x: auto;
  padding-bottom: var(--sp-sm);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.scroll-track::-webkit-scrollbar { height: 4px; }
.scroll-track::-webkit-scrollbar-track { background: transparent; }
.scroll-track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* ---- Media Poster Card ---------------------------------------- */
.media-card {
  flex-shrink: 0;
  width: 165px;
  cursor: pointer;
  transition: transform var(--t);
}
.media-card:hover { transform: translateY(-5px); }
.media-card__poster {
  width: 165px; height: 248px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color var(--t);
  position: relative;
}
.media-card:hover .media-card__poster { border-color: var(--accent); }
.media-card__poster-bg {
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}
.media-card:hover .media-card__poster-bg { transform: scale(1.06); }
.media-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8,15,28,0.92) 0%, transparent 55%);
}
.media-card__info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: var(--sp-md);
}
.media-card__title { font-size: 0.82rem; font-weight: 600; line-height: 1.3; }
.media-card__year  { font-size: 0.72rem; color: var(--text-muted); margin-top: 2px; }

/* ---- News Card ------------------------------------------------ */
.news-card {
  flex-shrink: 0;
  width: 295px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  transition: all var(--t);
  text-decoration: none;
  color: var(--text);
  display: block;
}
.news-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.news-card__image {
  height: 155px;
  background-size: cover;
  background-position: center;
}
.news-card__body { padding: var(--sp-md) var(--sp-lg); }
.news-card__tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-sm);
}
.news-card__title { font-size: 0.95rem; line-height: 1.4; margin-bottom: var(--sp-sm); }
.news-card__date  { font-size: 0.78rem; color: var(--text-muted); }

/* ---- Gallery Section (movies/collections row) ----------------- */
.gallery-section {
  padding: var(--sp-3xl) 0;
  border-top: 1px solid var(--border);
}

/* ---- Footer --------------------------------------------------- */
.footer {
  background: #070D18;
  border-top: 1px solid var(--border);
  padding: var(--sp-4xl) 0 var(--sp-2xl);
  margin-top: var(--sp-4xl);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-3xl);
  margin-bottom: var(--sp-3xl);
}
.footer__brand-name {
  font-size: 1.15rem;
  margin-bottom: var(--sp-md);
  font-family: var(--font-serif);
}
.footer__brand-name span { color: var(--accent); }
.footer__brand-summary { font-size: 0.875rem; color: var(--text-muted); line-height: 1.75; margin: 0; }
.footer__heading {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-lg);
}
.footer__links { display: flex; flex-direction: column; gap: var(--sp-sm); }
.footer__link { font-size: 0.9rem; color: var(--text-muted); transition: color var(--t); }
.footer__link:hover { color: var(--accent); }
.footer__social-link {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--t);
}
.footer__social-link:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--sp-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: var(--sp-md);
}

/* ---- Franchise L1 Page ---------------------------------------- */
.franchise-hero {
  min-height: 58vh;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  padding-top: 64px;
}
.franchise-hero__bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center top;
}
.franchise-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, var(--bg) 0%, rgba(8,15,28,0.4) 100%);
}
.franchise-hero__content {
  position: relative;
  z-index: 1;
  padding: var(--sp-4xl) var(--sp-xl) var(--sp-3xl);
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}
.franchise-hero__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-md);
}
.franchise-hero__title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  margin-bottom: var(--sp-lg);
}
.franchise-hero__stats {
  display: flex;
  gap: var(--sp-3xl);
  flex-wrap: wrap;
}
.franchise-stat__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.franchise-stat__value { font-size: 1.25rem; font-weight: 700; color: var(--gold); }

.franchise-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sp-4xl);
  align-items: start;
  padding: var(--sp-3xl) 0;
}
.franchise-poster {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  position: sticky;
  top: 80px;
}
.franchise-poster__inner {
  aspect-ratio: 2/3;
  background-size: cover;
  background-position: center;
}

/* ---- Timeline -------------------------------------------------- */
.timeline-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-2xl) 0;
}
.timeline {
  display: flex;
  gap: 0;
  overflow-x: auto;
  position: relative;
  padding-bottom: var(--sp-sm);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 20px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border) 5%, var(--border) 95%, transparent);
}
.timeline-item {
  flex-shrink: 0;
  padding: 0 var(--sp-xl) var(--sp-md);
  text-align: center;
  cursor: pointer;
}
.timeline-item__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--surface-alt);
  border: 2px solid var(--border);
  margin: 0 auto var(--sp-md);
  position: relative;
  z-index: 1;
  transition: all var(--t);
}
.timeline-item:hover .timeline-item__dot,
.timeline-item.active .timeline-item__dot {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(59,130,246,0.5);
}
.timeline-item__year { font-size: 0.78rem; font-weight: 600; color: var(--accent); margin-bottom: 2px; }
.timeline-item__label { font-size: 0.72rem; color: var(--text-muted); max-width: 110px; }

/* ---- Tabs ----------------------------------------------------- */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-2xl);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 0.85rem var(--sp-xl);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  border: none;
  border-bottom: 2px solid transparent;
  transition: all var(--t);
  font-family: var(--font-sans);
  background: none;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---- Media List Item ------------------------------------------ */
.media-list { display: flex; flex-direction: column; gap: var(--sp-sm); }
.media-list-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: var(--sp-lg);
  align-items: center;
  padding: var(--sp-md) var(--sp-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: all var(--t);
  text-decoration: none;
  color: var(--text);
}
.media-list-item:hover {
  border-color: var(--accent);
  background: var(--surface-alt);
  transform: translateX(4px);
}
.media-list-item__num { font-size: 1.1rem; font-weight: 700; color: var(--text-dim); text-align: center; }
.media-list-item__title { font-size: 1rem; font-weight: 600; }
.media-list-item__sub { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; }
.media-list-item__year { font-size: 0.875rem; color: var(--text-muted); white-space: nowrap; }

/* ---- Collectible Card ----------------------------------------- */
.collectible-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-sm);
  padding: var(--sp-lg);
  transition: all var(--t);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.collectible-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--glow-gold);
}
.collectible-card__thumb {
  aspect-ratio: 1;
  background: var(--surface-alt);
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-md);
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.collectible-card__name  { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.collectible-card__maker { font-size: 0.78rem; color: var(--gold); margin-bottom: var(--sp-sm); }
.collectible-card__price { font-size: 1.1rem; font-weight: 700; }

/* ---- Amazon Section ------------------------------------------- */
.amazon-cta {
  background: linear-gradient(135deg, #120d00 0%, var(--surface) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--r-md);
  padding: var(--sp-2xl);
  margin-top: var(--sp-2xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-xl);
  flex-wrap: wrap;
}
.amazon-cta__text h3 { font-size: 1.15rem; margin-bottom: var(--sp-sm); }
.amazon-cta__text p  { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

/* ---- Breadcrumb ----------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-lg);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--accent); transition: color var(--t); }
.breadcrumb a:hover { color: var(--accent-light); }
.breadcrumb .sep { color: var(--text-dim); }

/* ---- L3 (Detail) Page ---------------------------------------- */
.l3-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sp-3xl);
  align-items: start;
}
.l3-cover {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 2/3;
  background-size: cover;
  background-position: center;
  position: sticky;
  top: 80px;
}
.meta-dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem var(--sp-xl);
  font-size: 0.9rem;
}
.meta-dl dt { color: var(--text-muted); font-weight: 500; }
.meta-dl dd { color: var(--text); }

/* ---- Toggle Sort ---------------------------------------------- */
.sort-bar {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-xl);
  flex-wrap: wrap;
}
.sort-bar__label { font-size: 0.85rem; color: var(--text-muted); }
.toggle-btn {
  padding: 0.4rem 1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all var(--t);
}
.toggle-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.toggle-btn:hover:not(.active) { border-color: var(--text-dim); color: var(--text); }

/* ---- Badges & Utilities --------------------------------------- */
.badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge--blue  { background: rgba(59,130,246,0.14); color: var(--accent); }
.badge--gold  { background: rgba(196,149,106,0.14); color: var(--gold); }
.badge--green { background: rgba(34,197,94,0.14);  color: var(--green); }

.text-accent { color: var(--accent); }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-sm  { margin-top: var(--sp-sm); }
.mt-md  { margin-top: var(--sp-md); }
.mt-lg  { margin-top: var(--sp-lg); }
.mt-xl  { margin-top: var(--sp-xl); }
.mt-2xl { margin-top: var(--sp-2xl); }
.mb-sm  { margin-bottom: var(--sp-sm); }
.mb-md  { margin-bottom: var(--sp-md); }
.mb-xl  { margin-bottom: var(--sp-xl); }

/* ---- About Page ----------------------------------------------- */
.page-hero {
  padding: 130px var(--sp-xl) var(--sp-4xl);
  background: linear-gradient(180deg, #080F1C 0%, var(--bg) 100%);
}
.page-hero--center { text-align: center; }
.page-hero__sub { font-size: 1.1rem; color: var(--text-muted); margin-top: var(--sp-md); }

.prose h2 { margin: var(--sp-3xl) 0 var(--sp-lg); font-size: 1.6rem; }
.prose h2:first-child { margin-top: 0; }
.prose p  { color: var(--text-muted); line-height: 1.85; }
.prose ul { color: var(--text-muted); line-height: 1.85; margin-bottom: var(--sp-md); }
.prose ul li {
  padding: 0.3rem 0 0.3rem var(--sp-lg);
  position: relative;
}
.prose ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-lg);
  margin: var(--sp-2xl) 0;
}
.vision-item {
  padding: var(--sp-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-sm);
}
.vision-item__icon { font-size: 1.5rem; margin-bottom: var(--sp-sm); }
.vision-item__title { font-size: 1rem; margin-bottom: var(--sp-sm); }
.vision-item__text  { font-size: 0.875rem; color: var(--text-muted); margin: 0; }

/* ---- How It Works --------------------------------------------- */
.steps { display: flex; flex-direction: column; gap: var(--sp-2xl); }
.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--sp-xl);
  align-items: start;
}
.step__num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.step__title { font-size: 1.2rem; margin-bottom: var(--sp-sm); }
.step__text  { font-size: 0.9rem; color: var(--text-muted); line-height: 1.75; margin: 0; }

/* ---- Search Results ------------------------------------------- */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-lg);
}

/* ---- Responsive ----------------------------------------------- */
@media (max-width: 1100px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-2xl); }
  .franchise-layout { grid-template-columns: 1fr; }
  .franchise-poster { position: static; max-width: 260px; }
}
@media (max-width: 768px) {
  .container { padding: 0 var(--sp-lg); }
  section { padding: var(--sp-3xl) 0; }
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(8,15,28,0.98);
    border-bottom: 1px solid var(--border);
    padding: var(--sp-xl);
    gap: var(--sp-lg);
    z-index: 999;
  }
  .nav__mobile-btn { display: flex; }
  .hero-gallery__track { height: 380px; }
  .hero-slide__content { padding: var(--sp-xl) var(--sp-lg); }
  .hero-slide__title { font-size: 2.25rem; }
  .footer__grid { grid-template-columns: 1fr; }
  .l3-layout { grid-template-columns: 1fr; }
  .l3-cover { position: static; aspect-ratio: 16/9; max-height: 280px; }
  .amazon-cta { flex-direction: column; text-align: center; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .franchise-hero__stats { gap: var(--sp-xl); }
}
@media (max-width: 480px) {
  .hero-search { padding: 100px var(--sp-md) var(--sp-xl); }
  .hero-slide__title { font-size: 1.75rem; }
  .ip-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-slide__content { padding: var(--sp-lg) var(--sp-md); }
}
