/*
  国产好剧纯静态电影网站样式
  根据上传的原始 JS/CSS 中的琥珀、橙色、玫瑰渐变、白色卡片、圆角阴影、Hero 首屏和响应式结构复刻整理。
*/

:root {
  --amber-50: #fffbeb;
  --amber-100: #fef3c7;
  --amber-200: #fde68a;
  --amber-300: #fcd34d;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --amber-700: #b45309;
  --amber-800: #92400e;
  --amber-900: #78350f;
  --orange-50: #fff7ed;
  --orange-400: #fb923c;
  --orange-600: #ea580c;
  --rose-50: #fff1f2;
  --rose-400: #fb7185;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow-sm: 0 4px 12px rgba(120, 53, 15, 0.08);
  --shadow-md: 0 12px 28px rgba(120, 53, 15, 0.12);
  --shadow-xl: 0 25px 55px rgba(120, 53, 15, 0.18);
  --radius-lg: 18px;
  --radius-xl: 28px;
  --container: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--gray-800);
  background: linear-gradient(135deg, var(--orange-50), #fffbea 48%, var(--amber-50));
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(245, 158, 11, 0.14);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), var(--orange-600), var(--rose-500));
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(217, 119, 6, 0.24);
}

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

.brand-text strong {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: transparent;
  background: linear-gradient(90deg, var(--amber-700), var(--orange-600));
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-text small {
  color: var(--gray-500);
  font-size: 12px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.mobile-link {
  padding: 10px 15px;
  border-radius: 12px;
  color: var(--gray-700);
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: var(--amber-700);
  background: var(--amber-100);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--amber-100);
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--amber-800);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 10px 16px 16px;
  border-top: 1px solid var(--gray-100);
}

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

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-400), var(--orange-400), var(--rose-400));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image: radial-gradient(circle at 20% 20%, #fff 0 6px, transparent 7px), radial-gradient(circle at 80% 30%, #fff 0 4px, transparent 5px);
  background-size: 70px 70px, 90px 90px;
}

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

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

.hero-bg,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
}

.hero-bg.image-missing,
.detail-bg.image-missing,
.poster-wrap img.image-missing,
.detail-poster img.image-missing,
.hero-poster img.image-missing,
.rank-row img.image-missing,
.category-cover-stack img.image-missing,
.video-player.image-missing {
  opacity: 0;
}

.poster-wrap:has(img.image-missing),
.detail-poster:has(img.image-missing),
.hero-poster:has(img.image-missing),
.category-cover-stack:has(img.image-missing) {
  background: linear-gradient(135deg, var(--amber-200), var(--orange-400), var(--rose-400));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(30, 18, 9, 0.84), rgba(120, 53, 15, 0.54), rgba(244, 63, 94, 0.28));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(var(--container), calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.55fr);
  align-items: center;
  gap: 48px;
  padding: 70px 0;
}

.hero-copy {
  color: var(--white);
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--amber-700);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-kicker {
  color: var(--amber-100);
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(40px, 7vw, 78px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 760px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(17px, 2.4vw, 24px);
}

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

.hero-tags span,
.tag-row span {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--amber-800);
  background: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 800;
}

.detail-tags span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
  box-shadow: 0 14px 30px rgba(217, 119, 6, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px) scale(1.02);
}

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

.ghost-btn.dark {
  color: var(--amber-700);
  background: var(--amber-100);
  border-color: var(--amber-200);
}

.hero-poster {
  position: relative;
  width: min(100%, 330px);
  justify-self: end;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.28);
  border-radius: 32px;
  box-shadow: 0 32px 60px rgba(0, 0, 0, 0.28);
  transform: rotate(3deg);
}

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

.hero-poster span {
  position: absolute;
  inset: auto 22px 22px auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  color: var(--amber-700);
  background: var(--white);
  border-radius: 999px;
  box-shadow: var(--shadow-xl);
}

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  transform: translateX(-50%);
}

.hero-arrow,
.hero-dot {
  border: 0;
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 30px;
  line-height: 1;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  padding: 0;
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 28px;
  background: var(--white);
}

.search-band {
  position: relative;
  z-index: 4;
  margin-top: -52px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(280px, 1fr);
  align-items: center;
  gap: 24px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(245, 158, 11, 0.16);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(14px);
}

.search-panel h2,
.section-heading h2,
.why-card h2,
.text-card h2,
.player-title-row h2 {
  margin: 0;
  color: var(--gray-800);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.search-panel p,
.section-heading p,
.why-card p,
.text-card p,
.movie-line,
.category-tile p,
.category-overview-info p,
.page-hero p,
.detail-line,
.player-status {
  color: var(--gray-600);
}

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

.global-search input,
.filter-bar input,
.filter-bar select {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  background: var(--white);
}

.global-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

.global-search button,
.filter-bar button {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  padding: 0 20px;
  color: var(--white);
  background: var(--amber-600);
  font-weight: 900;
}

.search-results {
  grid-column: 1 / -1;
  display: none;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px;
}

.search-results.open {
  display: grid;
}

.search-result-link {
  padding: 12px;
  border: 1px solid var(--amber-100);
  border-radius: 14px;
  background: var(--amber-50);
}

.search-result-link strong,
.search-result-link small {
  display: block;
}

.search-result-link small {
  color: var(--gray-500);
}

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

.soft-bg {
  background: linear-gradient(135deg, rgba(254, 243, 199, 0.86), rgba(255, 247, 237, 0.9), rgba(255, 241, 242, 0.72));
}

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

.section-action {
  flex: 0 0 auto;
  color: var(--amber-700);
  font-weight: 900;
}

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

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}

.compact-grid {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.movie-card {
  min-width: 0;
}

.movie-card.hidden-by-filter {
  display: none;
}

.poster-link {
  display: block;
  height: 100%;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-100), var(--orange-50));
}

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

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

.poster-link:hover .poster-wrap img {
  transform: scale(1.08);
}

.year-badge,
.region-badge,
.rank-badge,
.source-pill {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: var(--shadow-sm);
}

.year-badge {
  top: 12px;
  right: 12px;
  color: var(--amber-800);
  background: rgba(255, 255, 255, 0.92);
}

.region-badge {
  left: 12px;
  bottom: 12px;
  color: var(--white);
  background: rgba(0, 0, 0, 0.58);
}

.rank-badge {
  top: 12px;
  left: 12px;
  color: var(--white);
  background: var(--rose-500);
}

.play-hover {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: var(--amber-700);
  background: var(--white);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.55);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.poster-link:hover .play-hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0 0 6px;
  color: var(--gray-800);
  font-size: 17px;
  line-height: 1.3;
}

.movie-genre {
  margin: 0 0 8px;
  color: var(--gray-500);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-line {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 13px;
}

.tag-row span {
  color: var(--amber-700);
  background: var(--amber-50);
}

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

.category-tile,
.category-overview-card,
.text-card,
.why-card,
.player-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.category-tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.tile-icon {
  font-size: 32px;
}

.category-tile strong,
.category-overview-info h2 {
  color: var(--gray-800);
  font-size: 24px;
  line-height: 1.15;
}

.category-tile em,
.category-meta span {
  color: var(--amber-700);
  font-style: normal;
  font-weight: 900;
}

.category-tile small {
  color: var(--gray-500);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 30px;
  align-items: start;
}

.rank-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rank-list-grid {
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.full-rank-list {
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
}

.rank-row a {
  display: grid;
  grid-template-columns: 44px 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.rank-number {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose-500), var(--amber-600));
  border-radius: 999px;
  font-weight: 900;
}

.rank-row img {
  width: 56px;
  height: 74px;
  object-fit: cover;
  border-radius: 10px;
  background: var(--amber-100);
}

.rank-main {
  min-width: 0;
}

.rank-main strong,
.rank-main em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-main em {
  color: var(--gray-500);
  font-size: 12px;
  font-style: normal;
}

.rank-score {
  color: var(--amber-700);
  font-weight: 900;
}

.why-card {
  position: sticky;
  top: 100px;
  padding: 28px;
}

.why-grid {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.why-grid article {
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--amber-50), var(--rose-50));
}

.why-grid strong {
  color: var(--gray-800);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-600), var(--orange-600), var(--rose-600));
}

.page-hero {
  padding: 84px 0;
}

.small-hero {
  padding: 76px 0 86px;
}

.page-hero .eyebrow,
.page-hero p {
  color: rgba(255, 255, 255, 0.9);
}

.page-hero h1 {
  margin: 0 0 16px;
}

.page-hero p {
  max-width: 760px;
  font-size: 19px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 20px;
  padding: 18px;
}

.category-cover-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-content: start;
}

.category-cover-stack img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: var(--amber-100);
}

.category-overview-info h2 {
  margin: 0 0 8px;
}

.category-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0;
}

.preview-links {
  display: grid;
  gap: 6px;
}

.preview-links a {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--gray-700);
  font-size: 14px;
}

.preview-links span {
  color: var(--gray-500);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(160px, 0.32fr) minmax(160px, 0.32fr) auto;
  gap: 12px;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-sm);
}

.filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 900;
}

.filter-count {
  margin: 0 0 24px;
  color: var(--amber-700);
  font-weight: 900;
}

.detail-hero {
  min-height: 640px;
}

.detail-bg-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(120, 53, 15, 0.68), rgba(244, 63, 94, 0.24));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 48px 0 70px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 38px;
  align-items: center;
}

.detail-poster {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 8px solid rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, var(--amber-200), var(--rose-400));
}

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

.detail-copy h1 {
  color: var(--white);
}

.detail-line {
  max-width: 850px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 21px;
}

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

.detail-meta div {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}

.detail-meta dt {
  color: var(--amber-100);
  font-size: 12px;
  font-weight: 900;
}

.detail-meta dd {
  margin: 4px 0 0;
  color: var(--white);
  font-weight: 900;
}

.player-card {
  padding: 24px;
}

.player-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.source-pill {
  position: static;
  color: var(--white);
  background: var(--rose-500);
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow-xl);
}

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

.text-card {
  padding: 28px;
}

.text-card p {
  font-size: 17px;
}

.stats-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.stats-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
}

.site-footer {
  color: var(--amber-50);
  background: linear-gradient(135deg, var(--amber-900), var(--orange-600), var(--amber-900));
}

.footer-inner {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 30px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 22px;
}

.site-footer h2 {
  margin: 0 0 14px;
  color: var(--amber-100);
  font-size: 18px;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: var(--amber-100);
}

.site-footer ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-note,
.footer-bottom {
  color: var(--amber-200);
  font-weight: 800;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(253, 230, 138, 0.24);
  font-size: 14px;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 46px;
  height: 46px;
  display: none;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: var(--amber-600);
  box-shadow: var(--shadow-md);
  font-weight: 900;
}

.back-to-top.visible {
  display: block;
}

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

  .menu-toggle {
    display: block;
  }

  .hero-content,
  .detail-grid,
  .two-column,
  .detail-text-grid,
  .search-panel,
  .footer-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .hero-content {
    min-height: 680px;
    gap: 24px;
    text-align: center;
  }

  .hero-tags,
  .hero-actions {
    justify-content: center;
  }

  .hero-poster {
    width: min(78vw, 280px);
    justify-self: center;
  }

  .why-card {
    position: static;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 66px;
  }

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

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

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

  .content-section {
    padding: 52px 0;
  }

  .section-heading,
  .player-title-row {
    display: grid;
    align-items: start;
  }

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

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .movie-info {
    padding: 12px;
  }

  .movie-info h3 {
    font-size: 15px;
  }

  .movie-line,
  .tag-row {
    display: none;
  }

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

  .category-cover-stack {
    grid-template-columns: repeat(4, 1fr);
  }

  .rank-row a {
    grid-template-columns: 34px 48px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }
}
