:root {
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-100: #f1f5f9;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --amber-400: #fbbf24;
  --white: #ffffff;
  --shadow-soft: 0 20px 45px rgba(15, 23, 42, 0.14);
  --shadow-card: 0 10px 24px rgba(15, 23, 42, 0.12);
  --radius-xl: 22px;
  --radius-lg: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: linear-gradient(90deg, var(--slate-950), var(--slate-900), var(--slate-800));
  color: var(--white);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.25);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: var(--slate-950);
  background: linear-gradient(135deg, var(--emerald-400), var(--cyan-400));
  box-shadow: 0 0 28px rgba(52, 211, 153, 0.4);
}

.brand-name {
  font-size: 21px;
  line-height: 1;
  color: transparent;
  background: linear-gradient(90deg, var(--emerald-300), var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 15px;
  font-weight: 650;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--emerald-300);
}

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

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 2px;
  border-radius: 999px;
  background: var(--white);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.88);
}

.mobile-nav.is-open {
  display: block;
}

main {
  overflow: hidden;
}

.hero-carousel {
  position: relative;
  height: min(720px, 74vh);
  min-height: 560px;
  overflow: hidden;
  background: var(--slate-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
  transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 32%, rgba(34, 211, 238, 0.28), transparent 34%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.72) 48%, rgba(15, 23, 42, 0.1));
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 42px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-copy {
  max-width: 720px;
  color: var(--white);
}

.hero-kicker,
.page-hero span,
.detail-kicker,
.section-heading span,
.ranking-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--emerald-300);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 16px 0 20px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy h1 em,
.hero-copy h2 em {
  display: block;
  margin-top: 8px;
  color: transparent;
  font-style: normal;
  background: linear-gradient(90deg, var(--emerald-300), var(--cyan-400));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 20px;
  line-height: 1.75;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--emerald-600);
  background: rgba(16, 185, 129, 0.1);
  font-size: 12px;
  font-weight: 750;
}

.hero-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

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

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.primary-button {
  color: var(--white);
  background: linear-gradient(135deg, var(--emerald-500), var(--cyan-500));
  box-shadow: 0 16px 30px rgba(16, 185, 129, 0.3);
}

.ghost-button {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hero-poster:hover img {
  transform: scale(1.05);
}

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(16, 185, 129, 0.88);
  font-size: 13px;
  font-weight: 800;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  right: calc((100% - min(1180px, calc(100% - 32px))) / 2);
  bottom: 36px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 38px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.hero-dot.is-active {
  background: var(--emerald-400);
}

.quick-search {
  position: relative;
  z-index: 6;
  width: min(1080px, calc(100% - 32px));
  margin: -44px auto 54px;
  padding: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.quick-search form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.quick-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  color: var(--gray-900);
  background: var(--white);
  outline: none;
}

.quick-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.quick-search button {
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 14px;
  color: var(--white);
  background: var(--emerald-600);
  font-weight: 800;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quick-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--slate-700);
  background: var(--gray-100);
  font-size: 13px;
  font-weight: 750;
}

.content-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 72px;
}

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

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.15;
}

.section-more {
  color: var(--emerald-600);
  font-weight: 800;
}

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

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

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

.movie-card {
  min-width: 0;
}

.movie-card a {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card a:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.18);
}

.poster {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--slate-800), var(--slate-950));
}

.movie-card .poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.movie-card a:hover .poster img {
  transform: scale(1.07);
}

.type-badge,
.rank-badge,
.play-chip {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 850;
}

.type-badge {
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.rank-badge {
  top: 12px;
  right: 12px;
  padding: 5px 9px;
  background: rgba(251, 191, 36, 0.92);
  color: var(--slate-950);
}

.play-chip {
  right: 12px;
  bottom: 12px;
  padding: 7px 11px;
  background: rgba(16, 185, 129, 0.88);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.movie-card a:hover .play-chip {
  opacity: 1;
  transform: translateY(0);
}

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

.movie-card-body h3 {
  margin: 0 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 18px;
  line-height: 1.3;
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--gray-500);
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--gray-500);
  font-size: 13px;
}

.movie-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--gray-100);
}

.highlight-section {
  padding: 42px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(209, 250, 229, 0.82), rgba(207, 250, 254, 0.72));
  box-shadow: var(--shadow-soft);
}

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

.category-card,
.category-overview-card {
  display: block;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.category-card span,
.category-overview-main span {
  color: var(--emerald-600);
  font-weight: 850;
}

.category-card h3,
.category-overview-main h2 {
  margin: 8px 0;
  font-size: 23px;
}

.category-card p,
.category-overview-main p {
  margin: 0 0 18px;
  color: var(--gray-500);
  line-height: 1.7;
}

.mini-links,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-links a,
.footer-links a {
  color: var(--gray-700);
  font-size: 13px;
}

.mini-links a {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--gray-100);
}

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

.ranking-box {
  position: sticky;
  top: 92px;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: var(--slate-950);
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ranking-head a {
  color: var(--emerald-300);
  font-weight: 800;
}

.ranking-list {
  display: grid;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 38px 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.rank-row strong {
  color: var(--amber-400);
}

.rank-row img {
  width: 52px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-row span {
  min-width: 0;
  font-weight: 800;
}

.rank-row small {
  display: block;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.62);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.rank-row em {
  color: var(--emerald-300);
  font-style: normal;
  font-weight: 850;
}

.page-main {
  padding-top: 34px;
}

.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 42px;
  padding: 48px;
  overflow: hidden;
  border-radius: 32px;
  color: var(--white);
  background:
    radial-gradient(circle at 85% 20%, rgba(34, 211, 238, 0.3), transparent 28%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
  box-shadow: var(--shadow-soft);
}

.page-hero h1 {
  max-width: 780px;
  margin: 12px 0 14px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.75;
}

.simple-actions {
  margin-top: 24px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 160px 160px 180px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 18px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.empty-state {
  display: none;
  padding: 48px;
  border-radius: var(--radius-xl);
  color: var(--gray-500);
  text-align: center;
  background: var(--gray-100);
}

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

.category-overview-card {
  padding: 0;
}

.category-overview-main {
  display: block;
  padding: 24px;
}

.compact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 24px 24px;
}

.compact-card {
  overflow: hidden;
  border-radius: 14px;
  background: var(--gray-100);
}

.compact-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.compact-card span {
  display: block;
  overflow: hidden;
  padding: 8px;
  color: var(--gray-700);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 750;
}

.ranking-page-list {
  display: grid;
  gap: 14px;
}

.ranking-card a {
  display: grid;
  grid-template-columns: 64px 82px minmax(0, 1fr) 70px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ranking-card a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}

.ranking-card strong {
  color: var(--emerald-600);
  font-size: 24px;
}

.ranking-card img {
  width: 82px;
  height: 108px;
  border-radius: 12px;
  object-fit: cover;
}

.ranking-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.ranking-card p {
  display: -webkit-box;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--gray-500);
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ranking-card em {
  color: var(--amber-400);
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 18px;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--emerald-600);
  font-weight: 750;
}

.detail-hero {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 32px;
  padding: 32px;
  border-radius: 32px;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 15%, rgba(16, 185, 129, 0.25), transparent 28%),
    linear-gradient(135deg, var(--slate-950), var(--slate-800));
  box-shadow: var(--shadow-soft);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 20px 45px rgba(2, 6, 23, 0.38);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 12px 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
}

.detail-copy p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.8;
}

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

.detail-meta-grid div {
  padding: 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.detail-meta-grid span {
  display: block;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

.detail-meta-grid strong {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 42px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--slate-950);
  box-shadow: var(--shadow-soft);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--slate-950);
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background:
    radial-gradient(circle at center, rgba(16, 185, 129, 0.18), rgba(2, 6, 23, 0.58)),
    rgba(2, 6, 23, 0.35);
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: 0 16px 36px rgba(2, 6, 23, 0.38);
  clip-path: polygon(32% 22%, 32% 78%, 82% 50%);
}

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

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

.story-card {
  padding: 28px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.story-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.story-card p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.9;
}

.site-footer {
  margin-top: 80px;
  color: rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 34px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

.footer-grid p {
  max-width: 460px;
  margin: 14px 0 0;
  line-height: 1.8;
}

.footer-brand {
  color: var(--white);
  font-size: 24px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.72);
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 1080px) {
  .nav-links {
    gap: 14px;
    font-size: 14px;
  }

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

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

  .ranking-box {
    position: static;
  }

  .filter-panel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .hero-carousel {
    min-height: 660px;
    height: auto;
  }

  .hero-slide {
    position: absolute;
    min-height: 660px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 70px 0 80px;
  }

  .hero-poster {
    max-width: 220px;
  }

  .hero-dots {
    right: 16px;
    bottom: 24px;
  }

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

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

  .detail-poster {
    max-width: 260px;
  }

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

  .ranking-card a {
    grid-template-columns: 48px 74px minmax(0, 1fr);
  }

  .ranking-card em {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .site-nav,
  .mobile-nav,
  .content-section,
  .page-hero,
  .detail-hero,
  .player-section,
  .breadcrumb,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .hero-inner {
    width: min(100% - 24px, 1180px);
  }

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

  .hero-copy p,
  .page-hero p,
  .detail-copy p {
    font-size: 16px;
  }

  .quick-search {
    width: min(100% - 24px, 1080px);
    margin-top: -28px;
  }

  .quick-search form,
  .filter-panel,
  .featured-grid,
  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-overview-grid,
  .detail-content {
    grid-template-columns: 1fr;
  }

  .highlight-section,
  .page-hero,
  .detail-hero {
    padding: 24px;
    border-radius: 24px;
  }

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

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