:root {
  --ancient-950: #2b2419;
  --ancient-925: #342b1f;
  --ancient-900: #423a2c;
  --ancient-850: #514531;
  --ancient-800: #5a4d39;
  --ancient-700: #6f5f47;
  --ancient-500: #a89571;
  --ancient-400: #c4b49a;
  --ancient-300: #d9cfbd;
  --ancient-200: #e8e2d6;
  --ancient-100: #f5f2ed;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-300: #fcd34d;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  --soft-shadow: 0 12px 35px rgba(0, 0, 0, 0.22);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ancient-100);
  background:
    radial-gradient(circle at 16% 12%, rgba(245, 158, 11, 0.16), transparent 30vw),
    radial-gradient(circle at 86% 10%, rgba(196, 180, 154, 0.11), transparent 32vw),
    linear-gradient(180deg, var(--ancient-950), #18130d 55%, var(--ancient-950));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 70%);
  z-index: 0;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(43, 36, 25, 0.92);
  border-bottom: 1px solid rgba(111, 95, 71, 0.4);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 76px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--amber-400);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ancient-950);
  font-weight: 900;
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  box-shadow: 0 10px 30px rgba(245, 158, 11, 0.28);
}

.brand-name {
  font-size: 22px;
  white-space: nowrap;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  color: var(--ancient-200);
  font-weight: 650;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover {
  color: var(--amber-400);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.mobile-nav input,
.filter-panel input,
.archive-filter input,
.search-page-form input {
  color: var(--ancient-100);
  background: rgba(66, 58, 44, 0.68);
  border: 1px solid rgba(111, 95, 71, 0.82);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
  width: 230px;
  padding: 11px 14px;
}

.header-search input:focus,
.mobile-nav input:focus,
.filter-panel input:focus,
.archive-filter input:focus,
.search-page-form input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.16);
  background: rgba(43, 36, 25, 0.95);
}

.header-search button,
.mobile-nav button,
.search-page-form button {
  padding: 11px 16px;
  border: 0;
  border-radius: 12px;
  color: var(--ancient-950);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  cursor: pointer;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(111, 95, 71, 0.82);
  border-radius: 12px;
  background: rgba(66, 58, 44, 0.68);
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ancient-100);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 0 22px 18px;
  border-top: 1px solid rgba(111, 95, 71, 0.38);
}

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

.mobile-nav form {
  display: flex;
  gap: 8px;
}

.mobile-nav input {
  flex: 1;
  padding: 11px 14px;
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 720px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(43, 36, 25, 0.22), rgba(43, 36, 25, 0.9));
}

.hero-slider {
  position: relative;
  min-height: 720px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 470px);
  align-items: center;
  gap: 64px;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 96px 24px 88px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-position: center;
  background-size: cover;
  filter: blur(28px) saturate(1.1);
  opacity: 0.2;
  transform: scale(1.08);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(43, 36, 25, 0.95), rgba(43, 36, 25, 0.58), rgba(43, 36, 25, 0.95));
}

.hero-content {
  position: relative;
  padding: 34px;
  border: 1px solid rgba(111, 95, 71, 0.55);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(66, 58, 44, 0.76), rgba(43, 36, 25, 0.72));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-kicker,
.detail-kicker,
.section-head span,
.page-hero span {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--amber-400);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 18px 0 18px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(42px, 7vw, 74px);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.hero p,
.page-hero p,
.detail-info p,
.story-block p,
.category-overview-card p,
.section-head p {
  color: var(--ancient-300);
  line-height: 1.85;
}

.hero p {
  max-width: 720px;
  font-size: 18px;
}

.hero-tags,
.tag-row,
.filter-chips,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  color: var(--amber-300);
  background: rgba(245, 158, 11, 0.16);
  border: 1px solid rgba(245, 158, 11, 0.22);
  font-size: 13px;
}

.hero-actions {
  margin-top: 26px;
}

.button-primary,
.button-ghost,
.button-link,
.text-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.button-primary {
  padding: 0 22px;
  color: var(--ancient-950);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  box-shadow: 0 14px 35px rgba(245, 158, 11, 0.24);
}

.button-ghost {
  padding: 0 20px;
  color: var(--ancient-100);
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(66, 58, 44, 0.52);
}

.button-link,
.text-arrow {
  color: var(--amber-400);
}

.button-primary:hover,
.button-ghost:hover,
.button-link:hover,
.text-arrow:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(245, 158, 11, 0.22);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
  transition: transform 0.3s ease;
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43, 36, 25, 0.62), transparent 48%);
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  height: min(68vh, 610px);
  object-fit: cover;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: rgba(232, 226, 214, 0.35);
  cursor: pointer;
}

.hero-dot.active {
  width: 32px;
  border-radius: 999px;
  background: var(--amber-400);
}

.quick-search-section,
.content-section,
.split-section,
.page-shell,
.detail-shell {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 24px;
}

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

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

.section-head.centered {
  max-width: 780px;
  margin: 0 auto 28px;
  display: grid;
  justify-items: center;
  text-align: center;
}

.section-head.compact {
  align-items: start;
  margin-bottom: 22px;
}

.section-head h2,
.page-hero h1,
.story-block h2 {
  margin: 8px 0 0;
  font-family: "Noto Serif SC", "Songti SC", serif;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
}

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

.filter-panel {
  max-width: 940px;
  margin: 0 auto 28px;
  padding: 18px;
  border: 1px solid rgba(111, 95, 71, 0.48);
  border-radius: 22px;
  background: rgba(66, 58, 44, 0.48);
  box-shadow: var(--soft-shadow);
}

.filter-panel input,
.archive-filter input {
  width: 100%;
  padding: 15px 16px;
}

.filter-chips {
  margin-top: 14px;
}

.filter-chips button {
  border: 1px solid rgba(111, 95, 71, 0.76);
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--ancient-200);
  background: rgba(43, 36, 25, 0.42);
  cursor: pointer;
}

.filter-chips button.active,
.filter-chips button:hover {
  color: var(--ancient-950);
  background: var(--amber-400);
  border-color: var(--amber-400);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(111, 95, 71, 0.45);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(66, 58, 44, 0.68), rgba(43, 36, 25, 0.72));
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: var(--shadow);
}

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--ancient-900);
}

.movie-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.movie-card:hover .movie-poster img {
  transform: scale(1.08);
  filter: saturate(1.1);
}

.movie-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(43, 36, 25, 0.84), transparent 46%);
}

.movie-type {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  padding: 6px 10px;
  border-radius: 9px;
  color: var(--amber-300);
  background: rgba(43, 36, 25, 0.78);
  border: 1px solid rgba(245, 158, 11, 0.18);
  font-size: 12px;
  font-weight: 800;
}

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

.movie-meta-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--ancient-400);
  font-size: 13px;
}

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

.movie-card h3 a:hover {
  color: var(--amber-400);
}

.movie-card-desc {
  margin: 0 0 14px;
  color: var(--ancient-300);
  line-height: 1.7;
  font-size: 14px;
}

.movie-card-compact .movie-card-desc {
  display: none;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
}

.rank-panel,
.category-panel,
.rankings-wide,
.search-box-panel {
  border: 1px solid rgba(111, 95, 71, 0.45);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(66, 58, 44, 0.7), rgba(43, 36, 25, 0.74));
  box-shadow: var(--soft-shadow);
  padding: 24px;
}

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

.rank-list-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rank-item {
  display: grid;
  grid-template-columns: 44px 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 82px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(43, 36, 25, 0.46);
  border: 1px solid rgba(111, 95, 71, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  border-color: rgba(245, 158, 11, 0.42);
  background: rgba(66, 58, 44, 0.74);
}

.rank-number {
  color: var(--amber-400);
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.rank-thumb {
  overflow: hidden;
  border-radius: 12px;
}

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

.rank-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.rank-copy strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-copy em {
  color: var(--ancient-400);
  font-size: 13px;
  font-style: normal;
}

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

.category-tile {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: 20px;
  background: var(--ancient-900);
  border: 1px solid rgba(111, 95, 71, 0.38);
}

.category-tile img {
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.06);
  opacity: 0.78;
}

.category-tile span {
  position: absolute;
  inset: auto 16px 16px 16px;
  display: grid;
  gap: 8px;
}

.category-tile strong {
  color: var(--amber-400);
  font-size: 21px;
}

.category-tile em {
  color: var(--ancient-200);
  font-style: normal;
  line-height: 1.55;
  font-size: 13px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(111, 95, 71, 0.45);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.12), transparent 42%),
    linear-gradient(135deg, rgba(66, 58, 44, 0.82), rgba(43, 36, 25, 0.76));
  box-shadow: var(--soft-shadow);
}

.compact-hero {
  padding: 42px;
  margin-bottom: 34px;
}

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

.compact-hero p {
  max-width: 820px;
  margin-bottom: 0;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin: 6px 0 22px;
  color: var(--ancient-400);
  font-size: 14px;
}

.breadcrumb a:hover {
  color: var(--amber-400);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 22px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(111, 95, 71, 0.45);
  background: rgba(66, 58, 44, 0.54);
  box-shadow: var(--soft-shadow);
}

.category-overview-image {
  overflow: hidden;
  border-radius: 18px;
}

.category-overview-image img {
  height: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 4px 0 10px;
}

.category-overview-card h2 a:hover,
.category-samples a:hover {
  color: var(--amber-400);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.category-samples a {
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--ancient-200);
  background: rgba(43, 36, 25, 0.52);
  font-size: 13px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(111, 95, 71, 0.45);
  background:
    linear-gradient(135deg, rgba(245, 158, 11, 0.10), transparent 38%),
    linear-gradient(135deg, rgba(66, 58, 44, 0.78), rgba(43, 36, 25, 0.75));
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

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

.detail-info h1 {
  font-size: clamp(36px, 5vw, 62px);
}

.detail-info p {
  max-width: 820px;
  font-size: 17px;
}

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

.detail-meta-grid span {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 16px;
  color: var(--ancient-200);
  background: rgba(43, 36, 25, 0.48);
  border: 1px solid rgba(111, 95, 71, 0.38);
}

.detail-meta-grid b {
  color: var(--amber-400);
  font-size: 13px;
}

.detail-tags {
  margin-bottom: 24px;
}

.player-section,
.story-section,
.related-section {
  margin-top: 42px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(245, 158, 11, 0.25);
  background: #000;
  box-shadow: var(--shadow);
}

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

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: var(--ancient-100);
  background: rgba(43, 36, 25, 0.32);
  cursor: pointer;
  overflow: hidden;
}

.play-cover img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  filter: blur(2px) saturate(1.1);
  transform: scale(1.03);
}

.play-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.18), rgba(43, 36, 25, 0.68));
}

.play-cover.hidden {
  display: none;
}

.play-symbol,
.play-cover strong {
  position: relative;
  z-index: 1;
}

.play-symbol {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  padding-left: 6px;
  color: var(--ancient-950);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  box-shadow: 0 18px 45px rgba(245, 158, 11, 0.35);
  font-size: 30px;
}

.play-cover strong {
  font-size: 21px;
  letter-spacing: 0.04em;
}

.story-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.story-block {
  padding: 28px;
  border-radius: 24px;
  border: 1px solid rgba(111, 95, 71, 0.45);
  background: rgba(66, 58, 44, 0.52);
  box-shadow: var(--soft-shadow);
}

.story-block h2 {
  color: var(--amber-400);
}

.archive-filter {
  margin-bottom: 24px;
}

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

.archive-link {
  display: grid;
  gap: 5px;
  min-height: 88px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid rgba(111, 95, 71, 0.38);
  background: rgba(66, 58, 44, 0.46);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.archive-link:hover {
  transform: translateY(-3px);
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(66, 58, 44, 0.75);
}

.archive-link strong {
  color: var(--ancient-100);
}

.archive-link span {
  color: var(--ancient-400);
  font-size: 13px;
  line-height: 1.55;
}

.search-box-panel {
  margin-bottom: 34px;
}

.search-page-form {
  display: flex;
  gap: 12px;
}

.search-page-form input {
  flex: 1;
  padding: 16px;
}

.search-page-form button {
  min-width: 104px;
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(111, 95, 71, 0.38);
  background: rgba(24, 19, 13, 0.74);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px;
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--ancient-400);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 16px;
  color: var(--ancient-300);
}

[hidden] {
  display: none !important;
}

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 90px;
  }

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

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

  .split-section,
  .detail-hero,
  .category-overview-grid {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .brand-name {
    font-size: 19px;
  }

  .hero,
  .hero-slider {
    min-height: 760px;
  }

  .hero-content {
    padding: 24px;
  }

  .quick-search-section,
  .content-section,
  .split-section,
  .page-shell,
  .detail-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-head,
  .footer-inner,
  .search-page-form {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .archive-grid,
  .rank-list-wide,
  .category-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-overview-card {
    grid-template-columns: 130px minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .header-inner {
    min-height: 66px;
    padding: 0 14px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 17px;
  }

  .hero,
  .hero-slider {
    min-height: 720px;
  }

  .hero-slide {
    padding: 72px 14px 78px;
  }

  .hero-content,
  .compact-hero,
  .detail-hero,
  .story-block,
  .rank-panel,
  .category-panel,
  .rankings-wide {
    border-radius: 20px;
    padding: 20px;
  }

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

  .movie-grid,
  .archive-grid {
    grid-template-columns: 1fr;
  }

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

  .category-overview-image img {
    aspect-ratio: 16 / 9;
  }

  .rank-item {
    grid-template-columns: 34px 56px minmax(0, 1fr);
  }

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