:root {
  --bg: #fff7fb;
  --ink: #1f1b2e;
  --muted: #716b82;
  --line: rgba(111, 80, 146, 0.14);
  --panel: rgba(255, 255, 255, 0.82);
  --panel-solid: #ffffff;
  --brand: #ec4899;
  --brand-2: #8b5cf6;
  --brand-3: #3b82f6;
  --shadow: 0 22px 60px rgba(87, 44, 117, 0.18);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 5% 0%, rgba(236, 72, 153, 0.22), transparent 32rem),
    radial-gradient(circle at 94% 12%, rgba(59, 130, 246, 0.18), transparent 30rem),
    linear-gradient(135deg, #fff7fb 0%, #f6f1ff 50%, #eff7ff 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(32, 20, 48, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.35);
}

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

.nav-link,
.header-rank-link {
  color: rgba(255, 255, 255, 0.78);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active,
.header-rank-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.14);
}

.header-rank-link {
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.hero-slider {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #140d22;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.75s ease, transform 1.1s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(37, 12, 46, 0.94) 0%, rgba(78, 24, 104, 0.74) 43%, rgba(22, 23, 60, 0.80) 100%),
    radial-gradient(circle at 78% 30%, rgba(236, 72, 153, 0.35), transparent 28rem);
}

.hero-content {
  position: absolute;
  inset: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 76px 24px 86px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.eyebrow {
  margin: 0 0 12px;
  color: #fde68a;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1 {
  margin: 0;
  max-width: 820px;
  color: white;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  font-weight: 950;
}

.hero-content h2 {
  margin: 18px 0 0;
  color: white;
  font-size: clamp(26px, 3vw, 44px);
  font-weight: 900;
}

.hero-summary {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 20px;
}

.hero-tags span {
  color: white;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.22);
}

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

.btn,
.search-box button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover,
.search-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(91, 45, 132, 0.25);
}

.btn.primary,
.search-box button {
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.btn.ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(135deg, #f9a8d4, #a78bfa);
}

.quick-search-panel,
.content-section,
.page-main,
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.quick-search-panel {
  margin-top: -42px;
  position: relative;
  z-index: 4;
}

.search-box,
.filter-panel {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.search-box input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  color: var(--ink);
  background: white;
  border: 1px solid rgba(139, 92, 246, 0.16);
  outline: none;
  border-radius: 999px;
  padding: 0 18px;
  font-size: 16px;
}

.filter-panel select {
  max-width: 180px;
}

.large-filter {
  margin-bottom: 26px;
}

.category-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.category-chip-row a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  color: #5b4672;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  font-weight: 800;
  transition: 0.25s ease;
}

.category-chip-row a:hover {
  color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.14);
}

.content-section {
  padding-top: 56px;
  padding-bottom: 34px;
}

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

.section-heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
}

.section-heading p,
.page-hero p,
.category-card p,
.footer-inner p {
  color: var(--muted);
}

.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: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 38px rgba(87, 44, 117, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(87, 44, 117, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #f9a8d4, #c4b5fd);
}

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

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

.poster-gradient {
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(0deg, rgba(18, 12, 30, 0.85), transparent);
}

.duration,
.rank-no {
  position: absolute;
  color: white;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.duration {
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  background: rgba(0, 0, 0, 0.55);
}

.rank-no {
  left: 10px;
  top: 10px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f97316, #ec4899);
}

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

.movie-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--brand);
}

.card-meta,
.card-desc {
  margin: 0 0 10px;
}

.card-meta {
  color: #8b7d9d;
  font-size: 13px;
}

.card-desc {
  color: #625872;
  font-size: 14px;
}

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

.tag-row span {
  display: inline-flex;
  padding: 4px 9px;
  color: #7c3aed;
  border: 1px solid rgba(124, 58, 237, 0.14);
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.08);
  font-size: 12px;
  font-weight: 800;
}

.page-main {
  padding-top: 34px;
}

.page-hero {
  overflow: hidden;
  padding: 54px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 34px;
  color: white;
  background:
    linear-gradient(135deg, rgba(236, 72, 153, 0.90), rgba(139, 92, 246, 0.92), rgba(59, 130, 246, 0.90)),
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.32), transparent 24rem);
  box-shadow: var(--shadow);
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

.category-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: 0 18px 44px rgba(87, 44, 117, 0.12);
  transition: transform 0.25s ease;
}

.category-card:hover {
  transform: translateY(-5px);
}

.category-cover-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 154px;
  overflow: hidden;
  background: linear-gradient(135deg, #f9a8d4, #a78bfa);
}

.category-cover-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-body {
  padding: 24px;
}

.category-icon {
  font-size: 30px;
}

.category-card h2 {
  margin: 10px 0 8px;
  font-size: 26px;
}

.category-card b {
  color: var(--brand);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
  color: #6b5b7e;
  font-weight: 800;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 24px 58px rgba(72, 31, 92, 0.24);
}

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

.detail-info .eyebrow {
  color: var(--brand);
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
}

.detail-line,
.detail-summary {
  color: var(--muted);
  font-size: 18px;
}

.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.detail-stats span {
  padding: 9px 13px;
  border-radius: 999px;
  color: #5b3f76;
  background: rgba(139, 92, 246, 0.10);
  font-weight: 900;
}

.player-section,
.article-section,
.detail-nav-row {
  margin-top: 32px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 40px rgba(87, 44, 117, 0.10);
}

.player-section h2,
.article-section h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  background: #05020a;
}

.movie-video,
.player-cover,
.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.movie-video {
  z-index: 1;
  object-fit: contain;
  background: #05020a;
}

.player-cover {
  z-index: 2;
  cursor: pointer;
  border: 0;
  background: #05020a;
}

.player-cover.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.player-cover img {
  object-fit: cover;
  filter: brightness(0.48) saturate(1.2);
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 86px;
  height: 86px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  color: white;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 48px rgba(236, 72, 153, 0.36);
  font-size: 34px;
  cursor: pointer;
}

.player-status {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 3;
  transform: translateX(-50%);
  color: white;
  font-weight: 900;
}

.article-section p {
  color: #4f455f;
  font-size: 18px;
}

.detail-nav-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.detail-nav-row a {
  color: #6d28d9;
  font-weight: 900;
}

.related-section {
  padding-left: 0;
  padding-right: 0;
}

.site-footer {
  margin-top: 60px;
  color: white;
  background: linear-gradient(135deg, #241033, #4c1d95, #111827);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  padding-top: 42px;
  padding-bottom: 42px;
}

.footer-logo {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 950;
}

.footer-inner p {
  color: rgba(255, 255, 255, 0.74);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-links a:hover {
  color: white;
}

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

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

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

@media (max-width: 820px) {
  .header-inner {
    min-height: auto;
    padding: 14px 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .main-nav {
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .header-rank-link {
    display: none;
  }

  .hero-slider {
    min-height: 620px;
  }

  .hero-content {
    padding: 70px 18px 90px;
  }

  .quick-search-panel,
  .content-section,
  .page-main,
  .footer-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .search-box,
  .filter-panel,
  .detail-nav-row {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-panel select {
    max-width: none;
  }

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

  .category-grid,
  .detail-hero,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .detail-hero {
    padding: 26px;
    border-radius: 26px;
  }

  .detail-poster {
    max-width: 280px;
    margin: 0 auto;
  }
}

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

  .category-cover-strip {
    height: 120px;
  }
}
