:root {
  --bg: #fff7fb;
  --bg-soft: #fff1f7;
  --card: #ffffff;
  --text: #2f2330;
  --muted: #7c6a7a;
  --line: #f8cfe0;
  --pink: #ec4899;
  --rose: #fb7185;
  --orange: #fb923c;
  --shadow: 0 18px 48px rgba(236, 72, 153, 0.14);
  --shadow-strong: 0 28px 70px rgba(190, 24, 93, 0.23);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 0%, rgba(251, 113, 133, 0.18), transparent 32rem),
    radial-gradient(circle at 92% 8%, rgba(251, 146, 60, 0.16), transparent 30rem),
    linear-gradient(135deg, #fff7fb 0%, #fff1f7 48%, #fff8ed 100%);
  min-height: 100vh;
}

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

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

button,
input {
  font: inherit;
}

main {
  min-height: 72vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(248, 207, 224, 0.9);
  box-shadow: 0 10px 30px rgba(244, 114, 182, 0.11);
  backdrop-filter: blur(18px);
}

.nav-wrap,
.footer-inner,
.section,
.hero,
.page-hero,
.detail-layout,
.breadcrumbs {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 26px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 14px 30px rgba(236, 72, 153, 0.26);
  transform: rotate(-8deg);
  transition: transform 0.25s ease;
}

.brand:hover .brand-mark {
  transform: rotate(0deg) scale(1.08);
}

.brand-text {
  display: grid;
  line-height: 1.1;
}

.brand-text span,
.footer-brand {
  font-size: 1.24rem;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

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

.nav-link,
.mobile-link {
  position: relative;
  color: #574558;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
  color: var(--pink);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.top-search,
.mobile-search,
.search-panel {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.search-panel input {
  width: 220px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  padding: 10px 15px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.search-panel input:focus {
  border-color: rgba(236, 72, 153, 0.55);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.top-search button,
.mobile-search button,
.search-panel button,
.btn,
.hero-button {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button,
.mobile-search button {
  padding: 10px 16px;
}

.btn,
.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
}

.btn:hover,
.hero-button:hover,
.top-search button:hover,
.mobile-search button:hover,
.search-panel button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.3);
}

.btn.secondary,
.hero-button.secondary {
  color: var(--pink);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  color: var(--pink);
  background: #fff;
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.14);
}

.mobile-panel {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid rgba(248, 207, 224, 0.7);
}

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

.mobile-panel nav {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 241, 247, 0.82);
}

.hero {
  position: relative;
  margin-top: 28px;
  overflow: hidden;
  border-radius: 34px;
  min-height: 560px;
  box-shadow: var(--shadow-strong);
  background: #3f1730;
}

.hero-track {
  position: relative;
  min-height: 560px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.62fr);
  gap: 34px;
  align-items: center;
  padding: 58px;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(48, 13, 38, 0.94) 0%, rgba(84, 21, 58, 0.78) 42%, rgba(84, 21, 58, 0.26) 100%),
    radial-gradient(circle at 22% 20%, rgba(251, 113, 133, 0.38), transparent 24rem);
  z-index: 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34;
  filter: saturate(1.18);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 680px;
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #ffe4f0;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(2.6rem, 6vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

.hero p {
  margin: 0;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 28px;
}

.hero-meta span,
.detail-meta span,
.tag-row span,
.info-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
}

.hero-meta span {
  padding: 8px 12px;
  color: #ffe4f0;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.hero-poster {
  justify-self: end;
  width: min(360px, 100%);
  transform: rotate(3deg);
}

.hero-poster a {
  display: block;
  overflow: hidden;
  border-radius: 28px;
  border: 8px solid rgba(255, 255, 255, 0.42);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  background: rgba(255, 255, 255, 0.12);
}

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

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 1.9rem;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
}

.hero-control.prev {
  left: 18px;
}

.hero-control.next {
  right: 18px;
}

.hero-dots {
  position: absolute;
  left: 58px;
  bottom: 34px;
  z-index: 3;
  display: flex;
  gap: 9px;
}

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

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

.section {
  padding: 54px 0 0;
}

.section-heading,
.page-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--pink);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1,
.page-title-row h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.05em;
}

.section-heading p,
.page-hero p,
.detail-copy p,
.card-body p,
.category-card p,
.rank-note {
  color: var(--muted);
}

.section-more {
  color: var(--pink);
  font-weight: 900;
}

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

.movie-card,
.category-card,
.rank-card,
.detail-card,
.search-panel,
.related-panel {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(248, 207, 224, 0.72);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.movie-card {
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover,
.category-card:hover,
.rank-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(236, 72, 153, 0.18);
}

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

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

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

.poster-badge,
.poster-play,
.rank-number {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.25);
}

.poster-badge {
  top: 10px;
  left: 10px;
  min-width: 52px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.78rem;
}

.poster-play {
  right: 10px;
  bottom: 10px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translateY(0);
}

.card-body {
  padding: 14px;
}

.card-title {
  display: block;
  min-height: 2.8em;
  color: #2f2330;
  font-weight: 900;
  line-height: 1.35;
}

.card-title:hover {
  color: var(--pink);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 9px;
  color: var(--muted);
  font-size: 0.82rem;
}

.card-body p {
  min-height: 3.4em;
  margin: 0 0 11px;
  font-size: 0.92rem;
  line-height: 1.55;
}

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

.tag-row span,
.info-chip {
  padding: 5px 9px;
  color: var(--pink);
  background: #fff1f7;
  font-size: 0.78rem;
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  padding: 24px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -48px;
  width: 140px;
  height: 140px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.16), rgba(251, 146, 60, 0.16));
}

.category-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.category-card p {
  margin: 0 0 18px;
  line-height: 1.7;
}

.category-card span {
  color: var(--pink);
  font-weight: 900;
}

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

.rank-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.rank-card img {
  width: 92px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
}

.rank-number {
  left: 6px;
  top: 6px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
}

.rank-info h3 {
  margin: 0 0 7px;
  font-size: 1.06rem;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
}

.rank-score {
  min-width: 108px;
  color: var(--pink);
  text-align: right;
  font-weight: 900;
}

.page-hero {
  margin-top: 32px;
  padding: 44px;
  border: 1px solid rgba(248, 207, 224, 0.74);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 241, 247, 0.9)),
    radial-gradient(circle at 88% 10%, rgba(251, 113, 133, 0.16), transparent 20rem);
  box-shadow: var(--shadow);
}

.page-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  line-height: 1.8;
}

.search-panel {
  align-items: stretch;
  padding: 14px;
}

.search-panel input {
  flex: 1;
  width: 100%;
  border-radius: 18px;
}

.search-panel button {
  padding: 0 20px;
  border-radius: 18px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.92rem;
}

.breadcrumbs a {
  color: var(--pink);
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  padding-top: 24px;
}

.detail-card {
  overflow: hidden;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  background: #1f1020;
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(31, 16, 32, 0.18), rgba(31, 16, 32, 0.64));
}

.play-overlay.is-hidden {
  display: none;
}

.play-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 2.1rem;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 24px 56px rgba(236, 72, 153, 0.34);
}

.detail-copy {
  padding: 28px;
}

.detail-copy h1 {
  margin-bottom: 14px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
}

.detail-meta span {
  padding: 8px 12px;
  color: var(--pink);
  background: #fff1f7;
}

.detail-copy p {
  line-height: 1.9;
}

.detail-copy h2,
.related-panel h2 {
  margin: 28px 0 12px;
  font-size: 1.35rem;
}

.side-poster {
  overflow: hidden;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.related-panel {
  margin-top: 18px;
  padding: 20px;
}

.related-list {
  display: grid;
  gap: 12px;
}

.related-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
}

.related-item img {
  width: 64px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.related-item strong {
  display: block;
  line-height: 1.35;
}

.related-item span {
  color: var(--muted);
  font-size: 0.86rem;
}

.empty-result {
  display: none;
  padding: 34px;
  color: var(--muted);
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(248, 207, 224, 0.7);
  border-radius: 24px;
}

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

.site-footer {
  margin-top: 70px;
  padding: 34px 0 42px;
  background: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(248, 207, 224, 0.72);
}

.footer-inner {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.footer-inner p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}

.footer-links a {
  color: var(--pink);
  font-weight: 800;
}

.footer-copy {
  color: var(--muted);
  font-size: 0.88rem;
}

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

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

  .top-search {
    display: none;
  }
}

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

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

  .hero,
  .hero-track {
    min-height: 680px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: end;
    padding: 34px 24px 70px;
  }

  .hero-poster {
    justify-self: start;
    width: min(230px, 58vw);
    transform: rotate(0deg);
  }

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

  .hero-control {
    display: none;
  }

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

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

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

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

@media (max-width: 620px) {
  .nav-wrap,
  .footer-inner,
  .section,
  .hero,
  .page-hero,
  .detail-layout,
  .breadcrumbs {
    width: min(100% - 22px, 1180px);
  }

  .brand-text small {
    display: none;
  }

  .hero {
    border-radius: 24px;
    margin-top: 18px;
  }

  .hero h1 {
    letter-spacing: -0.06em;
  }

  .section {
    padding-top: 42px;
  }

  .section-heading,
  .page-title-row {
    display: block;
  }

  .section-more {
    display: inline-flex;
    margin-top: 12px;
  }

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

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

  .card-body {
    padding: 12px;
  }

  .card-body p {
    display: none;
  }

  .rank-card {
    grid-template-columns: 74px 1fr;
  }

  .rank-card img {
    width: 74px;
  }

  .rank-score {
    grid-column: 2;
    text-align: left;
  }

  .page-hero,
  .detail-copy {
    padding: 24px;
  }

  .search-panel {
    display: grid;
  }

  .search-panel button {
    min-height: 46px;
  }
}
