:root {
  --rose-50: #fff1f2;
  --rose-100: #ffe4e6;
  --rose-300: #fda4af;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --pink-500: #ec4899;
  --amber-50: #fffbeb;
  --amber-400: #fbbf24;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --black: #000000;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--gray-900);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.wide-container {
  width: min(1380px, calc(100% - 32px));
}

.narrow-container {
  width: min(980px, calc(100% - 32px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(244, 63, 94, 0.10);
}

.header-inner {
  width: min(1320px, calc(100% - 28px));
  margin: 0 auto;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 10px 20px rgba(244, 63, 94, 0.25);
}

.brand-text {
  font-size: 20px;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--gray-700);
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose-600);
  background: var(--rose-50);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  background: white;
}

.header-search input {
  width: 220px;
  border: 0;
  outline: none;
  padding: 9px 6px 9px 14px;
  background: transparent;
}

.header-search button,
.search-panel button {
  border: 0;
  padding: 9px 16px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  font-weight: 700;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--rose-50);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--rose-600);
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--gray-200);
  background: white;
}

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

.mobile-nav a,
.mobile-search input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--gray-700);
  background: var(--gray-50);
}

.mobile-search input {
  border: 1px solid var(--gray-200);
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 45%, #fdf2f8 100%);
}

.hero-track {
  position: relative;
  min-height: calc(100vh - 76px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.20;
  filter: blur(8px) saturate(1.2);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 241, 242, 0.96), rgba(255, 255, 255, 0.72), rgba(255, 241, 242, 0.62));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.62fr);
  gap: 48px;
  align-items: center;
  padding: 80px 0;
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, var(--rose-600), var(--pink-500), #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 26px;
  color: var(--gray-700);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.75;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(244, 63, 94, 0.18);
  font-weight: 800;
  letter-spacing: 0.08em;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--rose-600);
  background: var(--rose-100);
  font-size: 13px;
  font-weight: 700;
}

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

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

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

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 14px 32px rgba(244, 63, 94, 0.28);
}

.btn-ghost {
  color: var(--rose-600);
  background: rgba(255, 255, 255, 0.80);
  border: 2px solid rgba(244, 63, 94, 0.35);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  aspect-ratio: 3 / 4;
  background: white;
  box-shadow: var(--shadow-soft);
  transform: rotate(2deg);
  transition: transform 0.35s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.02);
}

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

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  color: white;
  background: rgba(17, 24, 39, 0.72);
  backdrop-filter: blur(8px);
  font-weight: 700;
}

.hero-glow {
  position: absolute;
  z-index: 1;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  mix-blend-mode: multiply;
  filter: blur(28px);
  opacity: 0.45;
  animation: blob 9s infinite;
}

.hero-glow-one {
  top: 12%;
  left: 8%;
  background: var(--rose-300);
}

.hero-glow-two {
  top: 18%;
  right: 8%;
  background: #f9a8d4;
  animation-delay: 2s;
}

.hero-glow-three {
  bottom: 12%;
  left: 32%;
  background: #fcd34d;
  animation-delay: 4s;
}

@keyframes blob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(24px, -28px) scale(1.08);
  }
  66% {
    transform: translate(-18px, 22px) scale(0.94);
  }
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.hero-controls button {
  border: 0;
  color: var(--rose-600);
  background: transparent;
  font-size: 24px;
  font-weight: 900;
}

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

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border-radius: 999px;
  background: var(--rose-300);
  opacity: 0.55;
}

.hero-dots button.active {
  width: 28px;
  opacity: 1;
  background: var(--rose-600);
}

.feature-strip {
  width: min(1180px, calc(100% - 32px));
  margin: -44px auto 0;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 26px;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.feature-card strong {
  display: block;
  font-size: 30px;
  color: var(--rose-600);
}

.feature-card span {
  color: var(--gray-600);
  font-weight: 700;
}

.content-section {
  padding: 84px 0;
  background: white;
}

.soft-bg {
  background: linear-gradient(135deg, var(--rose-50), #fdf2f8);
}

.amber-bg {
  background: linear-gradient(135deg, var(--amber-50), var(--rose-50));
}

.rank-bg {
  background: linear-gradient(135deg, #fdf2f8, var(--rose-50));
}

.horizontal-section {
  overflow: hidden;
}

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

.section-heading h2 {
  margin: 0 0 8px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

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

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--rose-600);
  font-weight: 800;
}

.movie-grid {
  display: grid;
  gap: 26px;
}

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

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

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

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

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

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.17);
}

.movie-card figure {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--rose-100), var(--amber-50));
}

.poster-grid .movie-card figure,
.listing-grid .movie-card figure,
.compact-grid .movie-card figure {
  aspect-ratio: 3 / 4;
}

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

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

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  font-size: 12px;
}

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

.movie-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--rose-600);
  font-size: 13px;
  font-weight: 800;
}

.movie-meta-line em {
  color: #b45309;
  font-style: normal;
}

.movie-card h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.3;
}

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

.horizontal-list {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 2px 28px;
  scroll-snap-type: x mandatory;
}

.horizontal-list .movie-card {
  width: 256px;
  flex: 0 0 256px;
  scroll-snap-align: start;
}

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

.rank-item,
.rank-row {
  display: grid;
  align-items: center;
  gap: 22px;
  padding: 18px;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item {
  grid-template-columns: 170px 1fr auto;
}

.rank-item:hover,
.rank-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.rank-item figure,
.rank-row figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 4 / 3;
  background: var(--rose-100);
}

.rank-item img,
.rank-row img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-item b {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: var(--rose-500);
  font-size: 20px;
}

.rank-item h3,
.rank-row h2 {
  margin: 6px 0 8px;
  font-size: 24px;
}

.rank-item p,
.rank-row p {
  margin: 0;
  color: var(--gray-600);
  line-height: 1.6;
}

.rank-item span,
.rank-row small {
  color: var(--gray-500);
  font-weight: 700;
}

.rank-item em,
.rank-row strong {
  color: #b45309;
  font-style: normal;
  font-size: 22px;
}

.page-hero {
  padding: 82px 0;
  color: white;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.1;
}

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

.page-hero .eyebrow {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
}

.filter-bar,
.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px;
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow-card);
}

.search-panel {
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(120px, 180px)) auto;
}

.filter-bar input,
.filter-bar select,
.search-panel input,
.search-panel select {
  min-height: 46px;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--gray-700);
  background: var(--gray-50);
  outline: none;
}

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

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

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--gray-700);
  background: white;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  font-weight: 800;
}

.pagination a.active {
  color: white;
  background: var(--rose-500);
}

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

.category-card {
  min-height: 172px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card span {
  display: block;
  color: var(--gray-900);
  font-size: 22px;
  font-weight: 900;
}

.category-card strong {
  display: inline-flex;
  margin: 12px 0;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--rose-600);
  background: var(--rose-100);
}

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

.rank-table {
  display: grid;
  gap: 14px;
}

.rank-row {
  grid-template-columns: 58px 120px 1fr auto;
}

.rank-num {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  font-weight: 900;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  color: white;
  background: #111827;
}

.detail-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.34;
  filter: blur(8px) saturate(1.1);
  transform: scale(1.05);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.94), rgba(17, 24, 39, 0.68), rgba(17, 24, 39, 0.36));
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 44px;
  align-items: center;
}

.detail-poster {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
  aspect-ratio: 3 / 4;
  background: var(--rose-100);
}

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

.detail-info h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.06;
}

.detail-one-line {
  max-width: 780px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
  line-height: 1.75;
}

.detail-score {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 22px 0 28px;
}

.detail-score strong {
  font-size: 28px;
  color: var(--amber-400);
}

.detail-score span {
  color: rgba(255, 255, 255, 0.75);
}

.player-section {
  background: #0f172a;
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: white;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.74));
  text-align: center;
  cursor: pointer;
  z-index: 3;
}

.player-card.is-playing .player-overlay {
  display: none;
}

.play-circle {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
  box-shadow: 0 16px 42px rgba(244, 63, 94, 0.45);
  font-size: 32px;
}

.player-overlay strong {
  font-size: 24px;
}

.player-overlay small {
  color: rgba(255, 255, 255, 0.78);
}

.detail-text-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
  gap: 24px;
}

.story-card,
.info-card {
  padding: 28px;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-card);
}

.accent-card {
  background: linear-gradient(135deg, var(--rose-50), #fdf2f8);
}

.story-card h2,
.info-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
}

.story-card p {
  margin: 0;
  color: var(--gray-700);
  line-height: 1.9;
}

.info-card dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  margin: 0;
}

.info-card dt {
  color: var(--gray-500);
  font-weight: 800;
}

.info-card dd {
  margin: 0;
  color: var(--gray-900);
}

.search-summary {
  margin: -6px 0 20px;
  color: var(--gray-600);
  font-weight: 700;
}

.no-results {
  grid-column: 1 / -1;
  padding: 34px;
  border-radius: 24px;
  color: var(--gray-600);
  background: white;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.site-footer {
  padding: 56px 0;
  background: white;
  border-top: 1px solid var(--gray-200);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer p {
  max-width: 460px;
  color: var(--gray-600);
  line-height: 1.7;
}

.site-footer h3 {
  margin: 0 0 14px;
}

.site-footer a:not(.brand) {
  display: block;
  margin: 8px 0;
  color: var(--gray-600);
}

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

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

@media (max-width: 1120px) {
  .header-search {
    display: none;
  }

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

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

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

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

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

  .hero-poster {
    max-width: 320px;
    margin: 0 auto;
  }

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

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

  .rank-item {
    grid-template-columns: 130px 1fr;
  }

  .rank-item em {
    grid-column: 2;
  }

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

  .rank-row strong {
    grid-column: 3;
  }

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

  .detail-poster {
    width: min(320px, 100%);
  }

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

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

@media (max-width: 640px) {
  .header-inner {
    height: 68px;
  }

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

  .hero,
  .hero-track {
    min-height: auto;
  }

  .hero-slide {
    position: relative;
    display: none;
    min-height: auto;
  }

  .hero-slide.active {
    display: grid;
  }

  .hero-content {
    padding: 52px 0 94px;
    gap: 28px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

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

  .feature-strip,
  .featured-grid,
  .compact-grid,
  .poster-grid,
  .listing-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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

  .rank-item,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .rank-row figure,
  .rank-item figure {
    width: 100%;
  }

  .page-hero,
  .detail-hero {
    padding: 58px 0;
  }

  .player-card {
    border-radius: 18px;
  }
}
