:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(148, 163, 184, 0.22);
  --text: #f8fafc;
  --muted: #94a3b8;
  --blue: #38bdf8;
  --cyan: #22d3ee;
  --accent: #60a5fa;
  --gold: #f59e0b;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(56, 189, 248, 0.16), transparent 28rem),
    radial-gradient(circle at 90% 8%, rgba(34, 211, 238, 0.12), transparent 26rem),
    linear-gradient(180deg, #020617 0%, #0f172a 44%, #020617 100%);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 70%);
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(2, 6, 23, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1280px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.logo span:last-child,
.footer-logo {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 22px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(34, 211, 238, 0.18));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.desktop-nav a,
.nav-more > button,
.mobile-menu a {
  color: #cbd5e1;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.nav-more > button:hover,
.mobile-menu a:hover,
.mobile-menu a.is-active {
  color: var(--blue);
}

.nav-more {
  position: relative;
  padding: 22px 0;
}

.nav-dropdown {
  position: absolute;
  top: 62px;
  right: 0;
  width: 180px;
  padding: 12px;
  display: grid;
  gap: 8px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.2s ease;
}

.nav-more:hover .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown a {
  padding: 8px 10px;
  border-radius: 10px;
}

.nav-dropdown a:hover {
  background: rgba(56, 189, 248, 0.12);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-search input,
.mobile-menu input,
.quick-search-panel input,
.hero-search input,
.filter-inputs input,
.filter-inputs select {
  color: var(--text);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  outline: none;
}

.nav-search input {
  width: 230px;
  padding: 10px 14px;
}

.nav-search button,
.mobile-menu button,
.quick-search-panel button,
.hero-search button {
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  color: #00131d;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  font-weight: 800;
  cursor: pointer;
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.75);
  cursor: pointer;
}

.mobile-menu {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-menu.is-open {
  display: grid;
  gap: 12px;
}

.mobile-menu form {
  display: flex;
  gap: 8px;
}

.mobile-menu input {
  min-width: 0;
  flex: 1;
  padding: 10px 14px;
}

.site-main {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0 48px;
}

.page-top {
  padding-top: 108px;
}

.hero {
  margin-bottom: 28px;
}

.hero-frame {
  position: relative;
  height: clamp(460px, 62vw, 620px);
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.24);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.78), rgba(8, 145, 178, 0.78));
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transform: scale(1.02);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.74) 38%, rgba(2, 6, 23, 0.2) 100%),
    radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.35), transparent 34rem);
}

.hero-content {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(680px, 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 6vw, 72px);
}

.hero-kicker,
.page-hero span {
  color: var(--blue);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 14px 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 640px;
  margin: 0 0 22px;
  color: #dbeafe;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.75;
}

.hero-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-tags span {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.18);
  color: #bfdbfe;
  border: 1px solid rgba(96, 165, 250, 0.28);
  font-size: 13px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary,
.btn-small {
  color: #04111f;
  background: linear-gradient(90deg, #e0f2fe, var(--cyan));
  box-shadow: 0 12px 38px rgba(34, 211, 238, 0.25);
}

.btn-ghost {
  color: #eff6ff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.36);
}

.btn-small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: white;
  background: rgba(2, 6, 23, 0.55);
  cursor: pointer;
  transform: translateY(-50%);
  font-size: 34px;
}

.hero-prev {
  left: 18px;
}

.hero-next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: clamp(28px, 6vw, 72px);
  bottom: 30px;
  z-index: 6;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 34px;
  background: var(--cyan);
}

.quick-search-panel {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 520px);
  gap: 24px;
  align-items: center;
  margin-bottom: 54px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.quick-search-panel strong {
  display: block;
  font-size: 22px;
}

.quick-search-panel span,
.section-heading p,
.page-hero p,
.category-overview-card p,
.movie-desc,
.site-footer p {
  color: var(--muted);
}

.quick-search-panel form,
.hero-search {
  display: flex;
  gap: 10px;
}

.quick-search-panel input,
.hero-search input {
  min-width: 0;
  flex: 1;
  padding: 13px 16px;
}

.content-section {
  margin: 0 0 64px;
}

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

.section-heading h2,
.ranking-panel h2,
.ranking-column h2,
.detail-info-card h1,
.side-card h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 0;
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.92));
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.52);
  box-shadow: 0 26px 70px rgba(8, 47, 73, 0.34);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #164e63);
}

.movie-card-large .movie-poster {
  aspect-ratio: 16 / 10;
}

.movie-card-compact .movie-poster {
  aspect-ratio: 3 / 4;
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .movie-poster img {
  transform: scale(1.06);
  filter: saturate(1.12);
}

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.9), transparent 56%);
}

.poster-badge,
.poster-duration {
  position: absolute;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.poster-badge {
  top: 12px;
  left: 12px;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}

.poster-duration {
  right: 12px;
  bottom: 12px;
  background: rgba(2, 6, 23, 0.78);
}

.poster-play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: white;
  font-size: 46px;
  opacity: 0;
  transform: scale(0.86);
  transition: 0.22s ease;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: scale(1);
}

.movie-card-body {
  padding: 18px;
}

.movie-card-body h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card-body h3 a:hover {
  color: var(--blue);
}

.movie-desc {
  min-height: 3.2em;
  margin: 0 0 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta,
.movie-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #cbd5e1;
  font-size: 13px;
}

.movie-meta span,
.movie-stats span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
}

.movie-stats {
  margin-top: 10px;
  color: #fde68a;
}

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

.category-tile,
.category-overview-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.84);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
}

.category-tile::before,
.category-overview-card::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.28);
  filter: blur(10px);
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.5);
}

.category-icon {
  display: block;
  font-size: 34px;
  margin-bottom: 16px;
}

.category-tile strong,
.category-overview-title strong {
  display: block;
  font-size: 21px;
  margin-bottom: 10px;
}

.category-tile em {
  display: block;
  color: #cbd5e1;
  font-style: normal;
  line-height: 1.6;
}

.category-covers {
  position: absolute;
  right: 16px;
  bottom: 14px;
  display: flex;
}

.category-covers img {
  width: 48px;
  height: 66px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  margin-left: -16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.36);
}

.tone-cyan::before { background: rgba(34, 211, 238, 0.32); }
.tone-blue::before { background: rgba(59, 130, 246, 0.32); }
.tone-purple::before { background: rgba(168, 85, 247, 0.32); }
.tone-rose::before { background: rgba(244, 63, 94, 0.32); }
.tone-amber::before { background: rgba(245, 158, 11, 0.32); }
.tone-indigo::before { background: rgba(99, 102, 241, 0.32); }
.tone-orange::before { background: rgba(249, 115, 22, 0.32); }
.tone-emerald::before { background: rgba(16, 185, 129, 0.32); }
.tone-teal::before { background: rgba(20, 184, 166, 0.32); }
.tone-sky::before { background: rgba(14, 165, 233, 0.32); }

.two-column-section {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

.ranking-panel,
.ranking-column,
.side-card,
.detail-info-card,
.player-card,
.filter-bar,
.page-hero,
.category-overview-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--panel);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.22);
}

.ranking-panel,
.ranking-column,
.side-card,
.detail-info-card,
.player-card,
.filter-bar,
.page-hero {
  padding: 24px;
}

.mini-list {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.mini-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.34);
}

.mini-card:hover {
  border-color: rgba(56, 189, 248, 0.42);
}

.mini-card img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
}

.mini-card strong,
.mini-card em {
  display: block;
}

.mini-card strong {
  line-height: 1.35;
}

.mini-card em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.rank-no {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.text-link {
  color: var(--blue);
  font-weight: 800;
}

.page-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  min-height: 250px;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  gap: 24px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(8, 47, 73, 0.78)),
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.22), transparent 22rem);
}

.page-hero.slim {
  grid-template-columns: 1fr;
}

.page-hero h1 {
  margin: 10px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.filter-inputs {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}

.filter-inputs input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
}

.filter-inputs select {
  width: 180px;
  padding: 13px 16px;
}

.sticky-filter {
  position: sticky;
  top: 84px;
  z-index: 12;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.86);
  backdrop-filter: blur(14px);
}

.empty-state {
  display: none;
  padding: 30px;
  text-align: center;
  color: var(--muted);
}

.empty-state.is-visible {
  display: block;
}

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

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

.category-overview-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.category-overview-title span {
  font-size: 28px;
}

.compact .mini-card {
  grid-template-columns: 48px 1fr;
}

.compact .mini-card img {
  width: 48px;
  height: 64px;
}

.ranking-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 28px;
  align-items: start;
}

.detail-primary {
  display: grid;
  gap: 22px;
}

.movie-player {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  aspect-ratio: 16 / 9;
}

.player-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 0;
  color: white;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.24), rgba(0, 0, 0, 0.3));
  cursor: pointer;
}

.player-overlay span {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #00131d;
  font-size: 34px;
  box-shadow: 0 16px 50px rgba(34, 211, 238, 0.38);
}

.movie-player.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-loading,
.player-error {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 6;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.82);
  color: #dbeafe;
  font-size: 13px;
}

.player-loading.is-hidden,
.player-error:empty {
  display: none;
}

.player-error {
  color: #fecaca;
}

.player-controls {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 7;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: 0.22s ease;
}

.movie-player:hover .player-controls,
.movie-player:focus-within .player-controls {
  opacity: 1;
  transform: translateY(0);
}

.player-controls button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 8px 12px;
  color: white;
  background: rgba(2, 6, 23, 0.76);
  cursor: pointer;
}

.detail-info-card h1 {
  margin-bottom: 14px;
}

.detail-one-line {
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.detail-meta-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.34);
}

.detail-meta-grid dt {
  color: var(--muted);
  font-size: 13px;
}

.detail-meta-grid dd {
  margin: 6px 0 0;
  color: var(--text);
  font-weight: 800;
}

.detail-info-card h2 {
  margin: 28px 0 12px;
}

.detail-info-card p {
  color: #cbd5e1;
  line-height: 1.9;
}

.detail-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 26px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0f172a;
}

.detail-side {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.86);
}

.footer-grid {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr;
  gap: 32px;
}

.site-footer h3 {
  margin: 0 0 14px;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
}

.site-footer a:hover {
  color: var(--blue);
}

.footer-links {
  columns: 2;
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 28px;
  color: var(--muted);
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

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

  .mobile-toggle {
    display: inline-grid;
    place-items: center;
  }

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

  .two-column-section,
  .detail-layout,
  .page-hero,
  .ranking-board {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-main {
    width: min(100% - 22px, 1280px);
    padding-top: 86px;
  }

  .nav-shell,
  .mobile-menu {
    width: min(100% - 22px, 1280px);
  }

  .logo span:last-child {
    font-size: 18px;
  }

  .hero-frame {
    height: 540px;
    border-radius: 24px;
  }

  .hero-content {
    padding: 28px;
    justify-content: flex-end;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-dots {
    left: 28px;
    bottom: 18px;
  }

  .quick-search-panel,
  .footer-grid,
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .quick-search-panel form,
  .hero-search,
  .filter-inputs,
  .mobile-menu form {
    flex-direction: column;
  }

  .filter-inputs select {
    width: 100%;
  }

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

  .movie-card-body {
    padding: 14px;
  }

  .movie-card-body h3 {
    font-size: 16px;
  }

  .section-heading {
    display: block;
  }

  .page-hero {
    padding: 20px;
  }

  .player-controls {
    left: 12px;
    right: 12px;
    bottom: 12px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .grid-5,
  .grid-4,
  .grid-3,
  .category-grid,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-large .movie-poster {
    aspect-ratio: 2 / 3;
  }

  .hero-actions {
    flex-direction: column;
  }
}
