* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-400: #fbbf24;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --orange-400: #fb923c;
  --orange-500: #f97316;
  --rose-500: #f43f5e;
  --blue-500: #3b82f6;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(217, 119, 6, 0.18);
  --card: #ffffff;
  --shadow: 0 22px 50px rgba(146, 64, 14, 0.14);
  --soft-shadow: 0 10px 28px rgba(146, 64, 14, 0.10);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.20), transparent 34rem),
    linear-gradient(135deg, #fff7ed 0%, #fff 42%, #fffbeb 100%);
  min-height: 100vh;
}

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

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

main {
  min-height: 70vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(255, 251, 235, 0.94), rgba(255, 247, 237, 0.94), rgba(255, 251, 235, 0.94));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 8px 24px rgba(146, 64, 14, 0.08);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-500));
  box-shadow: 0 10px 24px rgba(245, 158, 11, 0.32);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark,
.footer-brand:hover .brand-mark {
  transform: rotate(10deg) scale(1.03);
}

.brand-text {
  font-size: 1.24rem;
  background: linear-gradient(90deg, var(--amber-600), var(--orange-500));
  -webkit-background-clip: text;
  color: transparent;
}

.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 700;
  color: #4b5563;
}

.nav-links > a {
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links > a:hover {
  color: var(--amber-600);
}

.nav-search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 270px;
}

.nav-search input,
.wide-search input {
  width: 100%;
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 12px 16px;
  outline: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.nav-search input:focus,
.wide-search input:focus {
  border-color: var(--amber-400);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.24);
}

.nav-search button,
.wide-search button,
.primary-btn,
.ghost-btn,
.section-more {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search button,
.wide-search button,
.primary-btn {
  color: #fff;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
  padding: 12px 20px;
  box-shadow: 0 12px 26px rgba(249, 115, 22, 0.25);
}

.nav-search button:hover,
.wide-search button:hover,
.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  background: rgba(255, 237, 213, 0.8);
  border-radius: 12px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--amber-700, #b45309);
  border-radius: 99px;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  background: #111827;
}

.hero-stage {
  position: relative;
  min-height: 660px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 56px;
  width: 100%;
  padding: 72px max(32px, calc((100vw - 1180px) / 2));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero-image), linear-gradient(135deg, #111827, #92400e);
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  filter: blur(2px);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.24)),
    radial-gradient(circle at 74% 50%, rgba(245, 158, 11, 0.20), transparent 20rem);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 2;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-400);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0 16px;
  color: #fff;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 2.2vw, 1.38rem);
  line-height: 1.8;
}

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

.hero-tags span,
.detail-meta span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  border-radius: 999px;
  font-weight: 800;
  color: #fff;
  background: rgba(251, 191, 36, 0.90);
  backdrop-filter: blur(8px);
}

.detail-meta span,
.tag-row span {
  color: #92400e;
  background: var(--amber-100);
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px);
}

.ghost-btn.light {
  color: var(--amber-700, #b45309);
  background: rgba(255, 255, 255, 0.76);
  border-color: var(--amber-200);
}

.hero-poster {
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 32px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-400));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

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

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.42);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(0, 0, 0, 0.70);
  transform: translateY(-50%) scale(1.06);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 34px;
  background: #fff;
}

.home-search-panel,
.content-section,
.split-section,
.detail-body,
.player-section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.home-search-panel {
  margin-top: -42px;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(280px, 1fr);
  gap: 18px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(253, 230, 138, 0.80);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.home-search-panel strong,
.home-search-panel span {
  display: block;
}

.home-search-panel strong {
  font-size: 1.22rem;
}

.home-search-panel span {
  margin-top: 4px;
  color: var(--muted);
}

.wide-search {
  display: flex;
  gap: 10px;
}

.pill-row {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-link {
  padding: 9px 14px;
  color: #92400e;
  background: var(--amber-50);
  border: 1px solid var(--amber-200);
  border-radius: 999px;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.pill-link:hover {
  background: var(--amber-100);
  transform: translateY(-2px);
}

.content-section,
.split-section,
.detail-body,
.player-section {
  padding: 72px 0 0;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.035em;
}

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

.section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--amber-600);
  background: #fff;
  border: 1px solid var(--amber-200);
  padding: 10px 15px;
  box-shadow: var(--soft-shadow);
}

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

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

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

.movie-card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 20px;
  background: var(--card);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-box {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), #fed7aa);
}

.poster-box::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card-link:hover .poster-box::after {
  opacity: 1;
}

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

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

.type-badge,
.year-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  backdrop-filter: blur(8px);
}

.type-badge {
  top: 10px;
  right: 10px;
  padding: 8px 10px;
  background: rgba(245, 158, 11, 0.92);
}

.year-badge {
  left: 10px;
  bottom: 10px;
  padding: 7px 9px;
  background: rgba(0, 0, 0, 0.64);
}

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

.movie-card-title,
.movie-card-text,
.movie-card-meta {
  display: block;
}

.movie-card-title {
  min-height: 2.7em;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.movie-card-link:hover .movie-card-title {
  color: var(--amber-600);
}

.movie-card-text {
  min-height: 3.2em;
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-meta {
  margin-top: 13px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #8a6b24;
  font-size: 0.78rem;
  font-weight: 800;
}

.movie-card-meta span:first-child {
  max-width: 48%;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--amber-50);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-card-meta span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.movie-card-small .movie-card-title {
  font-size: 0.92rem;
}

.movie-card-small .movie-card-text {
  font-size: 0.82rem;
}

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

.split-section.wide-left {
  grid-template-columns: minmax(360px, 0.8fr) minmax(0, 1.2fr);
}

.panel-card,
.article-card {
  border: 1px solid rgba(253, 230, 138, 0.8);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  padding: 28px;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  padding: 10px;
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.90), rgba(255, 255, 255, 0.95));
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: var(--soft-shadow);
}

.rank-num {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-500), var(--rose-500));
}

.rank-thumb {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-100), #fed7aa);
}

.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-copy strong,
.rank-copy em,
.rank-copy small {
  display: block;
}

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

.rank-copy em {
  margin: 5px 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-copy small {
  color: #9a6b20;
  font-weight: 800;
}

.region-board,
.category-grid {
  display: grid;
  gap: 16px;
}

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

.region-board a {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 22px;
  border-radius: 22px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(120, 53, 15, 0.28), rgba(249, 115, 22, 0.52)),
    linear-gradient(135deg, var(--amber-400), var(--orange-500));
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease;
}

.region-board a:hover {
  transform: translateY(-4px);
}

.region-board strong {
  font-size: 1.35rem;
}

.region-board span {
  margin-top: 5px;
  opacity: 0.9;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 96px max(32px, calc((100vw - 1180px) / 2));
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.34), transparent 24rem),
    linear-gradient(135deg, #111827, #7c2d12 48%, #f59e0b);
}

.slim-hero {
  min-height: 330px;
  display: flex;
  align-items: center;
}

.ranking-hero {
  min-height: 410px;
  display: flex;
  align-items: center;
}

.page-hero h1 {
  max-width: 850px;
  margin: 14px 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.12rem;
  line-height: 1.85;
}

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

.category-tile a {
  display: block;
  height: 100%;
  overflow: hidden;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(253, 230, 138, 0.8);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile a:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-preview {
  height: 120px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.category-preview span {
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--amber-100), #fed7aa);
}

.category-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-tile h2 {
  margin: 0 0 10px;
}

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

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 38px;
}

.pagination a {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--amber-200);
  background: #fff;
  color: #92400e;
  font-weight: 900;
  box-shadow: var(--soft-shadow);
}

.pagination a.is-current {
  color: #fff;
  background: linear-gradient(90deg, var(--amber-500), var(--orange-500));
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  color: #fff;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-image: var(--detail-image), linear-gradient(135deg, #111827, #92400e);
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  transform: scale(1.06);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.28)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.96), transparent 42%);
}

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

.detail-poster {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--amber-100), #fed7aa);
  box-shadow: 0 30px 86px rgba(0, 0, 0, 0.42);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.92rem;
  font-weight: 800;
}

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

.detail-copy h1 {
  max-width: 820px;
  margin: 18px 0 16px;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-lead {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.22rem;
  line-height: 1.85;
}

.detail-meta {
  margin: 24px 0 14px;
}

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

.player-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 30px;
  background: #000;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.movie-player {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  cursor: pointer;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 900;
  background:
    radial-gradient(circle at center, rgba(245, 158, 11, 0.26), transparent 16rem),
    linear-gradient(135deg, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.44));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-orb {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 50%;
  color: #fff;
  font-size: 2.25rem;
  background: linear-gradient(135deg, var(--amber-500), var(--orange-500));
  box-shadow: 0 22px 48px rgba(249, 115, 22, 0.42);
}

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

.article-card h2 {
  margin: 0 0 14px;
  font-size: 1.55rem;
}

.article-card p {
  margin: 0;
  color: #4b5563;
  font-size: 1.02rem;
  line-height: 1.95;
}

.empty-copy {
  color: var(--muted);
  text-align: center;
  padding: 36px;
}

.site-footer {
  margin-top: 86px;
  border-top: 1px solid var(--line);
  background: linear-gradient(135deg, var(--amber-50), #fff7ed);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 34px;
  padding: 46px 0;
}

.footer-grid p {
  color: var(--muted);
  line-height: 1.8;
}

.footer-grid h3 {
  margin: 0 0 14px;
}

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 9px 0;
  color: #6b7280;
  transition: color 0.2s ease;
}

.footer-grid a:not(.footer-brand):hover {
  color: var(--amber-600);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 34px;
  border-top: 1px solid var(--line);
  color: #8a6b24;
  text-align: center;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .nav-links {
    gap: 14px;
  }

  .nav-search {
    min-width: 210px;
  }

  .hero-slide {
    grid-template-columns: 1fr 280px;
  }

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

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

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

@media (max-width: 860px) {
  .nav-shell {
    flex-wrap: wrap;
    padding: 12px 0;
  }

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

  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px 0 4px;
  }

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

  .nav-search {
    margin-left: 0;
    min-width: 0;
    width: 100%;
  }

  .hero-stage {
    min-height: 720px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
    padding-top: 56px;
    padding-bottom: 76px;
  }

  .hero-poster {
    width: 210px;
    justify-self: start;
  }

  .hero-arrow {
    display: none;
  }

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

  .wide-search {
    flex-direction: column;
  }

  .split-section,
  .split-section.wide-left,
  .detail-body,
  .detail-shell,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-shell {
    padding: 48px 0;
  }

  .detail-poster {
    width: min(260px, 76vw);
  }

  .two-col-rank {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .brand-text {
    font-size: 1.08rem;
  }

  .hero-stage {
    min-height: 690px;
  }

  .hero-content h1,
  .detail-copy h1,
  .page-hero h1 {
    letter-spacing: -0.04em;
  }

  .hero-tags span,
  .detail-meta span,
  .tag-row span {
    min-height: 30px;
    padding: 6px 10px;
    font-size: 0.82rem;
  }

  .home-search-panel,
  .panel-card,
  .article-card {
    border-radius: 22px;
    padding: 20px;
  }

  .content-section,
  .split-section,
  .detail-body,
  .player-section {
    padding-top: 48px;
  }

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

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

  .movie-card-title {
    font-size: 0.92rem;
  }

  .movie-card-text {
    font-size: 0.8rem;
  }

  .movie-card-meta {
    flex-direction: column;
    align-items: start;
  }

  .movie-card-meta span:first-child {
    max-width: 100%;
  }

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

  .region-board {
    grid-template-columns: 1fr;
  }

  .category-preview {
    height: 90px;
  }

  .player-frame {
    border-radius: 18px;
  }

  .play-orb {
    width: 68px;
    height: 68px;
    font-size: 1.8rem;
  }
}
