@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

:root {
  --bg:        #0a0a0f;
  --bg-2:      #101018;
  --surface:   #16161f;
  --surface-2: #1d1d28;
  --border:    rgba(255, 255, 255, 0.08);
  --border-hi: rgba(255, 255, 255, 0.16);
  --text:      #f4f4f6;
  --text-dim:  #9a9aa6;
  --accent:    #1cb7ff;
  --accent-hi: #2ff58b;
  --gold:      #f5c518;
  --radius:    14px;
  --radius-sm: 10px;
  --shadow:    0 18px 40px -12px rgba(0, 0, 0, 0.75);
  --maxw:      1280px;
  --nav-h:     68px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Figtree', system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -200px, rgba(229, 9, 20, 0.14), transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 340px);
  background-attachment: fixed;
  background-color: var(--bg);
  margin: 0 !important;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--text) !important; text-decoration: none !important; }

img { display: block; }

h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, p, .p, small, strong, span, em, label { color: var(--text); }

::selection { background: var(--accent); color: #fff; }

* { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.22) transparent; }
::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.3); }
::-webkit-scrollbar-track { background: transparent; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(10,10,15,.92), rgba(10,10,15,.55));
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.navbar.scrolled {
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 32px);
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { width: 40px; height: auto; }
.nav-wordmark {
  font-weight: 900;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.nav-amp { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}
.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dim) !important;
  padding: 9px 14px;
  border-radius: 999px;
  transition: color .18s ease, background .18s ease;
  white-space: nowrap;
}
.nav-link i { font-size: 0.85em; margin-right: 5px; opacity: .85; }
.nav-link:hover { color: #fff !important; background: rgba(255,255,255,.06); }
.nav-link.active { color: #fff !important; background: rgba(229,9,20,.16); }

.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: min(280px, 32vw);
}
.nav-search-ico {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  font-size: 0.9rem;
  pointer-events: none;
}
.nav-search input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color .18s ease, background .18s ease;
}
.nav-search input::placeholder { color: var(--text-dim); }
.nav-search input:focus {
  outline: none;
  background: rgba(0,0,0,.5);
  border-color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  margin: 0;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px clamp(14px, 3vw, 32px) 60px;
}
.section { margin-top: 44px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: "";
  width: 4px;
  height: 1.1em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-hi));
}
.see-more {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-dim) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .18s ease, gap .18s ease;
}
.see-more:hover { color: #fff !important; gap: 10px; }

.hero {
  position: relative;
  width: 100%;
  max-width: var(--maxw);
  margin: 18px auto 0;
  padding: 0 clamp(14px, 3vw, 32px);
}
.hero-viewport {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #000;
}
.hero-track {
  display: flex;
  transition: transform .6s cubic-bezier(.65,.05,.36,1);
  will-change: transform;
}
.hero-slide {
  position: relative;
  min-width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
}
.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,8,12,.94) 0%, rgba(8,8,12,.55) 42%, rgba(8,8,12,0) 72%),
    linear-gradient(0deg, rgba(8,8,12,.92) 2%, rgba(8,8,12,0) 46%);
}
.hero-content {
  position: absolute;
  left: 0; bottom: 0;
  padding: clamp(18px, 4vw, 48px);
  max-width: 640px;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(229,9,20,.16);
  border: 1px solid rgba(229,9,20,.4);
  color: #ff6b72;
  margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(1.7rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  text-shadow: 0 2px 24px rgba(0,0,0,.6);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  color: #d7d7df;
  font-size: clamp(.82rem, 1.6vw, .98rem);
  font-weight: 600;
  margin-bottom: 18px;
}
.hero-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-dim); }
.hero-meta .year { color: #fff; }
.hero-genres { color: var(--text-dim); }
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--accent-hi);
  color: #000 !important;
  font-weight: 800;
  font-size: 0.98rem;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
  box-shadow: 0 10px 26px -8px rgba(229,9,20,.7);
}
.hero-cta:hover { background: var(--accent); transform: translateY(-2px); }

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: rgba(0,0,0,.42);
  border: 1px solid var(--border-hi);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .25s ease, background .18s ease;
  margin: 0;
}
.hero:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: var(--accent); }
.hero-arrow.prev { left: calc(clamp(14px,3vw,32px) + 14px); }
.hero-arrow.next { right: calc(clamp(14px,3vw,32px) + 14px); }

/* Dots */
.hero-dots {
  position: absolute;
  right: clamp(18px, 4vw, 48px);
  bottom: clamp(18px, 4vw, 48px);
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 26px; height: 4px;
  border-radius: 4px;
  background: rgba(255,255,255,.28);
  border: none; padding: 0; margin: 0;
  cursor: pointer;
  overflow: hidden;
  transition: background .2s ease;
}
.hero-dot.active { background: rgba(255,255,255,.45); }
.hero-dot.active::after {
  content: "";
  display: block;
  height: 100%;
  width: 100%;
  background: var(--accent-hi);
  transform-origin: left;
  animation: heroProgress 6s linear forwards;
}
@keyframes heroProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.row-wrap { position: relative; }
.row-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 2px 14px;
  scroll-snap-type: x proximity;
  scroll-padding-left: 2px;
  -webkit-overflow-scrolling: touch;
}
.row-nav {
  position: absolute;
  top: 0; bottom: 14px;
  width: 52px;
  z-index: 4;
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  color: #fff;
  cursor: pointer;
  margin: 0;
  font-size: 1.1rem;
  opacity: 0;
  transition: opacity .2s ease;
}
.row-nav.prev { left: -10px; background: linear-gradient(90deg, var(--bg) 20%, transparent); justify-content: flex-start; padding-left: 6px; }
.row-nav.next { right: -10px; background: linear-gradient(270deg, var(--bg) 20%, transparent); justify-content: flex-end; padding-right: 6px; }
.row-nav span {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: rgba(20,20,28,.9);
  border: 1px solid var(--border-hi);
  border-radius: 50%;
}
.row-wrap:hover .row-nav { opacity: 1; }
@media (hover: hover) and (min-width: 760px) { .row-nav { display: flex; } }

/* Poster card */
.p-card {
  flex: 0 0 auto;
  width: 160px;
  scroll-snap-align: start;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative;
}
.p-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hi);
  box-shadow: 0 16px 30px -10px rgba(0,0,0,.7);
}
.p-thumb { position: relative; aspect-ratio: 2 / 3; background: #0d0d13; }
.p-thumb img { width: 100%; height: 100%; object-fit: cover; }
.p-rating {
  position: absolute;
  top: 8px; left: 8px;
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(0,0,0,.72);
  color: #fff;
  backdrop-filter: blur(2px);
}
.p-rating i { color: var(--gold); }
.p-type {
  position: absolute;
  top: 8px; right: 8px;
  font-size: 0.62rem; font-weight: 800; letter-spacing: .05em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 6px;
  background: rgba(0,0,0,.72);
  border: 1px solid var(--border-hi);
}
.p-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0) 55%);
  opacity: 0;
  transition: opacity .2s ease;
}
.p-play i {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(229,9,20,.92);
  color: #fff; font-size: 1rem;
  transform: scale(.8);
  transition: transform .2s ease;
}
.p-card:hover .p-play { opacity: 1; }
.p-card:hover .p-play i { transform: scale(1); }
.p-info { padding: 9px 10px 11px; }
.p-name {
  font-size: 0.86rem; font-weight: 700;
  margin: 0 0 3px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.p-sub { font-size: 0.76rem; color: var(--text-dim); display: flex; gap: 8px; align-items: center; }

.p-date {
  position: absolute;
  bottom: 8px; left: 8px; right: 8px;
  font-size: 0.72rem; font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(10,10,15,.85);
  border: 1px solid var(--border-hi);
  text-align: center;
  color: #fff;
}
.p-date i { color: var(--accent-hi); margin-right: 5px; }

.page-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 6px 0 4px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.page-title i { color: var(--accent); }
.page-sub { color: var(--text-dim); margin: 0 0 8px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.card {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  position: relative;
  text-align: left;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hi);
  box-shadow: 0 16px 30px -12px rgba(0,0,0,.7);
}
.card > div { position: relative; }
.card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  height: auto;
  object-fit: cover;
  border-radius: 0;
}
.card strong {
  display: block;
  padding: 10px 11px 2px;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.card small { display: block; padding: 0 11px 11px; color: var(--text-dim); font-size: 0.78rem; }
.badge {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(0,0,0,.72);
  color: #fff;
  padding: 3px 8px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid var(--border-hi);
  border-radius: 6px;
}
.player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.player-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.player-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, #14141c, #000);
  z-index: 5;
  transition: opacity .35s ease, visibility .35s ease;
}
.player-loader.hidden { opacity: 0; visibility: hidden; }
.spinner {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.14);
  border-top-color: var(--accent);
  animation: spin .8s linear infinite;
}
.loader-label { position: absolute; margin-top: 96px; color: var(--text-dim); font-size: .85rem; font-weight: 600; }
@keyframes spin { to { transform: rotate(360deg); } }

.watch-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 20px 0 6px;
}
.server-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-right: auto;
}
.server-label b { color: #fff; }
.server-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 6px; }
.server-btn {
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all .16s ease;
  margin: 0;
}
.server-btn:hover { color: #fff; border-color: var(--border-hi); background: var(--surface); }
.server-btn.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 20px -8px rgba(229,9,20,.7);
}
.server-hint { font-size: 0.82rem; color: var(--text-dim); margin: 6px 0 0; }

.movie-information {
  display: flex;
  gap: 26px;
  margin-top: 36px;
  padding: 22px;
  background: linear-gradient(135deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: 18px;
  align-items: flex-start;
  box-shadow: none;
  text-align: left;
}
.movie-img {
  width: 210px !important;
  flex-shrink: 0;
  border-radius: 12px;
  box-shadow: 0 12px 28px -10px rgba(0,0,0,.8);
}
.movie-information h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; letter-spacing: -.02em; margin: 0 0 6px; }
.movie-information em { color: var(--text-dim); }
.movie-information p { line-height: 1.6; margin: 0 0 10px; color: #d5d5dd; }
.movie-information strong { color: #fff; }
.meta-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.chip {
  font-size: 0.8rem; font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  color: #e6e6ec;
}
.chip.rating i { color: var(--gold); margin-right: 5px; }

.epi-list { margin-top: 8px; }
.season-select-wrap { display: flex; align-items: center; gap: 12px; margin: 10px 0 16px; }
.season-select-wrap label { font-weight: 800; font-size: 1.05rem; }
.episodes-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 6px 2px 16px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.ep-card {
  flex: 0 0 230px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  position: relative;
}
.ep-card:hover { transform: translateY(-4px); border-color: var(--border-hi); box-shadow: 0 12px 24px -10px rgba(0,0,0,.6); }
.ep-card.active { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.ep-thumb { position: relative; aspect-ratio: 16 / 9; background: #000; }
.ep-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-num-badge {
  position: absolute; top: 8px; left: 8px;
  background: rgba(0,0,0,.78); color: #fff;
  font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 20px;
}
.ep-runtime {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,.78); color: #fff;
  font-size: 12px; padding: 3px 8px; border-radius: 4px;
}
.ep-watched-tick {
  position: absolute; top: 8px; right: 8px;
  width: 22px; height: 22px; display: none;
  place-items: center;
  background: rgba(0,0,0,.7); border-radius: 50%;
  color: #37d67a; font-size: 11px;
}
.ep-card.watched .ep-watched-tick { display: grid; }
.ep-cw-flag {
  position: absolute; top: 0; left: 0; right: 0;
  display: none;
  align-items: center; gap: 6px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 6px 10px;
  background: linear-gradient(90deg, var(--accent), rgba(229,9,20,0));
  color: #fff; z-index: 2;
}
.ep-card.continue .ep-cw-flag { display: none!important; }
.ep-card.continue { border-color: var(--accent-hi); box-shadow: 0 0 0 1px var(--accent-hi), 0 12px 30px -8px rgba(229,9,20,.5); }
.ep-progress { height: 3px; background: rgba(255,255,255,.1); }
.ep-progress span { display: block; height: 100%; background: var(--accent); width: 0; }
.ep-card.watched .ep-progress span, .ep-card.continue .ep-progress span { width: 100%; }
.ep-body { padding: 10px 12px 14px; }
.ep-title { font-size: 14px; font-weight: 700; margin: 0 0 6px; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ep-overview { font-size: 12.5px; line-height: 1.45; margin: 0; color: var(--text-dim);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.resume-banner {
  display: none;
  align-items: center;
  gap: 16px;
  margin: 18px 0 0;
  padding: 14px 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(229,9,20,.18), rgba(229,9,20,.04));
  border: 1px solid rgba(229,9,20,.35);
}
.resume-banner.show { display: flex; }
.resume-banner .rb-ico { font-size: 1.4rem; color: var(--accent-hi); }
.resume-banner .rb-text { flex: 1; min-width: 0; }
.resume-banner .rb-text b { display: block; font-size: 0.98rem; }
.resume-banner .rb-text span { font-size: 0.83rem; color: var(--text-dim); }
.resume-banner .rb-btn {
  padding: 10px 20px; border-radius: 999px;
  background: var(--accent); color: #fff !important; font-weight: 800; font-size: 0.9rem;
  white-space: nowrap;
}
.resume-banner .rb-btn:hover { background: var(--accent-hi); }
.resume-banner .rb-dismiss {
  background: transparent; border: none; color: var(--text-dim); cursor: pointer;
  font-size: 1.1rem; padding: 4px 8px; margin: 0;
}

.related-head { font-size: 1.35rem; font-weight: 800; margin: 44px 0 0; letter-spacing: -.01em; }

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0 8px;
  align-items: center;
}
select, input[type=number] {
  padding: 13px 16px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  width: auto;
  margin: 0;
}
select:focus, input[type=number]:focus { outline: none; border-color: var(--accent); }
.btn-primary {
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  border: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  margin: 0;
  transition: background .16s ease, transform .16s ease;
}
.btn-primary:hover { background: var(--accent-hi); transform: translateY(-1px); }

button {
  font-family: inherit;
  cursor: pointer;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}
.next, .prev {
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text) !important;
  font-weight: 700;
  transition: background .16s ease, border-color .16s ease;
}
.next:hover, .prev:hover { background: var(--surface); border-color: var(--border-hi); }

.footer {
  margin-top: 60px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.5));
  border-top: 1px solid var(--border);
  padding: 34px 20px 40px;
  text-align: center;
}
.footer p { color: var(--text-dim); font-size: 0.9rem !important; max-width: 780px; margin: 0 auto 12px; line-height: 1.6; }
.footer .foot-brand { color: #fff; font-weight: 800; }
.footer a { color: var(--accent-hi) !important; }

/* 404 */
.error-wrap { text-align: center; padding: 80px 20px; }
.error-wrap h1 { font-size: clamp(5rem, 18vw, 10rem); font-weight: 900; line-height: .9;
  background: linear-gradient(180deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.error-wrap p { font-size: clamp(1.4rem, 4vw, 2.2rem); color: var(--text-dim); }
.error-wrap a.btn-primary { display: inline-flex; margin-top: 20px; text-decoration: none; }

@media (max-width: 960px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 12px clamp(14px, 3vw, 32px) 20px;
    background: rgba(10,10,15,.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-140%);
    transition: transform .3s cubic-bezier(.5,0,.2,1);
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-link { padding: 14px 12px; font-size: 1rem; }
  .nav-toggle { display: flex; }
  .nav-search { width: auto; flex: 1; max-width: 420px; margin-left: auto; }
}
@media (max-width: 560px) {
  .nav-wordmark { display: none; }
  .nav-search { max-width: none; }
  .movie-information { flex-direction: column; align-items: center; text-align: center; }
  .movie-information > div { text-align: left; width: 100%; }
  .movie-img { width: 160px !important; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
  .p-card { width: 132px; }
  .hero-slide { aspect-ratio: 3 / 4; }
  .hero-slide img { object-position: center 12%; }
  .hero-dots { bottom: 12px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-dot.active::after { animation: none; transform: scaleX(1); }
}
