:root {
  --amber-50: #fff8e1;
  --amber-100: #ffecb3;
  --amber-300: #ffd166;
  --amber-400: #f4b63f;
  --amber-500: #f59e0b;
  --amber-700: #b45309;
  --amber-900: #78350f;
  --orange-900: #7c2d12;
  --rose-900: #881337;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --cyan-600: #0891b2;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
  --soft-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  --radius-xl: 24px;
  --radius-lg: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-800);
  background: linear-gradient(135deg, var(--slate-50), var(--amber-50));
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

.page-main {
  padding-top: 68px;
  min-height: 70vh;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  width: 100%;
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.92), rgba(124, 45, 18, 0.92));
  color: var(--amber-50);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: linear-gradient(90deg, rgba(120, 53, 15, 0.98), rgba(124, 45, 18, 0.98));
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.28);
}

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

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

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  color: var(--amber-900);
  background: linear-gradient(135deg, var(--amber-200, #fde68a), var(--amber-300));
  box-shadow: 0 0 24px rgba(255, 209, 102, 0.48);
}

.brand-text {
  font-size: 24px;
  color: transparent;
  background: linear-gradient(90deg, var(--amber-100), var(--white));
  -webkit-background-clip: text;
  background-clip: text;
}

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

.nav-link {
  position: relative;
  font-weight: 700;
  font-size: 15px;
  color: var(--amber-50);
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--amber-300);
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--amber-300);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  padding: 10px;
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(120, 53, 15, 0.72);
}

.mobile-nav .nav-link {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
}

.mobile-nav .nav-link:hover,
.mobile-nav .nav-link.is-active {
  background: rgba(255, 255, 255, 0.12);
}

.hero-carousel {
  position: relative;
  min-height: calc(100vh - 68px);
  color: var(--white);
  overflow: hidden;
  background: linear-gradient(135deg, var(--amber-900), var(--orange-900), var(--rose-900));
}

.hero-stage {
  position: relative;
  min-height: calc(100vh - 68px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 420px);
  align-items: center;
  gap: 44px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0 90px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) blur(2px);
  transform: scale(1.04);
  opacity: 0.34;
}

.hero-mask {
  position: fixed;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.32), transparent 30%),
    radial-gradient(circle at 76% 28%, rgba(244, 63, 94, 0.25), transparent 32%),
    linear-gradient(120deg, rgba(15, 23, 42, 0.88), rgba(120, 53, 15, 0.6));
}

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

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
  color: var(--amber-100);
  font-weight: 800;
}

.hero-content h1,
.hero-content h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: #ffedd5;
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.65;
}

.hero-tags,
.card-tags,
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.card-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags span {
  padding: 8px 12px;
  color: var(--amber-50);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.primary-btn,
.ghost-btn,
.text-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: var(--white);
  background: linear-gradient(135deg, var(--amber-500), #fb7185);
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.35);
}

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

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

.text-btn {
  color: var(--amber-700);
  background: var(--amber-50);
}

.hero-poster {
  display: block;
  overflow: hidden;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.26);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster span {
  display: block;
  padding: 18px;
  font-weight: 900;
  font-size: 18px;
  background: rgba(15, 23, 42, 0.72);
}

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

.hero-controls > button {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  backdrop-filter: blur(12px);
}

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

.hero-dots button {
  width: 34px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: var(--amber-300);
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.hero-particles span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.55);
  animation: pulse 2.8s ease-in-out infinite;
  animation-delay: var(--d);
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.18;
    transform: scale(0.8);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.5);
  }
}

.stat-strip {
  background: linear-gradient(90deg, var(--teal-600), var(--cyan-600));
  color: var(--white);
}

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

.stat-item {
  text-align: center;
}

.stat-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 28px;
}

.stat-item span {
  color: #cffafe;
  font-size: 14px;
}

.section,
.catalog-section,
.detail-wrap,
.page-hero-inner,
.footer-grid,
.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 72px 0;
}

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

.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--slate-800);
  letter-spacing: -0.04em;
}

.section-desc {
  margin: 10px 0 0;
  color: var(--slate-600);
  line-height: 1.8;
}

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

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

.movie-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--white);
  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-frame {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--slate-100);
}

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

.movie-card-link:hover img,
.category-tile:hover img,
.rank-item:hover img,
.mini-card:hover img {
  transform: scale(1.08);
}

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

.year-badge,
.play-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
}

.year-badge {
  top: 10px;
  right: 10px;
  padding: 6px 10px;
  color: var(--white);
  background: rgba(15, 23, 42, 0.72);
}

.play-badge {
  left: 10px;
  bottom: 10px;
  padding: 8px 12px;
  color: var(--amber-900);
  background: var(--amber-300);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
}

.card-meta {
  color: var(--teal-600);
  font-size: 12px;
  font-weight: 900;
}

.card-title {
  color: var(--slate-800);
  font-weight: 900;
  font-size: 18px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-desc {
  color: var(--slate-500);
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags span {
  padding: 5px 8px;
  color: var(--slate-600);
  background: var(--slate-100);
}

.list-section {
  background: linear-gradient(90deg, #ffe4e6, #fce7f3);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 140px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  overflow: hidden;
  padding: 12px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.rank-num {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, #e11d48, #fb7185);
  font-weight: 900;
}

.rank-item img {
  width: 140px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  transition: transform 0.35s ease;
}

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

.rank-text strong {
  color: var(--slate-800);
  font-size: 18px;
  margin-bottom: 5px;
}

.rank-text em {
  color: #e11d48;
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}

.rank-text small {
  color: var(--slate-500);
  line-height: 1.6;
}

.dark-section {
  color: var(--white);
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800), var(--slate-900));
}

.dark-section .section-title {
  color: var(--white);
}

.dark-section .section-desc {
  color: var(--slate-400);
}

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

.trend-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 4;
  background: var(--slate-800);
}

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

.trend-card:hover img {
  transform: scale(1.12);
}

.trend-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(0, 0, 0, 0.9));
}

.trend-card span {
  position: absolute;
  z-index: 2;
  left: 16px;
  right: 16px;
  bottom: 16px;
}

.trend-card strong,
.trend-card em {
  display: block;
}

.trend-card strong {
  margin-bottom: 6px;
  color: var(--white);
  font-size: 16px;
}

.trend-card em {
  color: #f9a8d4;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

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

.category-tile {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--soft-shadow);
}

.category-tile img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.category-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.82));
}

.category-title,
.category-intro {
  position: absolute;
  left: 18px;
  right: 18px;
  z-index: 2;
  color: var(--white);
}

.category-title {
  bottom: 54px;
  font-size: 24px;
  font-weight: 900;
}

.category-intro {
  bottom: 18px;
  color: #ffedd5;
  font-size: 13px;
  line-height: 1.5;
}

.page-hero {
  color: var(--white);
  background: linear-gradient(135deg, var(--teal-600), var(--cyan-600));
}

.page-hero.rank-hero {
  background: linear-gradient(135deg, #9f1239, #be123c, #fb7185);
}

.page-hero.library-hero {
  background: linear-gradient(135deg, var(--amber-900), var(--orange-900), var(--rose-900));
}

.page-hero.category-hero {
  background: linear-gradient(135deg, var(--slate-900), var(--teal-600));
}

.page-hero-inner {
  padding: 64px 0;
}

.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: #cffafe;
  font-size: 19px;
  line-height: 1.8;
}

.library-hero p,
.rank-hero p {
  color: #ffedd5;
}

.catalog-section {
  padding: 46px 0 76px;
}

.catalog-section > h2 {
  margin: 0 0 24px;
  font-size: 32px;
  color: var(--slate-800);
}

.filter-panel {
  margin-bottom: 30px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

.filter-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--slate-800);
  font-size: 18px;
}

.filter-heading span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--teal-500);
}

.filter-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px;
  gap: 14px;
}

.filter-controls input,
.filter-controls select {
  width: 100%;
  min-height: 48px;
  border: 2px solid var(--slate-200);
  border-radius: 14px;
  background: var(--white);
  padding: 0 14px;
  color: var(--slate-800);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.filter-controls input:focus,
.filter-controls select:focus {
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

.empty-state {
  display: none;
  margin-top: 24px;
  padding: 26px;
  border-radius: var(--radius-lg);
  color: var(--slate-600);
  background: var(--white);
  text-align: center;
  box-shadow: var(--soft-shadow);
}

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

.detail-wrap {
  padding: 38px 0 78px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--slate-600);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--amber-700);
  font-weight: 800;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-card,
.side-card {
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--white);
  box-shadow: var(--soft-shadow);
}

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

.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: var(--white);
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-circle {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 999px;
  color: var(--amber-900);
  background: var(--amber-300);
  box-shadow: 0 0 0 14px rgba(255, 209, 102, 0.16);
  font-size: 30px;
  font-weight: 900;
}

.player-title {
  padding: 22px 24px;
}

.player-title h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--slate-800);
}

.player-title p {
  margin: 0;
  color: var(--slate-600);
  line-height: 1.8;
}

.detail-card {
  margin-top: 24px;
  padding: 28px;
}

.detail-card h2,
.side-card h2 {
  margin: 0 0 16px;
  color: var(--slate-800);
  font-size: 24px;
}

.detail-card p {
  color: var(--slate-600);
  line-height: 1.9;
}

.detail-tags {
  margin-top: 18px;
}

.detail-tags span {
  padding: 7px 10px;
  color: var(--teal-600);
  background: #ccfbf1;
}

.side-card {
  padding: 20px;
  margin-bottom: 22px;
}

.side-poster {
  overflow: hidden;
  border-radius: 18px;
  margin-bottom: 18px;
}

.side-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

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

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--slate-200);
}

.meta-row dt {
  color: var(--slate-500);
}

.meta-row dd {
  margin: 0;
  text-align: right;
  font-weight: 900;
  color: var(--slate-800);
}

.related-list {
  display: grid;
  gap: 12px;
}

.mini-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: var(--slate-50);
  transition: background 0.2s ease, transform 0.2s ease;
}

.mini-card:hover {
  background: var(--amber-50);
  transform: translateX(4px);
}

.mini-card img {
  width: 74px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.35s ease;
}

.mini-card strong,
.mini-card em {
  display: block;
}

.mini-card strong {
  margin-bottom: 6px;
  color: var(--slate-800);
  line-height: 1.35;
}

.mini-card em {
  color: var(--slate-500);
  font-size: 12px;
  font-style: normal;
  line-height: 1.5;
}

.site-footer {
  color: var(--slate-300);
  background: linear-gradient(135deg, var(--slate-900), var(--slate-800), var(--slate-900));
  padding: 58px 0 24px;
}

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

.site-footer h2,
.site-footer h3 {
  margin: 0 0 16px;
  color: var(--amber-300);
}

.site-footer p {
  margin: 0;
  color: var(--slate-400);
  line-height: 1.8;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li + li {
  margin-top: 10px;
}

.site-footer a {
  color: var(--slate-300);
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--amber-300);
}

.keyword-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.keyword-cloud a {
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

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

  .menu-toggle {
    display: block;
  }

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 52px;
  }

  .hero-poster {
    max-width: 320px;
    transform: none;
  }

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

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

@media (max-width: 760px) {
  .page-main {
    padding-top: 64px;
  }

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

  .hero-carousel,
  .hero-stage {
    min-height: 760px;
  }

  .hero-content h1,
  .hero-content h2 {
    font-size: clamp(36px, 13vw, 54px);
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-controls {
    bottom: 16px;
  }

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

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

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

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

  .rank-item {
    grid-template-columns: 42px 96px minmax(0, 1fr);
    gap: 12px;
  }

  .rank-item img {
    width: 96px;
  }

  .player-title,
  .detail-card,
  .side-card {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .trend-grid,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 240px;
  }
}
