:root {
  --color-bg: #fff7ed;
  --color-panel: #ffffff;
  --color-text: #1f2937;
  --color-muted: #6b7280;
  --color-soft: #fef3c7;
  --color-line: rgba(251, 191, 36, 0.24);
  --color-primary: #d97706;
  --color-primary-dark: #b45309;
  --color-accent: #f97316;
  --color-danger: #ef4444;
  --shadow-soft: 0 18px 50px rgba(146, 64, 14, 0.14);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--color-text);
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 28rem),
    linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fffaf0 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.74));
  border-bottom: 1px solid rgba(251, 191, 36, 0.16);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 35px rgba(146, 64, 14, 0.12);
}

.header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #f59e0b, #f97316, #ef4444);
  box-shadow: 0 10px 26px rgba(249, 115, 22, 0.35);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text strong,
.footer-brand span:last-child {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #b45309, #f97316, #dc2626);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.brand-text small {
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

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

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary-dark);
  background: rgba(251, 191, 36, 0.16);
}

.header-search {
  position: relative;
  width: min(260px, 24vw);
}

.site-search,
.filter-input,
.filter-select {
  width: 100%;
  border: 1px solid rgba(217, 119, 6, 0.24);
  outline: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.site-search {
  padding: 11px 16px;
  font-size: 14px;
}

.site-search:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: rgba(217, 119, 6, 0.62);
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.18);
  background: #ffffff;
}

.search-suggestions {
  position: absolute;
  display: none;
  top: calc(100% + 10px);
  right: 0;
  width: min(440px, calc(100vw - 32px));
  padding: 10px;
  border: 1px solid rgba(217, 119, 6, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
}

.search-suggestions.is-open {
  display: grid;
  gap: 8px;
}

.search-suggestion-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  transition: background 0.2s ease;
}

.search-suggestion-item:hover {
  background: #fff7ed;
}

.search-suggestion-item img {
  width: 44px;
  height: 58px;
  border-radius: 10px;
  object-fit: cover;
  background: #fef3c7;
}

.search-suggestion-item strong {
  display: block;
  font-size: 14px;
}

.search-suggestion-item small,
.search-empty {
  color: var(--color-muted);
  font-size: 12px;
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: 16px;
  background: #ffffff;
}

.mobile-menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--color-primary-dark);
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(217, 119, 6, 0.12);
  background: #ffffff;
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 0 18px;
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  padding-top: 78px;
  background: #111827;
}

.hero-slider,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.8s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.88) 0%, rgba(146, 64, 14, 0.72) 45%, rgba(249, 115, 22, 0.36) 100%),
    radial-gradient(circle at 70% 40%, rgba(251, 191, 36, 0.34), transparent 24rem);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.18) 25%, transparent 25%);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.6fr);
  gap: 36px;
  min-height: 602px;
  align-items: center;
  color: #ffffff;
}

.hero-copy {
  max-width: 760px;
  padding: 60px 0;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 34px;
  padding: 6px 13px;
  border-radius: 999px;
  color: #b45309;
  background: rgba(254, 243, 199, 0.92);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.hero h1 span {
  color: #fde68a;
}

.hero p {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(255, 251, 235, 0.92);
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.85;
}

.hero-actions,
.detail-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button-primary,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  color: #92400e;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

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

.button-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.button-ghost {
  color: var(--color-primary-dark);
  border-color: rgba(217, 119, 6, 0.22);
  background: #fff7ed;
}

.hero-card {
  position: relative;
  width: min(360px, 100%);
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.hero-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

.hero-card-body {
  padding: 18px;
}

.hero-card-body strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-card-body small {
  color: rgba(255, 251, 235, 0.78);
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 28px;
  width: min(var(--container), calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

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

.hero-dot {
  width: 36px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-dot.is-active {
  background: #ffffff;
}

.hero-arrows {
  display: flex;
  gap: 10px;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 70px;
  color: #ffffff;
  background:
    linear-gradient(120deg, rgba(146, 64, 14, 0.94), rgba(249, 115, 22, 0.88), rgba(239, 68, 68, 0.78)),
    radial-gradient(circle at 20% 0%, rgba(254, 243, 199, 0.28), transparent 22rem);
}

.page-hero h1,
.detail-hero h1 {
  margin: 18px 0 14px;
  max-width: 860px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.page-hero p,
.detail-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 251, 235, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 28px 0 8px;
}

.stat-card,
.category-card,
.movie-card,
.rank-board,
.content-panel,
.player-shell,
.detail-side-card,
.filter-panel,
.search-panel {
  border: 1px solid rgba(217, 119, 6, 0.14);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.stat-card {
  display: grid;
  place-items: center;
  min-height: 112px;
  border-radius: 24px;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 28px;
}

.stat-card span {
  color: var(--color-muted);
  font-weight: 700;
}

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

.content-section.soft {
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.2), rgba(254, 243, 199, 0.28));
}

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

.section-header h2 {
  margin: 12px 0 8px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.section-header p {
  max-width: 700px;
  margin: 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.7;
}

.section-more {
  flex: 0 0 auto;
  padding: 11px 16px;
  border-radius: 999px;
  color: var(--color-primary-dark);
  background: #fff7ed;
  font-weight: 900;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 210px;
  padding: 22px;
  border-radius: 26px;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover,
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 55px rgba(146, 64, 14, 0.16);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background: linear-gradient(135deg, var(--cat-a, #f59e0b), var(--cat-b, #ef4444));
}

.category-card.warm { --cat-a: #f59e0b; --cat-b: #ef4444; }
.category-card.gold { --cat-a: #fbbf24; --cat-b: #d97706; }
.category-card.orange { --cat-a: #fb923c; --cat-b: #f97316; }
.category-card.rose { --cat-a: #fb7185; --cat-b: #db2777; }
.category-card.slate { --cat-a: #475569; --cat-b: #111827; }
.category-card.sun { --cat-a: #fde047; --cat-b: #f59e0b; }
.category-card.fire { --cat-a: #f97316; --cat-b: #dc2626; }
.category-card.blue { --cat-a: #38bdf8; --cat-b: #2563eb; }
.category-card.green { --cat-a: #34d399; --cat-b: #059669; }
.category-card.purple { --cat-a: #a78bfa; --cat-b: #7c3aed; }
.category-card.brown { --cat-a: #a16207; --cat-b: #78350f; }
.category-card.star { --cat-a: #facc15; --cat-b: #c2410c; }

.category-card > * {
  position: relative;
}

.category-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: #ffffff;
  font-size: 26px;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.category-card h3 {
  margin: 18px 0 8px;
  font-size: 22px;
}

.category-card p {
  margin: 0 0 18px;
  color: var(--color-muted);
  line-height: 1.65;
}

.category-count {
  margin-top: auto;
  color: var(--color-primary-dark);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fed7aa);
}

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

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

.cover-gradient {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  transition: opacity 0.25s ease;
}

.movie-card:hover .cover-gradient {
  opacity: 1;
}

.play-pill,
.year-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.play-pill {
  left: 12px;
  bottom: 12px;
  opacity: 0;
  transform: translateY(10px);
  padding: 7px 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-pill {
  opacity: 1;
  transform: translateY(0);
}

.year-badge {
  top: 10px;
  right: 10px;
  padding: 6px 9px;
  color: #ffffff;
  background: rgba(217, 119, 6, 0.94);
}

.movie-info {
  padding: 14px;
}

.movie-info h3 {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-info h3 a:hover {
  color: var(--color-primary-dark);
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
  color: var(--color-muted);
  font-size: 12px;
}

.movie-meta span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff7ed;
}

.movie-info p {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 10px;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.tag-row span,
.breadcrumbs a,
.breadcrumbs span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 800;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

.rank-board {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 26px;
}

.rank-item {
  display: grid;
  grid-template-columns: 44px 58px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  background: #fff7ed;
  transform: translateX(4px);
}

.rank-number {
  color: var(--color-primary);
  font-weight: 950;
  font-size: 20px;
}

.rank-item img {
  width: 58px;
  height: 78px;
  border-radius: 12px;
  object-fit: cover;
  background: #fef3c7;
}

.rank-text strong {
  display: block;
  margin-bottom: 4px;
}

.rank-text small {
  color: var(--color-muted);
}

.rank-score {
  color: #ffffff;
  min-width: 46px;
  padding: 7px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  text-align: center;
  font-weight: 950;
}

.filter-panel,
.search-panel {
  position: relative;
  z-index: 3;
  margin: -28px auto 28px;
  padding: 18px;
  border-radius: 26px;
}

.filter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.filter-heading strong {
  color: var(--color-primary-dark);
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 170px;
  gap: 12px;
}

.filter-input,
.filter-select {
  min-height: 46px;
  padding: 0 14px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.detail-hero {
  padding-bottom: 54px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 26px;
  align-items: start;
  padding: 46px 0 76px;
}

.player-shell {
  overflow: hidden;
  border-radius: 28px;
}

.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111827;
}

.video-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111827;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.18), rgba(15, 23, 42, 0.68)),
    radial-gradient(circle, rgba(251, 191, 36, 0.18), transparent 19rem);
}

.play-overlay span {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
  font-size: 34px;
  transform: scale(1);
  transition: transform 0.2s ease;
}

.play-overlay:hover span {
  transform: scale(1.08);
}

.player-shell.is-playing .play-overlay {
  display: none;
}

.player-meta {
  padding: 18px;
  background: #ffffff;
}

.player-meta h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

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

.content-panel,
.detail-side-card {
  padding: 22px;
  border-radius: 26px;
}

.content-panel + .content-panel,
.detail-side-card + .detail-side-card {
  margin-top: 18px;
}

.content-panel h2,
.detail-side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-panel p,
.detail-side-card p {
  margin: 0;
  color: #4b5563;
  line-height: 1.9;
}

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

.detail-meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 10px;
  border-bottom: 1px dashed rgba(217, 119, 6, 0.18);
}

.detail-meta-list span {
  color: var(--color-muted);
}

.side-poster {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #fef3c7;
}

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

.compact-card .movie-info p {
  min-height: 0;
}

.cta-panel {
  overflow: hidden;
  margin: 20px 0 76px;
  padding: 38px;
  border-radius: 30px;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(146, 64, 14, 0.96), rgba(249, 115, 22, 0.92), rgba(239, 68, 68, 0.85)),
    radial-gradient(circle at right top, rgba(254, 243, 199, 0.24), transparent 18rem);
  box-shadow: var(--shadow-soft);
}

.cta-panel h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
}

.cta-panel p {
  max-width: 780px;
  margin: 0 0 20px;
  color: rgba(255, 251, 235, 0.88);
  line-height: 1.8;
}

.site-footer {
  border-top: 1px solid rgba(217, 119, 6, 0.14);
  background: linear-gradient(180deg, rgba(255, 247, 237, 0.82), #ffffff);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 34px;
  padding: 48px 0;
}

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

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

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 9px 0;
  color: #4b5563;
}

.footer-grid a:hover {
  color: var(--color-primary-dark);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-badges span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #92400e;
  background: #fef3c7;
  font-size: 12px;
  font-weight: 900;
}

.footer-bottom {
  padding: 18px;
  border-top: 1px solid rgba(217, 119, 6, 0.1);
  color: var(--color-muted);
  text-align: center;
  font-size: 13px;
}

.empty-state {
  display: none;
  padding: 42px;
  border-radius: 24px;
  background: #fff7ed;
  color: var(--color-muted);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

@media (max-width: 1100px) {
  .movie-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

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

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

  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-menu-button {
    display: inline-block;
    margin-left: auto;
  }

  .hero {
    min-height: 760px;
    padding-top: 70px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    align-items: end;
    min-height: 690px;
    padding-bottom: 86px;
  }

  .hero-card {
    width: 100%;
    justify-self: start;
    display: grid;
    grid-template-columns: 120px 1fr;
  }

  .hero-card img {
    height: 100%;
  }

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

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

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

  .section-header {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 14px;
  }
}

@media (max-width: 640px) {
  .site-container {
    width: min(100% - 22px, var(--container));
  }

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

  .brand-text small {
    display: none;
  }

  .hero h1,
  .page-hero h1,
  .detail-hero h1 {
    letter-spacing: -0.045em;
  }

  .hero-card {
    grid-template-columns: 96px 1fr;
  }

  .hero-controls {
    bottom: 18px;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
  }

  .stats-strip,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .movie-info {
    padding: 11px;
  }

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

  .rank-item {
    grid-template-columns: 34px 48px 1fr;
  }

  .rank-score {
    display: none;
  }

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

  .detail-layout {
    padding-top: 28px;
  }

  .cta-panel {
    padding: 26px;
  }
}
