:root {
  color-scheme: light;
  --bg: #f8fafc;
  --bg-soft: #fff7fb;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --pink: #ec4899;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --yellow: #fde047;
  --dark: #111827;
  --shadow: 0 18px 45px rgba(31, 41, 55, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff7fb 0%, #f8fafc 28%, #ffffff 100%);
  line-height: 1.65;
}

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

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

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #ec4899 0%, #8b5cf6 52%, #3b82f6 100%);
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.25);
}

.nav-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.logo-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  color: #1f2937;
  background: var(--yellow);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 650;
  white-space: nowrap;
}

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

.nav-links a:hover {
  color: var(--yellow);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  border: 0;
  border-radius: 12px;
  padding: 9px 11px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.mobile-menu {
  display: none;
  padding: 0 0 16px;
}

.mobile-menu a {
  display: block;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 44px;
  background:
    radial-gradient(circle at 82% 18%, rgba(59, 130, 246, 0.28), transparent 34%),
    radial-gradient(circle at 22% 18%, rgba(236, 72, 153, 0.26), transparent 32%),
    linear-gradient(90deg, #ffe4f2 0%, #eee7ff 48%, #dbeafe 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.42) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 38px;
  align-items: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 999px;
  padding: 8px 14px;
  color: #7e22ce;
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 900;
  color: transparent;
  background: linear-gradient(90deg, #db2777, #7c3aed, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero p {
  margin: 0;
  max-width: 720px;
  font-size: 18px;
  color: #374151;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
  box-shadow: 0 14px 30px rgba(139, 92, 246, 0.32);
}

.btn-secondary {
  color: #6d28d9;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(139, 92, 246, 0.18);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(31, 41, 55, 0.16);
}

.hero-panel {
  position: relative;
  border-radius: 28px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-slide {
  display: none;
}

.hero-slide.is-active {
  display: block;
}

.hero-poster {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #fce7f3, #ede9fe, #dbeafe);
}

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

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

.hero-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 30px 24px 22px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.42), transparent);
}

.hero-caption h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.18;
}

.hero-caption p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
}

.hero-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 14px 0 0;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.28);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 28px;
  background: linear-gradient(90deg, #ec4899, #8b5cf6);
}

.section {
  padding: 48px 0;
}

.section-soft {
  background: linear-gradient(90deg, rgba(219, 234, 254, 0.46), rgba(245, 243, 255, 0.66));
}

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

.section-title {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  font-weight: 900;
  color: transparent;
  background: linear-gradient(90deg, #2563eb, #7c3aed, #db2777);
  -webkit-background-clip: text;
  background-clip: text;
}

.section-desc {
  margin: 8px 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.feature-list {
  display: grid;
  gap: 18px;
}

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 72, 153, 0.28);
  box-shadow: 0 24px 44px rgba(31, 41, 55, 0.16);
}

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

.poster-frame.wide {
  aspect-ratio: 16 / 9;
}

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

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

.image-missing {
  opacity: 0;
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  border-radius: 999px;
  padding: 4px 9px;
  color: #ffffff;
  background: linear-gradient(90deg, #ec4899, #f97316);
  font-size: 12px;
  font-weight: 800;
}

.play-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.74);
  backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 14px;
}

.card-title {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 8px;
  overflow: hidden;
  color: #111827;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 850;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-meta,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.card-line {
  display: -webkit-box;
  min-height: 42px;
  margin: 10px 0 0;
  overflow: hidden;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  color: #6d28d9;
  background: #f3e8ff;
  font-size: 12px;
  font-weight: 750;
}

.feature-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  border-radius: 24px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(31, 41, 55, 0.15);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.25;
}

.feature-card p {
  margin: 0;
  color: #4b5563;
}

.category-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  padding: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #8b5cf6 54%, #3b82f6);
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 52px rgba(99, 102, 241, 0.24);
}

.category-card h3 {
  margin: 0 0 10px;
  font-size: 23px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.count-pill {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  color: #1f2937;
  background: #fde047;
  font-size: 13px;
  font-weight: 900;
}

.toolbar {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 0.8fr;
  gap: 14px;
  margin: 0 0 26px;
  border: 1px solid rgba(229, 231, 235, 0.84);
  border-radius: 22px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.06);
  backdrop-filter: blur(14px);
}

.input,
.select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  color: #111827;
  background: #ffffff;
  font: inherit;
}

.input:focus,
.select:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.2);
}

.page-hero {
  padding: 42px 0;
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 20%, rgba(236, 72, 153, 0.38), transparent 32%),
    radial-gradient(circle at 86% 28%, rgba(59, 130, 246, 0.34), transparent 36%),
    linear-gradient(120deg, #111827, #312e81 54%, #1e3a8a);
}

.page-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.18;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.72);
}

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

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

.player-shell {
  overflow: hidden;
  border-radius: 24px;
  background: #0f172a;
  box-shadow: 0 28px 64px rgba(15, 23, 42, 0.24);
}

.video-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.12));
}

.player-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  color: #111827;
  background: #fde047;
  font-size: 30px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

.video-wrap.is-playing .player-overlay {
  opacity: 0;
  pointer-events: none;
}

.player-info {
  padding: 20px;
  color: #e5e7eb;
}

.panel {
  border: 1px solid rgba(229, 231, 235, 0.86);
  border-radius: 24px;
  padding: 22px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(31, 41, 55, 0.08);
}

.panel + .panel {
  margin-top: 20px;
}

.panel h2,
.panel h3 {
  margin: 0 0 12px;
  color: #111827;
}

.panel p {
  margin: 0;
  color: #4b5563;
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #eef2ff;
  border-radius: 16px;
  padding: 12px;
  background: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
  transform: translateX(4px);
  box-shadow: 0 12px 26px rgba(31, 41, 55, 0.1);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-weight: 800;
}

.rank-score {
  color: #db2777;
  font-weight: 900;
}

.site-footer {
  margin-top: 64px;
  color: #e5e7eb;
  background: linear-gradient(90deg, #111827, #1f2937, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 42px 0;
}

.footer-title {
  margin: 0 0 12px;
  color: transparent;
  background: linear-gradient(90deg, #f472b6, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 22px;
  font-weight: 900;
}

.footer-grid p,
.footer-grid a {
  color: #9ca3af;
  font-size: 14px;
}

.footer-grid a:hover {
  color: #f9a8d4;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px 0;
  color: #9ca3af;
  font-size: 13px;
  text-align: center;
}

.sitemap-list {
  columns: 4 220px;
  column-gap: 24px;
}

.sitemap-list a {
  display: block;
  break-inside: avoid;
  padding: 5px 0;
  color: #374151;
}

.sitemap-list a:hover {
  color: #7c3aed;
}

.empty-state {
  display: none;
  border-radius: 22px;
  padding: 28px;
  background: #ffffff;
  color: #6b7280;
  text-align: center;
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.08);
}

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

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

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

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

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

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

  .hero {
    padding: 34px 0 30px;
  }

  .hero-grid {
    gap: 24px;
  }

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

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

  .feature-card {
    grid-template-columns: 1fr;
  }

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

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

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

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

  .logo {
    font-size: 18px;
  }

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

  .card-title {
    min-height: auto;
  }
}
