:root {
  --color-stone-50: #fafaf9;
  --color-stone-100: #f5f5f4;
  --color-stone-200: #e7e5e4;
  --color-stone-500: #78716c;
  --color-stone-600: #57534e;
  --color-stone-700: #44403c;
  --color-bluestone-50: #eef6f7;
  --color-bluestone-100: #d7e8eb;
  --color-bluestone-600: #305c69;
  --color-bluestone-700: #244855;
  --color-bluestone-800: #1f3d48;
  --color-bluestone-900: #172f39;
  --color-accent-50: #fffbeb;
  --color-accent-100: #fef3c7;
  --color-accent-300: #fcd34d;
  --color-accent-400: #fbbf24;
  --color-accent-500: #d97706;
  --color-accent-600: #b45309;
  --shadow-card: 0 12px 35px rgba(23, 47, 57, 0.12);
  --shadow-hover: 0 20px 45px rgba(23, 47, 57, 0.18);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --page-width: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-bluestone-900);
  background: var(--color-stone-50);
  line-height: 1.6;
}

body.menu-open {
  overflow-x: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

main {
  min-height: 60vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(231, 229, 228, 0.85);
  backdrop-filter: blur(16px);
}

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

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--color-accent-500), var(--color-bluestone-700));
  box-shadow: 0 10px 24px rgba(217, 119, 6, 0.28);
}

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

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

.brand-text small {
  margin-top: 3px;
  color: var(--color-stone-500);
  font-size: 12px;
}

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

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

.main-nav a:hover,
.main-nav a.active {
  color: var(--color-accent-600);
  background: var(--color-accent-100);
}

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

.header-search input,
.quick-search-form input,
.search-page-form input {
  width: 100%;
  border: 1px solid var(--color-stone-200);
  outline: none;
  background: var(--color-stone-100);
  border-radius: 999px;
  padding: 11px 16px;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input:focus,
.quick-search-form input:focus,
.search-page-form input:focus,
.filter-bar select:focus {
  border-color: transparent;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.22);
}

.header-search button,
.quick-search-form button,
.search-page-form button {
  border: 0;
  color: #fff;
  background: var(--color-accent-500);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.quick-search-form button:hover,
.search-page-form button:hover {
  background: var(--color-accent-600);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--color-bluestone-700);
  background: var(--color-stone-100);
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  overflow: hidden;
  color: #fff;
  background: var(--color-bluestone-900);
}

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

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

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

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(217, 119, 6, 0.24), transparent 32%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.52) 48%, rgba(0, 0, 0, 0.12));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--page-width));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(680px, 100%);
  padding: 40px 0;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-accent-400);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 16px 0 14px;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 640px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
}

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

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 11px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

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

.hero-tags span,
.hero-tags a,
.mini-tags span,
.tag-wall span,
.tag-wall a {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 600;
}

.hero-tags span,
.hero-tags a {
  padding: 6px 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

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

.primary-button,
.ghost-button,
.section-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  min-height: 48px;
  padding: 0 26px;
  color: #fff;
  background: var(--color-accent-500);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.34);
}

.primary-button:hover {
  background: var(--color-accent-600);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 34px rgba(180, 83, 9, 0.36);
}

.ghost-button {
  min-height: 48px;
  padding: 0 24px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  font-size: 34px;
  line-height: 1;
  transform: translateY(-50%);
  transition: background 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

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

.hero-dots button.active {
  width: 32px;
  background: var(--color-accent-400);
}

.page-shell {
  width: min(100% - 32px, var(--page-width));
  margin: 0 auto;
}

.space-stack {
  padding: 64px 0;
}

.space-stack > * + * {
  margin-top: 76px;
}

.quick-search-block {
  margin-top: -42px;
  position: relative;
  z-index: 8;
}

.quick-search-inner {
  width: min(100% - 32px, var(--page-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 24px;
  align-items: center;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(16px);
}

.quick-search-inner h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

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

.content-section,
.ranking-panel,
.category-strip,
.filter-bar,
.callout-card,
.article-card {
  border: 1px solid rgba(231, 229, 228, 0.9);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.content-section,
.category-strip,
.ranking-panel,
.callout-card,
.article-card {
  padding: clamp(22px, 3.4vw, 42px);
}

.highlight-section {
  background: linear-gradient(135deg, var(--color-accent-50), #fff7ed 48%, var(--color-bluestone-50));
}

.subtle-section {
  background: linear-gradient(135deg, #fff, var(--color-stone-100));
}

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

.section-heading h2 {
  margin: 8px 0 6px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

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

.section-action {
  flex: 0 0 auto;
  color: var(--color-accent-600);
  padding: 8px 14px;
  background: var(--color-accent-100);
}

.section-action:hover {
  color: #fff;
  background: var(--color-accent-500);
  transform: translateY(-2px);
}

.movie-grid {
  display: grid;
  gap: 22px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(231, 229, 228, 0.92);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 6px 20px rgba(23, 47, 57, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-bluestone-100), var(--color-stone-200));
}

.movie-card-large .movie-poster {
  aspect-ratio: 16 / 10;
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.78));
  opacity: 0.88;
}

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(217, 119, 6, 0.9);
  transform: translate(-50%, -50%) scale(0.78);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rating-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.rating-pill {
  right: 10px;
  bottom: 10px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.55);
}

.rank-badge {
  left: 10px;
  top: 10px;
  padding: 5px 9px;
  background: rgba(217, 119, 6, 0.92);
}

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

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

.movie-card h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.28;
}

.movie-card h3 a:hover {
  color: var(--color-accent-600);
}

.movie-card p {
  margin: 0 0 12px;
  color: var(--color-stone-600);
  font-size: 14px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mini-tags span {
  padding: 4px 8px;
  color: var(--color-accent-600);
  background: var(--color-accent-100);
  font-size: 12px;
}

.two-column-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.ranking-panel {
  background: linear-gradient(180deg, #fff, var(--color-stone-100));
}

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

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

.ranking-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
  background: var(--color-accent-100);
  transform: translateX(4px);
}

.ranking-number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: var(--color-bluestone-700);
  font-weight: 900;
}

.ranking-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 700;
}

.ranking-score {
  color: var(--color-accent-600);
  font-weight: 800;
}

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

.category-chip-grid a,
.disabled-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--color-bluestone-700);
  background: var(--color-stone-100);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.category-chip-grid a:hover {
  color: var(--color-accent-600);
  background: var(--color-accent-100);
  transform: translateY(-2px);
}

.category-chip-grid em {
  color: var(--color-stone-500);
  font-style: normal;
  font-size: 13px;
}

.large-chips {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sub-hero {
  padding: 70px 0;
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(251, 191, 36, 0.28), transparent 30%),
    linear-gradient(135deg, var(--color-bluestone-700), var(--color-bluestone-900));
}

.sub-hero h1 {
  max-width: 880px;
  margin: 12px 0 14px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

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

.filter-bar label {
  display: grid;
  gap: 7px;
  color: var(--color-stone-600);
  font-weight: 700;
}

.filter-bar select {
  width: 100%;
  border: 1px solid var(--color-stone-200);
  border-radius: 999px;
  background: var(--color-stone-100);
  padding: 11px 14px;
  outline: none;
}

.search-page-form {
  max-width: 720px;
  margin-top: 26px;
}

.search-page-form input {
  background: rgba(255, 255, 255, 0.92);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 540px;
  color: #fff;
  background: var(--color-bluestone-900);
}

.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(3px) scale(1.03);
  opacity: 0.56;
}

.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.22)),
    linear-gradient(0deg, rgba(23, 47, 57, 1), transparent 58%);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 70px 0;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  aspect-ratio: 2 / 3;
  background: var(--color-bluestone-100);
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-copy h1 {
  margin: 14px 0 16px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.detail-one-line {
  max-width: 780px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

.anchor-play {
  margin-top: 28px;
}

.player-section {
  scroll-margin-top: 92px;
}

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

.video-player {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.74));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-shell.playing .player-overlay {
  visibility: hidden;
  opacity: 0;
}

.play-circle {
  display: inline-flex;
  width: 82px;
  height: 82px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(217, 119, 6, 0.92);
  font-size: 30px;
  box-shadow: 0 18px 38px rgba(217, 119, 6, 0.38);
}

.player-overlay strong {
  font-size: 24px;
}

.player-overlay small {
  color: rgba(255, 255, 255, 0.72);
}

.player-message {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: none;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: #fff;
  background: rgba(180, 83, 9, 0.92);
}

.player-message.show {
  display: block;
}

.detail-content-layout {
  grid-template-columns: minmax(0, 1fr) 340px;
}

.article-card {
  color: var(--color-stone-700);
}

.article-card h2 {
  margin: 26px 0 12px;
  color: var(--color-bluestone-900);
  font-size: 26px;
}

.article-card h2:first-of-type {
  margin-top: 0;
}

.article-card p {
  margin: 0;
  font-size: 17px;
  line-height: 1.9;
}

.detail-info-row {
  margin-bottom: 22px;
  color: var(--color-stone-600);
  font-weight: 700;
}

.detail-info-row a:hover {
  color: var(--color-accent-600);
}

.tag-wall span,
.tag-wall a {
  padding: 8px 12px;
  color: var(--color-accent-600);
  background: var(--color-accent-100);
}

.info-list {
  margin: 0;
}

.info-list div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-stone-200);
}

.info-list dt {
  color: var(--color-stone-500);
  font-weight: 700;
}

.info-list dd {
  margin: 0;
  min-width: 0;
  font-weight: 700;
}

.sticky-panel {
  position: sticky;
  top: 98px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 34px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--color-bluestone-700);
  background: var(--color-stone-100);
  font-weight: 800;
}

.pagination a:hover,
.pagination a.active {
  color: #fff;
  background: var(--color-accent-500);
}

.pagination .disabled {
  color: var(--color-stone-500);
  opacity: 0.55;
}

.callout-card {
  text-align: center;
  background: linear-gradient(135deg, var(--color-bluestone-50), #fff, var(--color-accent-50));
}

.callout-card h2 {
  margin: 0 0 8px;
  font-size: 32px;
}

.callout-card p {
  margin: 0 auto 24px;
  max-width: 700px;
  color: var(--color-stone-600);
}

.site-footer {
  color: rgba(255, 255, 255, 0.8);
  background: var(--color-bluestone-900);
}

.footer-inner {
  width: min(100% - 32px, var(--page-width));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 42px 0;
}

.footer-inner strong {
  color: #fff;
  font-size: 20px;
}

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: flex-start;
  justify-content: flex-end;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.footer-links a:hover {
  color: #fff;
  background: rgba(217, 119, 6, 0.7);
}

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

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

  .category-chip-grid,
  .large-chips {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .two-column-block,
  .detail-content-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .sticky-panel {
    position: static;
  }
}

@media (max-width: 820px) {
  .header-inner {
    min-height: 68px;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--color-stone-200);
    border-radius: var(--radius-md);
    background: #fff;
    box-shadow: var(--shadow-card);
  }

  body.menu-open .main-nav {
    display: flex;
  }

  .main-nav a {
    border-radius: var(--radius-sm);
  }

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

  .brand-text small {
    display: none;
  }

  .hero {
    min-height: 620px;
    height: 78vh;
  }

  .hero-gradient {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.58));
  }

  .hero-arrow {
    display: none;
  }

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

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

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

  .category-chip-grid,
  .large-chips,
  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .detail-poster {
    width: min(220px, 70vw);
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .page-shell,
  .header-inner,
  .quick-search-inner,
  .footer-inner {
    width: min(100% - 24px, var(--page-width));
  }

  .hero h1,
  .detail-copy h1,
  .sub-hero h1 {
    letter-spacing: -0.03em;
  }

  .feature-grid,
  .compact-grid,
  .two-grid,
  .category-chip-grid,
  .large-chips,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .movie-card-large .movie-poster {
    aspect-ratio: 2 / 3;
  }

  .content-section,
  .category-strip,
  .ranking-panel,
  .callout-card,
  .article-card {
    padding: 20px;
  }

  .space-stack {
    padding: 44px 0;
  }

  .space-stack > * + * {
    margin-top: 46px;
  }

  .ranking-item {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .ranking-score {
    grid-column: 2;
  }
}
