:root {
  --purple-950: #2e1065;
  --purple-900: #581c87;
  --purple-800: #6b21a8;
  --purple-700: #7e22ce;
  --purple-600: #9333ea;
  --purple-500: #a855f7;
  --purple-100: #f3e8ff;
  --purple-50: #faf5ff;
  --pink-600: #db2777;
  --pink-500: #ec4899;
  --blue-600: #2563eb;
  --yellow-600: #ca8a04;
  --gray-950: #030712;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-300: #d1d5db;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --shadow-md: 0 4px 16px rgba(88, 28, 135, 0.10);
  --shadow-lg: 0 16px 40px rgba(88, 28, 135, 0.16);
  --shadow-xl: 0 25px 55px rgba(88, 28, 135, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--purple-50), #ffffff 420px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--purple-600), var(--pink-500));
  border: 2px solid #f1f1f1;
  border-radius: 10px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--purple-600), var(--purple-500), var(--purple-600));
  box-shadow: 0 12px 30px rgba(88, 28, 135, 0.24);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  height: 64px;
  padding: 0 24px;
  margin: 0 auto;
  gap: 18px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  flex: 0 0 auto;
  border: 6px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple-400, #c084fc), var(--purple-600));
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.18);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: scale(1.08);
}

.brand-text {
  font-size: 20px;
  white-space: nowrap;
}

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

.nav-link,
.nav-drop-button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  color: rgba(255, 255, 255, 0.92);
  background: transparent;
  border: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-drop-button:hover {
  color: var(--purple-100);
  transform: translateY(-1px);
}

.nav-dropdown {
  position: relative;
}

.nav-drop-panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 190px;
  padding: 8px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .nav-drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-drop-panel a {
  display: block;
  padding: 10px 12px;
  color: var(--gray-700);
  border-radius: 10px;
}

.nav-drop-panel a:hover {
  color: var(--purple-600);
  background: var(--purple-50);
}

.header-search,
.mobile-search,
.search-large {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-search input,
.search-large input {
  width: 260px;
  height: 40px;
  padding: 0 16px;
  color: var(--gray-800);
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  outline: none;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.search-large input:focus {
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(216, 180, 254, 0.9);
}

.header-search button,
.mobile-search button,
.search-large button {
  height: 40px;
  padding: 0 16px;
  color: var(--purple-600);
  font-weight: 700;
  background: var(--white);
  border: 0;
  border-radius: 999px;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 18px 24px 22px;
  background: var(--purple-700);
}

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

.mobile-nav .nav-link {
  display: block;
  min-height: auto;
  padding: 12px 0;
}

.mobile-search {
  margin-bottom: 12px;
}

.mobile-search input {
  width: 100%;
}

.mobile-category-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 8px;
}

.mobile-category-list a {
  padding: 10px 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.hero-carousel {
  position: relative;
  min-height: 62vh;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(100deg, var(--purple-700), var(--purple-500) 52%, var(--pink-500));
}

.hero-glow {
  position: absolute;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  filter: blur(52px);
  animation: float 6s ease-in-out infinite;
}

.glow-one {
  top: 12%;
  left: 8%;
}

.glow-two {
  right: 12%;
  bottom: 12%;
  width: 230px;
  height: 230px;
  animation-delay: 1.2s;
}

.glow-three {
  top: 48%;
  left: 36%;
  width: 130px;
  height: 130px;
  animation-delay: 2s;
}

.hero-slides {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 62vh;
  padding: 64px 24px;
  margin: 0 auto;
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 48px;
  min-height: calc(62vh - 128px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hero-slide:not(.active) {
  position: absolute;
  inset: 64px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.hero-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 330px;
  border-radius: 32px;
  box-shadow: 0 28px 70px rgba(46, 16, 101, 0.38);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(46, 16, 101, 0.55), rgba(46, 16, 101, 0.04));
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.hero-kicker,
.sub-hero span {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  margin-bottom: 16px;
  color: var(--purple-100);
  font-weight: 700;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(4px);
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 620px;
  margin: 0 0 24px;
  color: var(--purple-100);
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1.7;
}

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

.hero-tags span,
.tag-links span {
  display: inline-flex;
  padding: 8px 13px;
  color: var(--purple-100);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

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

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

.primary-button {
  color: var(--purple-700);
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.glass-button {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(4px);
}

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

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

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

.hero-dot.active {
  width: 32px;
  background: var(--white);
}

.main-wrap,
.detail-wrap {
  max-width: 1280px;
  padding: 48px 24px;
  margin: 0 auto;
}

.content-section {
  margin-bottom: 64px;
}

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

.section-heading h2 {
  margin: 0 0 8px;
  color: var(--gray-800);
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.16;
}

.section-heading p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.6;
}

.section-link {
  min-height: 40px;
  color: var(--purple-600);
  background: var(--purple-50);
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, var(--purple-100), #ffe4f0);
}

.poster-wide {
  aspect-ratio: 16 / 9;
}

.poster img,
.compact-poster img,
.category-cover img,
.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.movie-card:hover .poster img,
.compact-card:hover .compact-poster img,
.category-overview-card:hover .category-cover img,
.category-tile:hover img {
  transform: scale(1.1);
}

.poster-shade {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.72), transparent 58%);
  transition: opacity 0.28s ease;
}

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

.play-hover,
.play-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: var(--purple-600);
  box-shadow: 0 12px 32px rgba(147, 51, 234, 0.42);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.24s ease;
}

.play-hover::after,
.play-circle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 18px solid var(--white);
}

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

.genre-badge,
.rank-badge,
.compact-rank {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  border-radius: 12px;
  background: rgba(147, 51, 234, 0.92);
  backdrop-filter: blur(4px);
}

.genre-badge {
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 9px;
}

.rank-badge,
.compact-rank {
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--purple-600), var(--pink-500));
}

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

.movie-card-body strong {
  display: -webkit-box;
  min-height: 48px;
  margin-bottom: 10px;
  overflow: hidden;
  color: var(--gray-800);
  font-size: 16px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--gray-600);
  font-size: 13px;
}

.movie-meta em {
  font-style: normal;
}

.compact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.compact-card {
  display: flex;
  gap: 16px;
  overflow: hidden;
  padding: 12px;
  background: var(--white);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

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

.compact-poster {
  position: relative;
  flex: 0 0 128px;
  height: 94px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--purple-100), #ffe4f0);
}

.compact-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}

.compact-copy strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-800);
  font-size: 16px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.compact-copy em,
.compact-copy small {
  color: var(--gray-500);
  font-style: normal;
  line-height: 1.5;
}

.compact-copy small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.category-tile {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--purple-500), var(--pink-500));
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile::after,
.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(46, 16, 101, 0.72), rgba(236, 72, 153, 0.12));
}

.category-tile span,
.category-cover span {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 20px;
  font-weight: 900;
  text-align: center;
}

.category-tile:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.sub-hero {
  color: var(--white);
  background: linear-gradient(100deg, var(--purple-700), var(--purple-500), var(--pink-500));
}

.sub-hero-inner {
  max-width: 1280px;
  padding: 58px 24px 64px;
  margin: 0 auto;
}

.sub-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.1;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--purple-100);
  font-size: 18px;
  line-height: 1.8;
}

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

.category-overview-card {
  padding: 18px;
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
}

.category-cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--purple-100), #ffe4f0);
}

.category-overview-card p {
  min-height: 58px;
  margin: 0 0 14px;
  color: var(--gray-600);
  line-height: 1.7;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-samples a,
.genre-links a,
.detail-meta a {
  display: inline-flex;
  padding: 7px 12px;
  color: var(--purple-600);
  background: var(--purple-50);
  border-radius: 999px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(140px, 0.35fr));
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.filter-panel input,
.filter-panel select,
.search-large input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  color: var(--gray-800);
  background: var(--gray-100);
  border: 1px solid transparent;
  border-radius: 14px;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-large input:focus {
  border-color: rgba(147, 51, 234, 0.42);
  box-shadow: 0 0 0 3px rgba(216, 180, 254, 0.45);
}

.search-page-panel {
  min-height: 420px;
}

.search-large {
  max-width: 760px;
  padding: 18px;
  margin: 0 auto 34px;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.search-large button {
  min-width: 96px;
  color: var(--white);
  background: linear-gradient(90deg, var(--purple-600), var(--pink-500));
}

.empty-state {
  padding: 54px 20px;
  color: var(--gray-500);
  text-align: center;
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--gray-600);
}

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

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

.player-card,
.detail-card,
.review-card,
.related-card {
  overflow: hidden;
  background: var(--white);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
}

.player-card {
  margin-bottom: 24px;
  background: #000000;
  box-shadow: var(--shadow-xl);
}

.player-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(147, 51, 234, 0.16), rgba(0, 0, 0, 0.36));
  border: 0;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay .play-circle {
  position: relative;
  top: auto;
  left: auto;
  width: 76px;
  height: 76px;
  transform: none;
}

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

.detail-card,
.review-card,
.related-card {
  padding: 28px;
}

.detail-card {
  margin-bottom: 24px;
}

.detail-card h1 {
  margin: 0 0 18px;
  color: var(--gray-800);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
}

.detail-card h2,
.review-card h2,
.related-card h2 {
  margin: 28px 0 12px;
  color: var(--gray-800);
  font-size: 22px;
}

.related-card h2 {
  margin-top: 0;
}

.detail-card p,
.review-card p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.9;
  white-space: pre-wrap;
}

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

.detail-meta span {
  display: inline-flex;
  padding: 8px 13px;
  color: var(--gray-700);
  background: var(--gray-100);
  border-radius: 999px;
}

.genre-links {
  margin-bottom: 14px;
}

.tag-links {
  margin-bottom: 18px;
}

.tag-links span {
  color: var(--purple-600);
  background: var(--purple-50);
}

.review-card {
  background: linear-gradient(135deg, var(--purple-50), #fff0f7);
}

.related-card {
  position: sticky;
  top: 86px;
}

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

.related-list .compact-card {
  box-shadow: none;
  background: var(--gray-100);
}

.related-list .compact-poster {
  flex-basis: 116px;
  height: 76px;
}

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

.site-footer {
  color: var(--white);
  background: linear-gradient(180deg, var(--purple-900), var(--purple-950));
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 34px;
  max-width: 1280px;
  padding: 48px 24px 36px;
  margin: 0 auto;
}

.footer-logo {
  margin-bottom: 14px;
  font-size: 20px;
}

.footer-brand p,
.site-footer a,
.footer-bottom {
  color: var(--purple-100);
}

.footer-brand p {
  max-width: 360px;
  margin: 0;
  line-height: 1.75;
}

.site-footer h3 {
  margin: 0 0 16px;
  font-size: 18px;
}

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

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

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

.footer-bottom {
  max-width: 1280px;
  padding: 24px;
  margin: 0 auto;
  text-align: center;
  border-top: 1px solid rgba(216, 180, 254, 0.22);
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

@media (max-width: 1120px) {
  .desktop-nav {
    gap: 14px;
  }

  .header-search input {
    width: 210px;
  }

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

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

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

@media (max-width: 900px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .hero-slide,
  .hero-slide:not(.active) {
    position: relative;
    inset: auto;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-slide:not(.active) {
    position: absolute;
    inset: 64px 24px;
  }

  .hero-media {
    min-height: 260px;
  }

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

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

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

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

  .related-card {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 0 16px;
  }

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

  .hero-slides {
    padding: 38px 16px 74px;
  }

  .hero-slide:not(.active) {
    inset: 38px 16px 74px;
  }

  .hero-media {
    min-height: 220px;
    border-radius: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .main-wrap,
  .detail-wrap {
    padding: 34px 16px;
  }

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

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

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

  .movie-card-body strong {
    min-height: 44px;
    font-size: 14px;
  }

  .compact-list,
  .rank-list,
  .category-overview-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

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

  .detail-card,
  .review-card,
  .related-card {
    padding: 20px;
    border-radius: 22px;
  }

  .compact-poster {
    flex-basis: 110px;
    height: 84px;
  }
}
