:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111c34;
  --line: rgba(148, 163, 184, 0.18);
  --text: #ffffff;
  --muted: #94a3b8;
  --muted-2: #cbd5e1;
  --brand: #0284c7;
  --brand-2: #2563eb;
  --accent: #38bdf8;
  --orange: #f97316;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #020617 0%, #0f172a 50%, #020617 100%);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 15%, rgba(14, 165, 233, 0.18), transparent 30%),
    radial-gradient(circle at 85% 5%, rgba(37, 99, 235, 0.18), transparent 26%),
    radial-gradient(circle at 55% 90%, rgba(14, 165, 233, 0.12), transparent 30%);
}

img {
  max-width: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.94));
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.3);
}

.header-inner {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 900;
  letter-spacing: -0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(90deg, #38bdf8, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
  font-size: 15px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex: 1;
}

.nav-link,
.mobile-link {
  color: var(--muted-2);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--accent);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.top-search,
.mobile-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
}

.top-search input,
.mobile-search input,
.hero-search-card input,
.filter-controls input,
.filter-controls select {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}

.top-search input {
  width: 160px;
  padding: 7px 4px 7px 12px;
}

.top-search button,
.mobile-search button,
.hero-search-card button {
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #0284c7, #2563eb);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(51, 65, 85, 0.7);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 4px;
}

.mobile-nav {
  display: none;
  padding: 14px 24px 20px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-nav.is-open {
  display: grid;
  gap: 14px;
}

.hero {
  position: relative;
  height: 78vh;
  min-height: 620px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 6s ease;
}

.hero-slide.is-active > img {
  transform: scale(1.1);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.25) 72%, rgba(0, 0, 0, 0.7) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.95), transparent 42%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
  margin: 58px auto 0;
  width: min(1180px, calc(100% - 48px));
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-kicker span,
.detail-kicker,
.feature-copy > span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(135deg, #0284c7, #2563eb);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  text-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

.hero p {
  max-width: 660px;
  margin: 0 0 30px;
  color: #dbeafe;
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  box-shadow: 0 18px 35px rgba(14, 165, 233, 0.28);
}

.ghost-button {
  border: 1px solid rgba(226, 232, 240, 0.24);
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 24px 50px rgba(14, 165, 233, 0.35);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, 0.52);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(2, 132, 199, 0.9);
  transform: translateY(-50%) scale(1.07);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 15;
  display: flex;
  gap: 9px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #38bdf8;
}

.hero-search-card {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 92px;
  z-index: 18;
  width: min(380px, calc(100% - 48px));
  padding: 20px;
  border: 1px solid rgba(226, 232, 240, 0.18);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-search-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 18px;
}

.hero-search-card form {
  display: flex;
  gap: 8px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
}

.hero-search-card input {
  flex: 1;
  padding: 10px 12px;
}

.section-wrap {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0 0;
}

.section-wrap.no-top {
  padding-top: 34px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.section-heading h2,
.filter-panel h2,
.side-card h2,
.story-block h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-heading p,
.filter-panel p,
.category-tile em,
.category-overview-card em {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-heading a {
  flex: 0 0 auto;
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.featured-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.movie-card {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.13);
  border-radius: 20px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.88), rgba(15, 23, 42, 0.95));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.36);
  box-shadow: 0 28px 70px rgba(14, 165, 233, 0.16);
}

.card-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #020617;
}

.card-image img,
.ranking-cover img,
.side-poster img,
.feature-poster img,
.thumb-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-image img {
  transition: transform 0.46s ease;
}

.movie-card:hover .card-image img {
  transform: scale(1.1);
}

.image-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(2, 132, 199, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.85);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rank-badge,
.card-year {
  position: absolute;
  top: 10px;
  min-width: 34px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.rank-badge {
  left: 10px;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.card-year {
  right: 10px;
  background: rgba(0, 0, 0, 0.62);
}

.card-body {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.card-body strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #fff;
  font-size: 18px;
  transition: color 0.2s ease;
}

.movie-card:hover .card-body strong {
  color: var(--accent);
}

.card-desc {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.card-meta em,
.card-meta b,
.card-meta i {
  max-width: 100%;
  padding: 4px 8px;
  overflow: hidden;
  border-radius: 999px;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-style: normal;
  font-weight: 800;
  background: rgba(51, 65, 85, 0.74);
}

.scroll-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 320px;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-snap-type: x proximity;
}

.scroll-row .movie-card {
  scroll-snap-align: start;
}

.compact-card .card-body strong {
  font-size: 16px;
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 32px;
  align-items: center;
  padding: 32px;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.88), rgba(3, 105, 161, 0.5), rgba(15, 23, 42, 0.92));
  box-shadow: var(--shadow);
}

.feature-copy h2 {
  margin: 18px 0 14px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.feature-copy p {
  color: #dbeafe;
  line-height: 1.8;
}

.feature-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.feature-meta b {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.68);
}

.feature-poster {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.36);
}

.feature-poster span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.92);
  transform: translate(-50%, -50%);
}

.category-grid,
.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-tile,
.category-overview-card {
  display: grid;
  gap: 10px;
  min-height: 160px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.92));
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.category-tile:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.38);
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.82), rgba(37, 99, 235, 0.75));
}

.category-tile span,
.category-overview-card strong {
  font-size: 22px;
  font-weight: 950;
}

.page-shell,
.detail-shell {
  padding-top: 64px;
}

.page-hero {
  width: min(1180px, calc(100% - 48px));
  min-height: 310px;
  margin: 0 auto;
  padding: 82px 34px 46px;
  display: flex;
  align-items: end;
  border-radius: 0 0 34px 34px;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.2)),
    radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.28), transparent 30%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 41, 59, 0.86));
  box-shadow: var(--shadow);
}

.page-hero span {
  color: var(--accent);
  font-weight: 900;
}

.page-hero h1 {
  margin: 8px 0 14px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.06em;
}

.page-hero p {
  max-width: 760px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.category-overview-card {
  min-height: auto;
}

.thumb-stack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  height: 84px;
  overflow: hidden;
  border-radius: 14px;
}

.filter-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
  padding: 22px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.18);
}

.filter-panel h2 {
  font-size: 26px;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.filter-controls input,
.filter-controls select {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.72);
}

.filter-hidden {
  display: none !important;
}

.rank-grid,
.ranking-list {
  display: grid;
  gap: 12px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 56px 120px minmax(0, 1fr) 72px;
  gap: 16px;
  align-items: center;
  min-height: 92px;
  padding: 12px 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  color: #fff;
  text-decoration: none;
  background: rgba(15, 23, 42, 0.78);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ranking-row:hover {
  transform: translateX(5px);
  border-color: rgba(56, 189, 248, 0.32);
  background: rgba(30, 41, 59, 0.94);
}

.ranking-index {
  color: var(--accent);
  font-size: 22px;
  font-weight: 950;
  text-align: center;
}

.ranking-cover {
  display: block;
  height: 68px;
  overflow: hidden;
  border-radius: 12px;
}

.ranking-info {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.ranking-info strong,
.ranking-info span,
.ranking-info em {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ranking-info strong {
  font-size: 17px;
}

.ranking-info span {
  color: var(--muted-2);
}

.ranking-info em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.ranking-score {
  color: #fbbf24;
  font-size: 22px;
  font-weight: 950;
  text-align: right;
}

.detail-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 26px 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--muted-2);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.5));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  box-shadow: 0 18px 48px rgba(14, 165, 233, 0.42);
  font-size: 34px;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-card,
.side-card {
  margin-top: 24px;
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
}

.detail-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.detail-title-row h1 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.detail-meta,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-meta span,
.tag-list span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--muted-2);
  background: rgba(51, 65, 85, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.lead-text {
  margin: 0 0 22px;
  color: #bae6fd;
  font-size: 19px;
  line-height: 1.8;
}

.story-block {
  padding-top: 22px;
  margin-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.story-block h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.story-block p,
.side-card p {
  color: var(--muted-2);
  line-height: 1.9;
}

.detail-side {
  position: sticky;
  top: 88px;
}

.side-poster {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.side-related {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.side-related .movie-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
}

.side-related .card-image {
  height: 100%;
  min-height: 92px;
  aspect-ratio: auto;
}

.side-related .card-desc,
.side-related .card-meta i {
  display: none;
}

.site-footer {
  margin-top: 86px;
  padding: 48px 24px 28px;
  background: linear-gradient(90deg, #0f172a, #1e293b, #0f172a);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.footer-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 0.9fr;
  gap: 32px;
}

.footer-brand {
  margin-bottom: 14px;
  font-size: 20px;
}

.site-footer p {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 15px;
  font-size: 18px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.footer-links a {
  color: var(--muted-2);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  width: min(1180px, 100%);
  margin: 34px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .desktop-nav,
  .top-search {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .movie-grid,
  .featured-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-inner {
    padding: 0 16px;
  }

  .brand-text {
    font-size: 20px;
  }

  .hero {
    min-height: 700px;
    height: 86vh;
  }

  .hero-copy {
    width: calc(100% - 32px);
  }

  .hero-search-card {
    left: 16px;
    right: 16px;
    bottom: 72px;
    width: auto;
  }

  .hero-arrow {
    display: none;
  }

  .section-wrap,
  .detail-shell,
  .page-hero {
    width: calc(100% - 32px);
  }

  .section-heading,
  .filter-panel,
  .detail-title-row {
    display: grid;
    align-items: start;
  }

  .movie-grid,
  .featured-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .split-feature {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .filter-controls {
    justify-content: stretch;
  }

  .filter-controls input,
  .filter-controls select {
    width: 100%;
  }

  .ranking-row {
    grid-template-columns: 44px 86px minmax(0, 1fr);
  }

  .ranking-score {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .featured-grid,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .scroll-row {
    grid-auto-columns: 82%;
  }

  .side-related .movie-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
  }
}
