:root {
  --stone-950: #1c1917;
  --stone-900: #292524;
  --stone-800: #3f342d;
  --stone-700: #57483e;
  --stone-100: #f5f5f4;
  --amber-950: #451a03;
  --amber-900: #78350f;
  --amber-800: #92400e;
  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-300: #fcd34d;
  --amber-100: #fef3c7;
  --paper: #fffaf0;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(69, 26, 3, 0.16);
  --soft-shadow: 0 16px 40px rgba(41, 37, 36, 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--stone-900);
  background: linear-gradient(180deg, #fff7ed 0%, #fafaf9 45%, #f5f5f4 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.98), rgba(146, 64, 14, 0.98), rgba(154, 52, 18, 0.98));
  box-shadow: 0 18px 44px rgba(69, 26, 3, 0.28);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--amber-100);
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--amber-300), var(--amber-600));
  color: var(--amber-950);
  font-weight: 900;
  font-size: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 24px rgba(0, 0, 0, 0.22);
}

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

.brand-text strong {
  font-size: 24px;
  letter-spacing: 0.02em;
}

.brand-text em {
  margin-top: 3px;
  color: rgba(254, 243, 199, 0.78);
  font-size: 12px;
  font-style: normal;
}

.nav-search {
  flex: 1 1 360px;
  max-width: 480px;
  position: relative;
  display: flex;
  gap: 8px;
}

.nav-search input,
.hero-search input,
.quick-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(252, 211, 77, 0.35);
  border-radius: 999px;
  outline: none;
  color: var(--amber-100);
  background: rgba(69, 26, 3, 0.45);
  padding: 12px 18px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input::placeholder,
.hero-search input::placeholder,
.quick-search input::placeholder,
.filter-panel input::placeholder {
  color: rgba(254, 243, 199, 0.62);
}

.nav-search input:focus,
.hero-search input:focus,
.quick-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--amber-300);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18);
  background: rgba(69, 26, 3, 0.65);
}

.nav-search button,
.hero-search button,
.quick-search button {
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: var(--amber-950);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(69, 26, 3, 0.25);
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--amber-100);
  font-weight: 700;
}

.site-nav > a,
.nav-dropdown > a {
  position: relative;
  padding: 26px 0;
  color: rgba(255, 251, 235, 0.9);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--white);
}

.site-nav a.active::after,
.site-nav > a:hover::after,
.nav-dropdown > a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 19px;
  height: 3px;
  border-radius: 999px;
  background: var(--amber-300);
}

.nav-dropdown {
  position: relative;
}

.dropdown-panel {
  position: absolute;
  top: 68px;
  left: 50%;
  width: 190px;
  padding: 10px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.dropdown-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--stone-800);
  font-weight: 700;
}

.dropdown-panel a:hover {
  background: var(--amber-100);
  color: var(--amber-900);
}

.nav-dropdown:hover .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.menu-toggle {
  display: none;
  border: 0;
  border-radius: 14px;
  background: rgba(254, 243, 199, 0.14);
  color: var(--amber-100);
  width: 44px;
  height: 44px;
  cursor: pointer;
}

main,
.page-main,
.detail-main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  width: 100vw;
  height: clamp(460px, 70vh, 680px);
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  background: var(--stone-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.58s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.42) 42%, rgba(0, 0, 0, 0.08) 100%), radial-gradient(circle at 20% 75%, rgba(245, 158, 11, 0.35), transparent 34%);
}

.hero-content {
  position: absolute;
  left: max(24px, calc((100vw - 1240px) / 2));
  right: max(24px, calc((100vw - 1240px) / 2));
  bottom: clamp(52px, 10vh, 96px);
  max-width: 780px;
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--amber-300);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
}

.hero h1,
.hero h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.hero p {
  max-width: 700px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(16px, 2.2vw, 20px);
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 12px;
  border: 1px solid rgba(252, 211, 77, 0.28);
  border-radius: 999px;
  color: var(--amber-100);
  background: rgba(69, 26, 3, 0.45);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.section-heading > a,
.category-overview-card h2 a,
.inline-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.primary-btn {
  padding: 13px 28px;
  color: var(--amber-950);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  box-shadow: 0 16px 30px rgba(245, 158, 11, 0.32);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ghost-btn {
  padding: 12px 22px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.category-card:hover,
.ranking-card:hover,
.category-overview-card:hover {
  transform: translateY(-3px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(0, 0, 0, 0.38);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.62);
}

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

.hero-dots button {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.active {
  width: 38px;
  background: var(--amber-400, #fbbf24);
}

.quick-search {
  margin-top: -42px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr minmax(320px, 480px);
  gap: 24px;
  align-items: center;
  padding: 26px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 240, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.quick-search h2,
.section-heading h2,
.rank-panel h2,
.page-hero h1,
.detail-copy h1,
.detail-section h2,
.detail-side h2 {
  margin: 0;
  color: var(--stone-900);
  line-height: 1.15;
}

.quick-search h2 {
  font-size: clamp(24px, 4vw, 36px);
}

.quick-search p {
  margin: 8px 0 0;
  color: var(--stone-700);
}

.quick-search form,
.hero-search {
  display: flex;
  gap: 10px;
}

.quick-search input,
.hero-search input,
.filter-panel input,
.filter-panel select {
  color: var(--stone-900);
  background: var(--white);
  border-color: rgba(180, 83, 9, 0.2);
}

.quick-search input::placeholder,
.hero-search input::placeholder,
.filter-panel input::placeholder {
  color: rgba(87, 72, 62, 0.58);
}

.content-section {
  margin: 72px 0;
}

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

.section-heading h2 {
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.03em;
}

.section-heading p {
  margin: 8px 0 0;
  color: var(--stone-700);
}

.section-heading > a {
  min-width: max-content;
  padding: 10px 16px;
  color: var(--amber-900);
  background: var(--amber-100);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(180, 83, 9, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  box-shadow: 0 24px 60px rgba(120, 53, 15, 0.2);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(145deg, var(--amber-100), #e7e5e4);
}

.poster-link img,
.category-card img,
.category-cover img,
.ranking-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.36s ease, filter 0.36s ease;
}

.movie-card:hover img,
.category-card:hover img,
.category-overview-card:hover img,
.ranking-card:hover img {
  transform: scale(1.06);
  filter: saturate(1.08) contrast(1.04);
}

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

.movie-meta {
  margin-bottom: 8px;
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 800;
}

.movie-title {
  margin: 0 0 8px;
  color: var(--stone-900);
  font-size: 20px;
  line-height: 1.25;
}

.movie-card.compact .movie-title {
  font-size: 17px;
}

.movie-card p,
.ranking-card p,
.category-overview-card p {
  margin: 0 0 14px;
  color: var(--stone-700);
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-row span {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--amber-900);
  background: var(--amber-100);
  font-size: 12px;
  font-weight: 800;
}

.light-tags span {
  color: var(--amber-100);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(252, 211, 77, 0.2);
}

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

.rank-panel {
  position: sticky;
  top: 104px;
  padding: 24px;
  border-radius: var(--radius-lg);
  color: var(--amber-100);
  background: linear-gradient(180deg, var(--amber-900), var(--stone-950));
  box-shadow: var(--shadow);
}

.rank-panel h2 {
  color: var(--amber-100);
  margin-bottom: 18px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.rank-item:hover {
  background: rgba(255, 255, 255, 0.14);
}

.rank-num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: var(--amber-950);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  font-weight: 900;
}

.rank-title {
  color: var(--white);
  font-weight: 900;
  line-height: 1.25;
}

.rank-meta {
  color: rgba(254, 243, 199, 0.72);
  font-size: 13px;
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border-radius: var(--radius-md);
  color: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.14));
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.category-card span,
.category-card em {
  position: relative;
  z-index: 1;
}

.category-card span {
  font-size: 22px;
  font-weight: 900;
}

.category-card em {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-style: normal;
  font-size: 13px;
}

.page-hero {
  margin-top: 38px;
  padding: 54px;
  border-radius: var(--radius-lg);
  color: var(--white);
  background: radial-gradient(circle at 20% 20%, rgba(252, 211, 77, 0.26), transparent 34%), linear-gradient(135deg, var(--amber-900), var(--stone-950));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(34px, 5vw, 56px);
}

.page-hero p {
  max-width: 780px;
  margin: 14px 0 0;
  color: rgba(254, 243, 199, 0.84);
  font-size: 18px;
}

.hero-search {
  max-width: 680px;
  margin-top: 24px;
}

.filter-panel {
  margin: 28px 0 36px;
  padding: 18px;
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 160px 160px;
  gap: 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
}

.filter-panel select {
  appearance: none;
  cursor: pointer;
}

.empty-state {
  padding: 42px;
  border-radius: var(--radius-md);
  text-align: center;
  color: var(--stone-700);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--soft-shadow);
}

.category-overview-grid {
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(180, 83, 9, 0.12);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease;
}

.category-cover {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 22px;
  background: var(--amber-100);
}

.category-overview-card h2 {
  margin: 6px 0 8px;
  font-size: 28px;
  line-height: 1.2;
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-links a {
  padding: 7px 11px;
  color: var(--amber-900);
  background: var(--amber-100);
  font-size: 13px;
}

.ranking-list {
  display: grid;
  gap: 18px;
  margin: 32px 0 72px;
}

.ranking-card {
  display: grid;
  grid-template-columns: 72px 120px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease;
}

.rank-badge {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 22px;
  color: var(--amber-950);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-600));
  font-size: 20px;
  font-weight: 900;
}

.ranking-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  background: var(--amber-100);
}

.ranking-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
  line-height: 1.25;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 28px 0 16px;
  color: var(--stone-700);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-800);
  font-weight: 800;
}

.detail-hero {
  min-height: 480px;
  display: flex;
  align-items: flex-end;
  padding: clamp(28px, 6vw, 64px);
  border-radius: var(--radius-lg);
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.detail-copy {
  max-width: 780px;
  color: var(--white);
}

.detail-copy h1 {
  color: var(--white);
  font-size: clamp(36px, 6vw, 64px);
  letter-spacing: -0.04em;
}

.detail-copy p {
  margin: 18px 0 22px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

.player-panel {
  margin: 34px 0;
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: #000000;
  box-shadow: var(--shadow);
}

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  cursor: pointer;
  background: #000000;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: var(--white);
  background: radial-gradient(circle at center, rgba(245, 158, 11, 0.34), rgba(0, 0, 0, 0.62) 46%, rgba(0, 0, 0, 0.86));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.play-cover span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 50%;
  color: var(--amber-950);
  background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
  font-size: 34px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.38);
}

.play-cover strong {
  font-size: 20px;
  letter-spacing: 0.06em;
}

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

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

.detail-content,
.detail-side {
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
}

.detail-content {
  padding: 34px;
}

.detail-section + .detail-section {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(180, 83, 9, 0.15);
}

.detail-section h2,
.detail-side h2 {
  margin-bottom: 14px;
  font-size: 28px;
}

.detail-section p {
  margin: 0;
  color: var(--stone-700);
  font-size: 17px;
}

.detail-side {
  position: sticky;
  top: 104px;
  padding: 26px;
}

.detail-side dl {
  margin: 0;
  display: grid;
  gap: 14px;
}

.detail-side dt {
  color: var(--amber-700);
  font-weight: 900;
}

.detail-side dd {
  margin: -8px 0 0;
  color: var(--stone-800);
}

.site-footer {
  margin-top: 92px;
  color: rgba(254, 243, 199, 0.84);
  background: linear-gradient(180deg, var(--amber-950), var(--stone-950));
}

.footer-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: start;
}

.footer-inner h2 {
  margin: 0 0 10px;
  color: var(--white);
  font-size: 28px;
}

.footer-inner p {
  max-width: 720px;
  margin: 0;
}

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

.footer-links a {
  color: var(--amber-100);
  font-weight: 800;
}

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(254, 243, 199, 0.16);
  font-size: 14px;
}

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

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

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

  .rank-panel,
  .detail-side {
    position: static;
  }

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

@media (max-width: 760px) {
  .header-inner {
    width: min(100% - 24px, 1240px);
    min-height: 66px;
  }

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

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

  .brand-text em {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
  }

  .site-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 20px;
    background: rgba(69, 26, 3, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav > a,
  .nav-dropdown > a {
    display: block;
    padding: 12px 14px;
  }

  .site-nav a.active::after,
  .site-nav > a:hover::after,
  .nav-dropdown > a:hover::after,
  .dropdown-panel {
    display: none;
  }

  main,
  .page-main,
  .detail-main {
    width: min(100% - 24px, 1240px);
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    left: 24px;
    right: 24px;
    bottom: 64px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-search {
    grid-template-columns: 1fr;
    margin-top: 22px;
    padding: 22px;
  }

  .quick-search form,
  .hero-search {
    flex-direction: column;
  }

  .quick-search button,
  .hero-search button {
    min-height: 48px;
  }

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

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

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

  .movie-title {
    font-size: 17px;
  }

  .movie-card p {
    display: none;
  }

  .category-card {
    min-height: 170px;
  }

  .page-hero {
    padding: 32px 22px;
  }

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

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

  .ranking-card {
    grid-template-columns: 52px 88px 1fr;
    gap: 12px;
    padding: 12px;
  }

  .rank-badge {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    font-size: 16px;
  }

  .ranking-card h2 {
    font-size: 18px;
  }

  .ranking-card p {
    display: none;
  }

  .detail-hero {
    min-height: 420px;
    padding: 28px 22px;
  }

  .detail-content,
  .detail-side {
    padding: 24px;
  }

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

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

  .hero {
    height: 520px;
  }

  .hero h1,
  .hero h2,
  .detail-copy h1 {
    font-size: 34px;
  }

  .hero-meta span,
  .detail-meta span {
    font-size: 12px;
  }
}
