* {
  box-sizing: border-box;
}

:root {
  --pink: #ec4899;
  --pink-deep: #be185d;
  --purple: #8b5cf6;
  --purple-deep: #5b21b6;
  --blue: #3b82f6;
  --sky: #38bdf8;
  --gold: #fde047;
  --text: #1f2937;
  --muted: #6b7280;
  --soft: #fff7fb;
  --line: rgba(255, 255, 255, 0.42);
  --card: rgba(255, 255, 255, 0.86);
  --shadow: 0 24px 60px rgba(88, 28, 135, 0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 30rem),
    linear-gradient(135deg, #fff1f8 0%, #f4ecff 45%, #eff8ff 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 12px 32px rgba(88, 28, 135, 0.28);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
  transition: transform 0.3s ease;
}

.brand:hover .brand-mark {
  transform: rotate(12deg) scale(1.05);
}

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

.site-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.84);
  padding: 10px 16px;
  border-radius: 14px;
  font-weight: 700;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

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

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.25rem;
}

.hero-slider {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: #111827;
}

.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,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.05);
}

.hero-overlay,
.detail-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(131, 24, 67, 0.92), rgba(88, 28, 135, 0.82), rgba(30, 64, 175, 0.88)),
    radial-gradient(circle at 75% 25%, rgba(253, 224, 71, 0.22), transparent 24rem);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) 360px;
  align-items: center;
  gap: 54px;
}

.hero-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.3rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero-summary,
.page-hero p,
.detail-one-line {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
  line-height: 1.85;
}

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

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 18px 36px rgba(168, 85, 247, 0.34);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
}

.btn-soft {
  color: #581c87;
  background: rgba(255, 255, 255, 0.88);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
  transform: rotate(2deg);
}

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

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

.hero-dot {
  width: 38px;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.hero-dot.active {
  background: #ffffff;
}

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

.glass-section {
  width: min(1180px, calc(100% - 32px));
  margin-top: 24px;
  padding: 32px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.section-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #ffffff;
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.28);
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 16px 40px rgba(88, 28, 135, 0.12);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 68px rgba(88, 28, 135, 0.24);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #f9a8d4, #c4b5fd, #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);
}

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.76), transparent);
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.movie-info {
  padding: 16px;
}

.movie-info h3 {
  margin: 0 0 8px;
  font-size: 1.04rem;
  line-height: 1.35;
}

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

.movie-meta,
.movie-desc {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.movie-desc {
  margin-top: 8px;
}

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

.tag-row span {
  padding: 5px 9px;
  border-radius: 999px;
  color: #6d28d9;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(139, 92, 246, 0.1);
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

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

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border-radius: 28px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.category-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(88, 28, 135, 0.18), rgba(88, 28, 135, 0.88));
}

.category-name,
.category-intro {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0 20px;
}

.category-name {
  margin-top: 110px;
  font-size: 1.3rem;
  font-weight: 900;
}

.category-intro {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 54px 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(88, 28, 135, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(88, 28, 135, 0.16);
}

.rank-item img {
  width: 56px;
  height: 76px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-num {
  color: var(--pink-deep);
  font-size: 1.15rem;
  font-weight: 950;
  text-align: center;
}

.rank-title {
  overflow: hidden;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta,
.rank-score {
  color: var(--muted);
  font-size: 0.9rem;
}

.rank-score {
  justify-self: end;
  color: #7c3aed;
  font-weight: 900;
}

.section-more {
  margin-top: 26px;
  text-align: center;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink-deep), var(--purple-deep), #1d4ed8);
}

.page-hero {
  min-height: 320px;
  display: flex;
  align-items: center;
}

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

.small-hero,
.rank-hero,
.category-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(253, 224, 71, 0.22), transparent 24rem),
    linear-gradient(90deg, var(--pink-deep), var(--purple-deep), #1d4ed8);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 180px 180px;
  gap: 14px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

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

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 15px;
  padding: 0 14px;
  color: var(--text);
  background: #ffffff;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.12);
}

.filter-panel input:focus,
.filter-panel select:focus {
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.14), inset 0 0 0 1px rgba(236, 72, 153, 0.4);
}

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

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

.detail-wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.breadcrumb,
.breadcrumb-sep {
  display: inline-block;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.breadcrumb:hover {
  color: #ffffff;
}

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

.detail-poster {
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
}

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

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

.detail-meta span {
  padding: 9px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.16);
}

.player-section {
  padding-top: 42px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #050816;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.28);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #050816;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.16), rgba(17, 24, 39, 0.74));
}

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

.play-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 18px 40px rgba(236, 72, 153, 0.38);
  font-size: 2.2rem;
}

.play-title {
  font-size: 1.25rem;
  font-weight: 900;
}

.detail-text {
  display: grid;
  gap: 16px;
  padding: 38px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.detail-text h2 {
  margin: 0;
  color: #581c87;
  font-size: 1.45rem;
}

.detail-text p {
  margin: 0 0 12px;
  color: #374151;
  font-size: 1.02rem;
  line-height: 1.9;
}

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

.site-footer {
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.78);
  background: linear-gradient(90deg, #831843, #581c87, #1e3a8a);
}

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

.footer-logo {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 950;
}

.footer-inner p {
  margin: 8px 0 0;
}

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

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

  .hero-content {
    grid-template-columns: 1fr 260px;
  }
}

@media (max-width: 780px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
    box-shadow: var(--shadow);
  }

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

  .nav-link {
    text-align: center;
  }

  .hero-slider,
  .hero-content {
    min-height: 720px;
  }

  .hero-content,
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-poster,
  .detail-poster {
    width: min(270px, 76vw);
    margin: 0 auto;
  }

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

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

  .rank-item {
    grid-template-columns: 44px 50px minmax(0, 1fr);
  }

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

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

@media (max-width: 520px) {
  .brand-text {
    font-size: 1.08rem;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 2.25rem;
  }

  .movie-grid,
  .feature-grid,
  .related-grid,
  .category-grid,
  .category-grid.wide {
    grid-template-columns: 1fr;
  }

  .glass-section,
  .detail-text {
    padding: 22px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
