:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --card: rgba(15, 23, 42, 0.78);
  --card-strong: rgba(30, 41, 59, 0.86);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --accent: #22d3ee;
  --accent-strong: #38bdf8;
  --blue: #2563eb;
  --shadow: 0 24px 70px rgba(8, 47, 73, 0.35);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.22), transparent 30rem),
    linear-gradient(180deg, #020617 0%, #0f172a 52%, #020617 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.96));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.34);
  font-size: 15px;
  transform: translateZ(0);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

.brand-copy em {
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

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

.desktop-nav a,
.mobile-nav a {
  position: relative;
  color: var(--muted-strong);
  font-weight: 650;
  font-size: 14px;
  transition: color 0.22s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transition: right 0.22s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover {
  color: var(--accent);
}

.desktop-nav a:hover::after {
  right: 0;
}

.global-search {
  position: relative;
  width: min(260px, 25vw);
}

.search-wide {
  width: min(520px, 100%);
}

.search-input,
.filter-input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.25);
  outline: none;
  background: rgba(15, 23, 42, 0.86);
  color: var(--text);
  border-radius: 999px;
  padding: 12px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-input:focus,
.filter-input:focus {
  border-color: rgba(34, 211, 238, 0.82);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
  background: rgba(15, 23, 42, 0.96);
}

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 80;
  display: none;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.96);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-panel.is-open {
  display: grid;
  gap: 8px;
}

.search-panel a,
.search-empty {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.72);
}

.search-panel a:hover {
  color: var(--accent);
  background: rgba(34, 211, 238, 0.1);
}

.search-panel strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.search-panel span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.88);
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

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

.mobile-search {
  width: 100%;
}

.page-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 80px;
}

.home-main {
  width: 100%;
  padding-bottom: 80px;
}

.home-main > .content-section,
.home-main > .intro-search {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.inner-page {
  padding-top: 104px;
}

.hero-carousel {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  margin-bottom: 32px;
  background: #020617;
}

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.78) 42%, rgba(2, 6, 23, 0.3) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 1) 0%, transparent 42%);
}

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

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted-strong);
  font-size: clamp(17px, 2.2vw, 22px);
  line-height: 1.75;
}

.hero-tags,
.tag-row,
.card-tags,
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.hero-tags {
  margin-top: 24px;
}

.hero-tags span,
.tag,
.card-tags span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(34, 211, 238, 0.1);
  font-size: 13px;
}

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

.button-primary,
.button-ghost,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.button-primary {
  min-height: 48px;
  padding: 0 24px;
  color: white;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  box-shadow: 0 18px 45px rgba(34, 211, 238, 0.28);
}

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

.button-primary:hover {
  box-shadow: 0 24px 54px rgba(34, 211, 238, 0.38);
}

.button-ghost,
.section-more {
  min-height: 44px;
  padding: 0 20px;
  color: var(--accent);
  border: 1px solid rgba(34, 211, 238, 0.36);
  background: rgba(15, 23, 42, 0.66);
}

.button-ghost:hover,
.section-more:hover {
  border-color: rgba(34, 211, 238, 0.74);
  background: rgba(34, 211, 238, 0.12);
}

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

.hero-poster {
  position: relative;
  display: block;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55);
  transform: rotate(2deg);
}

.hero-poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.64));
  z-index: 1;
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(12px);
  font-size: 34px;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease;
}

.hero-arrow:hover {
  transform: translateY(-50%) scale(1.06);
  background: rgba(0, 0, 0, 0.7);
}

.hero-prev {
  left: 24px;
  transform: translateY(-50%);
}

.hero-next {
  right: 24px;
  transform: translateY(-50%);
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: var(--accent);
}

.glass-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.55));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.intro-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 520px);
  gap: 28px;
  align-items: center;
  padding: 28px;
}

.intro-search h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.intro-search p,
.page-hero p,
.detail-lead {
  margin: 0;
  color: var(--muted-strong);
}

.content-section {
  margin-top: 54px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1.15;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.18);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.54);
  box-shadow: 0 24px 60px rgba(8, 47, 73, 0.35);
}

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0f172a;
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

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

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

.poster-glow {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(2, 6, 23, 0.86) 100%);
  transition: opacity 0.24s ease;
}

.movie-card:hover .poster-glow {
  opacity: 1;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: rgba(34, 211, 238, 0.86);
  box-shadow: 0 0 36px rgba(34, 211, 238, 0.45);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

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

.year-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.year-badge {
  left: 12px;
  color: white;
  background: rgba(0, 0, 0, 0.58);
}

.rank-badge {
  right: 12px;
  color: white;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

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

.movie-card-body h2 {
  margin: 0 0 8px;
  font-size: 17px;
  line-height: 1.32;
}

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

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

.card-tags {
  min-height: 28px;
  margin-bottom: 12px;
}

.card-tags span {
  min-height: 24px;
  padding: 3px 8px;
  font-size: 12px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 8px;
  background: rgba(51, 65, 85, 0.62);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 32px;
}

.compact-list,
.rank-mini {
  display: grid;
  gap: 14px;
}

.compact-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 10px;
  background: var(--card);
  transition: border-color 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.compact-card:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(15, 23, 42, 0.95);
}

.compact-card img {
  width: 92px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  object-fit: cover;
}

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

.compact-card strong {
  margin-bottom: 4px;
  font-size: 15px;
}

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

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

.rank-mini .movie-card-body p,
.rank-mini .card-tags {
  display: none;
}

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

.category-card,
.overview-card,
.text-panel {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.52));
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.category-card {
  min-height: 190px;
  padding: 22px;
}

.category-card:hover,
.overview-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.46);
  box-shadow: 0 24px 60px rgba(8, 47, 73, 0.28);
}

.category-card strong,
.overview-title {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 22px;
  font-weight: 850;
}

.category-card p,
.overview-card p,
.text-panel p {
  margin: 0;
  color: var(--muted-strong);
}

.category-card div,
.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-card span,
.overview-links a {
  display: inline-flex;
  max-width: 100%;
  border-radius: 999px;
  padding: 4px 9px;
  color: var(--accent);
  background: rgba(34, 211, 238, 0.1);
  font-size: 12px;
}

.overview-card {
  padding: 24px;
}

.page-hero {
  padding: 38px;
}

.page-hero h1 {
  margin-bottom: 14px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

.breadcrumb a::after {
  content: "/";
  margin-left: 10px;
  color: rgba(148, 163, 184, 0.45);
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.filter-input {
  width: min(360px, 100%);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.filter-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.8);
}

.filter-chip:hover,
.filter-chip.is-active {
  color: white;
  border-color: rgba(34, 211, 238, 0.44);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.74), rgba(37, 99, 235, 0.84));
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: 70px 118px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px;
  background: var(--card);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: rgba(34, 211, 238, 0.45);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  color: white;
  font-size: 20px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--blue));
}

.rank-cover img {
  width: 118px;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  object-fit: cover;
}

.rank-info h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.rank-info h2 a:hover {
  color: var(--accent);
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--muted-strong);
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 28px;
}

.detail-cover {
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 24px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.44);
}

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

.detail-copy h1 {
  margin-bottom: 18px;
}

.detail-lead {
  max-width: 760px;
  font-size: 18px;
}

.detail-meta,
.tag-row {
  margin-top: 18px;
}

.detail-copy .button-primary {
  margin-top: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 24px;
  background: #000;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.46);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: white;
  background: radial-gradient(circle at center, rgba(34, 211, 238, 0.16), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

.play-cover span {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  box-shadow: 0 0 48px rgba(34, 211, 238, 0.52);
  font-size: 30px;
}

.play-cover strong {
  font-size: 18px;
}

.player-shell.is-playing .play-cover {
  display: none;
}

.detail-text-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 22px;
}

.text-panel {
  padding: 26px;
}

.text-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.text-panel p {
  font-size: 16px;
  line-height: 1.9;
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.96));
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(180px, 0.75fr) minmax(180px, 0.75fr);
  gap: 38px;
}

.footer-brand p {
  max-width: 520px;
  margin: 16px 0 0;
  color: var(--muted);
}

.footer-links h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.footer-links div {
  display: grid;
  gap: 9px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
}

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

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

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

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

  .global-search {
    margin-left: auto;
  }

  .hero-content {
    grid-template-columns: 1fr 260px;
    gap: 28px;
  }

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

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

@media (max-width: 820px) {
  .header-inner {
    height: 64px;
  }

  .header-inner > .global-search {
    display: none;
  }

  .brand-copy em {
    display: none;
  }

  .hero-carousel {
    min-height: 720px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 94px;
  }

  .hero-poster {
    display: none;
  }

  .hero-arrow {
    width: 44px;
    height: 44px;
  }

  .intro-search,
  .filter-bar,
  .detail-hero,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .filter-chips {
    justify-content: flex-start;
  }

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

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

  .rank-row .button-ghost {
    grid-column: 2 / 4;
    justify-self: start;
  }

  .rank-number {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 16px;
  }

  .rank-cover img {
    width: 86px;
  }

  .detail-cover {
    max-width: 290px;
  }
}

@media (max-width: 560px) {
  .page-main,
  .home-main > .content-section,
  .home-main > .intro-search,
  .header-inner,
  .mobile-nav,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1180px);
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .hero-carousel {
    min-height: 680px;
  }

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

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

  .hero-arrow {
    display: none;
  }

  .movie-grid,
  .category-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .page-hero,
  .detail-hero,
  .intro-search,
  .text-panel {
    padding: 22px;
  }

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

  .compact-card img {
    width: 78px;
  }

  .rank-row {
    grid-template-columns: 1fr;
  }

  .rank-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .rank-row .button-ghost {
    grid-column: auto;
  }
}
