
:root {
  --orange-50: #fff7ed;
  --orange-100: #ffedd5;
  --orange-200: #fed7aa;
  --orange-500: #f97316;
  --orange-600: #ea580c;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-500: #f59e0b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.12);
  --soft-shadow: 0 10px 30px rgba(249, 115, 22, 0.12);
  --radius-xl: 1.25rem;
  --radius-2xl: 1.5rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--gray-800);
  background: linear-gradient(180deg, var(--amber-50), var(--white) 42%, var(--orange-50));
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.96), rgba(255, 237, 213, 0.96), rgba(255, 251, 235, 0.96));
  border-bottom: 1px solid rgba(249, 115, 22, 0.16);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--orange-500), var(--amber-500));
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.35);
}

.brand-text {
  font-size: 1.35rem;
}

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

.main-nav a {
  color: var(--gray-700);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: var(--orange-600);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 8px;
}

.header-search input {
  width: 260px;
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: 999px;
  padding: 11px 88px 11px 18px;
  background: rgba(255, 255, 255, 0.86);
  outline: none;
}

.header-search input:focus {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13);
}

.header-search button {
  position: absolute;
  right: 4px;
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--white);
  background: var(--orange-500);
  cursor: pointer;
}

.nav-toggle {
  display: none;
  border: 0;
  background: var(--white);
  color: var(--orange-600);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 1.35rem;
  box-shadow: var(--soft-shadow);
}

.hero-section {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 48%, #fef3c7 100%);
}

.hero-blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(44px);
  opacity: 0.28;
  animation: pulseBlob 6s ease-in-out infinite;
}

.hero-blob-one {
  top: 80px;
  left: 8%;
  width: 260px;
  height: 260px;
  background: var(--orange-500);
}

.hero-blob-two {
  right: 6%;
  bottom: 70px;
  width: 370px;
  height: 370px;
  background: var(--amber-500);
  animation-delay: 1.5s;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.8fr);
  gap: 48px;
  align-items: center;
  min-height: 620px;
  padding: 52px 0;
}

.hero-copy {
  animation: fadeUp 0.8s ease both;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--orange-600);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 20px 0 18px;
  color: var(--gray-900);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero-copy h1 span,
.detail-copy h1 span {
  color: var(--orange-600);
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 30px;
  color: var(--gray-700);
  font-size: 1.18rem;
}

.hero-actions,
.center-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.center-actions.left {
  justify-content: flex-start;
}

.hero-actions {
  justify-content: flex-start;
}

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

.primary-button {
  color: var(--white);
  background: var(--orange-500);
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.28);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px) scale(1.02);
}

.secondary-button {
  color: var(--orange-600);
  background: var(--white);
  border: 2px solid var(--orange-500);
  box-shadow: var(--soft-shadow);
}

.ghost-button {
  border: 1px solid var(--orange-200);
  color: var(--orange-600);
  background: var(--white);
  cursor: pointer;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 560px;
  margin-top: 34px;
}

.hero-stats div,
.metric-card,
.category-card,
.text-panel,
.side-card,
.filter-panel {
  border: 1px solid rgba(249, 115, 22, 0.12);
  background: rgba(255, 255, 255, 0.86);
  border-radius: var(--radius-2xl);
  box-shadow: var(--soft-shadow);
}

.hero-stats div {
  padding: 16px;
}

.hero-stats strong {
  display: block;
  color: var(--gray-900);
  font-size: 1.65rem;
  line-height: 1.1;
}

.hero-stats span {
  color: var(--gray-600);
  font-size: 0.9rem;
}

.hero-carousel {
  position: relative;
  min-height: 500px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 18px;
  opacity: 0;
  transform: translateX(20px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-poster {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--orange-500), var(--amber-500));
  box-shadow: var(--shadow);
}

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

.hero-poster::after,
.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.72));
}

.hero-slide-info {
  padding: 22px;
  border-radius: var(--radius-2xl);
  color: var(--white);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.92), rgba(245, 158, 11, 0.92));
  box-shadow: var(--shadow);
}

.hero-slide-info span,
.hero-slide-info p {
  color: rgba(255, 255, 255, 0.86);
}

.hero-slide-info h3 {
  margin: 6px 0 8px;
  font-size: 1.5rem;
}

.hero-slide-info p {
  margin: 0 0 12px;
}

.hero-slide-info a {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.35);
  cursor: pointer;
}

.hero-dots button.is-active {
  width: 30px;
  background: var(--orange-500);
}

.metrics-section,
.content-section {
  padding: 72px 0;
}

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

.metric-card {
  padding: 28px;
  text-align: center;
}

.metric-card span,
.category-card span {
  color: var(--orange-600);
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin: 8px 0;
  color: var(--gray-900);
  font-size: 2.2rem;
}

.metric-card p,
.category-card em {
  color: var(--gray-600);
  font-style: normal;
}

.warm-bg {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 247, 237, 0.94));
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.split-layout .section-heading {
  margin-left: 0;
  text-align: left;
}

.section-heading h2 {
  margin: 0 0 12px;
  color: var(--gray-900);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
}

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

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

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

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

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

.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--white);
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-frame {
  position: relative;
  aspect-ratio: 4 / 5.4;
  overflow: hidden;
  background: linear-gradient(135deg, #fb923c, #f59e0b);
}

.movie-card-compact {
  display: grid;
  grid-template-columns: 38% 1fr;
  min-height: 210px;
}

.movie-card-compact .poster-frame {
  height: 100%;
  aspect-ratio: auto;
}

.poster-frame img,
.small-poster img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.movie-card:hover .poster-frame img {
  transform: scale(1.06);
}

.poster-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 900;
  font-size: 2.2rem;
  background: radial-gradient(circle at top left, #fdba74, #f97316 42%, #92400e);
}

.poster-type,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--orange-600);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 800;
}

.rank-badge {
  right: auto;
  left: 12px;
  color: var(--white);
  background: rgba(249, 115, 22, 0.92);
}

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

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

.movie-meta-row {
  color: var(--orange-600);
  font-size: 0.85rem;
  font-weight: 800;
}

.movie-card h3 {
  margin: 10px 0 8px;
  color: var(--gray-900);
  font-size: 1.15rem;
  line-height: 1.32;
}

.movie-card p {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 0 0 16px;
  overflow: hidden;
  color: var(--gray-600);
  font-size: 0.95rem;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-foot {
  margin-top: auto;
  color: var(--gray-500);
  font-size: 0.88rem;
  justify-content: space-between;
}

.rating {
  color: #d97706;
  font-weight: 900;
}

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

.rank-list a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-list a:hover {
  transform: translateX(4px);
  background: var(--orange-50);
}

.rank-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--white);
  background: var(--orange-500);
  font-weight: 900;
}

.rank-list strong {
  overflow: hidden;
  color: var(--gray-900);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-list em {
  color: var(--orange-600);
  font-style: normal;
  font-weight: 900;
}

.tall-rank-list {
  max-height: 760px;
  overflow: auto;
  padding-right: 8px;
}

.chip-cloud,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip,
.tag-cloud a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border-radius: 999px;
  padding: 10px 14px;
  color: var(--orange-600);
  background: var(--white);
  border: 1px solid var(--orange-200);
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(249, 115, 22, 0.1);
}

.chip span {
  color: var(--gray-500);
  font-size: 0.82rem;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
}

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

.slim-hero h1 {
  max-width: 920px;
  margin-top: 10px;
  color: var(--white);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
}

.slim-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
}

.slim-hero .eyebrow {
  color: rgba(255, 255, 255, 0.9);
}

.filter-panel {
  margin-top: -36px;
  padding: 24px;
}

.filter-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.filter-title h2 {
  margin: 0;
  color: var(--gray-900);
}

.filter-title p {
  margin: 0;
  color: var(--gray-600);
}

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

.filter-grid label {
  display: grid;
  gap: 7px;
  color: var(--gray-700);
  font-weight: 800;
  font-size: 0.88rem;
}

.filter-grid input,
.filter-grid select {
  width: 100%;
  border: 1px solid var(--orange-200);
  border-radius: 14px;
  padding: 12px 13px;
  background: var(--white);
  outline: none;
}

.filter-grid input:focus,
.filter-grid select:focus {
  border-color: var(--orange-500);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.filter-result-line {
  margin-top: 16px;
  color: var(--gray-600);
}

.filter-result-line strong {
  color: var(--orange-600);
}

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

.category-card {
  display: grid;
  gap: 6px;
  padding: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.category-card strong {
  color: var(--gray-900);
  font-size: 1.28rem;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  color: var(--white);
  background: var(--gray-900);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.42;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px) saturate(1.15);
}

.detail-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  min-height: 560px;
  padding: 60px 0;
}

.detail-poster {
  aspect-ratio: 4 / 5.45;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.75);
  border-radius: 30px;
  background: linear-gradient(135deg, var(--orange-500), var(--amber-500));
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  color: var(--white);
}

.detail-copy p {
  max-width: 790px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.18rem;
}

.detail-meta {
  margin-bottom: 26px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
  font-weight: 800;
}

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

.detail-main {
  display: grid;
  gap: 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(249, 115, 22, 0.25), rgba(2, 6, 23, 0.78));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-start span {
  display: inline-flex;
  width: 76px;
  height: 76px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--orange-500);
  box-shadow: 0 18px 42px rgba(249, 115, 22, 0.45);
  font-size: 1.8rem;
}

.player-start strong {
  font-size: 1.45rem;
}

.player-start em,
.player-status {
  color: rgba(255, 255, 255, 0.78);
  font-style: normal;
}

.player-status {
  margin: -8px 4px 0;
  color: var(--gray-600);
}

.text-panel,
.side-card {
  padding: 26px;
}

.text-panel h2,
.side-card h2 {
  margin: 0 0 14px;
  color: var(--gray-900);
}

.text-panel p {
  margin: 0;
  color: var(--gray-700);
  font-size: 1.05rem;
  line-height: 1.9;
}

.detail-sidebar {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 18px;
}

.side-card dl {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px 14px;
  margin: 0;
}

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

.side-card dd {
  margin: 0;
  color: var(--gray-900);
  font-weight: 700;
}

.side-card dd a {
  color: var(--orange-600);
}

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

.small-link-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 12px;
  border-radius: 16px;
  padding: 8px;
  transition: background 0.2s ease;
}

.small-link-card:hover {
  background: var(--orange-50);
}

.small-poster {
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--orange-500), var(--amber-500));
}

.small-link-card strong {
  display: -webkit-box;
  overflow: hidden;
  color: var(--gray-900);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.small-link-card span {
  display: block;
  margin-top: 4px;
  color: var(--gray-500);
  font-size: 0.86rem;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: #111827;
  padding: 58px 0 26px;
}

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

.footer-brand {
  color: var(--white);
  font-size: 1.25rem;
}

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

.site-footer p {
  margin: 12px 0 0;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: rgba(255, 255, 255, 0.72);
}

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

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseBlob {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@media (max-width: 1100px) {
  .header-search input {
    width: 210px;
  }

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

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

@media (max-width: 900px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .main-nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 18px;
    background: var(--white);
  }

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

  .main-nav a {
    padding: 12px;
    border-radius: 12px;
  }

  .main-nav a:hover,
  .main-nav a.is-active {
    background: var(--orange-50);
  }

  .header-search {
    order: 3;
    width: 100%;
    margin-left: 0;
  }

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

  .hero-layout,
  .detail-hero-inner,
  .detail-grid,
  .split-layout {
    grid-template-columns: 1fr;
  }

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

  .metrics-grid,
  .movie-grid,
  .compact-grid,
  .all-movie-grid,
  .ranking-card-grid,
  .wide-card-grid,
  .category-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .hero-section,
  .hero-layout {
    min-height: auto;
  }

  .hero-layout {
    padding: 38px 0 70px;
  }

  .hero-stats,
  .metrics-grid,
  .movie-grid,
  .compact-grid,
  .all-movie-grid,
  .ranking-card-grid,
  .wide-card-grid,
  .category-grid,
  .footer-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .movie-card-compact {
    grid-template-columns: 1fr;
  }

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

  .filter-title {
    display: block;
  }

  .detail-hero-inner {
    gap: 24px;
    min-height: auto;
  }

  .detail-poster {
    max-width: 260px;
  }

  .detail-copy h1,
  .hero-copy h1,
  .page-hero h1 {
    font-size: 2.45rem;
  }

  .rank-list a {
    grid-template-columns: 42px minmax(0, 1fr);
  }

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