:root {
  --color-slate-950: #020617;
  --color-slate-900: #0f172a;
  --color-slate-800: #1e293b;
  --color-slate-700: #334155;
  --color-slate-100: #f1f5f9;
  --color-slate-50: #f8fafc;
  --color-blue-700: #1d4ed8;
  --color-blue-600: #2563eb;
  --color-blue-500: #3b82f6;
  --color-blue-400: #60a5fa;
  --color-amber-400: #fbbf24;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.10);
  --shadow-card-hover: 0 24px 60px rgba(15, 23, 42, 0.18);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  background: #ffffff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-slate-800), var(--color-slate-700), var(--color-slate-800));
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.20);
}

.navbar {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.logo-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-blue-500), #7c3aed);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.35);
}

.logo-title {
  display: block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.15;
}

.logo-subtitle {
  display: block;
  margin-top: 2px;
  color: #cbd5e1;
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #e2e8f0;
  font-weight: 700;
}

.nav-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--color-blue-400);
  transform: translateY(-1px);
}

.nav-search {
  position: relative;
  width: min(300px, 28vw);
}

.nav-search input,
.filter-input,
.filter-select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  padding: 11px 16px;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-search input::placeholder {
  color: #cbd5e1;
}

.nav-search input:focus,
.filter-input:focus,
.filter-select:focus {
  border-color: var(--color-blue-400);
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

.search-results {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  display: none;
  width: min(420px, 88vw);
  max-height: 480px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #ffffff;
  color: var(--text-main);
  box-shadow: var(--shadow-card-hover);
}

.search-results.is-open {
  display: block;
}

.search-result-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.search-result-item:hover {
  background: #eff6ff;
}

.search-result-item img {
  width: 54px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
}

.search-result-title {
  font-weight: 800;
}

.search-result-meta {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
}

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

.mobile-panel {
  display: none;
  border-top: 1px solid rgba(203, 213, 225, 0.18);
  padding: 14px 0 18px;
}

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

.mobile-panel a {
  display: block;
  padding: 10px 0;
  color: #e2e8f0;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 20%, rgba(59, 130, 246, 0.35), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(124, 58, 237, 0.28), transparent 32%),
    linear-gradient(135deg, var(--color-slate-900), #0b2f72 52%, var(--color-slate-800));
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 56px 56px;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center;
  gap: 48px;
  min-height: 620px;
  padding: 72px 0;
}

.hero-eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(96, 165, 250, 0.38);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.25);
  color: #bfdbfe;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 14px;
  backdrop-filter: blur(16px);
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.hero h1 span {
  color: var(--color-blue-400);
}

.hero-lead {
  max-width: 720px;
  color: #dbeafe;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.7;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 800;
  padding: 12px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--color-blue-600);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.35);
}

.btn-primary:hover {
  background: var(--color-blue-700);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.20);
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  backdrop-filter: blur(16px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.hero-stat {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  padding: 16px;
  backdrop-filter: blur(16px);
}

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

.hero-stat span {
  color: #cbd5e1;
  font-size: 13px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.82fr 1fr;
  gap: 18px;
  align-items: end;
  opacity: 0;
  transform: translateX(24px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-poster {
  position: relative;
  overflow: hidden;
  min-height: 455px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  box-shadow: 0 34px 90px rgba(2, 6, 23, 0.42);
}

.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 455px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hero-poster:hover img {
  transform: scale(1.06);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(2, 6, 23, 0.82));
}

.hero-card {
  position: relative;
  z-index: 2;
  margin: 0 -90px 28px 0;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.74);
  padding: 22px;
  box-shadow: 0 28px 72px rgba(2, 6, 23, 0.35);
  backdrop-filter: blur(18px);
}

.hero-card h2 {
  margin: 12px 0 10px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.18;
}

.hero-card p {
  display: -webkit-box;
  margin: 0 0 16px;
  overflow: hidden;
  color: #cbd5e1;
  line-height: 1.65;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.meta-pill,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--color-blue-700);
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.hero-card .meta-pill {
  background: rgba(37, 99, 235, 0.22);
  color: #bfdbfe;
}

.hero-dots {
  position: absolute;
  right: 24px;
  bottom: 18px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

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

.hero-dot.is-active {
  width: 28px;
  background: var(--color-blue-400);
}

.section {
  padding: 72px 0;
}

.section-soft {
  background: var(--color-slate-50);
}

.section-blue {
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
}

.section-dark {
  color: #ffffff;
  background: linear-gradient(90deg, var(--color-slate-900), #0b2f72);
}

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

.section-title {
  margin: 10px 0 0;
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.section-title span {
  color: var(--color-blue-600);
}

.section-dark .section-title span {
  color: var(--color-blue-400);
}

.section-desc {
  max-width: 680px;
  margin: 10px 0 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-dark .section-desc {
  color: #cbd5e1;
}

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

.feature-card,
.category-card {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover,
.category-card:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
  box-shadow: var(--shadow-card-hover);
}

.feature-icon,
.category-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 16px;
  background: #dbeafe;
  color: var(--color-blue-700);
  font-size: 24px;
  margin-bottom: 16px;
}

.feature-card h3,
.category-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
}

.feature-card p,
.category-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

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

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

.movie-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #bfdbfe;
  box-shadow: var(--shadow-card-hover);
}

.poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #dbeafe, #e0e7ff 48%, #f8fafc);
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease, opacity 0.2s ease;
}

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

.poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  color: #1e3a8a;
  text-align: center;
  font-weight: 900;
  line-height: 1.35;
}

.poster img.is-missing,
.hero-poster img.is-missing,
.detail-poster img.is-missing,
.rank-thumb img.is-missing,
.sidebar-item img.is-missing {
  opacity: 0;
}

.poster-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(2, 6, 23, 0.0);
  color: #ffffff;
  font-size: 42px;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.movie-card:hover .poster-overlay,
.horizontal-card:hover .poster-overlay {
  opacity: 1;
  background: rgba(2, 6, 23, 0.38);
}

.poster-badge,
.poster-year {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}

.poster-badge {
  top: 12px;
  right: 12px;
  background: var(--color-blue-600);
}

.poster-year {
  left: 12px;
  bottom: 12px;
  background: rgba(2, 6, 23, 0.72);
}

.movie-body {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  padding: 16px;
}

.movie-title {
  display: -webkit-box;
  min-height: 2.7em;
  margin: 0 0 10px;
  overflow: hidden;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-title,
.horizontal-card:hover .movie-title {
  color: var(--color-blue-600);
}

.movie-desc {
  display: -webkit-box;
  margin: 0 0 14px;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  color: #475569;
  font-size: 12px;
}

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

.horizontal-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.horizontal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.horizontal-card .poster {
  aspect-ratio: auto;
  min-height: 160px;
}

.horizontal-body {
  padding: 16px;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 56px 92px 1fr;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  padding: 12px;
  backdrop-filter: blur(16px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.14);
}

.rank-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: var(--color-blue-600);
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.rank-item:nth-child(-n+3) .rank-number {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}

.rank-thumb {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
}

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

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
}

.rank-info p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 15% 15%, rgba(59, 130, 246, 0.30), transparent 32%),
    linear-gradient(135deg, var(--color-slate-900), #12316d, var(--color-slate-800));
  padding: 78px 0;
}

.page-hero h1 {
  margin: 12px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.8;
}

.filters {
  display: grid;
  grid-template-columns: 1fr 170px 170px;
  gap: 14px;
  margin-bottom: 28px;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
  padding: 18px;
}

.filter-input,
.filter-select {
  border-color: #cbd5e1;
  background: #ffffff;
  color: var(--text-main);
}

.empty-state {
  display: none;
  border: 1px dashed #cbd5e1;
  border-radius: 18px;
  color: var(--text-muted);
  padding: 42px;
  text-align: center;
}

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

.detail-hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.28), transparent 35%),
    linear-gradient(135deg, var(--color-slate-950), var(--color-slate-900) 54%, #0b2f72);
  padding: 52px 0 72px;
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 34px;
  align-items: start;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 28px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  box-shadow: 0 34px 90px rgba(2, 6, 23, 0.42);
}

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

.detail-info h1 {
  margin: 16px 0 14px;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.detail-line {
  max-width: 820px;
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.8;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.detail-tag {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #dbeafe;
  font-size: 13px;
  font-weight: 800;
  padding: 7px 11px;
}

.player-card {
  overflow: hidden;
  border-radius: 26px;
  background: #000000;
  box-shadow: var(--shadow-card-hover);
}

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

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.24), rgba(2, 6, 23, 0.76));
  cursor: pointer;
  transition: opacity 0.25s ease;
}

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

.play-button {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--color-blue-600);
  color: #ffffff;
  font-size: 34px;
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.42);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.play-button:hover {
  transform: scale(1.06);
  background: var(--color-blue-700);
}

.player-note {
  color: #cbd5e1;
  background: var(--color-slate-900);
  font-size: 14px;
  line-height: 1.6;
  padding: 16px 20px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px;
}

.content-card {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  padding: 28px;
}

.content-card h2,
.sidebar-card h2 {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 900;
}

.content-card p {
  margin: 0 0 18px;
  color: #334155;
  font-size: 17px;
  line-height: 1.9;
}

.sidebar-card {
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  padding: 20px;
}

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

.sidebar-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
}

.sidebar-item img {
  width: 64px;
  height: 86px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #dbeafe, #e0e7ff);
}

.sidebar-item h3 {
  display: -webkit-box;
  margin: 0 0 4px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sidebar-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #bfdbfe;
  font-size: 14px;
}

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

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(180deg, var(--color-slate-900), var(--color-slate-950));
  padding: 52px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.site-footer h3 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
}

.site-footer p,
.site-footer li {
  color: #cbd5e1;
  font-size: 14px;
  line-height: 1.8;
}

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

.site-footer a:hover {
  color: var(--color-blue-400);
}

.footer-bottom {
  margin-top: 32px;
  border-top: 1px solid rgba(203, 213, 225, 0.14);
  color: #94a3b8;
  font-size: 13px;
  padding-top: 22px;
  text-align: center;
}

.pagination-note {
  margin-top: 18px;
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 1100px) {
  .nav-search {
    width: 240px;
  }

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

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

  .hero-inner,
  .detail-layout,
  .content-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-card {
    margin-right: 0;
  }

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

@media (max-width: 820px) {
  .nav-links,
  .nav-search {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-inner {
    min-height: auto;
    padding: 58px 0;
  }

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

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

  .hero-card {
    order: 2;
  }

  .hero-poster {
    min-height: 330px;
  }

  .hero-poster img {
    min-height: 330px;
  }

  .hero-stats,
  .filters,
  .horizontal-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

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

  .horizontal-card {
    grid-template-columns: 112px 1fr;
  }

  .section-header {
    display: block;
  }

  .detail-info h1 {
    font-size: 38px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .logo-title {
    font-size: 17px;
  }

  .logo-subtitle {
    display: none;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-actions {
    display: grid;
  }

  .movie-grid,
  .movie-grid.compact,
  .feature-grid,
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .rank-item {
    grid-template-columns: 46px 76px 1fr;
    gap: 12px;
  }

  .rank-number {
    width: 42px;
    height: 42px;
    font-size: 18px;
  }

  .content-card {
    padding: 20px;
  }
}
