:root {
  --blue-950: #0f1e4f;
  --blue-900: #123472;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --cyan-500: #06b6d4;
  --cyan-400: #22d3ee;
  --green-500: #22c55e;
  --yellow-400: #facc15;
  --red-500: #ef4444;
  --purple-500: #8b5cf6;
  --gray-950: #0b1120;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;
  --white: #ffffff;
  --shadow-sm: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 16px 40px rgba(15, 23, 42, 0.14);
  --shadow-lg: 0 24px 60px rgba(15, 23, 42, 0.22);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--white);
  background: linear-gradient(90deg, var(--blue-700), var(--cyan-500));
  box-shadow: 0 12px 34px rgba(29, 78, 216, 0.28);
}

.nav-container {
  max-width: var(--max-width);
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--blue-700);
  background: var(--white);
  box-shadow: 0 10px 24px rgba(255, 255, 255, 0.24);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
}

.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: var(--blue-950);
}

.hero-slides,
.hero-slide {
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 420px;
  gap: 56px;
  align-items: center;
  max-width: none;
  padding: 82px max(24px, calc((100vw - var(--max-width)) / 2 + 24px));
  background-size: cover;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  transition: opacity 0.6s ease, visibility 0.6s ease, transform 1.1s ease;
}

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

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-size: 14px;
  font-weight: 700;
}

.hero-content h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 680px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: clamp(18px, 2.4vw, 25px);
}

.hero-tags,
.card-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.card-tags span,
.tag-cloud span {
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 700;
}

.hero-tags span {
  padding: 8px 12px;
  color: #e0f2fe;
  background: rgba(255, 255, 255, 0.16);
}

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

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

.btn.primary {
  color: var(--blue-700);
  background: var(--white);
  box-shadow: 0 20px 38px rgba(255, 255, 255, 0.18);
}

.btn.ghost {
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.76);
}

.btn.ghost.dark {
  color: var(--blue-700);
  border-color: rgba(37, 99, 235, 0.24);
}

.btn.text {
  color: #dbeafe;
  padding-inline: 8px;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.hero-poster {
  position: relative;
  z-index: 2;
  width: min(100%, 390px);
  justify-self: end;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: rgba(255, 255, 255, 0.14);
}

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

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster span,
.hover-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  color: var(--white);
  background: rgba(37, 99, 235, 0.86);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.35);
  font-size: 28px;
}

.hero-panel {
  position: absolute;
  right: max(24px, calc((100vw - var(--max-width)) / 2 + 24px));
  bottom: 38px;
  z-index: 4;
  display: flex;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius-md);
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}

.hero-panel div {
  min-width: 110px;
  padding-right: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-panel div:last-child {
  border-right: 0;
  padding-right: 0;
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel strong {
  font-size: 18px;
}

.hero-panel span {
  color: #dbeafe;
  font-size: 13px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
  width: 34px;
  background: var(--white);
}

.quick-search {
  max-width: var(--max-width);
  margin: -38px auto 0;
  position: relative;
  z-index: 8;
  padding: 0 24px;
}

.quick-search-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.quick-search-form label {
  font-weight: 800;
  color: var(--blue-700);
}

.quick-search-form input,
.filter-row input,
.filter-row select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 0 16px;
  color: var(--gray-900);
  background: var(--gray-50);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.quick-search-form input:focus,
.filter-row input:focus,
.filter-row select:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.quick-search-form button,
.filter-row button {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: var(--white);
  background: linear-gradient(90deg, var(--blue-600), var(--cyan-500));
  font-weight: 800;
  cursor: pointer;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 6px 0;
}

.quick-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--blue-700);
  background: rgba(37, 99, 235, 0.1);
  font-size: 14px;
  font-weight: 700;
}

.page-shell,
.content-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

.content-section + .content-section {
  padding-top: 32px;
}

.content-section.soft-bg,
.content-section.muted-bg,
.rank-section {
  max-width: none;
  margin: 48px 0 0;
  padding: 64px max(24px, calc((100vw - var(--max-width)) / 2 + 24px));
}

.content-section.soft-bg {
  background: linear-gradient(135deg, #ecfdf5, #eff6ff);
}

.content-section.muted-bg,
.rank-section {
  background: var(--gray-100);
}

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

.section-head h2,
.section-head h1,
.page-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-head p,
.page-hero p {
  margin: 0;
  color: var(--gray-600);
  max-width: 720px;
}

.section-link {
  color: var(--blue-700);
  font-weight: 800;
}

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

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

.horizontal-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 300px;
  gap: 22px;
  overflow-x: auto;
  padding: 4px 0 22px;
  scroll-snap-type: x proximity;
}

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

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

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

.poster-wrap {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-900), var(--cyan-500));
}

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

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

.card-year,
.card-type {
  position: absolute;
  z-index: 2;
  top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.card-year {
  right: 10px;
  background: rgba(0, 0, 0, 0.66);
}

.card-type {
  left: 10px;
  background: rgba(37, 99, 235, 0.82);
}

.hover-play {
  width: 52px;
  height: 52px;
  opacity: 0;
  font-size: 20px;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 14px;
}

.card-body h2,
.card-body h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--gray-500);
  font-size: 12px;
}

.card-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-tags {
  margin-top: 12px;
}

.card-tags span {
  padding: 4px 8px;
}

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

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

.category-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 24px;
  border-radius: var(--radius-md);
  color: var(--white);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card.small {
  min-height: 145px;
}

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

.category-card span,
.category-card em {
  color: #dbeafe;
  font-style: normal;
}

.category-card strong {
  font-size: 25px;
  line-height: 1.1;
}

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

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

.rank-item a {
  display: grid;
  grid-template-columns: 58px 96px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.rank-number {
  font-size: 25px;
  font-weight: 900;
  color: var(--blue-700);
}

.rank-item img {
  width: 96px;
  height: 66px;
  border-radius: 12px;
  object-fit: cover;
}

.rank-content strong,
.rank-content em,
.rank-content small {
  display: block;
}

.rank-content strong {
  font-size: 17px;
  margin-bottom: 3px;
}

.rank-content em {
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
}

.rank-content small {
  margin-top: 4px;
  color: var(--gray-600);
}

.page-hero {
  position: relative;
  margin: 32px 0 24px;
  padding: 54px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700), var(--cyan-500));
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
}

.page-hero h1,
.page-hero p,
.page-hero .eyebrow,
.page-hero .hero-actions,
.inline-links {
  position: relative;
  z-index: 2;
}

.page-hero p {
  color: #dbeafe;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.inline-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #e0f2fe;
  font-size: 14px;
  font-weight: 700;
}

.filter-panel {
  margin: 24px 0;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filter-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}

.filter-row label span {
  display: block;
  margin: 0 0 6px;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 800;
}

.empty-result {
  display: none;
  margin: 36px 0 0;
  padding: 24px;
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--gray-600);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.detail-shell {
  padding-top: 32px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--blue-700);
  font-weight: 800;
}

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

.player-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: var(--white);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.72));
  cursor: pointer;
}

.play-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--white);
  background: rgba(37, 99, 235, 0.92);
  box-shadow: 0 22px 50px rgba(37, 99, 235, 0.44);
  font-size: 34px;
}

.play-copy {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

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

.detail-card h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

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

.detail-meta > span,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--gray-700);
  background: var(--gray-100);
  font-weight: 800;
  font-size: 13px;
}

.meta-pill.blue {
  color: var(--blue-700);
  background: rgba(37, 99, 235, 0.1);
}

.meta-pill.green {
  color: #15803d;
  background: rgba(34, 197, 94, 0.13);
}

.meta-pill.purple {
  color: #6d28d9;
  background: rgba(139, 92, 246, 0.13);
}

.detail-block + .detail-block {
  margin-top: 28px;
}

.detail-block h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.detail-block p {
  margin: 0;
  color: var(--gray-700);
  font-size: 17px;
  white-space: pre-line;
}

.detail-block .lead-text {
  margin-bottom: 12px;
  color: var(--gray-900);
  font-size: 19px;
  font-weight: 800;
}

.tag-cloud span {
  padding: 8px 12px;
}

.detail-side {
  min-width: 0;
}

.side-card {
  position: sticky;
  top: 92px;
  margin-top: 0;
}

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

.related-item {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 14px;
  transition: background 0.2s ease;
}

.related-item:hover {
  background: var(--gray-50);
}

.related-item img {
  width: 116px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
}

.related-item strong,
.related-item em {
  display: block;
}

.related-item strong {
  margin-bottom: 5px;
  line-height: 1.35;
}

.related-item em {
  color: var(--gray-500);
  font-size: 13px;
  font-style: normal;
}

.site-footer {
  margin-top: 48px;
  color: #cbd5e1;
  background: var(--gray-950);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 52px 24px 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.1fr;
  gap: 34px;
}

.footer-brand {
  color: var(--white);
  margin-bottom: 14px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 18px;
}

.site-footer p {
  margin: 0;
  color: #94a3b8;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

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

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-tags a {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 14px;
}

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

  .hero-slide {
    grid-template-columns: minmax(0, 1fr) 330px;
  }

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

  .side-card {
    position: static;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    background: rgba(29, 78, 216, 0.96);
    box-shadow: var(--shadow-md);
  }

  .nav-links.open {
    display: flex;
  }

  .hero-slider,
  .hero-slides,
  .hero-slide {
    min-height: 760px;
  }

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

  .hero-poster {
    width: 240px;
    justify-self: start;
  }

  .hero-panel {
    left: 24px;
    right: 24px;
    bottom: 70px;
    justify-content: space-between;
  }

  .hero-panel div {
    min-width: 0;
  }

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

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

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

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

  .quick-search-form {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .nav-container {
    height: 62px;
    padding: 0 16px;
  }

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

  .hero-slider,
  .hero-slides,
  .hero-slide {
    min-height: 720px;
  }

  .hero-slide {
    padding: 62px 18px 150px;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-content p {
    font-size: 17px;
  }

  .hero-actions {
    gap: 10px;
  }

  .btn {
    min-height: 44px;
    padding: 10px 16px;
  }

  .hero-panel {
    display: none;
  }

  .quick-search {
    margin-top: -24px;
    padding: 0 16px;
  }

  .page-shell,
  .content-section,
  .content-section.soft-bg,
  .content-section.muted-bg,
  .rank-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .page-hero {
    padding: 34px 24px;
  }

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

  .card-body {
    padding: 12px;
  }

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

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

  .horizontal-list {
    grid-auto-columns: 240px;
  }

  .rank-item a {
    grid-template-columns: 46px 78px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-item img {
    width: 78px;
    height: 54px;
  }

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

  .detail-card,
  .side-card {
    padding: 20px;
  }

  .related-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .related-item img {
    width: 96px;
    height: 66px;
  }

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