:root {
  color-scheme: light;
  --color-emerald-900: #064e3b;
  --color-emerald-800: #065f46;
  --color-emerald-700: #047857;
  --color-emerald-600: #059669;
  --color-emerald-500: #10b981;
  --color-teal-700: #0f766e;
  --color-teal-600: #0d9488;
  --color-stone-50: #fafaf9;
  --color-stone-100: #f5f5f4;
  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-gray-900: #111827;
  --color-gray-800: #1f2937;
  --color-gray-700: #374151;
  --color-gray-600: #4b5563;
  --color-gray-500: #6b7280;
  --color-white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.16);
  --radius-sm: 0.65rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-stone-50);
  color: var(--color-gray-800);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--color-emerald-800), var(--color-teal-700));
  box-shadow: 0 10px 30px rgba(6, 78, 59, 0.24);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  height: 4rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-white);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  transition: transform 0.25s ease;
}

.site-logo:hover .site-logo-mark {
  transform: scale(1.12);
}

.site-logo-text {
  font-size: 1.15rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 650;
  font-size: 0.95rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav-link:hover {
  color: #d1fae5;
  transform: translateY(-1px);
}

.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.14);
  cursor: pointer;
}

.mobile-nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.mobile-nav.is-open {
  display: grid;
  gap: 0.45rem;
}

.mobile-nav-link {
  padding: 0.75rem 0;
  color: var(--color-white);
  font-weight: 650;
}

main {
  min-height: 60vh;
}

.hero-carousel {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: #000;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

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

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.08));
}

.hero-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem 3.5rem;
  color: var(--color-white);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.92);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-content h1 {
  max-width: 780px;
  margin: 0 0 1rem;
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.55);
}

.hero-content p {
  max-width: 760px;
  margin: 0 0 1.35rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 2vw, 1.25rem);
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.hero-meta span {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.8rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button-primary {
  background: var(--color-emerald-600);
  color: var(--color-white);
  box-shadow: 0 15px 35px rgba(5, 150, 105, 0.38);
}

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

.button-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: var(--color-white);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(12px);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.48);
  color: var(--color-white);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

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

.hero-control-prev {
  left: 1rem;
}

.hero-control-next {
  right: 1rem;
}

.hero-dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 0.5rem;
  transform: translateX(-50%);
}

.hero-dot {
  width: 0.75rem;
  height: 0.75rem;
  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: 2rem;
  background: var(--color-white);
}

.section,
.page-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1rem;
}

.section-alt {
  background: linear-gradient(135deg, #f1f5f9, #f5f5f4);
}

.section-soft {
  background: linear-gradient(135deg, #ecfdf5, #f0fdfa);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-heading h1,
.section-heading h2 {
  margin: 0;
  color: var(--color-gray-800);
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.15;
}

.section-heading h1 span,
.section-heading h2 span {
  display: inline-block;
  width: 0.45rem;
  height: 1.85rem;
  margin-right: 0.7rem;
  border-radius: 999px;
  background: var(--color-emerald-600);
  vertical-align: -0.25rem;
}

.section-heading p {
  max-width: 720px;
  margin: 0.55rem 0 0;
  color: var(--color-gray-600);
}

.section-more {
  flex: none;
  color: var(--color-emerald-700);
  font-weight: 800;
}

.horizontal-scroll {
  display: flex;
  gap: 1.25rem;
  padding-bottom: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x proximity;
}

.horizontal-scroll .movie-card {
  flex: 0 0 310px;
  scroll-snap-align: start;
}

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

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

.movie-list {
  display: grid;
  gap: 1rem;
}

.movie-card {
  min-width: 0;
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-card-link {
  display: block;
  height: 100%;
}

.movie-thumb {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #064e3b, #0f766e);
}

.movie-thumb-video {
  aspect-ratio: 16 / 9;
}

.movie-thumb::before {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  text-align: center;
}

.movie-thumb img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.movie-thumb.image-missing img {
  opacity: 0;
}

.play-hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0);
  color: var(--color-white);
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.25);
  transform: scale(1.05);
}

.year-badge,
.rank-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 800;
}

.year-badge {
  top: 0.65rem;
  right: 0.65rem;
  background: rgba(5, 150, 105, 0.92);
}

.rank-badge {
  top: 0.65rem;
  left: 0.65rem;
  background: rgba(234, 88, 12, 0.94);
}

.movie-card-body {
  padding: 1rem;
}

.movie-card-body h2,
.movie-card-body h3 {
  display: -webkit-box;
  min-height: 2.9em;
  margin: 0 0 0.45rem;
  overflow: hidden;
  color: var(--color-gray-800);
  font-size: 1rem;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-body p {
  display: -webkit-box;
  min-height: 3.1em;
  margin: 0 0 0.75rem;
  overflow: hidden;
  color: var(--color-gray-600);
  font-size: 0.9rem;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
}

.movie-tags span,
.tag-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  background: #d1fae5;
  color: #047857;
  font-size: 0.76rem;
  font-weight: 750;
}

.movie-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--color-gray-500);
  font-size: 0.84rem;
}

.movie-card-wide .movie-card-link {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
  align-items: stretch;
}

.movie-card-wide .movie-card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 1rem 1rem 0;
}

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

.category-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-emerald-700), var(--color-teal-600));
  color: var(--color-white);
  box-shadow: var(--shadow-md);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -15%;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.category-card-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 1.5rem;
}

.category-card h2,
.category-card h3 {
  margin: 0 0 0.55rem;
  font-size: 1.55rem;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
}

.category-stats {
  display: flex;
  gap: 0.8rem;
  margin-top: auto;
  padding-top: 1rem;
}

.category-stats span {
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 750;
}

.category-card[data-accent="amber"] {
  background: linear-gradient(135deg, #92400e, #d97706);
}

.category-card[data-accent="slate"] {
  background: linear-gradient(135deg, #0f172a, #475569);
}

.category-card[data-accent="rose"] {
  background: linear-gradient(135deg, #9f1239, #e11d48);
}

.category-card[data-accent="orange"] {
  background: linear-gradient(135deg, #9a3412, #ea580c);
}

.category-card[data-accent="pink"] {
  background: linear-gradient(135deg, #9d174d, #db2777);
}

.category-card[data-accent="sky"] {
  background: linear-gradient(135deg, #075985, #0284c7);
}

.category-card[data-accent="violet"] {
  background: linear-gradient(135deg, #4c1d95, #7c3aed);
}

.category-card[data-accent="cyan"] {
  background: linear-gradient(135deg, #155e75, #0891b2);
}

.filter-panel {
  display: grid;
  gap: 1.2rem;
  max-width: var(--max-width);
  margin: 2rem auto 0;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-white), #ecfdf5);
  box-shadow: var(--shadow-md);
}

.filter-copy h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.15;
}

.filter-copy p {
  margin: 0;
  color: var(--color-gray-600);
}

.filter-controls {
  display: grid;
  grid-template-columns: 2fr repeat(3, minmax(130px, 1fr)) auto;
  gap: 0.8rem;
  align-items: end;
}

.filter-controls label {
  display: grid;
  gap: 0.35rem;
  color: var(--color-gray-700);
  font-size: 0.88rem;
  font-weight: 750;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 2.8rem;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: var(--color-white);
  color: var(--color-gray-800);
  padding: 0 1rem;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--color-emerald-500);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}

.filter-controls button {
  min-height: 2.8rem;
  border: 0;
  border-radius: 999px;
  background: var(--color-emerald-600);
  color: var(--color-white);
  padding: 0 1.1rem;
  font-weight: 800;
  cursor: pointer;
}

.filter-count {
  margin: 0;
  color: var(--color-gray-600);
  font-weight: 700;
}

.detail-hero {
  background: linear-gradient(135deg, #022c22, #0f172a);
  color: var(--color-white);
}

.breadcrumbs {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.92rem;
}

.breadcrumbs a:hover {
  color: #a7f3d0;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
  gap: 1.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}

.player-shell {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow-lg);
}

.player-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.player-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15));
  transition: opacity 0.25s ease;
}

.player-box.is-playing .player-overlay {
  pointer-events: none;
  opacity: 0;
}

.player-play {
  display: inline-grid;
  place-items: center;
  width: 5.2rem;
  height: 5.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--color-emerald-600);
  color: var(--color-white);
  font-size: 2rem;
  cursor: pointer;
  box-shadow: 0 20px 45px rgba(5, 150, 105, 0.42);
  transition: transform 0.25s ease, background 0.25s ease;
}

.player-play:hover {
  transform: scale(1.08);
  background: var(--color-emerald-700);
}

.player-message {
  min-height: 1.8rem;
  padding: 0.85rem 1rem;
  background: #020617;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.9rem;
}

.detail-panel,
.side-panel,
.rich-text-card {
  border-radius: var(--radius-lg);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
}

.detail-panel {
  margin-top: 1.25rem;
  padding: 1.4rem;
  color: var(--color-gray-800);
}

.detail-panel h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.15;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1.2rem 0;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #e5e7eb;
}

.info-item {
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  background: #f8fafc;
}

.info-item span {
  display: block;
  color: var(--color-gray-500);
  font-size: 0.8rem;
}

.info-item strong {
  color: var(--color-gray-800);
}

.detail-section h2,
.side-panel h2,
.rich-text-card h2 {
  margin: 0 0 0.85rem;
  color: var(--color-gray-800);
  font-size: 1.25rem;
}

.detail-section {
  margin-top: 1.25rem;
}

.detail-section p {
  margin: 0.6rem 0;
  color: var(--color-gray-700);
}

.one-line {
  color: var(--color-emerald-700) !important;
  font-weight: 800;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.side-panel {
  padding: 1.2rem;
}

.side-panel + .side-panel {
  margin-top: 1.25rem;
}

.related-list {
  display: grid;
  gap: 0.85rem;
}

.related-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0.75rem;
  align-items: center;
}

.related-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--color-emerald-800), var(--color-teal-600));
}

.related-thumb::before {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0.5rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 750;
  text-align: center;
}

.related-thumb img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.related-item:hover img {
  transform: scale(1.07);
}

.related-title {
  display: -webkit-box;
  overflow: hidden;
  color: var(--color-gray-800);
  font-weight: 800;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-meta {
  margin-top: 0.25rem;
  color: var(--color-gray-500);
  font-size: 0.84rem;
}

.rank-list {
  display: grid;
  gap: 0.85rem;
}

.rank-row {
  display: grid;
  grid-template-columns: 64px 120px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.9rem;
  border-radius: var(--radius-md);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  background: #ecfdf5;
  color: var(--color-emerald-700);
  font-weight: 900;
}

.rank-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, var(--color-emerald-700), var(--color-teal-600));
}

.rank-cover::before {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0.6rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  font-weight: 800;
  text-align: center;
}

.rank-cover img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info h2 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.rank-info p {
  margin: 0;
  color: var(--color-gray-600);
  font-size: 0.9rem;
}

.rank-hot {
  color: #ea580c;
  font-weight: 900;
}

.rich-text-card {
  padding: 1.6rem;
}

.rich-text-card p {
  color: var(--color-gray-700);
}

.site-footer {
  background: linear-gradient(135deg, #1e293b, #0f172a);
  color: #cbd5e1;
}

.site-footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1rem;
}

.footer-brand p {
  max-width: 460px;
  color: #cbd5e1;
}

.footer-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer-columns h2 {
  margin: 0 0 0.9rem;
  color: var(--color-white);
  font-size: 1rem;
}

.footer-columns ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-columns a:hover {
  color: #6ee7b7;
}

.empty-result {
  display: none;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--color-white);
  color: var(--color-gray-600);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

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

@media (max-width: 1100px) {
  .site-nav {
    gap: 0.9rem;
  }

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

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

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

  .mobile-nav-toggle {
    display: flex;
  }

  .hero-carousel {
    height: 560px;
  }

  .hero-control {
    display: none;
  }

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

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

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

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

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

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

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

  .hero-content {
    padding-bottom: 3rem;
  }

  .hero-meta {
    gap: 0.5rem;
  }

  .section,
  .page-shell {
    padding: 2rem 0.85rem;
  }

  .movie-grid,
  .movie-grid-large {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }

  .movie-card-body {
    padding: 0.8rem;
  }

  .movie-card-wide .movie-card-link {
    grid-template-columns: 130px 1fr;
  }

  .movie-card-wide .movie-card-body {
    padding: 0.8rem 0.8rem 0.8rem 0;
  }

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

  .related-item {
    grid-template-columns: 96px 1fr;
  }

  .rank-row {
    grid-template-columns: 44px 88px 1fr;
  }

  .rank-hot {
    grid-column: 3;
  }

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