:root {
  color-scheme: light;
  --bg: #fff7fd;
  --bg-soft: #f7efff;
  --card: #ffffff;
  --text: #211529;
  --muted: #726579;
  --line: rgba(101, 66, 129, 0.16);
  --pink: #ec4899;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --dark: #171126;
  --shadow: 0 22px 55px rgba(80, 36, 120, 0.16);
  --radius: 22px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.15), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.14), transparent 30%),
    linear-gradient(135deg, #fff6fb 0%, #f5efff 52%, #eef7ff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(219, 39, 119, 0.96), rgba(126, 34, 206, 0.96), rgba(37, 99, 235, 0.96));
  box-shadow: 0 16px 42px rgba(92, 40, 145, 0.22);
  backdrop-filter: blur(16px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

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

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

.nav-link {
  color: rgba(255, 255, 255, 0.82);
  padding: 10px 14px;
  border-radius: 14px;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.menu-toggle {
  display: none;
  border: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  padding: 8px 12px;
  cursor: pointer;
}

.mobile-nav {
  display: none;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px 16px;
}

.mobile-nav a {
  display: block;
  color: #ffffff;
  padding: 12px 14px;
  border-radius: 14px;
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.16);
}

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

.hero-carousel {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #1a1028;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

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

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 30%, rgba(236, 72, 153, 0.22), transparent 25%),
    linear-gradient(90deg, rgba(70, 16, 95, 0.94), rgba(88, 28, 135, 0.82), rgba(30, 64, 175, 0.88));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  min-height: 560px;
  margin: 0 auto;
  padding: 64px 22px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 44px;
  align-items: center;
}

.hero-copy {
  color: #ffffff;
}

.hero-eyebrow,
.kicker,
.detail-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #fde68a;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 16px 0;
  font-size: clamp(2.7rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 700px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.18rem;
  line-height: 1.85;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-row span {
  color: #7c2d12;
  background: #ffedd5;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.84rem;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.text-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  padding: 13px 22px;
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.32);
}

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

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
  padding: 13px 22px;
}

.hero-poster {
  display: block;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.42);
  transform: rotate(2deg);
  transition: 0.35s ease;
}

.hero-poster:hover {
  transform: rotate(0deg) scale(1.02);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #f9a8d4, #a78bfa, #93c5fd);
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.hero-dot.is-active {
  width: 34px;
  background: #ffffff;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 22px;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 28px;
  padding-bottom: 20px;
}

.quick-strip a {
  color: #ffffff;
  text-align: center;
  font-weight: 900;
  padding: 18px 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: var(--shadow);
}

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

.section-head h2 {
  margin: 8px 0 6px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

.section-head p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.kicker {
  color: var(--pink);
}

.section-link,
.text-btn {
  color: var(--purple);
  background: #ffffff;
  padding: 11px 18px;
  box-shadow: var(--shadow);
}

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

.category-card {
  position: relative;
  min-height: 190px;
  overflow: hidden;
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 0%, rgba(35, 16, 50, 0.82) 100%);
}

.category-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #f9a8d4, #c4b5fd, #bfdbfe);
  transition: transform 0.35s ease;
}

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

.category-card span,
.category-card strong {
  position: absolute;
  left: 18px;
  right: 18px;
  color: #ffffff;
}

.category-card span {
  bottom: 66px;
  font-size: 1.18rem;
  font-weight: 900;
}

.category-card strong {
  bottom: 18px;
  font-size: 0.88rem;
  line-height: 1.6;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(160px, 220px));
  gap: 14px;
  margin: 0 0 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.filter-panel label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  color: var(--text);
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 16px;
  background: #ffffff;
  padding: 13px 14px;
  outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 70px rgba(88, 28, 135, 0.22);
}

.movie-card.is-hidden {
  display: none;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #f9a8d4, #a78bfa, #93c5fd);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.year-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #ffffff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 900;
  background: rgba(15, 12, 28, 0.7);
  backdrop-filter: blur(10px);
}

.play-dot {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.35);
}

.card-body {
  padding: 16px;
}

.card-meta {
  color: var(--pink);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-body h3 {
  min-height: 2.7em;
  margin: 8px 0;
  font-size: 1.04rem;
  line-height: 1.35;
}

.card-body h3 a:hover {
  color: var(--purple);
}

.card-body p {
  min-height: 4.8em;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

.movie-card.compact .card-body p {
  display: none;
}

.movie-card.compact .tag-row {
  display: none;
}

.empty-state {
  display: none;
  margin-top: 24px;
  color: var(--muted);
  text-align: center;
  padding: 24px;
  border-radius: 20px;
  background: #ffffff;
}

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

.page-hero {
  max-width: 1280px;
  margin: 34px auto 0;
  padding: 70px 22px 52px;
  color: #ffffff;
  border-radius: 0 0 38px 38px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 24%),
    linear-gradient(135deg, rgba(219, 39, 119, 0.96), rgba(126, 34, 206, 0.96), rgba(37, 99, 235, 0.94));
  box-shadow: var(--shadow);
}

.page-hero h1 {
  margin: 12px 0;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.1rem;
  line-height: 1.85;
}

.overview-list {
  display: grid;
  gap: 20px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.category-cover {
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(135deg, #f9a8d4, #a78bfa, #93c5fd);
}

.category-cover img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.category-overview-card h2 {
  margin: 0 0 10px;
  font-size: 1.8rem;
}

.category-overview-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.75;
}

.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.overview-links a {
  color: #6d28d9;
  background: #f3e8ff;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.86rem;
  font-weight: 800;
}

.detail-hero {
  max-width: 1280px;
  margin: 34px auto 0;
  padding: 34px 22px 54px;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, #f9a8d4, #a78bfa, #93c5fd);
  box-shadow: 0 34px 80px rgba(88, 28, 135, 0.24);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.detail-kicker {
  color: var(--pink);
}

.detail-info h1 {
  margin: 12px 0;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.detail-line {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.82;
}

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

.detail-meta-grid span {
  padding: 13px 14px;
  border-radius: 16px;
  color: #4c1d95;
  background: #f3e8ff;
  font-weight: 800;
}

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

.detail-main,
.detail-side,
.article-section,
.player-section,
.side-card {
  min-width: 0;
}

.player-section,
.article-section,
.side-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.player-section,
.article-section {
  margin-bottom: 24px;
  padding: 24px;
}

.player-section h2,
.article-section h2,
.side-card h2 {
  margin: 0 0 18px;
  font-size: 1.6rem;
}

.article-section p {
  margin: 0;
  color: #45364e;
  font-size: 1.05rem;
  line-height: 1.95;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #0f0a18;
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #0f0a18;
}

.player-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(17, 12, 28, 0.18), rgba(88, 28, 135, 0.36));
  cursor: pointer;
  z-index: 3;
}

.player-start span {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 20px 48px rgba(236, 72, 153, 0.35);
  font-size: 2rem;
}

.player-box.is-playing .player-start {
  display: none;
}

.side-card {
  padding: 22px;
  position: sticky;
  top: 94px;
}

.side-card dl {
  margin: 0;
}

.side-card div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.side-card div:last-child {
  border-bottom: 0;
}

.side-card dt {
  color: var(--muted);
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  font-weight: 900;
}

.related-section {
  padding-top: 10px;
}

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

.sitemap-block {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
  padding: 24px;
}

.sitemap-block h2 {
  margin: 0 0 16px;
  font-size: 1.55rem;
}

.sitemap-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.sitemap-block li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(101, 66, 129, 0.1);
}

.sitemap-block li a {
  font-weight: 800;
}

.sitemap-block li a:hover {
  color: var(--purple);
}

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

.site-footer {
  margin-top: 36px;
  color: #ffffff;
  background: linear-gradient(90deg, #111827, #581c87, #111827);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 22px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
}

.footer-logo {
  margin-bottom: 12px;
  font-size: 1.35rem;
  font-weight: 900;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.site-footer h3 {
  margin: 0 0 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 8px 12px;
}

.footer-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.copyright {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 22px 28px;
  color: rgba(255, 255, 255, 0.65);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

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

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

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

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

  .hero-content,
  .detail-hero,
  .detail-layout,
  .footer-grid,
  .category-overview-card,
  .sitemap-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    max-width: 320px;
  }

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

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

  .side-card {
    position: static;
  }
}

@media (max-width: 620px) {
  .nav-wrap {
    min-height: 64px;
  }

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

  .hero-carousel,
  .hero-content {
    min-height: 640px;
  }

  .hero-content {
    padding-top: 42px;
    gap: 26px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-info h1 {
    letter-spacing: -0.04em;
  }

  .quick-strip,
  .filter-panel,
  .category-grid,
  .movie-grid,
  .compact-grid,
  .detail-meta-grid {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 42px 16px;
  }

  .page-hero,
  .detail-hero {
    margin-top: 20px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .detail-info,
  .player-section,
  .article-section {
    padding: 18px;
    border-radius: 22px;
  }

  .section-head {
    display: block;
  }

  .section-link {
    margin-top: 14px;
  }
}
