:root {
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --amber-950: #451a03;
  --amber-900: #78350f;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-300: #fcd34d;
  --orange-700: #c2410c;
  --orange-600: #ea580c;
  --orange-50: #fff7ed;
  --page: #fffaf1;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(68, 64, 60, 0.16);
  --soft-shadow: 0 12px 30px rgba(68, 64, 60, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--stone-800);
  background: linear-gradient(135deg, #fff7ed 0%, #fafaf9 50%, #ffedd5 100%);
}

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: linear-gradient(90deg, rgba(120, 53, 15, 0.97), rgba(41, 37, 36, 0.97), rgba(124, 45, 18, 0.97));
  border-bottom: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow: 0 12px 35px rgba(28, 25, 23, 0.22);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.34);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand:hover .brand-icon {
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 18px 40px rgba(217, 119, 6, 0.42);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 23px;
  letter-spacing: 0.04em;
  color: transparent;
  background: linear-gradient(90deg, #fde68a, #fed7aa);
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-text small {
  margin-top: 6px;
  color: rgba(252, 211, 77, 0.72);
  font-size: 12px;
}

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

.nav-link {
  color: #fde68a;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: #fde68a;
}

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(245, 158, 11, 0.18);
}

.mobile-panel-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0 18px;
}

.mobile-nav-link,
.mobile-category-link {
  display: block;
  color: #fde68a;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.mobile-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.hero {
  position: relative;
  min-height: 560px;
  height: 70vh;
  overflow: hidden;
  background: radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.22), transparent 34%), linear-gradient(135deg, var(--stone-950), var(--amber-950), var(--stone-950));
}

.hero-bg {
  position: absolute;
  inset: -28px;
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.42);
  transform: scale(1.08);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.52) 42%, rgba(0, 0, 0, 0.08));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 48px;
  padding: 54px 0;
}

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

.hero-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fde68a;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-label {
  padding: 9px 15px;
  border: 1px solid rgba(245, 158, 11, 0.34);
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.18);
  backdrop-filter: blur(12px);
}

.hero h1 {
  margin: 22px 0 18px;
  color: #fff;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  color: #d6d3d1;
  font-weight: 700;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}

.hero-score {
  color: #fbbf24;
}

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

.hero-genres span,
.detail-tags span,
.genre-pills span,
.card-tags span,
.filter-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  white-space: nowrap;
}

.hero-genres span {
  padding: 4px 10px;
  color: #fff7ed;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.hero p {
  max-width: 720px;
  margin: 24px 0 30px;
  color: #d6d3d1;
  font-size: 18px;
  line-height: 1.8;
}

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

.btn-primary,
.btn-secondary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 18px 35px rgba(217, 119, 6, 0.32);
}

.btn-secondary {
  color: #fde68a;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(252, 211, 77, 0.25);
}

.btn-ghost {
  color: var(--amber-700);
  background: #fff7ed;
  border: 1px solid #fed7aa;
}

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

.hero-poster {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  transform: rotate(1.2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.44), transparent 45%);
}

.hero-poster-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  color: #fff7ed;
  font-weight: 800;
}

main {
  min-height: 60vh;
}

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

.content-wrap.is-narrow {
  width: min(960px, calc(100% - 32px));
}

.section-stack {
  display: grid;
  gap: 58px;
}

.section-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(231, 229, 228, 0.84);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--soft-shadow);
}

.section-warm {
  background: linear-gradient(90deg, #fffbeb, #fff7ed);
  border: 1px solid #fed7aa;
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--soft-shadow);
}

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

.section-title h2 {
  margin: 7px 0 0;
  color: var(--stone-800);
  font-size: clamp(26px, 3.6vw, 36px);
  line-height: 1.15;
}

.section-title a {
  color: var(--amber-700);
  font-weight: 800;
}

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

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

.movie-card {
  background: #fff;
  border: 1px solid rgba(231, 229, 228, 0.8);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(68, 64, 60, 0.09);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px rgba(68, 64, 60, 0.18);
  border-color: rgba(217, 119, 6, 0.35);
}

.movie-cover {
  position: relative;
  display: block;
  min-height: 0;
  background: linear-gradient(135deg, #e7e5e4, #fef3c7);
  overflow: hidden;
}

.movie-cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.cover-gradient {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.56), transparent 52%);
  transition: opacity 0.28s ease;
}

.movie-card:hover .cover-gradient {
  opacity: 1;
}

.score,
.rank-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.score {
  right: 10px;
  top: 10px;
  padding: 5px 9px;
  color: #fff;
  font-size: 12px;
  background: rgba(245, 158, 11, 0.94);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.18);
}

.rank-badge {
  left: 10px;
  top: 10px;
  width: 36px;
  height: 36px;
  color: #fff7ed;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.3);
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  min-height: 24px;
  margin: 0 0 9px;
  color: var(--stone-800);
  font-size: 17px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-info h3 a:hover {
  color: var(--amber-700);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--stone-500);
  font-size: 12px;
  font-weight: 700;
}

.genre-pills,
.card-tags,
.detail-tags,
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.genre-pills {
  margin-top: 10px;
}

.genre-pills span {
  padding: 3px 8px;
  color: var(--stone-700);
  font-size: 12px;
  background: #f5f5f4;
}

.movie-info p {
  display: -webkit-box;
  min-height: 44px;
  margin: 10px 0 0;
  color: var(--stone-600);
  font-size: 13px;
  line-height: 1.7;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.card-tags span {
  padding: 3px 8px;
  color: var(--amber-700);
  font-size: 11px;
  background: #fffbeb;
}

.movie-card.is-compact .movie-info {
  padding: 12px;
}

.movie-card.is-compact .movie-info h3 {
  font-size: 14px;
}

.movie-card.is-compact .movie-info p,
.movie-card.is-compact .card-tags {
  display: none;
}

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

.category-tile {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 24px;
  border-radius: 26px;
  color: #fff7ed;
  background: radial-gradient(circle at top right, rgba(252, 211, 77, 0.32), transparent 36%), linear-gradient(135deg, var(--stone-900), var(--amber-900));
  box-shadow: var(--soft-shadow);
}

.category-tile h2,
.category-tile h3 {
  position: relative;
  z-index: 2;
  margin: 0 0 10px;
  font-size: 24px;
}

.category-tile p,
.category-tile span {
  position: relative;
  z-index: 2;
  color: rgba(255, 247, 237, 0.78);
  line-height: 1.7;
}

.category-tile span {
  display: inline-flex;
  margin-top: 18px;
  color: #fde68a;
  font-weight: 900;
}

.page-hero {
  padding: 58px 0 34px;
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.92), rgba(28, 25, 23, 0.96), rgba(154, 52, 18, 0.92));
  color: #fff7ed;
}

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

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(254, 243, 199, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumbs a:hover {
  color: #fff;
}

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

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 247, 237, 0.78);
  font-size: 17px;
  line-height: 1.8;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 12px;
  padding: 18px;
  margin-bottom: 28px;
  border: 1px solid #fed7aa;
  border-radius: 22px;
  background: linear-gradient(90deg, #fff7ed, #fff);
  box-shadow: 0 12px 26px rgba(68, 64, 60, 0.07);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #e7e5e4;
  border-radius: 14px;
  color: var(--stone-800);
  background: #fff;
  outline: 0;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.filter-count {
  margin: -10px 0 24px;
  color: var(--stone-500);
  font-size: 14px;
  font-weight: 700;
}

.empty-state {
  display: none;
  padding: 44px 24px;
  color: var(--stone-600);
  text-align: center;
  border-radius: 22px;
  background: #fff;
  border: 1px dashed #fdba74;
}

.empty-state.is-visible {
  display: block;
}

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

.ranking-row {
  display: grid;
  grid-template-columns: 74px 110px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(231, 229, 228, 0.88);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 24px rgba(68, 64, 60, 0.08);
}

.ranking-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.ranking-row img {
  width: 110px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 16px;
  background: #f5f5f4;
}

.ranking-copy h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.ranking-copy h2 a:hover {
  color: var(--amber-700);
}

.ranking-copy p {
  display: -webkit-box;
  margin: 8px 0 0;
  color: var(--stone-600);
  line-height: 1.7;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.player-card,
.detail-card,
.side-card {
  border: 1px solid rgba(231, 229, 228, 0.9);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  overflow: hidden;
}

.player-shell {
  position: relative;
  background: #000;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.26);
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-button {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 999px;
  color: #fff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.34);
  transition: transform 0.22s ease;
}

.player-overlay:hover .play-button {
  transform: scale(1.08);
}

.player-state {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 6;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  text-align: center;
  pointer-events: none;
}

.detail-card {
  padding: 26px;
}

.detail-card h1 {
  margin: 0 0 16px;
  color: var(--stone-800);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.12;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.detail-meta span {
  padding: 7px 12px;
  color: var(--stone-700);
  font-weight: 800;
  font-size: 13px;
  border-radius: 999px;
  background: #f5f5f4;
}

.detail-meta .strong {
  color: var(--amber-700);
  background: #fffbeb;
}

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

.detail-card p {
  margin: 0 0 14px;
  color: var(--stone-700);
  font-size: 16px;
  line-height: 1.9;
}

.detail-tags span,
.filter-chip {
  padding: 7px 11px;
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 800;
  background: #fffbeb;
}

.side-card {
  padding: 20px;
}

.poster-box img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 22px;
  background: #f5f5f4;
}

.info-table {
  display: grid;
  gap: 0;
  margin-top: 18px;
  font-size: 14px;
}

.info-table div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f4;
}

.info-table dt {
  color: var(--stone-500);
}

.info-table dd {
  margin: 0;
  color: var(--stone-800);
  font-weight: 800;
  text-align: right;
}

.related-strip {
  margin-top: 34px;
}

.search-stage {
  display: grid;
  gap: 24px;
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 12px;
  padding: 18px;
  border: 1px solid #fed7aa;
  border-radius: 24px;
  background: linear-gradient(90deg, #fff7ed, #fff);
  box-shadow: var(--soft-shadow);
}

.search-box input {
  min-height: 52px;
  border: 1px solid #e7e5e4;
  border-radius: 16px;
  padding: 0 16px;
  outline: 0;
}

.search-box button {
  border: 0;
}

.site-footer {
  margin-top: 44px;
  color: #d6d3d1;
  background: linear-gradient(90deg, #1c1917, #451a03, #1c1917);
  border-top: 1px solid rgba(245, 158, 11, 0.22);
}

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

.footer-brand {
  margin-bottom: 12px;
  color: #fde68a;
  font-size: 22px;
  font-weight: 900;
}

.footer-about p {
  max-width: 440px;
  margin: 0;
  line-height: 1.8;
  color: #a8a29e;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: #fde68a;
  font-size: 16px;
}

.footer-links {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.footer-links a {
  color: #a8a29e;
  font-size: 14px;
}

.footer-links a:hover {
  color: #fde68a;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 30px;
  color: #78716c;
  border-top: 1px solid rgba(120, 113, 108, 0.32);
  font-size: 14px;
}

@media (max-width: 1080px) {
  .hero-inner,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

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

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

  .desktop-nav {
    display: none;
  }

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

  .site-header.is-open .mobile-panel {
    display: block;
  }

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

  .brand-text small {
    display: none;
  }

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

  .hero-inner {
    padding: 74px 0;
  }

  .hero p {
    font-size: 16px;
  }

  .content-wrap {
    padding: 36px 0;
  }

  .section-card,
  .section-warm {
    padding: 18px;
    border-radius: 22px;
  }

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

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

  .movie-info {
    padding: 12px;
  }

  .movie-info h3 {
    font-size: 15px;
  }

  .movie-meta,
  .genre-pills,
  .card-tags {
    gap: 5px;
  }

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

  .ranking-row {
    grid-template-columns: 48px 82px minmax(0, 1fr);
  }

  .ranking-row .btn-ghost {
    grid-column: 1 / -1;
  }

  .ranking-row img {
    width: 82px;
  }

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

@media (max-width: 430px) {
  .movie-grid,
  .movie-grid.compact-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

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