:root {
  --blue-950: #0f172a;
  --blue-900: #1e3a8a;
  --blue-800: #1e40af;
  --cyan-500: #06b6d4;
  --cyan-300: #67e8f9;
  --red-600: #dc2626;
  --orange-500: #f97316;
  --green-600: #16a34a;
  --yellow-600: #ca8a04;
  --text: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --card: #ffffff;
  --bg: #f8fafc;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.nav-bar {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--blue-950);
  letter-spacing: -0.03em;
  font-size: 20px;
}
.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue-800), var(--cyan-500));
  box-shadow: 0 10px 24px rgba(6, 182, 212, 0.26);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  color: #475467;
  font-weight: 650;
  transition: 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--blue-900);
  background: #eef6ff;
}
.menu-toggle {
  display: none;
  border: 0;
  background: var(--blue-900);
  color: #ffffff;
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 18px;
}
.hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #0f2f76 0%, #1355a4 46%, #0891b2 100%);
  padding: 76px 0 64px;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.28;
}
.hero::before {
  width: 360px;
  height: 360px;
  left: 4%;
  top: 24px;
  background: #67e8f9;
}
.hero::after {
  width: 460px;
  height: 460px;
  right: -80px;
  bottom: -100px;
  background: #2563eb;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 46px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan-300);
  font-weight: 800;
  margin-bottom: 18px;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1.05;
  letter-spacing: -0.06em;
}
.hero h1 span {
  color: var(--cyan-300);
}
.hero p {
  margin: 0 0 28px;
  color: #dbeafe;
  font-size: 19px;
}
.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 13px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: 0.2s ease;
}
.btn.primary {
  background: #ffffff;
  color: #0f2f76;
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.2);
}
.btn.ghost {
  background: rgba(30, 64, 175, 0.42);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.44);
  backdrop-filter: blur(16px);
}
.btn:hover {
  transform: translateY(-2px);
}
.hero-panel {
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
}
.hero-slider {
  position: relative;
  min-height: 520px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #2563eb);
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.03), rgba(15, 23, 42, 0.9));
}
.hero-caption {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 26px;
}
.hero-caption h2 {
  margin: 0 0 9px;
  font-size: 30px;
}
.hero-caption p {
  margin: 0 0 14px;
  font-size: 15px;
  color: #e0f2fe;
}
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-tags span,
.tag-list span,
.info-pill,
.breadcrumb a,
.breadcrumb span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}
.hero-tags span {
  color: #cffafe;
  background: rgba(255, 255, 255, 0.16);
}
.hero-dots {
  position: absolute;
  z-index: 3;
  right: 20px;
  top: 20px;
  display: flex;
  gap: 8px;
}
.hero-dots button {
  width: 9px;
  height: 9px;
  border-radius: 99px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
}
.hero-dots button.active {
  width: 28px;
  background: #ffffff;
}
.section {
  padding: 62px 0;
}
.section.light-red {
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
}
.section.light-green {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}
.section.light-yellow {
  background: linear-gradient(135deg, #fefce8, #fff7ed);
}
.section.dark-blue {
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e3a8a 52%, #0f172a);
}
.section.white {
  background: #ffffff;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.section-head h2 {
  margin: 0 0 4px;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.04em;
}
.section-head p {
  margin: 0;
  color: var(--muted);
}
.dark-blue .section-head p {
  color: #bfdbfe;
}
.section-more {
  color: var(--red-600);
  font-weight: 800;
  white-space: nowrap;
}
.grid {
  display: grid;
  gap: 22px;
}
.grid.cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid.wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(226, 232, 240, 0.7);
}
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.poster-wrap {
  display: block;
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #2563eb);
}
.wide-card {
  display: grid;
  grid-template-columns: 180px 1fr;
}
.wide-card .poster-wrap {
  min-height: 238px;
  aspect-ratio: auto;
}
.poster-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.movie-card:hover .poster-wrap img {
  transform: scale(1.05);
}
.play-chip,
.rank-badge {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
}
.play-chip {
  width: 40px;
  height: 40px;
  right: 12px;
  bottom: 12px;
  background: rgba(220, 38, 38, 0.92);
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.3);
}
.rank-badge {
  min-width: 34px;
  height: 34px;
  left: 12px;
  top: 12px;
  background: linear-gradient(135deg, #ef4444, #f97316);
}
.card-body {
  padding: 16px;
}
.meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}
.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}
.card-body h3 a:hover {
  color: var(--red-600);
}
.card-body p {
  margin: 0 0 12px;
  color: #5b6475;
  font-size: 14px;
}
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-list span {
  color: #0e7490;
  background: #ecfeff;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.category-tile {
  min-height: 140px;
  padding: 22px;
  border-radius: 22px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
  transition: 0.2s ease;
}
.category-tile:hover {
  transform: translateY(-4px);
}
.category-tile strong {
  font-size: 22px;
}
.category-tile span {
  color: rgba(255, 255, 255, 0.84);
  font-size: 14px;
}
.grad-0 { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.grad-1 { background: linear-gradient(135deg, #ef4444, #ec4899); }
.grad-2 { background: linear-gradient(135deg, #16a34a, #10b981); }
.grad-3 { background: linear-gradient(135deg, #eab308, #f97316); }
.grad-4 { background: linear-gradient(135deg, #7c3aed, #4f46e5); }
.grad-5 { background: linear-gradient(135deg, #db2777, #e11d48); }
.grad-6 { background: linear-gradient(135deg, #0d9488, #06b6d4); }
.grad-7 { background: linear-gradient(135deg, #f97316, #dc2626); }
.grad-8 { background: linear-gradient(135deg, #475569, #1e293b); }
.grad-9 { background: linear-gradient(135deg, #0891b2, #4338ca); }
.page-hero {
  background: linear-gradient(135deg, #0f172a, #1e3a8a 62%, #0891b2);
  color: #ffffff;
  padding: 58px 0;
}
.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 6vw, 52px);
  letter-spacing: -0.05em;
}
.page-hero p {
  margin: 0;
  color: #dbeafe;
  max-width: 780px;
  font-size: 18px;
}
.filter-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  margin-bottom: 28px;
}
.filter-bar input,
.filter-bar select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 46px;
  padding: 0 14px;
  font: inherit;
  outline: none;
}
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--cyan-500);
  box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.12);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
}
.breadcrumb a,
.breadcrumb span {
  background: rgba(255, 255, 255, 0.12);
  color: #dbeafe;
}
.detail-hero {
  background: linear-gradient(135deg, #0f172a, #1e3a8a 55%, #0e7490);
  color: #ffffff;
  padding: 42px 0 58px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
  align-items: start;
}
.detail-poster {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, #0f172a, #2563eb);
}
.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}
.detail-info p {
  color: #dbeafe;
  font-size: 18px;
}
.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.info-pill {
  color: #cffafe;
  background: rgba(255, 255, 255, 0.14);
}
.player-section {
  margin-top: -30px;
  position: relative;
  z-index: 2;
}
.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: var(--shadow);
}
.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}
.player-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}
.play-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(30, 64, 175, 0.16), rgba(2, 6, 23, 0.72));
  font-size: 20px;
  font-weight: 900;
}
.play-overlay span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 18px 42px rgba(239, 68, 68, 0.35);
}
.play-overlay.hidden {
  display: none;
}
.content-card {
  border-radius: 24px;
  padding: 28px;
  background: #ffffff;
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.07);
  border: 1px solid rgba(226, 232, 240, 0.8);
}
.content-card h2 {
  margin-top: 0;
}
.content-card p {
  color: #475467;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.site-footer {
  color: #cbd5e1;
  background: #0f172a;
  padding: 48px 0 22px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}
.site-footer p {
  color: #94a3b8;
}
.footer-logo {
  color: #ffffff;
}
.footer-links {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.footer-links a:hover {
  color: #ffffff;
}
.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  color: #94a3b8;
  font-size: 14px;
}
.hidden-card {
  display: none !important;
}
.empty-state {
  display: none;
  text-align: center;
  color: #667085;
  padding: 40px 0;
}
.empty-state.show {
  display: block;
}
@media (max-width: 980px) {
  .hero-inner,
  .detail-grid,
  .footer-grid,
  .two-col {
    grid-template-columns: 1fr;
  }
  .grid.cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .nav-bar {
    height: auto;
    padding: 14px 0;
    align-items: flex-start;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
  }
  .nav-links.open {
    display: flex;
  }
  .hero {
    padding: 42px 0;
  }
  .hero-slider,
  .hero-slide img {
    min-height: 430px;
    height: 430px;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
  }
  .grid.cards,
  .grid.wide,
  .category-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }
  .wide-card {
    display: block;
  }
  .detail-poster {
    max-width: 320px;
  }
}
