:root {
  --sand-50: #faf8f3;
  --sand-100: #f5f0e6;
  --sand-200: #ebe2cd;
  --sand-300: #ddc9a3;
  --sand-600: #b07d44;
  --sand-700: #8f6235;
  --sand-800: #6d4a29;
  --sand-900: #4a3218;
  --dune-50: #fdf6ed;
  --dune-100: #fae9d1;
  --dune-500: #d97c1e;
  --dune-600: #c05f14;
  --dune-700: #9c4613;
  --white: #ffffff;
  --ink: #281806;
  --muted: #7d6650;
  --shadow: 0 24px 70px rgba(89, 55, 16, 0.16);
  --soft-shadow: 0 16px 40px rgba(89, 55, 16, 0.11);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sand-50), #ffffff 42%, var(--sand-50));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(221, 201, 163, 0.68);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(74, 50, 24, 0.08);
}

.nav-wrap {
  max-width: 1280px;
  height: 68px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sand-900);
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--dune-500), var(--dune-700));
  box-shadow: 0 12px 22px rgba(217, 124, 30, 0.32);
}

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

.main-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--sand-700);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--dune-700);
  background: var(--dune-50);
  transform: translateY(-1px);
}

.top-search {
  display: flex;
  align-items: center;
  width: min(330px, 26vw);
  padding: 4px;
  border: 1px solid var(--sand-200);
  border-radius: 999px;
  background: #ffffff;
}

.top-search input,
.home-search input,
.filter-bar input,
.filter-bar select {
  width: 100%;
  outline: none;
  border: 1px solid var(--sand-200);
  border-radius: 999px;
  background: #ffffff;
  color: var(--sand-900);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input {
  border: 0;
  padding: 9px 12px;
  min-width: 0;
}

.top-search button,
.home-search button,
.btn.primary {
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, var(--dune-500), var(--dune-700));
  box-shadow: 0 16px 32px rgba(217, 124, 30, 0.28);
}

.top-search button {
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--sand-100);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--sand-800);
  border-radius: 99px;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 690px;
  background:
    radial-gradient(circle at 16% 16%, rgba(217, 124, 30, 0.18), transparent 34%),
    linear-gradient(135deg, var(--sand-100), var(--dune-50) 42%, #ffffff);
}

.hero-track {
  position: relative;
  min-height: 690px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.24;
}

.hero-bg img {
  height: 100%;
  object-fit: cover;
  filter: blur(3px) saturate(1.05);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(250, 248, 243, 0.96), rgba(250, 248, 243, 0.66), rgba(250, 248, 243, 0.92));
}

.hero-content {
  position: relative;
  max-width: 1280px;
  min-height: 690px;
  margin: 0 auto;
  padding: 96px 24px 110px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.68fr);
  gap: 60px;
  align-items: center;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--dune-700);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 16px 0 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.06em;
  color: var(--sand-900);
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 720px;
  color: var(--sand-800);
  font-size: 18px;
  line-height: 1.9;
}

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

.hero-tags {
  margin: 24px 0 32px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--dune-700);
  background: rgba(250, 233, 209, 0.9);
  border: 1px solid rgba(217, 124, 30, 0.18);
  font-size: 13px;
  font-weight: 800;
}

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

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

.btn:hover,
.home-search button:hover,
.top-search button:hover {
  transform: translateY(-2px);
}

.btn.ghost {
  color: var(--sand-900);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(221, 201, 163, 0.9);
  box-shadow: var(--soft-shadow);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  display: block;
  width: min(100%, 420px);
  margin-left: auto;
  border-radius: var(--radius-xl);
  background: var(--sand-100);
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

.hero-poster::before {
  content: "";
  display: block;
  padding-top: 138%;
}

.hero-poster img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(74, 50, 24, 0.72);
  backdrop-filter: blur(12px);
  font-weight: 900;
}

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

.hero-dot {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(143, 98, 53, 0.26);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--dune-600);
}

.hero-quick-links {
  position: absolute;
  left: 50%;
  bottom: 22px;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  display: flex;
  justify-content: center;
  gap: 10px;
  transform: translateX(-50%);
  overflow-x: auto;
  padding-bottom: 4px;
}

.hero-quick-links a {
  white-space: nowrap;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--sand-800);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(221, 201, 163, 0.8);
  font-weight: 800;
}

.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

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

.section-head h2 {
  margin: 8px 0 0;
  color: var(--sand-900);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 10px 0 0;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.8;
}

.section-link,
.text-link {
  color: var(--dune-700);
  font-weight: 900;
}

.search-panel {
  margin-top: -34px;
  padding-top: 0;
  position: relative;
  z-index: 5;
}

.home-search {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--sand-200);
  box-shadow: var(--shadow);
}

.home-search label {
  color: var(--sand-900);
  font-size: 18px;
  font-weight: 950;
}

.home-search div {
  display: flex;
  gap: 12px;
}

.home-search input,
.filter-bar input,
.filter-bar select {
  padding: 13px 16px;
}

.home-search button {
  border-radius: 999px;
  padding: 0 24px;
  font-weight: 900;
}

.horizontal-scroll {
  overflow-x: auto;
  margin: 0 -24px;
  padding: 0 24px 12px;
}

.horizontal-track {
  display: flex;
  gap: 22px;
  width: max-content;
}

.horizontal-track .movie-card {
  width: 330px;
  flex: 0 0 auto;
}

.wide-section {
  background: linear-gradient(180deg, #ffffff, var(--sand-50));
}

.wide-section.light {
  background: linear-gradient(180deg, var(--sand-50), #ffffff);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid rgba(221, 201, 163, 0.72);
  box-shadow: var(--soft-shadow);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 124, 30, 0.36);
  box-shadow: 0 24px 54px rgba(89, 55, 16, 0.16);
}

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

.poster::before {
  content: "";
  display: block;
  padding-top: 138%;
}

.poster img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(74, 50, 24, 0.75);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.card-body {
  padding: 18px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--sand-600);
  font-size: 13px;
  font-weight: 800;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
}

.card-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--sand-300);
}

.movie-card h3 {
  margin: 9px 0 8px;
  color: var(--sand-900);
  font-size: 20px;
  line-height: 1.28;
  font-weight: 950;
}

.movie-card h3 a:hover,
.rank-info h2 a:hover,
.category-card-large h2 a:hover {
  color: var(--dune-700);
}

.movie-card p {
  min-height: 48px;
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.compact-card .card-body {
  padding: 15px;
}

.compact-card h3 {
  font-size: 18px;
}

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

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

.category-tile {
  min-height: 138px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(250, 233, 209, 0.75), rgba(255, 255, 255, 0.96)),
    var(--white);
  border: 1px solid rgba(221, 201, 163, 0.82);
  box-shadow: var(--soft-shadow);
}

.category-tile span {
  color: var(--sand-900);
  font-size: 20px;
  font-weight: 950;
}

.category-tile p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.ranking-box {
  position: sticky;
  top: 92px;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: var(--sand-900);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.ranking-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ranking-head span {
  font-size: 24px;
  font-weight: 950;
}

.ranking-head a {
  color: var(--dune-100);
  font-weight: 900;
}

.ranking-box ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-box li {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ranking-box li span {
  color: var(--dune-100);
  font-weight: 950;
}

.ranking-box li a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}

.ranking-box li em {
  color: rgba(255, 255, 255, 0.62);
  font-style: normal;
  font-size: 12px;
}

.page-hero {
  padding: 86px 24px 72px;
  text-align: center;
  background:
    radial-gradient(circle at top left, rgba(217, 124, 30, 0.18), transparent 32%),
    linear-gradient(135deg, var(--sand-100), #ffffff);
}

.small-hero h1 {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(36px, 6vw, 64px);
}

.small-hero p {
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
  color: var(--sand-700);
  font-weight: 800;
}

.breadcrumb a {
  color: var(--dune-700);
}

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

.category-card-large {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 22px;
  align-items: center;
  padding: 22px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  border: 1px solid var(--sand-200);
  box-shadow: var(--soft-shadow);
}

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

.category-covers img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: var(--sand-100);
}

.category-card-large h2 {
  margin: 8px 0 10px;
  color: var(--sand-900);
  font-size: 28px;
  font-weight: 950;
}

.category-card-large p {
  color: var(--muted);
  line-height: 1.8;
}

.filter-bar {
  position: sticky;
  top: 82px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 12px;
  margin-bottom: 26px;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--sand-200);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(14px);
}

.search-filter {
  grid-template-columns: minmax(220px, 1fr) 170px 170px 170px;
}

.ranking-page .filter-bar {
  grid-template-columns: 1fr;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 70px 92px 1fr 90px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--sand-200);
  box-shadow: var(--soft-shadow);
}

.rank-no {
  color: var(--dune-700);
  font-size: 24px;
  font-weight: 950;
}

.rank-cover {
  overflow: hidden;
  border-radius: 14px;
  background: var(--sand-100);
}

.rank-cover img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.rank-info h2 {
  margin: 0 0 8px;
  color: var(--sand-900);
  font-size: 24px;
  font-weight: 950;
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.7;
}

.rank-row strong {
  color: var(--dune-700);
  font-size: 20px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  background: var(--sand-100);
}

.detail-bg {
  position: absolute;
  inset: 0;
  opacity: 0.3;
}

.detail-bg img {
  height: 100%;
  object-fit: cover;
  filter: blur(6px) saturate(1.08);
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(250, 248, 243, 0.96), rgba(250, 248, 243, 0.82));
}

.detail-wrap {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  padding: 50px 24px 72px;
}

.detail-wrap .breadcrumb {
  justify-content: flex-start;
  margin-bottom: 34px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 46px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--sand-100);
  box-shadow: var(--shadow);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-copy h1 {
  font-size: clamp(38px, 6vw, 78px);
}

.player-section {
  padding-top: 44px;
  padding-bottom: 44px;
}

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

.player-card::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.movie-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.62));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-overlay span {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dune-500), var(--dune-700));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  position: relative;
}

.play-overlay span::after {
  content: "";
  position: absolute;
  left: 36px;
  top: 27px;
  border-left: 24px solid #ffffff;
  border-top: 17px solid transparent;
  border-bottom: 17px solid transparent;
}

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

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.6fr);
  gap: 22px;
}

.article-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  border: 1px solid var(--sand-200);
  box-shadow: var(--soft-shadow);
}

.article-card:first-child {
  grid-row: span 2;
}

.article-card h2 {
  margin: 0 0 14px;
  color: var(--sand-900);
  font-size: 28px;
  font-weight: 950;
}

.article-card p {
  margin: 0;
  color: var(--sand-800);
  line-height: 2;
  font-size: 17px;
}

.meta-card dl {
  margin: 0;
  display: grid;
  gap: 12px;
}

.meta-card dl div {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
}

.meta-card dt {
  color: var(--sand-600);
  font-weight: 900;
}

.meta-card dd {
  margin: 0;
  color: var(--sand-900);
}

.site-footer {
  margin-top: 40px;
  background: linear-gradient(180deg, var(--sand-100), var(--sand-200));
  border-top: 1px solid var(--sand-300);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 46px 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

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

.site-footer p {
  max-width: 520px;
  color: var(--sand-700);
  line-height: 1.8;
}

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

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--sand-700);
  font-weight: 760;
}

.footer-links a:hover {
  color: var(--dune-700);
}

.footer-bottom {
  border-top: 1px solid var(--sand-300);
  padding: 18px 24px;
  text-align: center;
  color: var(--sand-700);
}

.is-filtered-out {
  display: none !important;
}

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

  .hero-content {
    grid-template-columns: 1fr 320px;
  }

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

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

  .ranking-box {
    position: static;
  }
}

@media (max-width: 860px) {
  .nav-wrap {
    height: auto;
    min-height: 64px;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    order: 3;
    padding: 0 0 16px;
  }

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

  .main-nav a {
    border-radius: 14px;
    background: var(--sand-50);
  }

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

  .hero-content {
    grid-template-columns: 1fr;
    padding-top: 64px;
    padding-bottom: 152px;
  }

  .hero-poster {
    width: min(86vw, 340px);
    margin: 0 auto;
    transform: none;
  }

  .hero-dots {
    bottom: 86px;
  }

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

  .home-search div {
    flex-direction: column;
  }

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

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

  .category-card-large,
  .detail-layout,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    width: min(78vw, 320px);
  }

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

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

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

@media (max-width: 560px) {
  .nav-wrap,
  .section-container,
  .detail-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

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

  .hero-copy p,
  .page-hero p,
  .detail-copy p {
    font-size: 16px;
  }

  .movie-grid,
  .compact-grid,
  .category-grid,
  .category-large-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 38px 72px 1fr;
    gap: 12px;
  }

  .rank-info h2 {
    font-size: 19px;
  }

  .article-card {
    padding: 22px;
  }
}
