:root {
  --color-bg: #f9fafb;
  --color-surface: #ffffff;
  --color-surface-soft: #f3f4f6;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-primary: #dc2626;
  --color-primary-dark: #b91c1c;
  --color-primary-soft: #fee2e2;
  --color-footer: #111827;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.22);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.85);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--color-text);
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), #f97316);
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.28);
  position: relative;
}

.brand-mark::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 11px solid white;
  margin-left: 3px;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.nav-link {
  color: #374151;
  font-weight: 650;
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
}

.nav-search input {
  width: 190px;
  border: none;
  outline: none;
  padding: 8px 6px 8px 12px;
  background: transparent;
}

.nav-search button,
.search-page-form button {
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  color: white;
  background: var(--color-primary);
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-search button:hover,
.search-page-form button:hover {
  background: var(--color-primary-dark);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: var(--color-surface-soft);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #374151;
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  padding: 14px 16px 18px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--color-bg);
  color: #374151;
  font-weight: 650;
}

.hero-carousel {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84) 0%, rgba(0, 0, 0, 0.58) 46%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(0deg, rgba(17, 24, 39, 0.75) 0%, rgba(17, 24, 39, 0) 35%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--container);
  color: white;
}

.hero-kicker {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  padding: 5px 13px;
  border-radius: 999px;
  color: white;
  background: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.25);
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-meta,
.movie-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-meta span,
.detail-meta span,
.detail-meta a {
  padding: 5px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.14);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  color: white;
  background: var(--color-primary);
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.28);
}

.primary-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.primary-btn.full {
  width: 100%;
}

.ghost-btn {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.ghost-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.32);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 34px;
  background: white;
}

.category-strip {
  padding: 26px 0;
  background: var(--color-surface-soft);
}

.category-strip-inner {
  display: flex;
  gap: 14px;
  justify-content: center;
  overflow-x: auto;
  padding-bottom: 4px;
}

.category-strip a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  flex: 0 0 auto;
  padding: 12px 18px;
  border-radius: 14px;
  color: #374151;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  font-weight: 750;
  transition: color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.category-strip a span {
  color: var(--color-primary);
}

.category-strip a:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.section {
  padding: 70px 0;
}

.section-white {
  background: var(--color-surface);
}

.section-gradient {
  background: linear-gradient(135deg, #fff7ed 0%, #fef2f2 45%, #f9fafb 100%);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
}

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

.section-icon {
  margin-right: 8px;
  color: var(--color-primary);
}

.section-link {
  color: var(--color-primary);
  font-weight: 750;
}

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

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

.category-movie-grid,
.related-grid,
.ranking-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

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

.movie-card {
  min-width: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-link {
  display: block;
  height: 100%;
}

.poster-wrap {
  position: relative;
  height: 270px;
  overflow: hidden;
  background: #111827;
}

.movie-card.compact .poster-wrap {
  height: 210px;
}

.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0) 45%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.year-badge,
.rank-badge,
.list-rank {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.year-badge {
  right: 10px;
  top: 10px;
  padding: 4px 9px;
  background: var(--color-primary);
}

.rank-badge {
  left: 10px;
  top: 10px;
  padding: 4px 10px;
  background: rgba(17, 24, 39, 0.78);
}

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

.movie-card-body h3 {
  margin: 0 0 7px;
  overflow: hidden;
  font-size: 17px;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.movie-card:hover h3,
.list-movie-card:hover h3 {
  color: var(--color-primary);
}

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

.movie-meta {
  margin-top: 14px;
  color: var(--color-muted);
  font-size: 12px;
}

.movie-meta span {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--color-surface-soft);
}

.movie-meta.wide span {
  font-size: 13px;
}

.horizontal-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 22px;
}

.horizontal-scroll .movie-card {
  flex: 0 0 270px;
}

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

.list-movie-card {
  border-radius: var(--radius-md);
  background: var(--color-surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.list-movie-card a {
  display: grid;
  grid-template-columns: 260px 1fr;
}

.list-poster {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  background: #111827;
}

.list-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.list-rank {
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  background: var(--color-primary);
}

.list-content {
  padding: 24px;
}

.list-content h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.list-content p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--color-muted);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero {
  padding: 76px 0;
  color: white;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.small-hero {
  padding: 64px 0;
}

.category-hero,
.ranking-hero {
  background:
    radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
}

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

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 160px auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.filter-panel input,
.filter-panel select,
.search-page-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  outline: none;
  padding: 0 14px;
  color: var(--color-text);
  background: var(--color-bg);
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-page-form input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.filter-count {
  color: var(--color-muted);
  font-weight: 700;
  white-space: nowrap;
}

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

.category-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card-cover {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #111827;
}

.category-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.category-card:hover img {
  transform: scale(1.08);
}

.category-card-cover span {
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  color: white;
  background: var(--color-primary);
  font-weight: 800;
}

.category-card-body {
  padding: 22px;
}

.category-card-body h2 {
  margin: 0 0 8px;
}

.category-card-body p {
  min-height: 52px;
  margin: 0 0 16px;
  color: var(--color-muted);
}

.category-card-body strong {
  color: var(--color-primary);
}

.search-page-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 18px;
}

.search-status {
  min-height: 28px;
  color: var(--color-muted);
  font-weight: 700;
  margin-bottom: 18px;
}

.detail-main {
  background: var(--color-bg);
}

.detail-section {
  padding: 34px 0 70px;
}

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

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.video-player {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-lg);
}

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

.video-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, background 0.2s ease;
}

.video-play-button:hover {
  background: white;
  transform: translate(-50%, -50%) scale(1.08);
}

.video-play-button span {
  display: block;
  width: 0;
  height: 0;
  margin-left: 31px;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
  border-left: 26px solid var(--color-primary);
}

.video-player.playing .video-play-button,
.video-player.playing .video-message {
  opacity: 0;
  pointer-events: none;
}

.video-message {
  position: absolute;
  left: 50%;
  bottom: 26px;
  padding: 7px 14px;
  border-radius: 999px;
  color: white;
  background: rgba(0, 0, 0, 0.5);
  font-weight: 700;
  transform: translateX(-50%);
  transition: opacity 0.2s ease;
}

.video-message.error {
  left: 20px;
  right: 20px;
  bottom: 20px;
  text-align: center;
  color: white;
  background: rgba(185, 28, 28, 0.9);
  transform: none;
}

.detail-card,
.side-card {
  margin-top: 24px;
  padding: 26px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.detail-card h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.detail-card .detail-meta {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.detail-card .detail-meta span,
.detail-card .detail-meta a {
  color: #374151;
  background: var(--color-surface-soft);
}

.text-block {
  margin: 28px 0;
}

.text-block h2,
.tag-block h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 21px;
}

.text-block p {
  color: #374151;
}

.lead-text {
  color: var(--color-muted);
  font-weight: 700;
}

.review-box {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--color-surface-soft);
}

.review-box p {
  margin: 0;
}

.tag-block div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-block span {
  padding: 6px 12px;
  border-radius: 999px;
  color: #374151;
  background: var(--color-surface-soft);
  font-size: 14px;
  font-weight: 700;
}

.detail-side {
  position: sticky;
  top: 96px;
}

.side-card {
  margin-top: 0;
}

.side-card img {
  width: 100%;
  height: 360px;
  border-radius: 14px;
  object-fit: cover;
  background: #111827;
}

.side-card h2 {
  margin-top: 20px;
}

.side-card dl {
  margin: 0 0 20px;
}

.side-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--color-border);
}

.side-card dt {
  color: var(--color-muted);
}

.side-card dd {
  margin: 0;
  font-weight: 800;
}

.related-section {
  margin-top: 60px;
}

.site-footer {
  color: #d1d5db;
  background: var(--color-footer);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding: 52px 0;
}

.footer-brand {
  color: white;
  font-size: 20px;
}

.site-footer p {
  max-width: 520px;
  color: #9ca3af;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #f87171;
  font-size: 18px;
}

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

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

.site-footer a:hover {
  color: #f87171;
}

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

.footer-bottom p {
  max-width: none;
  margin: 0;
}

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

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

  .menu-toggle {
    display: block;
  }

  .header-inner {
    justify-content: space-between;
  }

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

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

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

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

  .detail-side {
    position: static;
  }
}

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

  .nav-search {
    display: none;
  }

  .brand-text {
    font-size: 18px;
  }

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

  .hero-content {
    padding: 0 12px;
  }

  .hero-actions,
  .section-heading,
  .search-page-form {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions,
  .search-page-form {
    display: grid;
  }

  .hero-arrow {
    display: none;
  }

  .category-strip-inner {
    justify-content: flex-start;
  }

  .section {
    padding: 48px 0;
  }

  .card-grid,
  .featured-grid,
  .editor-grid,
  .category-grid,
  .category-movie-grid,
  .related-grid,
  .ranking-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .poster-wrap,
  .movie-card.compact .poster-wrap {
    height: 210px;
  }

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

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

  .movie-card-body p {
    font-size: 13px;
  }

  .list-movie-card a {
    grid-template-columns: 120px 1fr;
  }

  .list-poster {
    min-height: 150px;
  }

  .list-content {
    padding: 14px;
  }

  .list-content h3 {
    font-size: 17px;
  }

  .list-content p {
    -webkit-line-clamp: 3;
    font-size: 13px;
  }

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

  .side-card img {
    height: 300px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 430px) {
  .card-grid,
  .featured-grid,
  .editor-grid,
  .category-grid,
  .category-movie-grid,
  .related-grid,
  .ranking-grid {
    grid-template-columns: 1fr;
  }

  .poster-wrap,
  .movie-card.compact .poster-wrap {
    height: 300px;
  }

  .mobile-nav.open {
    grid-template-columns: 1fr;
  }
}
