/* =========================================================
   PopcornPicks — style.css
   Premium, Netflix-inspired dark UI with a film-reel motif.
   Organized by: tokens → base → layout → components → utilities
   ========================================================= */

/* ---------- 1. DESIGN TOKENS ---------- */
:root {
  /* Color palette — dark theme (default) */
  --bg: #0a0b0f;
  --bg-alt: #0f1117;
  --surface: #14161d;
  --surface-2: #1b1e28;
  --surface-glass: rgba(24, 26, 34, 0.65);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5f4ef;
  --text-muted: #9ca0ac;
  --text-faint: #6b707d;

  --accent: #e63950;        /* marquee crimson */
  --accent-hover: #ff4d64;
  --accent-glow: rgba(230, 57, 80, 0.35);
  --gold: #d4af6a;          /* rating / star gold */
  --gold-soft: rgba(212, 175, 106, 0.16);

  --success: #4caf7d;

  /* Typography */
  --font-display: Georgia, 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'Courier New', Courier, monospace;

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --max-width: 1360px;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 20px 45px rgba(0, 0, 0, 0.5);

  --nav-height: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Light theme overrides */
body.light-mode {
  --bg: #f3f1eb;
  --bg-alt: #ebe8e0;
  --surface: #ffffff;
  --surface-2: #f7f5ef;
  --surface-glass: rgba(255, 255, 255, 0.7);
  --border: rgba(20, 20, 25, 0.08);
  --border-strong: rgba(20, 20, 25, 0.14);
  --text: #17181d;
  --text-muted: #565b66;
  --text-faint: #82858e;
  --shadow-soft: 0 10px 30px rgba(20, 20, 25, 0.1);
  --shadow-lift: 0 20px 45px rgba(20, 20, 25, 0.16);
}

/* ---------- 2. RESET & BASE ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
  overflow-x: hidden;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ---------- 3. FADE-IN ON SCROLL ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 4. NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.is-scrolled {
  background: var(--surface-glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.navbar__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand__mark { border-radius: 50%; }
.brand__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
}
.brand__accent { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  position: relative;
  padding: 10px 16px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-badge {
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  min-width: 18px;
  text-align: center;
}

.navbar__actions { display: flex; align-items: center; gap: 10px; }

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.icon-btn:hover { transform: rotate(-12deg) scale(1.06); border-color: var(--gold); }
.icon-btn .icon { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.7; }
.icon-moon { display: none; }
body.light-mode .icon-sun { display: none; }
body.light-mode .icon-moon { display: block; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  align-items: center;
  justify-content: center;
}
.hamburger span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. HERO ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(180deg, #1a1c24, var(--bg));
}
.hero__backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  transform: scale(1.05);
  filter: saturate(1.05);
  transition: background-image 0.6s var(--ease);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,9,13,0.35) 0%, rgba(8,9,13,0.55) 45%, var(--bg) 96%),
    linear-gradient(90deg, rgba(8,9,13,0.85) 0%, rgba(8,9,13,0.15) 55%);
}
body.light-mode .hero__scrim {
  background:
    linear-gradient(180deg, rgba(243,241,235,0.25) 0%, rgba(243,241,235,0.6) 45%, var(--bg) 96%),
    linear-gradient(90deg, rgba(243,241,235,0.9) 0%, rgba(243,241,235,0.2) 55%);
}

/* Signature: rotating film reel silhouette, subtle ambient motion */
.hero__reel {
  position: absolute;
  top: 8%;
  right: -6%;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 22px dashed rgba(212, 175, 106, 0.12);
  animation: spin 90s linear infinite;
  pointer-events: none;
}
.hero__reel::before {
  content: "";
  position: absolute;
  inset: 60px;
  border-radius: 50%;
  border: 2px solid rgba(212, 175, 106, 0.1);
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 0 32px 96px;
  margin: 0 auto;
  width: 100%;
  max-width: var(--max-width);
}
.hero__eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 14px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  line-height: 1.05;
  font-weight: 700;
  max-width: 14ch;
  margin-bottom: 18px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.hero__meta {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}
.hero__desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 55ch;
  margin-bottom: 32px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- 6. BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color .25s var(--ease);
}
.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 24px var(--accent-glow);
}
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 14px 32px var(--accent-glow); }
.btn--primary:active { transform: translateY(0) scale(0.98); }

.btn--ghost {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }

.btn--favorite {
  width: 100%;
  justify-content: center;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border-strong);
  margin-top: 8px;
}
.btn--favorite:hover { border-color: var(--accent); color: var(--accent); }
.btn--favorite.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--favorite.is-active svg { fill: currentColor; }

/* ---------- 7. SECTION HEADINGS ---------- */
.section-heading { margin-bottom: 28px; }
.section-heading__eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 6px;
}
.section-heading__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
}

/* ---------- 8. BROWSE CONTROLS ---------- */
.browse-controls {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 90px 32px 20px;
}

.search-bar {
  position: relative;
  max-width: 560px;
  margin-bottom: 24px;
}
.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: var(--text-faint);
}
.search-bar input {
  width: 100%;
  padding: 15px 44px 15px 48px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 0.98rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.search-bar input::placeholder { color: var(--text-faint); }
.search-bar input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
}
.search-clear:hover { color: var(--accent); }

.genre-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.genre-pill {
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.25s var(--ease);
  position: relative;
}
.genre-pill:hover { color: var(--text); border-color: var(--gold); transform: translateY(-1px); }
.genre-pill.is-active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
body.light-mode .genre-pill.is-active { background: var(--text); color: var(--bg); }

/* ---------- 9. MOVIE GRID & CARDS ---------- */
.movie-section, .favorites-section, .recommend-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 32px 70px;
}

.results-count {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 26px;
}

.movie-row {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x proximity;
}
.movie-row .movie-card { min-width: 220px; scroll-snap-align: start; }

.movie-card {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  opacity: 0;
  animation: cardIn 0.6s var(--ease) forwards;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.movie-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: var(--shadow-lift);
  border-color: var(--border-strong);
  z-index: 3;
}

.movie-card__poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--surface-2);
}
.movie-card__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.movie-card:hover .movie-card__poster { transform: scale(1.08); }

.movie-card__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6,7,10,0.92) 100%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.movie-card:hover .movie-card__gradient { opacity: 1; }

.movie-card__rating {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(10, 11, 15, 0.65);
  backdrop-filter: blur(6px);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(212,175,106,0.3);
}
.movie-card__rating svg { width: 12px; height: 12px; fill: var(--gold); }

.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 11, 15, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.fav-btn:hover { transform: scale(1.12); background: rgba(10,11,15,0.8); }
.fav-btn svg { width: 18px; height: 18px; transition: fill 0.2s var(--ease), stroke 0.2s var(--ease); }
.fav-btn.is-active svg { fill: var(--accent); stroke: var(--accent); }
.fav-btn.pop { animation: pop 0.4s var(--ease); }
@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.movie-card__body { padding: 14px 14px 16px; }
.movie-card__title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.movie-card__sub {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-faint);
}
.movie-card__genre-tag {
  color: var(--accent);
  font-weight: 700;
}
.dot { opacity: 0.5; }

/* ---------- 10. EMPTY STATE ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1.02rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
}

/* ---------- 11. MODAL ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(6, 7, 10, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.modal-overlay.is-open { opacity: 1; }
.modal-overlay[hidden] { display: none; }

.modal {
  position: relative;
  width: 100%;
  max-width: 880px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface-glass);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  display: grid;
  grid-template-columns: 300px 1fr;
  transform: translateY(24px) scale(0.97);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); opacity: 1; }

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  z-index: 5;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.modal-close:hover { background: var(--accent); transform: rotate(90deg); }

.modal__poster { height: 100%; min-height: 280px; }
.modal__poster img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }

.modal__body { padding: 36px 34px; }
.modal__genre {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.modal__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  margin-bottom: 14px;

  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}
.modal__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.modal__stats .stat { display: flex; align-items: center; gap: 5px; }
.modal__stats .stat svg { color: var(--gold); }

.modal__section { margin-bottom: 18px; }
.modal__section h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 6px;
  font-weight: 700;
}
.modal__section p { color: var(--text); font-size: 0.96rem; line-height: 1.6; }

/* ---------- 12. FOOTER ---------- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding-top: 60px;
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px 40px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer__brand .brand { margin-bottom: 14px; }
.footer__about { color: var(--text-muted); font-size: 0.92rem; max-width: 42ch; line-height: 1.6; }

.footer__col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 16px;
}
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul a { color: var(--text-muted); font-size: 0.94rem; transition: color 0.2s var(--ease); }
.footer__col ul a:hover { color: var(--accent); }
.footer__col p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }

.social-icons { display: flex; gap: 10px; }
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.25s var(--ease);
}
.social-icon:hover { color: #fff; background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 22px 32px;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* ---------- 13. TOAST ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lift);
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 600;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 14. RESPONSIVE ---------- */
@media (max-width: 980px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .modal { grid-template-columns: 1fr; }
  .modal__poster { min-height: 240px; }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
    gap: 4px;
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }
  .nav-links.is-open { transform: translateY(0); opacity: 1; }
  .nav-link { padding: 14px 16px; }
  .hamburger { display: flex; }

  .hero { min-height: 82vh; }
  .hero__content { padding: 0 20px 60px; }
  .hero__reel { width: 260px; height: 260px; top: 4%; }

  .browse-controls, .movie-section, .favorites-section, .recommend-section { padding-left: 20px; padding-right: 20px; }
  .browse-controls { padding-top: 84px; }

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

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 30px; padding: 0 20px 32px; }
}

@media (max-width: 480px) {
  .footer__inner { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .movie-grid { grid-template-columns: repeat(2, 1fr); }
}
