
:root {
  --page-bg: #fbf7ff;
  --panel-bg: rgba(255, 255, 255, 0.82);
  --panel-strong: #ffffff;
  --text: #20132d;
  --muted: #766582;
  --border: rgba(124, 58, 237, 0.14);
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --accent: #ec4899;
  --accent-soft: #fdf2f8;
  --warm: #f97316;
  --shadow: 0 24px 70px rgba(82, 36, 132, 0.16);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(236, 72, 153, 0.14), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(124, 58, 237, 0.16), transparent 28%),
    linear-gradient(180deg, #fff7fe 0%, var(--page-bg) 46%, #ffffff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

.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(124, 58, 237, 0.12);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 15px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.25);
}

.brand-text {
  font-size: 1.14rem;
}

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

.nav-link {
  padding: 10px 15px;
  border-radius: 999px;
  color: #5b4967;
  font-weight: 700;
  transition: 0.22s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary-dark);
  background: rgba(124, 58, 237, 0.10);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.10);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--primary-dark);
}

.hero-shell {
  position: relative;
  overflow: hidden;
  padding: 34px 0 52px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.10), rgba(236, 72, 153, 0.10)),
    radial-gradient(circle at 78% 25%, rgba(255, 255, 255, 0.9), transparent 22%);
  pointer-events: none;
}

.hero-carousel {
  position: relative;
  min-height: 540px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 44px;
  align-items: center;
  padding: 46px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.58)),
    linear-gradient(120deg, rgba(124, 58, 237, 0.12), rgba(236, 72, 153, 0.12));
  box-shadow: var(--shadow);
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.hero-copy h2 {
  margin: 22px 0 10px;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
}

.hero-copy p,
.page-hero p,
.section-heading p,
.movie-desc,
.content-panel p,
.footer-grid p {
  color: var(--muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 18px 38px rgba(124, 58, 237, 0.26);
}

.btn-soft {
  color: var(--primary-dark);
  background: rgba(124, 58, 237, 0.10);
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.10);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-poster {
  position: relative;
  display: block;
  max-width: 360px;
  margin-left: auto;
  border-radius: 32px;
  overflow: hidden;
  transform: rotate(2deg);
  box-shadow: 0 30px 80px rgba(41, 23, 72, 0.28);
}

.hero-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.44));
}

.hero-poster span {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.92);
  font-weight: 900;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.24);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 30px;
  border-radius: 999px;
  background: var(--primary);
}

.stats-row {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.stats-row div {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 36px rgba(124, 58, 237, 0.08);
}

.stats-row strong {
  display: block;
  color: var(--primary-dark);
  font-size: 2rem;
  line-height: 1;
}

.stats-row span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 56px 0;
}

.section-tinted {
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.07), rgba(236, 72, 153, 0.07)),
    rgba(255, 255, 255, 0.54);
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.section-link {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: rgba(124, 58, 237, 0.10);
  font-weight: 900;
}

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

.category-card {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.90), rgba(255, 255, 255, 0.60));
  box-shadow: 0 16px 48px rgba(124, 58, 237, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 60px rgba(124, 58, 237, 0.18);
}

.category-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-weight: 900;
}

.category-name {
  display: block;
  font-size: 1.28rem;
  font-weight: 900;
}

.category-intro {
  color: var(--muted);
  font-size: 0.95rem;
}

.category-card strong {
  color: var(--primary-dark);
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(124, 58, 237, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 72px rgba(124, 58, 237, 0.20);
}

.movie-card-compact {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  min-height: 172px;
}

.movie-card-compact .movie-poster {
  min-height: 100%;
  border-radius: 0;
}

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

.movie-poster {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #eadcff;
}

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

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

.movie-poster::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 45%, rgba(16, 8, 31, 0.56));
}

.poster-play {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.92);
  font-weight: 900;
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--warm), var(--accent));
  font-size: 0.78rem;
  font-weight: 900;
}

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

.movie-title {
  display: -webkit-box;
  overflow: hidden;
  min-height: 2.9em;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.45;
}

.movie-title:hover {
  color: var(--primary-dark);
}

.movie-meta {
  margin: 8px 0;
  color: #8a7899;
  font-size: 0.9rem;
  font-weight: 700;
}

.movie-desc {
  display: -webkit-box;
  overflow: hidden;
  min-height: 3.2em;
  margin: 0 0 12px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.95rem;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.10);
  font-size: 0.78rem;
  font-weight: 800;
}

.page-hero {
  padding: 64px 0 26px;
}

.page-hero h1 {
  max-width: 900px;
}

.page-hero p {
  max-width: 820px;
  font-size: 1.08rem;
}

.inline-search {
  margin-top: 22px;
}

.inline-search input {
  width: min(720px, 100%);
  min-height: 54px;
  padding: 0 20px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 36px rgba(124, 58, 237, 0.10);
  font: inherit;
  outline: none;
}

.inline-search input:focus {
  border-color: rgba(124, 58, 237, 0.55);
}

.empty-state {
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--muted);
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.rank-table th,
.rank-table td {
  padding: 15px 18px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.10);
  text-align: left;
}

.rank-table th {
  color: var(--primary-dark);
  background: rgba(124, 58, 237, 0.08);
}

.rank-table a {
  font-weight: 900;
}

.detail-hero {
  padding: 42px 0 28px;
  background:
    radial-gradient(circle at 15% 10%, rgba(236, 72, 153, 0.16), transparent 34%),
    radial-gradient(circle at 90% 0%, rgba(124, 58, 237, 0.18), transparent 30%);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 34px;
  align-items: center;
}

.player-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 32px;
  background: #0d0716;
  box-shadow: 0 32px 92px rgba(41, 23, 72, 0.28);
  aspect-ratio: 16 / 9;
}

.player-card video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #05030a;
}

.play-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  gap: 8px;
  border: 0;
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(9, 3, 18, 0.18), rgba(9, 3, 18, 0.58)),
    radial-gradient(circle, rgba(124, 58, 237, 0.36), transparent 54%);
  cursor: pointer;
}

.play-cover span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.92);
  font-size: 2rem;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.play-cover strong {
  font-size: 1.1rem;
}

.player-card.is-playing .play-cover {
  display: none;
}

.detail-info {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-weight: 800;
}

.breadcrumb a:hover {
  color: var(--primary-dark);
}

.lead-text {
  color: #5f4a70;
  font-size: 1.08rem;
}

.detail-tags {
  margin-top: 18px;
}

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

.content-panel {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 16px 42px rgba(124, 58, 237, 0.10);
}

.content-panel h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}

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

.nav-card {
  display: flex;
  min-height: 116px;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-weight: 800;
}

.nav-card span {
  margin-top: 6px;
  color: var(--text);
  font-size: 1.12rem;
  font-weight: 900;
}

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

.sitemap-group {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 38px rgba(124, 58, 237, 0.08);
}

.sitemap-group h2 {
  margin: 0 0 8px;
}

.sitemap-group ul {
  display: grid;
  gap: 8px;
  max-height: 460px;
  margin: 18px 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.sitemap-group li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(124, 58, 237, 0.12);
}

.sitemap-group li span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  margin-top: 42px;
  padding: 44px 0;
  color: #6b5878;
  background: rgba(255, 255, 255, 0.76);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1fr;
  gap: 28px;
}

.footer-grid h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1rem;
}

.footer-grid a:not(.footer-brand) {
  display: block;
  margin: 7px 0;
  font-weight: 800;
}

@media (max-width: 980px) {
  .hero-slide,
  .detail-grid,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    margin: 0 auto;
  }

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

  .ranking-grid,
  .sitemap-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .header-inner {
    min-height: 66px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-link {
    display: block;
  }

  .hero-shell {
    padding-top: 18px;
  }

  .hero-carousel {
    min-height: auto;
  }

  .hero-slide {
    padding: 24px;
  }

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

  .category-grid,
  .movie-grid,
  .stats-row,
  .next-prev {
    grid-template-columns: 1fr;
  }

  .movie-card-compact {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .detail-info {
    padding: 22px;
  }
}
