:root {
  --bg: #fff6fb;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --text: #302536;
  --muted: #746577;
  --pink: #ec4899;
  --rose: #fb7185;
  --soft-pink: #ffe3ef;
  --border: rgba(236, 72, 153, 0.18);
  --shadow: 0 18px 55px rgba(236, 72, 153, 0.18);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 181, 218, 0.65), transparent 36rem),
    radial-gradient(circle at 85% 20%, rgba(255, 228, 237, 0.92), transparent 32rem),
    linear-gradient(135deg, #fff6fb 0%, #fff9fd 46%, #fff0f6 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.10);
  filter: blur(18px);
  pointer-events: none;
  z-index: -1;
}

body::before {
  left: -6rem;
  bottom: 10rem;
}

body::after {
  right: -8rem;
  top: 24rem;
}

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

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

main {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: 0 8px 30px rgba(236, 72, 153, 0.10);
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.brand-mark,
.footer-brand span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.28);
}

.brand-name {
  font-size: 1.45rem;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  -webkit-background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-links a {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  color: #5f5066;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-links a:hover {
  color: var(--pink);
  background: rgba(236, 72, 153, 0.10);
  transform: translateY(-1px);
}

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

.header-search input,
.mobile-search input,
.tool-bar input,
.search-panel input,
.search-panel select {
  height: 42px;
  border: 2px solid rgba(236, 72, 153, 0.14);
  border-radius: 999px;
  padding: 0 16px;
  outline: none;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  transition: border 0.25s ease, box-shadow 0.25s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.tool-bar input:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 5px rgba(236, 72, 153, 0.12);
}

.header-search button,
.mobile-search button,
.search-panel button,
.primary-btn,
.ghost-btn,
.section-more {
  border: 0;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.header-search button,
.mobile-search button,
.search-panel button,
.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.24);
}

.ghost-btn,
.section-more {
  display: inline-flex;
  align-items: center;
  color: var(--pink);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(236, 72, 153, 0.18);
}

.header-search button:hover,
.mobile-search button:hover,
.search-panel button:hover,
.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--pink);
  background: rgba(236, 72, 153, 0.10);
  font-size: 1.3rem;
}

.mobile-panel {
  display: none;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

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

.mobile-search {
  margin-bottom: 12px;
}

.mobile-search input {
  flex: 1;
}

.mobile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  margin: 34px 0 42px;
}

.hero-carousel {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #221224;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: clamp(32px, 6vw, 72px);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  max-width: 690px;
  color: white;
}

.hero-kicker,
.section-kicker {
  margin: 0 0 12px;
  color: var(--pink);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1 {
  margin: 0;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
}

.hero-summary {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: 1.1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}

.hero-tags,
.tag-row,
.detail-tags,
.footer-tags,
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
  padding: 7px 12px;
  border-radius: 999px;
  color: var(--pink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 0.82rem;
  font-weight: 800;
}

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

.primary-btn,
.ghost-btn {
  min-width: 122px;
  justify-content: center;
}

.hero-dots {
  position: absolute;
  left: 48px;
  bottom: 32px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.hero-dot.active {
  width: 34px;
  background: white;
}

.hero-side,
.rank-panel,
.category-panel,
.info-card,
.text-card,
.side-card,
.player-card,
.category-card,
.search-panel,
.page-hero {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-side {
  padding: 26px;
}

.hero-side > p {
  color: var(--pink);
  font-weight: 900;
  margin: 0 0 8px;
}

.hero-side h2 {
  margin: 0 0 20px;
  font-size: 1.8rem;
  line-height: 1.15;
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  margin-top: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.65);
  transition: transform 0.25s ease, background 0.25s ease;
}

.hero-mini-card:hover {
  transform: translateX(4px);
  background: white;
}

.hero-mini-card img {
  width: 74px;
  height: 92px;
  object-fit: cover;
  border-radius: 14px;
}

.hero-mini-card span {
  font-weight: 900;
  line-height: 1.35;
}

.content-section,
.split-section,
.detail-page {
  margin: 46px 0;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 3rem);
  letter-spacing: -0.05em;
}

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(236, 72, 153, 0.12);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 54px rgba(236, 72, 153, 0.22);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.25;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.55);
}

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

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  background: linear-gradient(transparent, rgba(40, 16, 34, 0.72));
}

.quality-badge,
.duration-badge,
.rank-number {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
}

.quality-badge {
  top: 10px;
  left: 10px;
  padding: 5px 8px;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--rose));
}

.duration-badge {
  right: 10px;
  bottom: 10px;
  padding: 5px 8px;
  color: white;
  background: rgba(0, 0, 0, 0.55);
}

.rank-number {
  right: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  color: #fff;
  background: rgba(0, 0, 0, 0.58);
}

.movie-card-body {
  padding: 14px;
}

.movie-title {
  display: block;
  min-height: 2.7em;
  color: #302536;
  font-weight: 900;
  line-height: 1.35;
}

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

.movie-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.movie-desc {
  display: -webkit-box;
  min-height: 3.75em;
  margin: 10px 0 12px;
  overflow: hidden;
  color: #695a70;
  font-size: 0.9rem;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.tag-row span {
  background: var(--soft-pink);
  border-color: rgba(236, 72, 153, 0.12);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
}

.rank-panel,
.category-panel {
  padding: 26px;
}

.rank-list,
.ranking-table {
  display: grid;
  gap: 10px;
}

.rank-row,
.ranking-table-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(236, 72, 153, 0.10);
}

.ranking-table-row {
  grid-template-columns: 46px minmax(180px, 1fr) minmax(180px, 1.2fr) auto;
}

.rank-row:hover,
.ranking-table-row:hover {
  color: var(--pink);
  background: white;
}

.rank-row span,
.ranking-table-row span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  font-weight: 900;
}

.rank-row strong,
.ranking-table-row strong,
.ranking-table-row em,
.rank-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row em,
.ranking-table-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.9rem;
}

.ranking-table-row b {
  color: var(--pink);
}

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

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

.category-tile,
.category-card {
  display: block;
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(236, 72, 153, 0.12);
  transition: transform 0.25s ease, background 0.25s ease;
}

.category-tile:hover,
.category-card:hover {
  transform: translateY(-4px);
  background: white;
}

.category-tile span,
.category-card h2 {
  display: block;
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 900;
}

.category-tile em,
.category-card p {
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
}

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

.category-cover-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.category-cover-row img {
  aspect-ratio: 3 / 4;
  width: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.page-hero {
  margin: 34px 0 34px;
  padding: clamp(28px, 5vw, 56px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.84), rgba(255, 226, 239, 0.78)),
    radial-gradient(circle at right top, rgba(236, 72, 153, 0.16), transparent 28rem);
}

.compact-hero h1 {
  color: var(--text);
}

.compact-hero p:not(.section-kicker) {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.75;
}

.tool-bar,
.search-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
  padding: 18px;
}

.tool-bar input,
.search-panel input {
  flex: 1;
  min-width: 220px;
}

.filter-pill {
  height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 999px;
  color: var(--pink);
  background: rgba(255, 255, 255, 0.78);
  font-weight: 800;
  cursor: pointer;
}

.filter-pill.active,
.filter-pill:hover {
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--rose));
}

.detail-page {
  margin-top: 28px;
}

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

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

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

.detail-main,
.detail-side {
  display: grid;
  gap: 20px;
  align-content: start;
}

.player-card,
.info-card,
.text-card,
.side-card {
  padding: 20px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  aspect-ratio: 16 / 9;
  background: #09050b;
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  background: #09050b;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.34));
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
  width: 84px;
  height: 84px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 18px 46px rgba(236, 72, 153, 0.42);
  font-size: 2rem;
  padding-left: 5px;
}

.player-shell.playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.info-card h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.lead-text {
  margin: 18px 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.detail-tags span {
  background: var(--soft-pink);
}

.stat-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.stat-strip span {
  padding: 10px 12px;
  border-radius: 14px;
  color: #5a4d61;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(236, 72, 153, 0.10);
  font-weight: 800;
}

.text-card h2,
.side-card h2 {
  margin: 0 0 12px;
  font-size: 1.4rem;
}

.text-card p {
  margin: 0;
  color: #5f5066;
  line-height: 2;
  font-size: 1.02rem;
}

.side-poster {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

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

.side-card dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  margin: 0;
}

.side-card dt {
  color: var(--muted);
  font-weight: 800;
}

.side-card dd {
  margin: 0;
  font-weight: 800;
}

.site-footer {
  margin-top: 72px;
  padding: 42px 0 24px;
  background: rgba(255, 255, 255, 0.56);
  border-top: 1px solid rgba(236, 72, 153, 0.12);
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 1.2fr;
  gap: 36px;
}

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

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

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 1.05rem;
}

.site-footer div:nth-child(2) a {
  display: block;
  margin: 8px 0;
}

.footer-tags a {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.10);
}

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 18px;
  color: var(--muted);
  border-top: 1px solid rgba(236, 72, 153, 0.12);
  font-size: 0.92rem;
}

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

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

  .hero-shell,
  .split-section,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .hero-side {
    display: none;
  }

  .detail-side {
    grid-template-columns: 260px 1fr;
  }
}

@media (max-width: 860px) {
  .main-nav,
  .header-search {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-carousel {
    min-height: 520px;
  }

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

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

  .section-head {
    display: block;
  }

  .section-more {
    margin-top: 14px;
  }

  .ranking-table-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .ranking-table-row em,
  .ranking-table-row b {
    grid-column: 2;
  }

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

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

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

@media (max-width: 560px) {
  main,
  .header-inner,
  .mobile-panel,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1240px);
  }

  .brand-name {
    font-size: 1.18rem;
  }

  .hero-slide {
    padding: 26px;
    align-items: end;
  }

  .hero-carousel {
    min-height: 470px;
  }

  .hero-content h1,
  .page-hero h1 {
    font-size: 2.35rem;
  }

  .movie-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .movie-card-body {
    padding: 12px;
  }

  .movie-desc {
    -webkit-line-clamp: 2;
    min-height: 3em;
  }

  .player-card,
  .info-card,
  .text-card,
  .side-card,
  .rank-panel,
  .category-panel {
    padding: 16px;
    border-radius: 22px;
  }
}
