:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --amber-400: #fbbf24;
  --amber-50: #fffbeb;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-soft: 0 12px 30px rgba(17, 24, 39, 0.08);
  --shadow-strong: 0 22px 55px rgba(244, 63, 94, 0.22);
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-900);
  background: linear-gradient(180deg, #fff7f8 0%, #ffffff 36%, #fff8fb 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 20px rgba(17, 24, 39, 0.08);
}

.nav-wrap {
  max-width: var(--max-width);
  height: 68px;
  margin: 0 auto;
  padding: 0 22px;
  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;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 8px 18px rgba(244, 63, 94, 0.28);
  font-size: 13px;
}

.brand-text {
  font-size: 21px;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--rose-600), var(--pink-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--gray-700);
  font-weight: 600;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--rose-500);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
}

.nav-search input,
.search-large input,
.filter-panel input,
.filter-panel select {
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: var(--white);
  color: var(--gray-900);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search input {
  width: 180px;
  padding: 10px 14px;
}

.nav-search button {
  border: 0;
  color: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

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

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

.mobile-menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--gray-900);
  border-radius: 999px;
}

.hero-carousel {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 112px 22px 72px;
  background: radial-gradient(circle at top left, rgba(244, 63, 94, 0.18), transparent 34%), linear-gradient(135deg, #fff1f2 0%, #fff7ed 45%, #fdf2f8 100%);
}

.blob {
  position: absolute;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.36;
  animation: blobFloat 12s infinite alternate ease-in-out;
}

.blob-one {
  top: 95px;
  left: 8%;
  background: #fda4af;
}

.blob-two {
  top: 160px;
  right: 8%;
  background: #f9a8d4;
  animation-delay: 1.8s;
}

.blob-three {
  bottom: 70px;
  left: 24%;
  background: #fcd34d;
  animation-delay: 3.4s;
}

@keyframes blobFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(24px, -28px, 0) scale(1.08);
  }
}

.hero-track {
  position: relative;
  z-index: 2;
  width: min(var(--max-width), 100%);
  min-height: 500px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 42px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-image {
  position: relative;
  min-height: 470px;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), var(--amber-50));
  box-shadow: var(--shadow-strong);
}

.hero-image img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  transform: scale(1.01);
}

.hero-image::after,
.wide-card::after,
.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(17, 24, 39, 0.56));
  pointer-events: none;
}

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

.hero-kicker,
.section-kicker {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--rose-500);
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(40px, 6.5vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  background: linear-gradient(135deg, var(--rose-600), var(--pink-500), #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-content p,
.page-hero p {
  font-size: 19px;
  line-height: 1.8;
  color: var(--gray-700);
}

.hero-actions,
.detail-info .button {
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 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(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 14px 28px rgba(244, 63, 94, 0.25);
}

.button.ghost {
  color: var(--rose-600);
  background: var(--white);
  border: 2px solid rgba(244, 63, 94, 0.45);
  margin-left: 12px;
}

.hero-float-card {
  position: absolute;
  left: 32px;
  bottom: 32px;
  width: min(320px, calc(100% - 64px));
  padding: 18px;
  border-radius: 22px;
  color: var(--white);
  background: rgba(17, 24, 39, 0.58);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 45px rgba(17, 24, 39, 0.25);
}

.hero-float-card span,
.hero-float-card em {
  display: block;
  font-size: 13px;
  opacity: 0.82;
}

.hero-float-card strong {
  display: block;
  margin: 6px 0;
  font-size: 22px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(225, 29, 72, 0.28);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.stats-strip {
  width: min(var(--max-width), calc(100% - 44px));
  margin: -34px auto 64px;
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.stats-strip div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.stats-strip strong {
  color: var(--rose-600);
  font-size: 30px;
}

.stats-strip span {
  color: var(--gray-500);
  font-weight: 700;
}

.content-section {
  width: min(var(--max-width), calc(100% - 44px));
  margin: 0 auto;
  padding: 64px 0;
}

.content-section.no-top-padding {
  padding-top: 22px;
}

.soft-bg {
  width: 100%;
  max-width: none;
  padding-left: max(22px, calc((100% - var(--max-width)) / 2));
  padding-right: max(22px, calc((100% - var(--max-width)) / 2));
  background: linear-gradient(135deg, rgba(255, 241, 242, 0.8), rgba(253, 242, 248, 0.8));
}

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.05em;
}

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

.section-link {
  color: var(--rose-500);
  font-weight: 800;
  white-space: nowrap;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 50px rgba(17, 24, 39, 0.14);
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), var(--amber-50));
}

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

.movie-card.compact {
  flex: 0 0 250px;
}

.movie-card.compact .poster-frame {
  height: 280px;
  aspect-ratio: auto;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, opacity 0.2s ease;
}

.poster-frame.poster-fallback::before {
  content: "欧美高清视频";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: var(--rose-600);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.movie-card:hover img,
.wide-card:hover img,
.category-tile:hover img,
.category-overview-card:hover img {
  transform: scale(1.07);
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 44px;
  padding: 6px 10px;
  text-align: center;
  border-radius: 999px;
  color: var(--gray-900);
  background: var(--amber-400);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.movie-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
}

.movie-card-title {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
}

.movie-card-meta,
.movie-card-desc,
.movie-card .tag-row {
  color: var(--gray-500);
  font-size: 13px;
  line-height: 1.6;
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--rose-600);
  background: var(--rose-100);
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.category-cover,
.category-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.category-cover img {
  object-fit: cover;
}

.category-info {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--white);
}

.category-info strong {
  font-size: 24px;
}

.category-info em,
.category-info small {
  font-style: normal;
  opacity: 0.9;
}

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

.wide-card {
  position: relative;
  height: 360px;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow-soft);
  background: var(--gray-100);
}

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

.wide-card-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  padding: 28px;
  color: var(--white);
}

.wide-card-overlay strong {
  display: block;
  font-size: 26px;
  margin-bottom: 8px;
}

.wide-card-overlay em {
  font-style: normal;
  opacity: 0.92;
  line-height: 1.6;
}

.horizontal-scroll {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
}

.horizontal-scroll .movie-card {
  scroll-snap-align: start;
}

.ranking-list,
.ranking-card-list {
  display: grid;
  gap: 12px;
}

.rank-row {
  display: grid;
  grid-template-columns: 68px 1fr 1.2fr 70px;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}

.rank-row:hover {
  transform: translateX(6px);
}

.rank-number {
  color: var(--rose-500);
  font-size: 24px;
  font-weight: 900;
}

.rank-title {
  font-weight: 900;
}

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

.rank-score {
  justify-self: end;
  color: var(--gray-900);
  font-weight: 900;
}

.cta-panel {
  width: min(var(--max-width), calc(100% - 44px));
  margin: 46px auto 80px;
  padding: 54px 28px;
  border-radius: 36px;
  text-align: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-600), var(--pink-500));
  box-shadow: var(--shadow-strong);
}

.cta-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
}

.cta-panel p {
  max-width: 720px;
  margin: 0 auto 24px;
  opacity: 0.92;
  line-height: 1.8;
}

.cta-panel .button.primary {
  color: var(--rose-600);
  background: var(--white);
}

.page-shell {
  padding-top: 34px;
}

.page-hero {
  width: min(var(--max-width), calc(100% - 44px));
  margin: 0 auto;
  padding: 68px 34px;
  border-radius: 36px;
  background: radial-gradient(circle at right top, rgba(244, 63, 94, 0.16), transparent 32%), linear-gradient(135deg, #fff1f2, #fff7ed);
  box-shadow: var(--shadow-soft);
}

.compact-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
}

.breadcrumb {
  width: min(var(--max-width), calc(100% - 44px));
  margin: 22px auto;
  color: var(--gray-500);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--rose-600);
  font-weight: 800;
}

.filter-panel,
.search-panel {
  width: min(var(--max-width), calc(100% - 44px));
  margin: 28px auto 0;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 16px;
}

.filter-grid label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--gray-700);
  font-weight: 800;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  padding: 12px 14px;
}

.filter-count {
  margin: 14px 2px 0;
  color: var(--gray-500);
  font-weight: 700;
}

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

.category-overview-card {
  overflow: hidden;
  border-radius: 26px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.category-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 132px;
  overflow: hidden;
  background: var(--rose-100);
}

.category-mosaic span {
  position: relative;
  overflow: hidden;
}

.category-mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-overview-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
}

.category-overview-body strong {
  font-size: 22px;
  font-weight: 900;
}

.category-overview-body em,
.category-overview-body small {
  color: var(--gray-500);
  font-style: normal;
  line-height: 1.6;
}

.ranking-card {
  display: grid;
  grid-template-columns: 74px 92px 1fr 72px;
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}

.ranking-card:hover {
  transform: translateY(-3px);
}

.ranking-card-number {
  font-size: 26px;
  font-weight: 900;
  color: var(--rose-500);
}

.ranking-card-poster {
  position: relative;
  width: 92px;
  height: 116px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--rose-100);
}

.ranking-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.ranking-card-body em,
.ranking-card-body small {
  color: var(--gray-500);
  font-style: normal;
  line-height: 1.6;
}

.ranking-card-score {
  justify-self: end;
  font-size: 22px;
  font-weight: 900;
  color: var(--gray-900);
}

.search-large {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
}

.search-large input {
  min-height: 50px;
  padding: 0 18px;
}

.detail-breadcrumb {
  margin-top: 34px;
}

.detail-hero {
  width: min(var(--max-width), calc(100% - 44px));
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 42px;
  align-items: center;
  padding: 34px;
  border-radius: 36px;
  background: radial-gradient(circle at right top, rgba(236, 72, 153, 0.14), transparent 32%), linear-gradient(135deg, #fff1f2, #ffffff);
  box-shadow: var(--shadow-soft);
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  box-shadow: var(--shadow-strong);
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.detail-one-line {
  color: var(--gray-700);
  font-size: 19px;
  line-height: 1.8;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.detail-meta-grid span {
  padding: 14px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.06);
  color: var(--gray-700);
  line-height: 1.4;
}

.detail-meta-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--rose-500);
}

.player-section {
  width: min(var(--max-width), calc(100% - 44px));
  margin: 0 auto 42px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #0f172a;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.35);
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle, rgba(244, 63, 94, 0.28), rgba(15, 23, 42, 0.46));
  cursor: pointer;
}

.player-start span {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 16px 36px rgba(244, 63, 94, 0.34);
  font-size: 26px;
}

.player-start strong {
  font-size: 20px;
}

.video-shell.is-playing .player-start {
  display: none;
}

.player-status {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  text-align: center;
  pointer-events: none;
}

.detail-content-grid {
  width: min(var(--max-width), calc(100% - 44px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.text-panel {
  border-radius: 26px;
  padding: 30px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.text-panel h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.text-panel p {
  color: var(--gray-700);
  line-height: 1.9;
}

.related-scroll .movie-card.compact {
  flex-basis: 230px;
}

.site-footer {
  margin-top: 70px;
  padding: 56px 22px 26px;
  background: #111827;
  color: rgba(255, 255, 255, 0.78);
}

.footer-grid {
  width: min(var(--max-width), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 30px;
}

.footer-grid h3 {
  color: var(--white);
  margin: 0 0 14px;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
  transition: color 0.2s ease;
}

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

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

.footer-grid p {
  line-height: 1.8;
}

.footer-bottom {
  width: min(var(--max-width), 100%);
  margin: 32px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 255, 255, 0.56);
}

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

@media (max-width: 980px) {
  .mobile-menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow-soft);
  }

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

  .nav-search {
    padding-left: 0;
  }

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

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

  .hero-slide {
    gap: 24px;
  }

  .hero-image {
    min-height: 360px;
    order: 2;
  }

  .hero-image img {
    min-height: 360px;
  }

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

  .filter-grid,
  .stats-strip,
  .detail-meta-grid,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ranking-card {
    grid-template-columns: 58px 78px 1fr;
  }

  .ranking-card-score {
    grid-column: 3;
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .brand-text {
    font-size: 18px;
  }

  .hero-carousel {
    min-height: auto;
    padding-top: 92px;
  }

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

  .hero-actions {
    display: grid;
    gap: 12px;
  }

  .button.ghost {
    margin-left: 0;
  }

  .stats-strip,
  .movie-grid,
  .featured-grid,
  .category-grid,
  .wide-card-grid,
  .category-overview-grid,
  .filter-grid,
  .detail-meta-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 54px 1fr;
  }

  .rank-meta,
  .rank-score {
    grid-column: 2;
    justify-self: start;
  }

  .ranking-card {
    grid-template-columns: 48px 70px 1fr;
    gap: 12px;
  }

  .ranking-card-poster {
    width: 70px;
    height: 92px;
  }

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

  .detail-hero,
  .page-hero,
  .text-panel {
    padding: 24px;
  }

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