:root {
  color-scheme: light;
  --blue-950: #172554;
  --blue-900: #1e3a8a;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --indigo-600: #4f46e5;
  --purple-700: #7e22ce;
  --pink-500: #ec4899;
  --cyan-400: #22d3ee;
  --stone-950: #0c0a09;
  --stone-900: #1c1917;
  --stone-800: #292524;
  --stone-700: #44403c;
  --stone-600: #57534e;
  --stone-500: #78716c;
  --stone-200: #e7e5e4;
  --stone-100: #f5f5f4;
  --white: #ffffff;
  --shadow-soft: 0 18px 45px rgba(30, 64, 175, 0.16);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.10);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  color: var(--stone-800);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 30rem),
    linear-gradient(180deg, #f8fbff 0%, #f5f5f4 45%, #ffffff 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(37, 99, 235, 0.18);
  background: rgba(239, 246, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(30, 64, 175, 0.10);
}

.topbar {
  background: linear-gradient(90deg, rgba(239, 246, 255, 0.94), rgba(238, 242, 255, 0.94), rgba(250, 245, 255, 0.94));
}

.header-main {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 80px;
}

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

.brand-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: white;
  font-size: 18px;
  background: linear-gradient(135deg, var(--blue-600), var(--purple-700));
  box-shadow: 0 12px 24px rgba(79, 70, 229, 0.30);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand:hover .brand-icon {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 18px 30px rgba(79, 70, 229, 0.38);
}

.brand-text strong,
.footer-brand strong {
  display: block;
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  background: linear-gradient(90deg, var(--blue-800), var(--purple-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small,
.footer-brand small {
  display: block;
  margin-top: 4px;
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 700;
}

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

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--blue-900);
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
  white-space: nowrap;
}

.nav-link:hover,
.mobile-link:hover {
  color: var(--blue-800);
  background: rgba(191, 219, 254, 0.55);
}

.nav-link.is-active,
.mobile-link.is-active {
  color: white;
  background: linear-gradient(90deg, var(--blue-600), var(--indigo-600));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 260px;
  padding: 5px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.70);
}

.header-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 8px;
  color: var(--blue-950);
}

.header-search button,
.primary-button,
.secondary-button,
.text-button,
.filter-panel button {
  border: 0;
  cursor: pointer;
}

.header-search button {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 10px;
  color: white;
  font-weight: 800;
  background: linear-gradient(90deg, var(--blue-600), var(--indigo-600));
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(191, 219, 254, 0.50);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--blue-900);
}

.mobile-nav {
  display: none;
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-link {
  padding: 12px 14px;
}

.category-strip {
  border-top: 1px solid rgba(37, 99, 235, 0.10);
  background: rgba(255, 255, 255, 0.60);
}

.strip-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: none;
}

.strip-scroll::-webkit-scrollbar {
  display: none;
}

.strip-scroll a {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--blue-800);
  font-size: 14px;
  font-weight: 800;
  background: rgba(219, 234, 254, 0.80);
  transition: background 0.2s ease, transform 0.2s ease;
}

.strip-scroll a:hover {
  background: rgba(191, 219, 254, 1);
  transform: translateY(-1px);
}

.hero-carousel {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  color: white;
  background: var(--blue-950);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

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

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 25%, rgba(236, 72, 153, 0.32), transparent 28rem),
    linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(30, 64, 175, 0.72) 42%, rgba(15, 23, 42, 0.42)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.95), transparent 38%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.72fr);
  gap: 42px;
  align-items: center;
  padding: 84px 0 94px;
}

.hero-copy {
  max-width: 730px;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(147, 197, 253, 0.40);
  border-radius: 999px;
  color: #bfdbfe;
  font-size: 14px;
  font-weight: 800;
  background: rgba(15, 23, 42, 0.30);
  backdrop-filter: blur(12px);
}

.hero-copy h1 {
  margin: 20px 0 18px;
  font-size: clamp(42px, 7vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.gradient-text {
  background: linear-gradient(90deg, #bfdbfe, #f5f3ff, #fbcfe8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 0 14px;
  color: #dbeafe;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 300;
}

.hero-desc {
  max-width: 680px;
  margin: 0 0 28px;
  color: rgba(219, 234, 254, 0.84);
  font-size: 17px;
  line-height: 1.9;
}

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

.primary-button,
.secondary-button,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 14px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  padding: 14px 22px;
  color: white;
  background: linear-gradient(90deg, var(--blue-600), var(--indigo-600));
  box-shadow: 0 18px 30px rgba(37, 99, 235, 0.34);
}

.secondary-button {
  padding: 13px 20px;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.text-button {
  color: var(--blue-700);
  font-weight: 900;
}

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

.hero-panel {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-xl);
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
  backdrop-filter: blur(18px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(126, 34, 206, 0.24));
}

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

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

.hero-poster-info {
  position: absolute;
  inset: auto 0 0;
  padding: 22px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent);
}

.hero-poster-info h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.hero-poster-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.6;
}

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

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

.hero-dots button.is-active {
  width: 34px;
  background: white;
}

.section {
  padding: 70px 0;
}

.section.alt {
  background: rgba(239, 246, 255, 0.65);
}

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

.section-head.center {
  display: block;
  text-align: center;
}

.section-head h2 {
  margin: 10px 0 8px;
  color: var(--stone-800);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 0;
  color: var(--stone-600);
  line-height: 1.8;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 22px 46px rgba(30, 64, 175, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.80), rgba(243, 232, 255, 0.80));
}

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

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

.poster-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.70), transparent 55%);
}

.card-badge,
.card-duration,
.play-dot,
.detail-tag,
.tag-row span,
.meta-pill,
.filter-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  max-width: calc(100% - 24px);
  padding: 6px 10px;
  color: white;
  font-size: 12px;
  background: rgba(15, 23, 42, 0.66);
  backdrop-filter: blur(10px);
}

.card-duration {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 9px;
  color: white;
  font-size: 12px;
  background: rgba(37, 99, 235, 0.78);
}

.play-dot {
  position: absolute;
  right: 14px;
  bottom: 14px;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: white;
  background: linear-gradient(135deg, var(--blue-600), var(--purple-700));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.movie-card-body {
  padding: 16px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 9px 0 8px;
  color: var(--stone-900);
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover,
.ranking-info h3 a:hover,
.breadcrumb a:hover {
  color: var(--blue-700);
}

.movie-card p {
  margin: 0 0 12px;
  color: var(--stone-600);
  font-size: 14px;
  line-height: 1.75;
}

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

.tag-row span,
.detail-tag {
  padding: 5px 9px;
  color: var(--blue-800);
  font-size: 12px;
  background: #dbeafe;
}

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

.category-card,
.stat-card,
.content-card,
.filter-panel,
.contact-card {
  border: 1px solid rgba(37, 99, 235, 0.13);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.category-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  min-height: 210px;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(126, 34, 206, 0.16), transparent 13rem),
    radial-gradient(circle at bottom left, rgba(37, 99, 235, 0.14), transparent 12rem);
}

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

.category-card h3,
.stat-card h3 {
  margin: 0 0 12px;
  color: var(--stone-900);
  font-size: 22px;
}

.category-card p,
.stat-card p,
.content-card p,
.contact-card p {
  color: var(--stone-600);
  line-height: 1.8;
}

.category-count {
  display: block;
  margin: 18px 0 20px;
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
  background: linear-gradient(90deg, var(--blue-700), var(--purple-700));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-card {
  padding: 22px;
}

.stat-card strong {
  display: block;
  font-size: 34px;
  color: var(--blue-700);
}

.ranking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
  gap: 28px;
  align-items: start;
}

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

.ranking-item {
  display: grid;
  grid-template-columns: 64px 94px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(226, 232, 240, 0.90);
  border-radius: var(--radius-lg);
  background: white;
  box-shadow: var(--shadow-card);
}

.ranking-number {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  color: white;
  font-size: 20px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--blue-600), var(--purple-700));
}

.ranking-cover {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  aspect-ratio: 3 / 4;
  background: #dbeafe;
}

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

.ranking-info h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.ranking-info p {
  margin: 0 0 8px;
  color: var(--stone-600);
  line-height: 1.6;
}

.ranking-info div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  gap: 16px;
  padding: 20px;
  margin-bottom: 24px;
}

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

.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 12px;
  outline: none;
  padding: 12px 14px;
  color: var(--stone-800);
  background: #fff;
}

.filter-panel button {
  padding: 12px 18px;
  border-radius: 12px;
  color: white;
  font-weight: 900;
  background: linear-gradient(90deg, var(--blue-600), var(--indigo-600));
}

.result-status {
  color: var(--stone-600);
  font-weight: 700;
}

.page-hero,
.detail-hero {
  padding: 64px 0;
  color: white;
  background:
    radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.22), transparent 22rem),
    radial-gradient(circle at 85% 10%, rgba(236, 72, 153, 0.26), transparent 24rem),
    linear-gradient(135deg, #0f172a, #1e3a8a 56%, #3b0764);
}

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

.page-hero p,
.detail-copy p {
  max-width: 760px;
  color: rgba(219, 234, 254, 0.86);
  font-size: 17px;
  line-height: 1.9;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(219, 234, 254, 0.82);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb span::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.7;
}

.pagination-hint {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  color: var(--blue-900);
  background: #dbeafe;
  font-weight: 800;
}

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

.detail-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.35fr);
  gap: 34px;
  align-items: center;
}

.detail-cover {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  aspect-ratio: 3 / 4;
  max-width: 430px;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.35), rgba(126, 34, 206, 0.32));
}

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

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.meta-pill {
  padding: 8px 12px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.player-section {
  padding: 44px 0 70px;
  background: #0f172a;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #020617;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.38);
}

.player-frame video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-play-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.46), rgba(2, 6, 23, 0.18));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.video-play-layer.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.video-play-button {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border: 0;
  border-radius: 999px;
  color: white;
  font-size: 36px;
  cursor: pointer;
  pointer-events: auto;
  background: linear-gradient(135deg, var(--blue-600), var(--purple-700));
  box-shadow: 0 24px 48px rgba(37, 99, 235, 0.35);
}

.player-message {
  padding: 12px 4px 0;
  color: #bfdbfe;
  line-height: 1.7;
}

.detail-main {
  padding: 64px 0;
}

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

.content-card {
  padding: 28px;
  margin-bottom: 22px;
}

.content-card h2 {
  margin: 0 0 16px;
  color: var(--stone-900);
  font-size: 28px;
}

.content-card p {
  margin: 0;
  font-size: 16px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.side-card {
  position: sticky;
  top: 122px;
}

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

.related-mini {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 14px;
  background: #f8fafc;
}

.related-mini img {
  width: 72px;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  object-fit: cover;
  background: #dbeafe;
}

.related-mini h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.related-mini p {
  margin: 0;
  color: var(--stone-500);
  font-size: 12px;
  line-height: 1.5;
}

.text-page {
  padding: 64px 0;
}

.text-page .content-card {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

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

.contact-card {
  padding: 24px;
}

.empty-state {
  display: none;
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  color: var(--stone-600);
  background: white;
}

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

.site-footer {
  color: #bfdbfe;
  background:
    radial-gradient(circle at 70% 10%, rgba(126, 34, 206, 0.26), transparent 20rem),
    linear-gradient(135deg, #0f172a, #172554 60%, #312e81);
}

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

.site-footer h3 {
  margin: 0 0 16px;
  color: #dbeafe;
}

.site-footer p {
  margin: 16px 0 0;
  color: #93c5fd;
  line-height: 1.8;
}

.site-footer a {
  display: block;
  margin: 10px 0;
  color: #93c5fd;
  transition: color 0.2s ease, transform 0.2s ease;
}

.site-footer a:hover {
  color: white;
  transform: translateX(4px);
}

.footer-brand .brand-icon {
  width: 40px;
  height: 40px;
}

.footer-brand strong {
  color: #dbeafe;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
}

.footer-brand small {
  color: #60a5fa;
}

.footer-bottom {
  border-top: 1px solid rgba(147, 197, 253, 0.14);
}

.footer-bottom p {
  margin: 0;
  padding: 20px 0;
  color: #60a5fa;
  text-align: center;
}

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

  .menu-toggle {
    display: block;
  }

  .header-search {
    margin-left: auto;
  }

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

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

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

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

  .side-card {
    position: static;
  }
}

@media (max-width: 820px) {
  .header-main {
    min-height: 72px;
  }

  .header-search {
    display: none;
  }

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

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

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

  .hero-panel {
    max-width: 390px;
  }

  .section-head {
    display: block;
  }

  .section-head .text-button {
    margin-top: 12px;
  }

  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .stats-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .brand-text small {
    display: none;
  }

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

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

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .movie-grid,
  .movie-grid.compact,
  .category-grid,
  .stats-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .ranking-item {
    grid-template-columns: 48px 74px minmax(0, 1fr);
    gap: 10px;
  }

  .ranking-number {
    width: 44px;
    height: 44px;
    font-size: 17px;
  }

  .detail-cover {
    max-width: 100%;
  }

  .content-card {
    padding: 22px;
  }

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