* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --sunset-50: #fff7ed;
  --sunset-100: #ffedd5;
  --sunset-400: #fb923c;
  --sunset-500: #f97316;
  --sunset-600: #ea580c;
  --sunset-700: #c2410c;
  --twilight-50: #fef2f2;
  --twilight-500: #ef4444;
  --twilight-600: #dc2626;
  --golden-50: #fefce8;
  --golden-500: #eab308;
  --ocean-500: #0ea5e9;
  --ocean-600: #0284c7;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 2px 15px -3px rgb(0 0 0 / 7%), 0 10px 20px -2px rgb(0 0 0 / 4%);
  --shadow-xl: 0 24px 40px -18px rgb(17 24 39 / 35%);
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.page-shell {
  min-height: 68vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgb(229 231 235 / 90%);
  background: rgb(255 255 255 / 94%);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 2px rgb(17 24 39 / 5%);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
  box-shadow: 0 10px 20px -12px var(--sunset-600);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 1.2rem;
}

.brand-text small {
  margin-top: 3px;
  color: var(--gray-500);
  font-size: 0.74rem;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.nav-link {
  color: var(--gray-700);
  font-size: 0.95rem;
  font-weight: 600;
  transition: color 180ms ease;
}

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

.header-search {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--gray-50);
}

.header-search input {
  width: 190px;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  background: transparent;
}

.header-search button {
  border: 0;
  padding: 0 16px;
  color: #ffffff;
  background: var(--sunset-500);
  cursor: pointer;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--gray-100);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--gray-700);
}

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(90deg, var(--sunset-500), var(--twilight-500), var(--sunset-600));
}

.hero-slide {
  display: none;
  position: relative;
  min-height: 560px;
  isolation: isolate;
}

.hero-slide.is-active {
  display: block;
}

.hero-slide::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: blur(8px) saturate(1.1);
  transform: scale(1.04);
  opacity: 0.45;
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image: linear-gradient(rgb(255 255 255 / 10%) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 10%) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(194 65 12 / 88%), rgb(239 68 68 / 78%), rgb(17 24 39 / 72%));
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  align-items: center;
  gap: 52px;
  min-height: 560px;
  padding: 66px 0 82px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: currentColor;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(2.7rem, 7vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-summary {
  max-width: 680px;
  margin: 0 0 22px;
  font-size: 1.15rem;
  line-height: 1.85;
  opacity: 0.95;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
  box-shadow: 0 16px 30px -18px var(--sunset-600);
}

.button-light {
  color: var(--gray-900);
  background: rgb(255 255 255 / 90%);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 6px solid rgb(255 255 255 / 26%);
  border-radius: 30px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--sunset-100), var(--twilight-50));
  box-shadow: var(--shadow-xl);
}

.hero-poster img,
.movie-cover img,
.featured-cover img,
.horizontal-cover img,
.rank-card-cover img,
.detail-poster img,
.category-thumb-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-fallback {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  padding: 18px;
  color: var(--sunset-700);
  font-weight: 900;
  text-align: center;
  background: radial-gradient(circle at top left, var(--golden-50), var(--sunset-100) 54%, var(--twilight-50));
}

.image-missing img {
  display: none;
}

.image-missing .cover-fallback {
  display: grid;
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgb(17 24 39 / 38%);
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.hero-control-prev {
  left: 22px;
}

.hero-control-next {
  right: 22px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgb(255 255 255 / 55%);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 28px;
  background: #ffffff;
}

.featured-section {
  margin-top: -64px;
  margin-bottom: 64px;
  position: relative;
  z-index: 3;
}

.content-block,
.split-section,
.prose-card {
  margin-bottom: 64px;
}

.warm-block {
  padding: 32px;
  border-radius: var(--radius-2xl);
  background: linear-gradient(90deg, var(--golden-50), var(--sunset-50));
}

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

.section-heading > div {
  min-width: 0;
}

.section-heading h2 {
  display: inline;
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 2rem);
}

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

.section-heading a,
.text-link {
  color: var(--sunset-600);
  font-weight: 800;
}

.section-icon {
  margin-right: 8px;
  color: var(--sunset-600);
  font-weight: 900;
}

.featured-card {
  display: grid;
  grid-template-columns: minmax(260px, 43%) minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: #ffffff;
  box-shadow: var(--shadow-xl);
}

.featured-cover {
  position: relative;
  min-height: 360px;
  background: var(--sunset-100);
}

.featured-info {
  padding: clamp(24px, 5vw, 44px);
}

.featured-info h2 {
  margin: 12px 0;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
}

.featured-info p {
  color: var(--gray-600);
  line-height: 1.85;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgb(229 231 235 / 86%);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.movie-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.movie-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--sunset-100);
}

.movie-cover img {
  transition: transform 260ms ease;
}

.movie-card:hover .movie-cover img {
  transform: scale(1.06);
}

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: #ffffff;
  background: rgb(249 115 22 / 92%);
  box-shadow: 0 10px 24px rgb(0 0 0 / 24%);
}

.movie-info {
  padding: 14px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.movie-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--sunset-700);
  background: var(--sunset-100);
  font-size: 0.75rem;
  font-weight: 800;
}

.movie-info h3,
.horizontal-card h3,
.rank-card h2 {
  margin: 0 0 8px;
  line-height: 1.35;
}

.movie-info h3 a:hover,
.horizontal-card h3 a:hover,
.rank-card h2 a:hover,
.featured-info h2 a:hover {
  color: var(--sunset-600);
}

.movie-info p,
.horizontal-card p,
.rank-card p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 12px;
  color: var(--gray-600);
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-size: 0.74rem;
  font-weight: 700;
}

.hero-tags span,
.detail-tags span {
  color: #ffffff;
  background: rgb(255 255 255 / 18%);
}

.category-preview-list {
  display: grid;
  gap: 32px;
}

.category-preview {
  padding: 24px;
  border-radius: var(--radius-2xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.category-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.category-preview-head h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 1.2rem;
}

.category-preview-head h3::before {
  content: "";
  width: 5px;
  height: 28px;
  border-radius: 999px;
  background: var(--sunset-500);
}

.category-preview-head a {
  color: var(--sunset-600);
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
}

.rank-panel,
.latest-panel,
.prose-card,
.detail-side,
.detail-article {
  padding: 28px;
  border-radius: var(--radius-2xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}

.rank-list li:last-child {
  border-bottom: 0;
}

.rank-number {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
  font-weight: 900;
}

.rank-list a {
  font-weight: 800;
}

.rank-list small {
  color: var(--gray-500);
}

.horizontal-list {
  display: grid;
  gap: 16px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 16px;
  align-items: center;
}

.horizontal-cover {
  position: relative;
  overflow: hidden;
  width: 104px;
  aspect-ratio: 1;
  border-radius: 18px;
  background: var(--sunset-100);
}

.sub-hero {
  padding: 72px 0;
  color: #ffffff;
  background: linear-gradient(90deg, var(--sunset-500), var(--twilight-500), var(--sunset-600));
}

.sub-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  letter-spacing: -0.05em;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.8;
  opacity: 0.94;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--gray-600);
  font-size: 0.9rem;
}

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

.breadcrumb--light {
  color: rgb(255 255 255 / 82%);
}

.breadcrumb--light a:hover {
  color: #ffffff;
}

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

.category-card-large a {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  height: 100%;
  padding: 20px;
  border-radius: var(--radius-2xl);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-card-large a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.category-thumb-stack {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.category-thumb-stack img {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: var(--sunset-100);
}

.category-card-large h2 {
  margin: 0 0 10px;
  font-size: 1.55rem;
}

.category-card-large p {
  color: var(--gray-600);
  line-height: 1.75;
}

.category-card-large span {
  color: var(--sunset-600);
  font-weight: 900;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 170px 170px auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--gray-600);
  font-size: 0.86rem;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select,
.large-search input {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  outline: 0;
  padding: 12px 14px;
  background: var(--gray-50);
}

.filter-panel input:focus,
.filter-panel select:focus,
.large-search input:focus {
  border-color: var(--sunset-400);
  box-shadow: 0 0 0 4px rgb(249 115 22 / 14%);
}

.filter-panel button,
.large-search button {
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  color: #ffffff;
  background: var(--sunset-500);
  font-weight: 900;
  cursor: pointer;
}

.empty-state,
.search-status {
  display: none;
  margin: 28px 0;
  padding: 24px;
  border-radius: 20px;
  color: var(--gray-600);
  text-align: center;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

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

.large-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  max-width: 720px;
  margin-top: 24px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 58px 112px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.rank-card-number {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
  font-weight: 900;
}

.rank-card-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: var(--sunset-100);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: var(--gray-900);
  isolation: isolate;
}

.detail-hero::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image: var(--detail-image);
  background-position: center;
  background-size: cover;
  filter: blur(10px) saturate(1.05);
  transform: scale(1.04);
  opacity: 0.42;
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(17 24 39 / 92%), rgb(194 65 12 / 72%), rgb(239 68 68 / 64%));
}

.detail-layout {
  padding: 42px 0 62px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border: 6px solid rgb(255 255 255 / 20%);
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  background: var(--sunset-100);
  box-shadow: var(--shadow-xl);
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 820px;
  margin: 0 0 18px;
  font-size: 1.18rem;
  line-height: 1.8;
}

.detail-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta-list span {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgb(255 255 255 / 16%);
  font-weight: 800;
}

.player-section {
  margin-top: -32px;
  margin-bottom: 44px;
  position: relative;
  z-index: 5;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border: 10px solid #ffffff;
  border-radius: 26px;
  aspect-ratio: 16 / 9;
  background: #000000;
  box-shadow: var(--shadow-xl);
}

.player-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgb(249 115 22 / 24%), rgb(0 0 0 / 70%));
  cursor: pointer;
}

.player-overlay.is-hidden {
  display: none;
}

.player-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sunset-500), var(--twilight-500));
  box-shadow: 0 18px 38px rgb(0 0 0 / 32%);
  font-size: 2rem;
}

.player-overlay strong {
  font-size: 1.45rem;
}

.player-overlay small {
  opacity: 0.84;
}

.player-message {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  color: #ffffff;
  background: rgb(17 24 39 / 78%);
}

.player-message.is-visible {
  display: block;
}

.detail-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  margin-bottom: 64px;
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 18px;
  font-size: 1.45rem;
}

.detail-article p,
.prose-card p {
  color: var(--gray-700);
  font-size: 1.04rem;
  line-height: 2;
}

.detail-side dl {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px 16px;
  margin: 0;
}

.detail-side dt {
  color: var(--gray-500);
  font-weight: 800;
}

.detail-side dd {
  margin: 0;
  color: var(--gray-800);
}

.site-footer {
  margin-top: 72px;
  color: #d1d5db;
  background: var(--gray-900);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 46px 0;
}

.footer-brand {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 900;
}

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

.site-footer p {
  margin: 0;
  line-height: 1.8;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 9px;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid rgb(255 255 255 / 10%);
  color: #9ca3af;
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .movie-grid--five,
  .movie-grid--six {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .header-search {
    display: none;
  }
}

@media (max-width: 900px) {
  .header-inner {
    grid-template-columns: auto auto;
  }

  .mobile-menu-button {
    display: block;
    justify-self: end;
  }

  .site-nav {
    display: none;
    grid-column: 1 / -1;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 0 0 16px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--gray-50);
  }

  .hero-content,
  .featured-card,
  .split-section,
  .detail-content-grid,
  .detail-main-grid,
  .footer-grid,
  .category-grid-large,
  .category-card-large a {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    width: min(320px, 100%);
    margin: 0 auto;
  }

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

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

  .rank-card {
    grid-template-columns: 44px 92px 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .hero-carousel,
  .hero-slide,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding: 48px 0 76px;
    gap: 28px;
  }

  .hero-copy h1,
  .detail-copy h1 {
    font-size: 2.4rem;
  }

  .hero-control {
    display: none;
  }

  .movie-grid--four,
  .movie-grid--five,
  .movie-grid--six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .movie-info {
    padding: 12px;
  }

  .movie-info p,
  .tag-row {
    display: none;
  }

  .warm-block,
  .category-preview,
  .rank-panel,
  .latest-panel,
  .prose-card,
  .detail-side,
  .detail-article {
    padding: 18px;
  }

  .section-heading {
    display: block;
  }

  .section-heading a {
    display: inline-flex;
    margin-top: 10px;
  }

  .filter-panel,
  .large-search,
  .rank-card {
    grid-template-columns: 1fr;
  }

  .rank-card-cover {
    width: 120px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
