:root {
  color-scheme: light;
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #9333ea;
  --blue: #38bdf8;
  --ink: #172033;
  --muted: #667085;
  --soft: #fdf2f8;
  --soft-blue: #eff6ff;
  --card: #ffffff;
  --line: rgba(219, 39, 119, 0.16);
  --shadow: 0 20px 45px rgba(147, 51, 234, 0.14);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(236, 72, 153, 0.15), transparent 35%),
    radial-gradient(circle at 90% 12%, rgba(56, 189, 248, 0.14), transparent 30%),
    linear-gradient(180deg, #fff7fb 0%, #ffffff 34%, #f8fbff 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(236, 72, 153, 0.12);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.32);
}

.brand-text {
  font-size: 24px;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #334155;
  font-size: 15px;
  font-weight: 700;
}

.nav-links a {
  padding: 10px 0;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--pink);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fff1f8;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--pink);
  border-radius: 999px;
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  max-width: 1280px;
  min-height: 620px;
  margin: 26px auto 0;
  padding: 0 24px;
}

.hero-shell {
  position: relative;
  min-height: 600px;
  border-radius: 42px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, rgba(253, 242, 248, 0.9), rgba(239, 246, 255, 0.92));
}

.hero-blob {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.55;
  animation: blob 8s infinite;
}

.hero-blob.one {
  left: -120px;
  top: -100px;
  background: #f9a8d4;
}

.hero-blob.two {
  right: -100px;
  bottom: -120px;
  background: #93c5fd;
  animation-delay: 2s;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 40px;
  align-items: center;
  padding: 70px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.985);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy .eyebrow,
.section-head p,
.page-kicker {
  margin: 0 0 14px;
  color: var(--pink);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.gradient-text {
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 620px;
  margin: 24px 0 0;
  color: #475569;
  font-size: 18px;
  line-height: 1.9;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  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.primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.26);
}

.btn.ghost {
  color: var(--pink-dark);
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(236, 72, 153, 0.18);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(147, 51, 234, 0.2);
}

.hero-media {
  position: relative;
  z-index: 2;
}

.hero-poster {
  position: relative;
  border-radius: 34px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.22);
  transform: rotate(2deg);
}

.hero-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster::after,
.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 23, 42, 0.68) 100%);
}

.hero-card-float {
  position: absolute;
  left: -28px;
  bottom: 26px;
  width: min(300px, 82%);
  padding: 18px;
  border-radius: 24px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.24);
}

.hero-card-float strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.hero-card-float span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.6;
}

.hero-dots {
  position: absolute;
  left: 70px;
  bottom: 42px;
  display: flex;
  gap: 10px;
  z-index: 5;
}

.hero-dots button {
  width: 34px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.2);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

@keyframes blob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(28px, -42px) scale(1.08);
  }
  66% {
    transform: translate(-18px, 24px) scale(0.92);
  }
}

.content-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 24px;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.section-head h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.section-head span,
.page-hero p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
}

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

.quick-card,
.category-card {
  position: relative;
  min-height: 150px;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  box-shadow: 0 18px 38px rgba(147, 51, 234, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.quick-card:hover,
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.quick-card strong,
.category-card h2 {
  display: block;
  margin: 0 0 12px;
  font-size: 21px;
}

.quick-card span,
.category-card p {
  color: var(--muted);
  line-height: 1.75;
}

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

.movie-card {
  position: relative;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(236, 72, 153, 0.13);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f8, #eff6ff);
}

.poster-link img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-glow {
  position: absolute;
  inset: auto 12px 12px 12px;
  height: 36%;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.24);
  filter: blur(26px);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  font-size: 18px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.36);
}

.movie-content {
  padding: 16px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 9px;
  color: var(--pink-dark);
  font-size: 12px;
  font-weight: 800;
}

.movie-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fdf2f8;
}

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

.movie-content h3 a:hover {
  color: var(--pink);
}

.movie-content p {
  min-height: 66px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

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

.tag-list span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #6d28d9;
  background: #f3e8ff;
  font-size: 12px;
  font-weight: 800;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(140px, 0.55fr));
  gap: 12px;
  padding: 16px;
  margin-bottom: 28px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(147, 51, 234, 0.08);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(236, 72, 153, 0.18);
  color: #334155;
  background: #ffffff;
  outline: none;
  font-weight: 700;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.page-hero {
  max-width: 1280px;
  margin: 26px auto 0;
  padding: 72px 24px 38px;
}

.page-hero-inner {
  padding: 48px;
  border-radius: 38px;
  background:
    radial-gradient(circle at 86% 16%, rgba(56, 189, 248, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(253, 242, 248, 0.96), rgba(239, 246, 255, 0.9));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.ranking-list {
  display: grid;
  gap: 14px;
}

.ranking-row {
  display: grid;
  grid-template-columns: 68px 92px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 12px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(236, 72, 153, 0.13);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.ranking-row .num {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.ranking-row img {
  width: 92px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
}

.ranking-row h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.ranking-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.ranking-row .score {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--pink-dark);
  background: #fdf2f8;
  font-weight: 900;
}

.detail-hero {
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 0 24px 38px;
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  gap: 30px;
  align-items: stretch;
}

.player-panel,
.detail-copy,
.text-panel {
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.player-panel {
  padding: 18px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #050816;
  aspect-ratio: 16 / 9;
}

.player-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #050816;
  object-fit: contain;
  z-index: 1;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #050816;
  color: #ffffff;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  color: #ffffff;
  font-size: 34px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 0 0 14px rgba(255, 255, 255, 0.18), 0 18px 46px rgba(236, 72, 153, 0.38);
}

.detail-copy {
  padding: 34px;
}

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

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

.detail-copy h1 {
  font-size: clamp(34px, 4vw, 56px);
}

.detail-copy p {
  color: var(--muted);
  line-height: 1.85;
}

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

.detail-meta span {
  padding: 12px 14px;
  border-radius: 18px;
  background: #fdf2f8;
  color: #7e22ce;
  font-weight: 900;
}

.text-panel {
  padding: 34px;
  margin-bottom: 28px;
}

.text-panel h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.text-panel p {
  color: #475569;
  line-height: 1.95;
}

.site-footer {
  margin-top: 40px;
  padding: 56px 24px 30px;
  background: linear-gradient(135deg, #fdf2f8, #eef6ff);
  border-top: 1px solid rgba(236, 72, 153, 0.12);
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 0.7fr;
  gap: 34px;
}

.site-footer h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.site-footer p,
.site-footer li {
  color: var(--muted);
  line-height: 1.8;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer a:hover {
  color: var(--pink);
}

.copyright {
  max-width: 1280px;
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(236, 72, 153, 0.12);
  text-align: center;
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

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

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

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

  .hero-shell {
    min-height: 900px;
  }

  .hero-slide {
    padding: 48px;
  }

  .hero-media {
    max-width: 420px;
  }
}

@media (max-width: 820px) {
  .site-nav {
    height: 66px;
    padding: 0 16px;
  }

  .brand-text {
    font-size: 20px;
  }

  .menu-button {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

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

  .hero {
    padding: 0 14px;
  }

  .hero-shell {
    min-height: 820px;
    border-radius: 28px;
  }

  .hero-slide {
    padding: 30px;
    gap: 26px;
  }

  .hero-dots {
    left: 34px;
    bottom: 26px;
  }

  .content-wrap,
  .page-hero,
  .detail-hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .page-hero-inner,
  .detail-copy,
  .text-panel {
    padding: 26px;
    border-radius: 28px;
  }

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

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

  .filter-panel {
    grid-template-columns: 1fr;
  }

  .ranking-row {
    grid-template-columns: 44px 72px 1fr;
  }

  .ranking-row .score {
    grid-column: 3;
    justify-self: start;
  }

  .ranking-row img {
    width: 72px;
  }

  .ranking-row .num {
    width: 42px;
    height: 42px;
  }

  .detail-meta {
    grid-template-columns: 1fr;
  }
}

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

  .hero-copy h1 {
    font-size: 38px;
  }

  .hero-shell {
    min-height: 760px;
  }

  .hero-card-float {
    left: 12px;
    bottom: 12px;
  }
}
