:root {
  --bg: #fff7fb;
  --bg-soft: #f7f3ff;
  --card: #ffffff;
  --text: #252033;
  --muted: #756f84;
  --line: rgba(157, 126, 170, 0.22);
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #8b5cf6;
  --blue: #60a5fa;
  --shadow: 0 18px 45px rgba(104, 74, 128, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.16), transparent 32rem),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.16), transparent 30rem),
    linear-gradient(135deg, #fff7fb 0%, #f7f3ff 45%, #eef7ff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 9px 15px;
  border-radius: 999px;
  color: #5f586d;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(236, 72, 153, 0.10);
  cursor: pointer;
}

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

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px 40px;
}

.hero-wrap {
  position: relative;
  min-height: 680px;
  margin: 22px 0 28px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(290px, 0.72fr);
  align-items: center;
  gap: 36px;
  padding: 64px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  filter: saturate(1.08);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(236, 72, 153, 0.18), transparent 21rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 245, 252, 0.48));
}

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

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

.hero-content h1,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
  color: #201729;
}

.hero-desc,
.page-hero p,
.detail-desc {
  max-width: 690px;
  margin: 22px 0 0;
  color: #5a5266;
  font-size: 1.08rem;
}

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

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

.hero-tags span,
.tag-row span,
.channel-pills a,
.quick-links a,
.footer-links a,
.filter-buttons button {
  border: 1px solid rgba(236, 72, 153, 0.18);
  background: rgba(255, 255, 255, 0.72);
  color: #7b4465;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.88rem;
  font-weight: 800;
}

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

.primary-btn,
.ghost-btn,
.home-search button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.home-search button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.26);
}

.primary-btn:hover,
.home-search button:hover,
.ghost-btn:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.ghost-btn,
.section-link {
  color: #5d436f;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
}

.hero-poster {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 24px 55px rgba(44, 26, 62, 0.24);
  transform: rotate(2deg);
}

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

.hero-controls {
  position: absolute;
  right: 34px;
  bottom: 118px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(33, 23, 45, 0.68);
  font-size: 1.8rem;
}

.hero-dots {
  display: flex;
  gap: 7px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(33, 23, 45, 0.32);
}

.hero-dot.active {
  width: 30px;
  background: var(--pink);
}

.hero-strip {
  position: absolute;
  left: 34px;
  right: 34px;
  bottom: 0;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.hero-mini-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 84px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(100, 70, 130, 0.12);
  backdrop-filter: blur(16px);
}

.hero-mini-card img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
}

.hero-mini-card span {
  font-weight: 900;
  color: #33273f;
}

.search-panel,
.filter-bar,
.panel-card,
.page-hero,
.detail-hero,
.detail-content,
.player-section,
.text-panel,
.side-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-panel {
  margin: 0 0 34px;
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.72fr);
  gap: 20px;
  align-items: end;
}

.home-search label,
.filter-bar span {
  display: block;
  margin-bottom: 8px;
  color: #665d72;
  font-weight: 800;
}

.home-search div {
  display: flex;
  gap: 12px;
}

.home-search input,
.filter-bar input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  outline: none;
  background: rgba(255, 255, 255, 0.86);
}

.home-search input:focus,
.filter-bar input:focus {
  border-color: rgba(236, 72, 153, 0.48);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.08);
}

.content-section,
.split-section {
  margin: 42px 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-heading h2,
.panel-card h2,
.text-panel h2,
.side-panel h2,
.site-footer h2 {
  margin: 0;
  color: #251b30;
  line-height: 1.12;
}

.section-heading h2 {
  font-size: clamp(1.55rem, 3vw, 2.3rem);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(157, 126, 170, 0.18);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 32px rgba(104, 74, 128, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 24px 48px rgba(104, 74, 128, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
}

.poster-link img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #ffe6f3, #eef0ff);
  transition: transform 0.4s ease;
}

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

.card-badge,
.score {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  font-size: 0.78rem;
}

.card-badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  background: rgba(236, 72, 153, 0.92);
}

.score {
  right: 12px;
  bottom: 12px;
  padding: 6px 9px;
  background: rgba(32, 23, 41, 0.76);
}

.card-body {
  padding: 16px;
}

.card-body h2 {
  margin: 0 0 7px;
  font-size: 1.04rem;
  line-height: 1.35;
}

.card-body h2 a:hover {
  color: var(--pink-dark);
}

.meta-line {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.desc {
  margin: 0 0 14px;
  color: #574f62;
  font-size: 0.92rem;
}

.tag-row span {
  padding: 4px 8px;
  font-size: 0.76rem;
}

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

.panel-card {
  padding: 26px;
}

.accent-panel {
  background:
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.18), transparent 18rem),
    rgba(255, 255, 255, 0.74);
}

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.rank-item a {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  border: 1px solid rgba(157, 126, 170, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.rank-number {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  font-weight: 900;
}

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

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

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

.category-card a {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 190px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(104, 74, 128, 0.10);
}

.category-covers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 10px;
}

.category-covers img {
  height: 100%;
  min-height: 78px;
  border-radius: 16px;
  object-fit: cover;
}

.category-info {
  padding: 24px;
}

.category-info h2 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.category-info p {
  margin: 0 0 20px;
  color: var(--muted);
}

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

.page-hero {
  margin: 24px 0 26px;
  padding: 54px;
  background:
    radial-gradient(circle at right, rgba(139, 92, 246, 0.18), transparent 26rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 240, 249, 0.72));
}

.compact-hero h1,
.ranking-hero h1 {
  font-size: clamp(2rem, 5vw, 4.6rem);
}

.filter-bar {
  margin: 0 0 28px;
  padding: 20px;
}

.filter-bar label {
  display: block;
  max-width: 720px;
}

.filter-buttons {
  margin-top: 14px;
}

.filter-buttons button {
  cursor: pointer;
}

.filter-buttons button.active {
  color: #ffffff;
  background: var(--pink);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 24px 0 18px;
  color: #756f84;
  font-size: 0.94rem;
}

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

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 32px;
  padding: 34px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(54, 33, 66, 0.18);
}

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

.detail-line {
  color: var(--muted);
  font-weight: 800;
}

.player-section {
  margin: 28px 0;
  padding: 14px;
  background: rgba(31, 21, 42, 0.92);
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #121019;
}

.player-video {
  width: 100%;
  min-height: 520px;
  display: block;
  background: #121019;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(24, 18, 32, 0.42), rgba(236, 72, 153, 0.32));
  cursor: pointer;
}

.player-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.play-symbol {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.92);
  box-shadow: 0 14px 38px rgba(236, 72, 153, 0.35);
  font-size: 1.9rem;
  padding-left: 4px;
}

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

.text-panel,
.side-panel {
  padding: 24px;
  box-shadow: none;
}

.text-panel p {
  color: #51485e;
}

.side-panel dl {
  display: grid;
  gap: 13px;
  margin: 18px 0 0;
}

.side-panel div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.side-panel dt {
  color: var(--muted);
}

.side-panel dd {
  margin: 0;
  font-weight: 900;
  text-align: right;
}

.movie-card.compact .desc {
  display: none;
}

.site-footer {
  margin-top: 50px;
  padding: 46px 22px 28px;
  background: linear-gradient(135deg, rgba(255, 232, 246, 0.88), rgba(235, 243, 255, 0.88));
  border-top: 1px solid var(--line);
}

.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.site-footer p {
  color: var(--muted);
}

.copyright {
  max-width: 1240px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 1020px) {
  .hero-slide,
  .detail-hero,
  .detail-content,
  .search-panel,
  .split-section,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero-slide {
    padding: 42px;
  }

  .hero-poster {
    max-width: 310px;
  }

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

  .detail-poster {
    max-width: 310px;
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav.open {
    display: flex;
  }

  main {
    padding: 0 14px 28px;
  }

  .hero-wrap {
    min-height: auto;
    margin-top: 14px;
  }

  .hero-slider {
    min-height: 780px;
    border-radius: 28px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: start;
    padding: 28px;
  }

  .hero-poster {
    transform: none;
  }

  .hero-controls {
    right: 18px;
    bottom: 112px;
  }

  .hero-strip {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 12px;
    grid-template-columns: 1fr;
  }

  .hero-mini-card {
    min-height: 74px;
  }

  .home-search div {
    flex-direction: column;
  }

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

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

  .category-covers {
    min-height: 210px;
  }

  .page-hero,
  .detail-hero,
  .detail-content,
  .panel-card {
    padding: 24px;
  }

  .player-video {
    min-height: 260px;
  }

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

  .rank-meta,
  .rank-heat {
    display: none;
  }
}
