:root {
  --bg: #f6f9ff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #2563eb;
  --brand-2: #06b6d4;
  --deep: #0b1220;
  --card: #ffffff;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.nav-wrap {
  max-width: 1240px;
  height: 72px;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 22px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

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

.nav-link,
.mobile-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #334155;
  font-weight: 700;
  transition: 0.2s ease;
}

.nav-link:hover,
.mobile-link:hover,
.nav-link.active,
.mobile-link.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.18);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

.mobile-nav {
  display: none;
  padding: 0 22px 18px;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-slider,
.page-hero,
.detail-hero {
  max-width: 1240px;
  margin: 28px auto 0;
  border-radius: 30px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}

.hero-slider {
  min-height: 560px;
  background: var(--deep);
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 30%, rgba(6, 182, 212, 0.35), transparent 32%),
    linear-gradient(90deg, rgba(5, 11, 25, 0.92) 0%, rgba(15, 23, 42, 0.72) 46%, rgba(15, 23, 42, 0.14) 100%),
    linear-gradient(0deg, rgba(15, 23, 42, 0.7), transparent 44%);
}

.hero-content {
  position: absolute;
  left: clamp(24px, 6vw, 78px);
  top: 50%;
  transform: translateY(-50%);
  max-width: 660px;
  color: #fff;
}

.eyebrow,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  color: #dff8ff;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.82), rgba(6, 182, 212, 0.82));
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1 {
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.95;
  font-weight: 950;
  margin-bottom: 22px;
  text-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.hero-content p,
.page-hero p,
.detail-copy p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.85;
  margin-bottom: 24px;
}

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

.hero-tags span,
.card-tags span,
.detail-tags span {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.88);
}

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

.primary-btn,
.ghost-btn,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

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

.ghost-btn {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
}

.hero-dots {
  position: absolute;
  left: clamp(24px, 6vw, 78px);
  bottom: 34px;
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: 0.2s ease;
}

.hero-dot.active {
  width: 36px;
  background: #fff;
}

.section-wrap {
  max-width: 1240px;
  margin: 42px auto;
  padding: 0 22px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.content-card h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  font-weight: 950;
  color: var(--text);
}

.text-link {
  color: var(--brand);
  background: #eaf5ff;
}

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

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

.category-card {
  position: relative;
  min-height: 210px;
  border-radius: 24px;
  padding: 22px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.18);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  transition: 0.35s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.15), rgba(15, 23, 42, 0.78));
}

.category-card span,
.category-card p {
  position: relative;
  z-index: 2;
}

.category-card span {
  display: block;
  margin-top: 72px;
  font-size: 24px;
  font-weight: 950;
}

.category-card p {
  margin-top: 10px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
  font-size: 14px;
}

.category-card:hover img {
  transform: scale(1.08);
  opacity: 0.48;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.7fr) repeat(3, minmax(150px, 0.8fr));
  gap: 14px;
  margin-bottom: 24px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.filter-panel label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8fafc;
  padding: 0 14px;
  color: var(--text);
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

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

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

.movie-card {
  border-radius: 22px;
  background: var(--card);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.88);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  transition: 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.14);
}

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

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

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

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(15, 23, 42, 0.74));
}

.poster-badge,
.poster-meta {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.poster-badge {
  left: 10px;
  top: 10px;
  padding: 5px 9px;
  background: linear-gradient(135deg, #ef4444, #f97316);
}

.poster-meta {
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

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

.movie-card-body h2 {
  min-height: 42px;
  font-size: 16px;
  line-height: 1.32;
  color: var(--text);
  font-weight: 950;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-body p {
  min-height: 40px;
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-tags span {
  color: #0369a1;
  background: #e0f2fe;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: start;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 44px 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border-radius: 18px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: 0.2s ease;
}

.rank-item:hover {
  transform: translateX(5px);
  border-color: rgba(37, 99, 235, 0.35);
}

.rank-num {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.rank-item img {
  width: 56px;
  height: 76px;
  object-fit: cover;
  border-radius: 12px;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy strong {
  color: var(--text);
  font-weight: 900;
}

.rank-copy small {
  color: var(--muted);
  margin-top: 4px;
}

.rank-item em {
  color: var(--brand);
  font-style: normal;
  font-weight: 900;
}

.feature-panel {
  position: sticky;
  top: 98px;
  min-height: 420px;
  border-radius: 30px;
  padding: 34px;
  color: #fff;
  background:
    radial-gradient(circle at top right, rgba(6, 182, 212, 0.42), transparent 35%),
    linear-gradient(135deg, #0f172a, #1e3a8a 60%, #0891b2);
  box-shadow: var(--shadow);
}

.feature-panel h2 {
  font-size: 38px;
  line-height: 1.15;
  font-weight: 950;
  margin-bottom: 18px;
}

.feature-panel p {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
  margin-bottom: 24px;
}

.page-hero {
  min-height: 300px;
  padding: clamp(34px, 6vw, 76px);
  color: #fff;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 78% 30%, rgba(6, 182, 212, 0.45), transparent 26%),
    linear-gradient(135deg, #0f172a, #1d4ed8 64%, #06b6d4);
}

.page-hero h1 {
  color: #fff;
  margin-bottom: 16px;
}

.page-hero p {
  max-width: 760px;
}

.breadcrumb {
  max-width: 1240px;
  margin: 24px auto 0;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 700;
}

.breadcrumb a {
  color: var(--brand);
}

.detail-hero {
  padding: clamp(22px, 4vw, 42px);
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  background:
    radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.32), transparent 28%),
    linear-gradient(135deg, #0f172a, #1e3a8a 58%, #0e7490);
}

.detail-poster img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.32);
}

.detail-copy h1 {
  color: #fff;
  margin-bottom: 16px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
}

.detail-meta span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #dff8ff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.player-section {
  margin-top: 28px;
}

.player-shell {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  background: #020617;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #fff;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.28), rgba(2, 6, 23, 0.66));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-icon {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  font-size: 34px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.32);
}

.play-cover strong {
  font-size: 20px;
}

.player-shell.is-playing .play-cover {
  opacity: 0;
  visibility: hidden;
}

.player-error {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #fecaca;
  font-weight: 800;
  text-align: center;
}

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

.content-card {
  padding: 28px;
  border-radius: 26px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.content-card h2 {
  font-size: 26px;
  margin-bottom: 16px;
}

.content-card p {
  color: #334155;
  line-height: 1.95;
}

.empty-result {
  display: none;
  padding: 24px;
  border-radius: 20px;
  text-align: center;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
}

.empty-result.show {
  display: block;
}

.site-footer {
  margin-top: 70px;
  background: #0f172a;
  color: #cbd5e1;
}

.footer-grid {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 22px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 32px;
}

.footer-brand {
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  margin-bottom: 16px;
}

.site-footer p {
  max-width: 520px;
  line-height: 1.8;
}

.site-footer h2 {
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 14px;
}

.site-footer a {
  display: block;
  color: #cbd5e1;
  margin: 8px 0;
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #94a3b8;
}

@media (max-width: 1100px) {
  .category-grid,
  .large-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

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

  .feature-panel {
    position: static;
  }
}

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

  .nav-toggle {
    display: flex;
  }

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

  .hero-slider {
    margin-top: 14px;
    border-radius: 0;
    min-height: 640px;
  }

  .hero-content {
    left: 22px;
    right: 22px;
    top: 52%;
  }

  .hero-content h1 {
    font-size: 42px;
  }

  .hero-content p {
    font-size: 15px;
  }

  .hero-dots {
    left: 22px;
  }

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

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

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

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

  .rank-item {
    grid-template-columns: 36px 48px minmax(0, 1fr);
  }

  .rank-item em {
    display: none;
  }

  .detail-hero {
    grid-template-columns: 1fr;
    border-radius: 0;
    margin-top: 18px;
  }

  .detail-poster {
    max-width: 260px;
  }

  .page-hero {
    border-radius: 0;
    margin-top: 14px;
  }

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

  .footer-bottom {
    flex-direction: column;
  }
}

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

  .nav-wrap {
    padding: 0 14px;
  }

  .brand-copy strong {
    font-size: 18px;
  }
}
