:root {
  --bg: #fff7fb;
  --text: #24172c;
  --muted: #796b86;
  --line: rgba(164, 92, 191, 0.16);
  --card: rgba(255, 255, 255, 0.86);
  --pink: #ec4899;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --shadow: 0 24px 70px rgba(96, 31, 122, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 36rem),
    linear-gradient(135deg, #fff7fb 0%, #f8f3ff 42%, #eef7ff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #311044;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 14px 30px rgba(139, 92, 246, 0.28);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #5e5268;
  font-size: 15px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #fff;
  background: #1b0f27;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.7s ease, transform 1.2s ease;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(24, 12, 35, 0.95) 0%, rgba(42, 19, 58, 0.74) 42%, rgba(24, 12, 35, 0.28) 100%),
    var(--hero-image);
  background-position: center;
  background-size: cover;
}

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

.hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.72fr);
  align-items: center;
  gap: 42px;
}

.hero-copy {
  padding: 108px 0 84px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero p,
.page-hero p {
  max-width: 680px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.9;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 16px 42px rgba(139, 92, 246, 0.34);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(139, 92, 246, 0.42);
}

.btn.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.hero-panel {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.hero-poster {
  overflow: hidden;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-poster img {
  height: 100%;
  object-fit: cover;
}

.hero-panel h2 {
  margin: 18px 0 8px;
  font-size: 26px;
}

.hero-panel p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

.hero-dots {
  position: absolute;
  left: max(16px, calc((100vw - 1180px) / 2));
  bottom: 74px;
  z-index: 6;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 34px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #fff;
}

.search-strip {
  position: relative;
  z-index: 4;
  width: min(980px, calc(100% - 32px));
  margin: -42px auto 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-strip form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}

.search-strip input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--text);
  outline: none;
  background: #fff;
}

.search-strip input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(139, 92, 246, 0.62);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

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

.section {
  padding: 70px 0 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  letter-spacing: -0.04em;
}

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

.section-more {
  flex: none;
  padding: 10px 16px;
  border-radius: 999px;
  color: #7c3aed;
  background: rgba(139, 92, 246, 0.1);
  font-weight: 800;
}

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

.category-tile {
  min-height: 148px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(236, 72, 153, 0.14), rgba(139, 92, 246, 0.12), rgba(59, 130, 246, 0.12)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 16px 42px rgba(96, 31, 122, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile strong {
  font-size: 22px;
}

.category-tile span {
  color: var(--muted);
  line-height: 1.6;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 18px 52px rgba(96, 31, 122, 0.09);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 92, 246, 0.32);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(59, 130, 246, 0.18));
}

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

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

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  font-style: normal;
  background: linear-gradient(135deg, #f97316, var(--pink));
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.34);
}

.card-body {
  padding: 16px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
  color: #8a748e;
  font-size: 12px;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.08);
}

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

.movie-card h3 a:hover {
  color: #7c3aed;
}

.movie-card p {
  min-height: 48px;
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #7c3aed;
  background: rgba(139, 92, 246, 0.1);
  font-size: 12px;
  font-weight: 700;
}

.rank-list {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
}

.rank-feature {
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #1f102e;
  color: #fff;
  box-shadow: var(--shadow);
}

.rank-feature img {
  height: 100%;
  object-fit: cover;
  min-height: 420px;
}

.rank-feature-content {
  padding: 32px;
  align-self: center;
}

.rank-feature-content h3 {
  margin: 12px 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

.rank-feature-content p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.9;
}

.rank-side {
  display: grid;
  gap: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 46px 92px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
}

.rank-row b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.rank-row img {
  height: 118px;
  object-fit: cover;
  border-radius: 16px;
}

.rank-row h3 {
  margin: 0;
  font-size: 17px;
}

.rank-row p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.page-hero {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(27, 15, 39, 0.88), rgba(85, 32, 124, 0.72)),
    radial-gradient(circle at 20% 10%, rgba(236, 72, 153, 0.42), transparent 28rem),
    radial-gradient(circle at 80% 0%, rgba(59, 130, 246, 0.36), transparent 30rem),
    #1b0f27;
}

.page-hero-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0 72px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  margin: 34px 0 26px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 52px rgba(96, 31, 122, 0.08);
}

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

.detail-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 38px auto 0;
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 30px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.18), rgba(59, 130, 246, 0.18));
}

.detail-poster img {
  height: 100%;
  object-fit: cover;
}

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

.breadcrumb a:hover {
  color: #7c3aed;
}

.detail-info h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-info .one-line {
  margin: 18px 0 0;
  color: #5e5268;
  font-size: 18px;
  line-height: 1.85;
}

.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.info-pills span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #7c3aed;
  background: rgba(139, 92, 246, 0.1);
  font-weight: 800;
}

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

.player-section h2 {
  margin: 0 0 16px;
  font-size: clamp(24px, 3vw, 34px);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #05040a;
  box-shadow: 0 28px 84px rgba(22, 8, 36, 0.32);
}

.video-shell video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #05040a;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, rgba(24, 12, 35, 0.48), rgba(49, 20, 70, 0.24));
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 18px 54px rgba(139, 92, 246, 0.44);
  font-size: 36px;
  transform: translateX(4px);
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-content {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
}

.story-panel,
.side-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 52px rgba(96, 31, 122, 0.08);
}

.story-panel {
  padding: 28px;
}

.story-panel h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.story-panel p {
  margin: 0 0 18px;
  color: #5e5268;
  font-size: 16px;
  line-height: 2;
}

.side-panel {
  padding: 22px;
  align-self: start;
}

.side-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.side-list li:last-child {
  border-bottom: 0;
}

.side-list strong {
  color: var(--text);
}

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

.site-footer {
  margin-top: 84px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 12px;
  white-space: nowrap;
}

.footer-links a {
  color: #7c3aed;
  font-weight: 800;
}

.hidden-card {
  display: none !important;
}

@media (max-width: 1020px) {
  .hero-inner,
  .detail-hero,
  .detail-content,
  .rank-list,
  .rank-feature {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 460px;
    margin-bottom: 42px;
  }

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

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

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

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

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

  .site-nav a {
    text-align: center;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    display: block;
  }

  .hero-copy {
    padding: 86px 0 36px;
  }

  .hero-panel {
    margin-bottom: 72px;
  }

  .hero-dots {
    bottom: 40px;
  }

  .search-strip form,
  .filter-panel {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 54px;
  }

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

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

  .card-body {
    padding: 13px;
  }

  .movie-card h3 {
    font-size: 16px;
  }

  .movie-card p {
    font-size: 13px;
  }

  .rank-row {
    grid-template-columns: 42px 78px 1fr;
  }

  .rank-row img {
    height: 100px;
  }

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

  .play-overlay span {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }

  .story-panel,
  .side-panel {
    padding: 20px;
  }
}

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

  .search-strip {
    margin-top: -28px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}
