:root {
  --color-rose-50: #fff1f2;
  --color-rose-100: #ffe4e6;
  --color-rose-500: #f43f5e;
  --color-rose-600: #e11d48;
  --color-rose-700: #be123c;
  --color-pink-700: #be185d;
  --color-red-600: #dc2626;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --shadow-card: 0 12px 34px rgba(15, 23, 42, 0.10);
  --shadow-card-hover: 0 18px 46px rgba(15, 23, 42, 0.18);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --site-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-gray-900);
  background: var(--color-gray-50);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-container {
  width: min(100% - 32px, var(--site-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-red-600), var(--color-rose-600), var(--color-pink-700));
  box-shadow: 0 14px 34px rgba(190, 18, 60, 0.28);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

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

.brand-icon,
.footer-brand span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--color-rose-600);
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
}

.brand-text strong,
.footer-brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.brand-text small {
  display: block;
  color: var(--color-rose-100);
  font-size: 12px;
}

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

.nav-link {
  position: relative;
  padding: 8px 0;
  color: #ffffff;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  content: "";
  background: var(--color-rose-100);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

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

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
}

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: #ffffff;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 10px 16px 18px;
  background: var(--color-rose-700);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

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

.mobile-nav-link {
  padding: 10px 12px;
  border-radius: 12px;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  background: rgba(255, 255, 255, 0.13);
}

.hero-carousel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-red-600), var(--color-rose-600), var(--color-pink-700));
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  padding: 84px 0 140px;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.8s ease;
  pointer-events: none;
}

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

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.6fr);
  gap: 42px;
  align-items: center;
}

.hero-copy {
  max-width: 760px;
  animation: fadeUp 0.7s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-rose-100);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 14px 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(18px, 2vw, 24px);
}

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

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

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

.button.primary {
  color: var(--color-rose-700);
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.22);
}

.button.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(12px);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-tags span {
  padding: 8px 13px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  max-width: 360px;
  width: 100%;
  justify-self: center;
  overflow: hidden;
  background: linear-gradient(145deg, #7f1d1d, #fb7185);
  border: 8px solid rgba(255, 255, 255, 0.24);
  border-radius: 32px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
}

.hero-poster img,
.poster-wrap img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-controls {
  position: absolute;
  right: 0;
  bottom: 88px;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.hero-controls button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  backdrop-filter: blur(12px);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px !important;
  height: 10px !important;
  padding: 0;
  background: rgba(255, 255, 255, 0.42) !important;
}

.hero-dot.is-active {
  width: 28px !important;
  background: #ffffff !important;
}

.hero-thumbs {
  position: absolute;
  right: 0;
  bottom: 28px;
  left: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.hero-thumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  opacity: 0.72;
}

.hero-thumb.is-active,
.hero-thumb:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.2);
}

.hero-thumb img {
  width: 42px;
  height: 58px;
  object-fit: cover;
  border-radius: 10px;
}

.hero-thumb span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-wave {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 76px;
}

.search-panel {
  position: relative;
  z-index: 8;
  margin-top: -32px;
}

.search-panel.large {
  margin-top: 28px;
}

.search-box {
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.search-box label {
  display: block;
  margin-bottom: 10px;
  color: var(--color-gray-700);
  font-weight: 800;
}

.search-box input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  min-height: 54px;
  padding: 0 18px;
  color: var(--color-gray-900);
  background: #ffffff;
  border: 2px solid var(--color-gray-200);
  border-radius: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--color-rose-500);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.search-results {
  display: none;
  max-height: 420px;
  margin-top: 16px;
  overflow: auto;
}

.search-results.is-visible {
  display: grid;
  gap: 10px;
}

.search-results.full {
  max-height: none;
}

.search-result-item {
  display: flex;
  gap: 14px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--color-gray-200);
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.search-result-item:hover {
  background: var(--color-rose-50);
  transform: translateY(-1px);
}

.search-result-item img {
  width: 62px;
  height: 88px;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--color-rose-600), var(--color-pink-700));
}

.search-result-item h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.search-result-item p {
  margin: 0;
  color: var(--color-gray-600);
  font-size: 14px;
}

.stats-strip {
  width: min(100% - 32px, var(--site-width));
  margin: 34px auto 10px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.stats-strip div {
  padding: 18px;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--color-gray-200);
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}

.stats-strip strong {
  display: block;
  color: var(--color-rose-600);
  font-size: 30px;
  line-height: 1.1;
}

.stats-strip span {
  color: var(--color-gray-500);
  font-size: 14px;
}

.content-section {
  padding: 56px 0;
}

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

.section-header h2 {
  margin: 0;
  color: var(--color-gray-900);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
}

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

.section-action a,
.genre-cloud a,
.pagination a,
.pagination span {
  color: var(--color-rose-700);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-rose-600), var(--color-pink-700));
}

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

.poster-wrap img {
  transition: transform 0.36s ease;
}

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

.poster-wrap.missing-image::after,
.hero-poster.missing-image::after,
.detail-poster.missing-image::after {
  position: absolute;
  inset: 16px;
  display: grid;
  place-items: center;
  padding: 12px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  content: attr(data-title);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: var(--color-rose-600);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.year-badge {
  top: 10px;
  right: 10px;
}

.rank-badge {
  top: 10px;
  left: 10px;
  background: var(--color-gray-900);
}

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

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

.meta-line span {
  padding: 4px 8px;
  color: var(--color-rose-700);
  background: var(--color-rose-100);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  min-height: 48px;
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--color-rose-600);
}

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

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

.tag-row span {
  padding: 4px 8px;
  color: var(--color-gray-600);
  background: var(--color-gray-100);
  border-radius: 999px;
  font-size: 12px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 30px;
  align-items: start;
}

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

.category-chip-card,
.genre-cloud,
.overview-card,
.static-content article,
.detail-article,
.detail-aside,
.table-wrap,
.sitemap-grid article {
  background: #ffffff;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.category-chip-card {
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-chip-card strong {
  display: block;
  color: var(--color-gray-900);
  font-size: 20px;
}

.category-chip-card span {
  color: var(--color-gray-500);
}

.genre-cloud {
  padding: 24px;
}

.genre-cloud h2 {
  margin: 0 0 18px;
}

.genre-cloud div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.genre-cloud a {
  display: inline-flex;
  gap: 8px;
  padding: 8px 12px;
  background: var(--color-rose-50);
  border-radius: 999px;
}

.genre-cloud span {
  color: var(--color-gray-500);
}

.page-hero,
.detail-hero {
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-red-600), var(--color-rose-600), var(--color-pink-700));
  background-position: center;
  background-size: cover;
}

.simple-hero {
  padding: 70px 0;
}

.page-hero h1 {
  max-width: 900px;
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, minmax(120px, 0.55fr)) auto;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}

.filter-bar button {
  min-height: 54px;
  padding: 0 16px;
  color: #ffffff;
  background: var(--color-rose-600);
  border: 0;
  border-radius: 15px;
  font-weight: 800;
}

.filter-bar p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--color-gray-600);
}

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

.overview-card {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.overview-card span {
  color: var(--color-rose-600);
  font-weight: 900;
}

.overview-card strong {
  font-size: 20px;
}

.overview-card em {
  color: var(--color-gray-500);
  font-style: normal;
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap {
  overflow: auto;
}

.rank-table th,
.rank-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--color-gray-200);
}

.rank-table th {
  color: var(--color-gray-700);
  background: var(--color-gray-100);
}

.rank-table a {
  color: var(--color-rose-700);
  font-weight: 800;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid var(--color-gray-200);
  border-radius: 12px;
}

.pagination a.is-active {
  color: #ffffff;
  background: var(--color-rose-600);
  border-color: var(--color-rose-600);
}

.detail-hero {
  padding: 46px 0 70px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.76);
}

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

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(145deg, #7f1d1d, #fb7185);
  border: 8px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36);
}

.detail-copy h1 {
  font-size: clamp(38px, 5vw, 66px);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.detail-meta span {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

.player-section {
  padding: 56px 0 24px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020617;
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 70px rgba(2, 6, 23, 0.28);
}

.movie-player {
  width: 100%;
  height: 100%;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  text-align: center;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.28), rgba(2, 6, 23, 0.82));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
  display: inline-grid;
  gap: 8px;
  place-items: center;
  min-width: 160px;
  min-height: 120px;
  color: var(--color-rose-700);
  background: #ffffff;
  border: 0;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);
}

.play-button span {
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  color: #ffffff;
  background: var(--color-rose-600);
  border-radius: 999px;
}

.play-button:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.player-note {
  color: var(--color-gray-600);
  font-size: 14px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
  padding: 34px 0 20px;
}

.detail-article,
.detail-aside,
.static-content article {
  padding: 28px;
}

.detail-article h2,
.detail-aside h2,
.static-content h2 {
  margin: 0 0 14px;
}

.detail-article p,
.static-content p {
  color: var(--color-gray-700);
  font-size: 17px;
}

.detail-aside dl {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  margin: 0;
}

.detail-aside dt {
  color: var(--color-gray-500);
}

.detail-aside dd {
  margin: 0;
  font-weight: 800;
}

.static-content {
  padding: 56px 0;
}

.sitemap-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(260px, 1fr) minmax(320px, 1.4fr);
  gap: 22px;
  padding: 56px 0;
}

.sitemap-grid article {
  padding: 24px;
}

.sitemap-grid ul {
  display: grid;
  gap: 8px;
  max-height: 680px;
  margin: 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.sitemap-grid a {
  color: var(--color-gray-700);
}

.sitemap-grid a:hover {
  color: var(--color-rose-600);
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 30px;
  padding: 46px 0;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  margin-bottom: 12px;
}

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

.site-footer p,
.site-footer a {
  display: block;
  margin: 0 0 8px;
  color: #9ca3af;
}

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

.footer-bottom {
  padding: 18px 16px;
  color: #6b7280;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  margin: 0;
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .movie-grid,
  .overview-grid,
  .category-chip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

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

  .mobile-menu-button {
    display: block;
  }

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

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

  .hero-copy {
    text-align: center;
  }

  .hero-actions,
  .hero-tags {
    justify-content: center;
  }

  .hero-poster {
    max-width: 240px;
    transform: none;
  }

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

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

@media (max-width: 640px) {
  .site-container {
    width: min(100% - 24px, var(--site-width));
  }

  .hero-slide {
    padding-top: 48px;
  }

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

  .hero-thumbs {
    display: none;
  }

  .movie-grid,
  .overview-grid,
  .category-chip-grid,
  .stats-strip,
  .filter-bar,
  .sitemap-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    display: block;
  }

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