* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #0f0f11;
  color: #f5f5f7;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
:root {
  --max: 1280px;
  --c-accent: #ff375f;
  --c-accent-grad: linear-gradient(120deg, #ff375f, #ff5f87);
  --c-bg: #0f0f11;
  --c-panel: #14171d;
  --c-panel-alt: #1b1f25;
  --c-border: #22272f;
  --c-text-dim: #9aa0a6;
  --radius: 18px;
  --shadow: 0 8px 28px -10px rgba(0, 0, 0, 0.6);
}
.nav {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 12px 20px;
  background: #14171d;
  position: sticky;
  top: 0;
}
.nav input {
  flex: 1;
  max-width: 320px;
  background: #1d2229;
  border: 1px solid #2a3032;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
}
.btn-small {
  background: #ff375f;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.btn-small:hover {
  filter: brightness(1.15);
}
/* New layout */
.site-header {
  position: relative;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 40px);
  background: rgba(20, 23, 29, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.topbar .brand {
  margin-right: auto;
}
.topbar__link {
  color: #f5f5f7;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.25s;
  margin-right: 6px;
}
.topbar__link:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
}
.topbar__link[aria-current="page"] {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
  cursor: default;
}
.brand {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--c-accent);
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 14px;
}
.search-box input {
  background: #1d2229;
  border: 1px solid #272e37;
  color: #fff;
  padding: 12px 16px;
  border-radius: 40px;
  min-width: 240px;
  font-size: 0.85rem;
}
.search-box input:focus {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}
.menu-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s;
  padding: 0;
  line-height: 1;
}
.menu-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.menu-btn:focus {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}
.pill-btn {
  background: var(--c-panel-alt);
  color: #fff;
  border: 1px solid #2a313b;
  padding: 10px 18px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 30px;
  cursor: pointer;
  text-transform: uppercase;
}
.pill-btn:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
}
.pill-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
}
.pill-btn--ghost:hover {
  background: var(--c-accent);
}
.pill-btn.active {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
  cursor: default;
}

.side-nav {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 300px;
  max-width: min(82vw, 320px);
  background: var(--c-panel);
  border-right: 1px solid var(--c-border);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.75);
  transform: translateX(110%);
  transition: transform 0.4s ease, visibility 0.3s ease;
  z-index: 120;
  padding: 32px 28px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  visibility: hidden;
  pointer-events: none;
}
.side-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0)
  );
  pointer-events: none;
}
.side-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}
.side-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-direction: row-reverse;
}
.side-nav__title {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.side-nav__subtitle {
  margin: 0;
  font-size: 0.75rem;
  color: var(--c-text-dim);
}
.side-nav__nav {
  flex: 1;
  overflow: auto;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.side-nav__section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.side-nav__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.side-nav__links a {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: 0.25s;
}
.side-nav__links a:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  box-shadow: 0 10px 28px -12px rgba(255, 55, 95, 0.5);
  transform: translateX(4px);
}
.side-nav__nav::-webkit-scrollbar {
  width: 6px;
}
.side-nav__nav::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
}
.genre-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.genre-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: 0.25s;
}
.genre-list a::after {
  content: "→";
  font-size: 0.75rem;
  opacity: 0.5;
  transition: 0.25s;
}
.genre-list a:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  box-shadow: 0 10px 28px -12px rgba(255, 55, 95, 0.5);
  transform: translateX(4px);
}
.genre-list a:hover::after {
  opacity: 1;
  transform: translateX(2px);
}
.close-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: 0.3s;
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
}
.close-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.close-btn:focus {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}
.side-nav__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 110;
  pointer-events: none;
}
.side-nav__overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
body.side-nav-open {
  overflow: hidden;
}

.hero {
  min-height: 56vh;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #181d23;
}
.hero__backdrop {
  position: absolute;
  inset: 0;
  object-fit: cover;
  background: #181d23;
  background-size: cover;
  background-position: center;
  filter: brightness(0.65) saturate(1.05);
  transform: scale(1.05);
  transition: 1.2s ease;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.25),
    rgba(0, 0, 0, 0.75) 70%,
    #0f0f11
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 60px 0 70px;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}
.hero__title {
  margin: 0 0 16px;
  font-size: clamp(2.4rem, 5vw, 3.3rem);
  letter-spacing: 1px;
  line-height: 1.05;
}
.hero__tagline {
  max-width: 720px;
  margin: 0 0 24px;
  font-size: 1rem;
  opacity: 0.88;
  line-height: 1.5;
}
.hero__actions {
  display: flex;
  gap: 16px;
}
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 14px 30px;
  border-radius: 40px;
  cursor: pointer;
  border: none;
  transition: 0.35s;
}
.cta--primary {
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 10px 32px -10px rgba(255, 55, 95, 0.55);
}
.cta--primary:hover {
  filter: brightness(1.15);
  transform: translateY(-3px);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
}
.main {
  padding-top: 46px;
}
.genre-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 48px 0 26px;
  flex-wrap: wrap;
}
.genre-head__copy {
  flex: 1 1 280px;
}
.genre-head__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--c-text-dim);
}
.genre-head__title {
  margin: 6px 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: 0.8px;
}
.genre-head__summary {
  margin: 0;
  color: var(--c-text-dim);
  max-width: 560px;
  font-size: 0.9rem;
}
.genre-head__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.row {
  margin-bottom: 70px;
}
.row__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 18px;
  gap: 20px;
}
.row__title {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.see-all {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid #2c333c;
  color: #fff;
  padding: 10px 18px;
  border-radius: 30px;
  font-size: 0.62rem;
  letter-spacing: 1px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}
.see-all:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
}
/* legacy main replaced by .main + .container above */
.movie-section {
  margin-bottom: 50px;
}
.movie-section h3 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.movie-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(160px, 14vw, 210px);
  overflow-x: auto;
  gap: 28px;
  padding: 6px 4px 10px;
  scrollbar-width: none;
}
.movie-list::-webkit-scrollbar {
  display: none;
}
.movie-card {
  position: relative;
  background: var(--c-panel-alt);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 290px;
  transition: transform 0.45s cubic-bezier(0.18, 0.8, 0.3, 0.95),
    box-shadow 0.45s;
}
.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 42px -14px rgba(0, 0, 0, 0.8);
}
.movie-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  background: #222;
}
.movie-card h4 {
  margin: 10px 12px 4px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  min-height: 2.2em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.movie-card .meta {
  margin: 0 12px 12px;
  font-size: 0.6rem;
  opacity: 0.7;
  letter-spacing: 0.5px;
}
.movie-card .fav {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(0, 0, 0, 0.55);
  border: none;
  color: #ff7a95;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.85rem;
  transition: 0.3s;
}
.movie-card .fav:hover {
  background: rgba(0, 0, 0, 0.75);
  transform: scale(1.05);
}
.movie-card .fav.active {
  color: var(--c-accent);
}
.movie-card:first-child,
.movie-card:nth-child(2) {
  all: unset;
  position: relative;
  background: var(--c-panel-alt);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 290px;
  transition: transform 0.45s cubic-bezier(0.18, 0.8, 0.3, 0.95),
    box-shadow 0.45s;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 30px;
  margin-top: 10px;
}
.hidden {
  display: none !important;
}
.explore-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 10px 0 14px;
}
.pager {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
}
.pager button {
  background: var(--c-panel-alt);
  color: #fff;
  border: 1px solid #2e353d;
  padding: 10px 20px;
  border-radius: 28px;
  cursor: pointer;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.pager button:hover:not(:disabled) {
  background: var(--c-accent);
  border-color: var(--c-accent);
}
.pager button:hover:not(:disabled) {
  background: #ff375f;
  border-color: #ff375f;
}
.pager button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.loading {
  padding: 40px 0;
  text-align: center;
  opacity: 0.6;
}
.no-poster {
  width: 100%;
  aspect-ratio: 2/3;
  background: #222;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  opacity: 0.5;
}

.footer {
  padding: 60px 0 40px;
  text-align: center;
  font-size: 0.6rem;
  opacity: 0.5;
}

/* Redesigned footer */
.site-footer {
  background: var(--c-panel);
  border-top: 1px solid var(--c-border);
  margin-top: 60px;
}
.site-footer .footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px clamp(16px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: flex-start;
}
.site-footer .footer__brand .brand {
  font-size: 1.2rem;
}
.site-footer .footer__tag {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--c-text-dim);
}
.site-footer .footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.site-footer .footer__nav a {
  color: #cfd3d7;
  text-decoration: none;
  font-size: 0.8rem;
  opacity: 0.9;
}
.site-footer .footer__nav a:hover {
  color: #fff;
}
.site-footer .footer__legal {
  grid-column: 1/-1;
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--c-text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}
.site-footer .footer__copy {
  margin: 0;
}

@media (max-width: 900px) {
  .search-box {
    min-width: 0;
  }
  .search-box input {
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 780px) {
  .site-footer .footer__inner {
    grid-template-columns: 1fr;
  }
  .site-footer .footer__legal {
    flex-direction: column;
    gap: 6px;
  }
  .topbar {
    flex-wrap: wrap;
    gap: 10px;
    justify-content: space-between;
    padding: 10px;
  }
  .topbar .brand {
    flex-basis: 100%;
    text-align: center;
    margin-bottom: 6px;
    justify-content: center;
  }
  .search-box {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
  }
  .search-box input {
    flex: 1;
    min-width: 0;
    max-width: 100%;
  }
  .topbar .pill-btn {
    display: none;
  }
}

