:root {
  --rose: #f43f5e;
  --pink: #ec4899;
  --purple: #a855f7;
  --orange: #fb7185;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f4d7e3;
  --soft: #fff1f7;
  --soft-rose: #fff7f8;
  --white: #ffffff;
  --shadow: 0 20px 45px rgba(148, 42, 94, 0.16);
  --shadow-soft: 0 10px 24px rgba(148, 42, 94, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #fff7fb 0%, #ffffff 28%, #fff7fb 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(244, 63, 94, 0.12);
  box-shadow: 0 10px 30px rgba(244, 63, 94, 0.08);
}

.header-inner {
  max-width: 1240px;
  height: 68px;
  margin: 0 auto;
  padding: 0 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;
  letter-spacing: 0.02em;
}

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

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

.brand-name,
.footer-brand {
  font-size: 1.28rem;
  background: linear-gradient(90deg, #db2777, #e11d48);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 700;
}

.nav-link {
  color: #4b5563;
  position: relative;
  padding: 21px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 3px;
  border-radius: 99px;
  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 {
  color: #db2777;
}

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

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff1f7;
  cursor: pointer;
  padding: 10px;
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: #be185d;
}

.mobile-nav {
  display: none;
  padding: 12px 22px 18px;
  border-top: 1px solid #ffe4ef;
  background: #fff;
}

.mobile-nav.is-open {
  display: grid;
  gap: 10px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: #4b5563;
  font-weight: 700;
}

.mobile-link:hover,
.mobile-link.is-active {
  background: #fff1f7;
  color: #be185d;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 22px;
}

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

.hero-slide {
  min-height: 620px;
  display: none;
  position: relative;
  isolation: isolate;
}

.hero-slide.is-active {
  display: block;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(50, 8, 30, 0.92) 0%, rgba(103, 17, 63, 0.78) 44%, rgba(236, 72, 153, 0.22) 100%), var(--hero-image);
  background-position: center;
  background-size: cover;
  z-index: -2;
  transform: scale(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.22), transparent 30%), radial-gradient(circle at 80% 20%, rgba(255, 192, 203, 0.26), transparent 28%);
  z-index: -1;
}

.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 88px 22px 90px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.58fr);
  gap: 46px;
  align-items: center;
  color: #fff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 800;
  color: #be185d;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.hero-title {
  margin: 24px 0 16px;
  font-size: clamp(2.45rem, 6vw, 5.4rem);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-title span {
  color: #ffc7da;
}

.hero-summary {
  max-width: 760px;
  margin: 0 0 24px;
  color: #ffe6ef;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.tag-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  color: #be185d;
  background: #ffe4ef;
  font-size: 0.82rem;
  font-weight: 700;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 0;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #be185d;
  background: #fff;
  box-shadow: 0 15px 32px rgba(255, 255, 255, 0.25);
}

.btn-secondary {
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.1);
}

.btn-gradient {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 15px 35px rgba(236, 72, 153, 0.32);
}

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

.hero-search {
  display: flex;
  gap: 10px;
  max-width: 650px;
  margin-top: 28px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
}

.hero-search input,
.search-control input,
.search-control select {
  min-width: 0;
  width: 100%;
  border: 1px solid #fbcfe8;
  border-radius: 18px;
  outline: none;
  padding: 13px 15px;
  color: #374151;
  background: #fff;
  font: inherit;
}

.hero-search input {
  border: 0;
  border-radius: 999px;
}

.hero-search button {
  white-space: nowrap;
}

.hero-poster-card {
  position: relative;
  border-radius: 32px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(16px);
  transform: rotate(2deg);
}

.hero-poster-card img {
  aspect-ratio: 3 / 4.1;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.hero-poster-meta {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  border-radius: 20px;
  padding: 16px;
  background: rgba(34, 8, 24, 0.78);
  color: #fff;
  backdrop-filter: blur(16px);
}

.hero-poster-meta strong {
  display: block;
  font-size: 1.08rem;
}

.hero-poster-meta span {
  color: #ffc7da;
  font-weight: 800;
}

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

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

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

.info-strip {
  margin: -42px auto 30px;
  position: relative;
  z-index: 4;
}

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

.info-card,
.category-tile,
.panel,
.search-panel {
  border: 1px solid #ffe0ed;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.info-card {
  padding: 24px;
  text-align: center;
}

.info-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.9rem;
  color: #be185d;
}

.info-card span {
  color: var(--muted);
}

.section {
  padding: 58px 0;
}

.section-alt {
  background: linear-gradient(180deg, #fff 0%, #fff6fb 100%);
}

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

.section-title {
  margin: 10px 0 0;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.16;
  font-weight: 950;
  color: #171717;
}

.section-desc {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--muted);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid #ffe0ed;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: #f9a8d4;
  box-shadow: var(--shadow);
}

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

.poster-link img {
  aspect-ratio: 3 / 4.08;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.poster-year,
.poster-play {
  position: absolute;
  top: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.poster-year {
  left: 12px;
  background: rgba(15, 23, 42, 0.72);
}

.poster-play {
  right: 12px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 17px;
}

.card-title {
  margin: 0 0 8px;
  color: #111827;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 900;
}

.card-title a:hover {
  color: #db2777;
}

.card-line {
  min-height: 3.2em;
  margin: 0 0 12px;
  color: #6b7280;
  font-size: 0.92rem;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
  color: #9f1239;
  font-size: 0.8rem;
  font-weight: 800;
}

.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff1f7;
}

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

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

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(236, 72, 153, 0.22), transparent 42%);
  pointer-events: none;
}

.category-tile:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile h2,
.category-tile h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
  color: #be185d;
}

.category-tile p {
  margin: 0;
  color: var(--muted);
}

.rank-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.rank-panel {
  border-radius: 24px;
  padding: 22px;
  background: linear-gradient(135deg, #fff, #fff1f7);
  border: 1px solid #ffe0ed;
  box-shadow: var(--shadow-soft);
}

.rank-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #ffe0ed;
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-no {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-weight: 950;
  background: linear-gradient(135deg, var(--pink), var(--rose));
}

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

.rank-info {
  color: var(--muted);
  font-size: 0.88rem;
}

.page-hero {
  padding: 64px 0 38px;
  background: radial-gradient(circle at 15% 15%, rgba(236, 72, 153, 0.22), transparent 32%), linear-gradient(135deg, #fff7fb, #fff);
}

.page-hero h1 {
  max-width: 900px;
  margin: 14px 0 12px;
  font-size: clamp(2rem, 4.5vw, 3.7rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.page-hero p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #be185d;
  font-weight: 800;
  font-size: 0.92rem;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
  gap: 30px;
  align-items: start;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: #fff1f7;
}

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

.detail-main h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

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

.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #be185d;
  background: #fff1f7;
  font-weight: 800;
}

.lead {
  color: #4b5563;
  font-size: 1.1rem;
}

.watch-panel {
  padding: 58px 0;
  background: linear-gradient(180deg, #250817 0%, #49122c 100%);
  color: #fff;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #09090b;
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.35);
}

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

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, rgba(30, 7, 20, 0.72), rgba(236, 72, 153, 0.32));
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-layer .play-icon {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #be185d;
  background: #fff;
  font-size: 2.2rem;
  box-shadow: 0 18px 40px rgba(255, 255, 255, 0.22);
}

.play-layer strong {
  font-size: 1.15rem;
}

.panel {
  padding: 28px;
}

.panel h2 {
  margin: 0 0 12px;
  color: #111827;
  font-size: 1.45rem;
}

.panel p {
  color: #4b5563;
}

.content-stack {
  display: grid;
  gap: 24px;
}

.search-panel {
  padding: 22px;
}

.search-form {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.empty-message {
  display: none;
  margin-top: 26px;
  padding: 20px;
  border-radius: 18px;
  color: #be185d;
  background: #fff1f7;
  font-weight: 800;
  text-align: center;
}

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

.pagination-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 30px;
}

.pagination-links a,
.pagination-links span {
  padding: 9px 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #fbcfe8;
  color: #be185d;
  font-weight: 900;
}

.pagination-links span {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--rose));
}

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

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

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

  .menu-button {
    display: block;
  }

  .hero-inner,
  .detail-layout,
  .rank-layout {
    grid-template-columns: 1fr;
  }

  .hero-poster-card {
    max-width: 360px;
    margin: 0 auto;
  }

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

  .search-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 62px;
    padding: 0 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

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

  .container {
    padding: 0 16px;
  }

  .hero-slider,
  .hero-slide {
    min-height: 700px;
  }

  .hero-inner {
    padding: 62px 16px 86px;
    gap: 30px;
  }

  .hero-search {
    flex-direction: column;
    border-radius: 24px;
  }

  .hero-search button {
    width: 100%;
  }

  .section {
    padding: 42px 0;
  }

  .section-head {
    display: block;
  }

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

  .card-body {
    padding: 13px;
  }

  .card-line {
    min-height: auto;
    font-size: 0.86rem;
  }

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

  .rank-info {
    grid-column: 2;
  }
}
