:root {
  --pink: #ec4899;
  --pink-dark: #be185d;
  --purple: #7c3aed;
  --purple-deep: #581c87;
  --yellow: #facc15;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #f3e8ff;
  --soft: #fff7fb;
  --card: #ffffff;
  --shadow: 0 20px 45px rgba(88, 28, 135, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", Arial, sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7fb 0%, #ffffff 28%, #fff1f8 100%);
  min-height: 100vh;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, #ec4899 0%, #a855f7 52%, #f472b6 100%);
  color: #ffffff;
  box-shadow: 0 14px 35px rgba(190, 24, 93, 0.28);
}

.nav-wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 70px;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--pink);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

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

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

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

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

.top-search input,
.large-search input,
.filter-panel input,
.filter-panel select {
  border: 0;
  outline: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  padding: 12px 16px;
  min-width: 210px;
  box-shadow: inset 0 0 0 1px rgba(236, 72, 153, 0.08);
}

.top-search button,
.large-search button,
.btn,
.more-link {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  padding: 12px 18px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.top-search button,
.btn.primary,
.large-search button {
  background: linear-gradient(90deg, var(--pink) 0%, var(--purple) 100%);
  color: #ffffff;
  box-shadow: 0 12px 25px rgba(236, 72, 153, 0.28);
}

.btn.soft {
  color: var(--pink-dark);
  background: rgba(255, 255, 255, 0.9);
}

.btn.ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn.full {
  width: 100%;
  margin-top: 16px;
}

.btn:hover,
.more-link:hover,
.top-search button:hover,
.large-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(168, 85, 247, 0.25);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  padding: 9px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: #ffffff;
  margin: 6px 0;
  border-radius: 3px;
}

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  color: #ffffff;
  background: #1f0633;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 420px);
  align-items: center;
  gap: 50px;
  padding: 100px max(32px, calc((100vw - 1280px) / 2)) 80px;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) saturate(1.1) brightness(0.64);
  transform: scale(1.06);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 18%, rgba(244, 114, 182, 0.35), transparent 36%),
    linear-gradient(90deg, rgba(31, 6, 51, 0.94), rgba(88, 28, 135, 0.66) 58%, rgba(236, 72, 153, 0.35));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--pink);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f9a8d4;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 5.6vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero h2 {
  margin: 0 0 16px;
  font-size: clamp(28px, 3.8vw, 54px);
  color: #ffffff;
}

.hero-text {
  margin: 0;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.9;
}

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

.hero-poster {
  position: relative;
  z-index: 2;
  display: block;
  border-radius: 34px;
  overflow: hidden;
  aspect-ratio: 3 / 4.25;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

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

.hero-arrow {
  position: absolute;
  z-index: 5;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

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

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

.hero-dots button.is-active {
  width: 32px;
  background: #ffffff;
}

.quick-panel,
.section-block,
.page-main,
.site-footer {
  width: min(1280px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.quick-panel {
  margin-top: -48px;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(280px, 0.9fr);
  gap: 22px;
}

.quick-search-card,
.category-pills,
.page-hero,
.text-card,
.player-section,
.category-overview-card {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(236, 72, 153, 0.12);
}

.quick-search-card {
  padding: 34px;
}

.quick-search-card h2,
.section-head h2,
.page-hero h1,
.detail-info h1,
.text-card h2,
.player-copy h2 {
  margin: 0;
  color: #111827;
  letter-spacing: -0.04em;
}

.quick-search-card h2,
.section-head h2,
.page-hero h1 {
  font-size: clamp(30px, 4vw, 48px);
}

.large-search {
  margin-top: 22px;
  display: flex;
  gap: 12px;
}

.large-search input {
  flex: 1;
}

.category-pills {
  padding: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: center;
}

.category-pills a {
  display: inline-flex;
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffe4f0, #f3e8ff);
  color: var(--pink-dark);
  font-weight: 900;
}

.section-block {
  margin-top: 74px;
}

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

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

.more-link {
  color: var(--pink-dark);
  background: #fff1f8;
  white-space: nowrap;
}

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

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

.movie-card {
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 14px 35px rgba(88, 28, 135, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.11);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(88, 28, 135, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.1;
  overflow: hidden;
  background: linear-gradient(145deg, #fdf2f8, #f3e8ff);
}

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

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

.card-year,
.card-type {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.card-year {
  left: 12px;
  background: rgba(236, 72, 153, 0.9);
}

.card-type {
  right: 12px;
  background: rgba(88, 28, 135, 0.82);
}

.card-body {
  padding: 18px;
}

.card-title {
  display: block;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 900;
  color: #111827;
  margin-bottom: 8px;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  font-size: 14px;
}

.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #9d174d;
  font-size: 13px;
  font-weight: 800;
  margin-top: 12px;
}

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

.tag-row span {
  display: inline-flex;
  border-radius: 999px;
  background: #fdf2f8;
  color: #be185d;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 9px;
}

.movie-card.compact {
  border-radius: 18px;
}

.movie-card.compact .card-body {
  padding: 13px;
}

.movie-card.compact .card-title {
  font-size: 15px;
}

.movie-card.compact .card-body p,
.movie-card.compact .tag-row,
.movie-card.compact .card-meta {
  display: none;
}

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

.rank-card {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 16px 36px rgba(88, 28, 135, 0.11);
  border: 1px solid rgba(236, 72, 153, 0.1);
}

.rank-no {
  position: absolute;
  z-index: 3;
  left: 24px;
  top: 24px;
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  font-weight: 950;
  box-shadow: 0 12px 22px rgba(236, 72, 153, 0.32);
}

.rank-score {
  margin-top: 12px;
  color: var(--pink-dark);
  font-weight: 900;
  text-align: center;
}

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

.page-hero {
  padding: clamp(34px, 6vw, 70px);
  margin-bottom: 34px;
  background:
    radial-gradient(circle at 85% 18%, rgba(236, 72, 153, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(253, 242, 248, 0.94));
}

.page-hero p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.filter-panel input,
.filter-panel select {
  border: 1px solid rgba(236, 72, 153, 0.16);
  background: #ffffff;
}

.filter-panel.wide input {
  min-width: min(620px, 100%);
}

.category-overview {
  display: grid;
  gap: 26px;
}

.category-overview-card {
  padding: 24px;
  display: grid;
  grid-template-columns: 220px minmax(260px, 1fr) minmax(300px, 420px);
  gap: 24px;
  align-items: center;
}

.category-cover {
  aspect-ratio: 4 / 5;
  border-radius: 24px;
  overflow: hidden;
  display: block;
}

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

.category-info h2 {
  margin: 0 0 12px;
  font-size: 32px;
}

.category-info p {
  color: var(--muted);
  line-height: 1.8;
}

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

.full-ranking {
  margin-bottom: 60px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--muted);
  font-weight: 800;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: minmax(250px, 330px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.detail-poster {
  position: sticky;
  top: 94px;
}

.detail-poster img {
  width: 100%;
  border-radius: 30px;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 4.25;
  object-fit: cover;
}

.detail-info {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 32px;
  padding: clamp(26px, 4vw, 46px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(236, 72, 153, 0.12);
}

.detail-info h1 {
  font-size: clamp(36px, 4vw, 58px);
  margin-bottom: 18px;
}

.lead-text {
  font-size: 19px;
  line-height: 1.85;
  color: #4b5563;
  margin: 0 0 22px;
}

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

.detail-meta span {
  background: #fff1f8;
  color: #9d174d;
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 900;
}

.detail-tags {
  margin-bottom: 24px;
}

.text-card {
  padding: 22px;
  margin-top: 18px;
}

.text-card h2 {
  font-size: 24px;
  margin-bottom: 12px;
}

.text-card p {
  margin: 0;
  color: #4b5563;
  line-height: 2;
}

.player-section {
  margin-top: 48px;
  padding: clamp(18px, 3vw, 30px);
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.75fr);
  gap: 24px;
  align-items: center;
}

.player-shell {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  background: #10051d;
  aspect-ratio: 16 / 9;
  box-shadow: 0 24px 52px rgba(17, 24, 39, 0.28);
}

.player-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #10051d;
}

.play-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle at center, rgba(236, 72, 153, 0.18), rgba(16, 5, 29, 0.56));
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

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

.play-icon {
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 20px 38px rgba(236, 72, 153, 0.32);
  padding-left: 5px;
}

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

.related-block {
  margin-bottom: 76px;
}

.site-footer {
  margin-top: 90px;
  color: #ffffff;
  background: linear-gradient(90deg, #581c87 0%, #831843 50%, #581c87 100%);
  border-radius: 32px 32px 0 0;
  padding: 46px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 30px;
}

.site-footer strong {
  display: block;
  margin-bottom: 12px;
  font-size: 20px;
}

.site-footer a,
.site-footer p {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.9;
  margin: 0;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  margin-top: 32px !important;
  padding-top: 22px;
}

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

@media (max-width: 1080px) {
  .top-search {
    display: none;
  }

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

  .hero-poster {
    display: none;
  }

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

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

  .category-overview-card {
    grid-template-columns: 180px 1fr;
  }

  .mini-row {
    grid-column: 1 / -1;
  }
}

@media (max-width: 820px) {
  .nav-wrap {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .menu-toggle {
    display: block;
    margin-left: auto;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
  }

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

  .nav-links a {
    background: rgba(255, 255, 255, 0.12);
  }

  .hero {
    min-height: 620px;
  }

  .hero-slide {
    padding: 86px 24px 70px;
  }

  .hero-arrow {
    display: none;
  }

  .quick-panel,
  .detail-layout,
  .player-section,
  .footer-grid,
  .category-overview-card {
    grid-template-columns: 1fr;
  }

  .detail-poster {
    position: static;
  }

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

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

  .large-search,
  .filter-panel {
    flex-direction: column;
  }

  .large-search input,
  .filter-panel input,
  .filter-panel select {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .site-logo {
    font-size: 18px;
  }

  .hero {
    min-height: 560px;
  }

  .quick-search-card,
  .category-pills,
  .page-hero,
  .detail-info,
  .site-footer {
    border-radius: 22px;
    padding: 22px;
  }

  .movie-grid,
  .small-grid,
  .ranking-grid,
  .mini-row {
    grid-template-columns: 1fr;
  }

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