:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #8b5cf6;
  --purple-dark: #6d28d9;
  --amber: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff1f7;
  --line: #f3d4e5;
  --card: rgba(255, 255, 255, 0.92);
  --shadow: 0 24px 60px rgba(88, 28, 135, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(236, 72, 153, 0.14);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  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: 16px;
  background: linear-gradient(135deg, var(--pink), var(--amber));
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.28);
}

.brand-text {
  font-size: 21px;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-link {
  color: #4b5563;
  font-weight: 700;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover {
  color: var(--pink-dark);
  background: #fdf2f8;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: #fdf2f8;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--pink-dark);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 12px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.mobile-link {
  display: block;
  padding: 12px 14px;
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: #1f1430;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 56px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.hero-bg,
.detail-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  filter: blur(8px) saturate(1.2);
  transform: scale(1.06);
}

.hero-shade,
.detail-hero::before,
.page-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 24% 34%, rgba(236, 72, 153, 0.46), transparent 32%),
    linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(88, 28, 135, 0.58), rgba(236, 72, 153, 0.26));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 7px 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.eyebrow.dark {
  color: var(--pink-dark);
  background: #fdf2f8;
  border-color: #fbcfe8;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.hero-content p,
.page-hero p,
.detail-copy .lead {
  margin: 22px 0 0;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
  line-height: 1.8;
}

.hero-meta,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-meta span,
.detail-meta span {
  padding: 8px 12px;
  color: #fff;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero-actions.small {
  margin-top: 24px;
}

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

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--amber));
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.35);
}

.primary-btn.light {
  color: var(--pink-dark);
  background: #fff;
}

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

.primary-btn:hover,
.ghost-btn:hover,
.movie-card:hover,
.overview-card:hover,
.category-card:hover,
.mini-card:hover {
  transform: translateY(-3px);
}

.hero-poster {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.18);
  border-radius: 36px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  aspect-ratio: 3 / 4;
}

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

.hero-control {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}

.hero-control button {
  width: 44px;
  height: 44px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

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

.hero-dot {
  width: 11px !important;
  height: 11px !important;
  border-radius: 99px;
  opacity: 0.56;
}

.hero-dot.active {
  width: 30px !important;
  opacity: 1;
  background: #fff;
}

.section {
  padding: 72px 0;
}

.search-section {
  padding-bottom: 30px;
}

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

.section-title.center {
  display: block;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-title h2,
.article-card h2,
.side-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.05;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.section-title p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-title a {
  color: var(--pink-dark);
  font-weight: 900;
}

.search-panel {
  display: flex;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
  padding: 12px;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(236, 72, 153, 0.12);
}

.search-panel input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 16px;
  color: var(--ink);
}

.search-panel button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.category-pill {
  padding: 10px 14px;
  color: var(--pink-dark);
  font-weight: 800;
  border: 1px solid #fbcfe8;
  border-radius: 999px;
  background: #fff;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(236, 72, 153, 0.14);
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(236, 72, 153, 0.36);
  box-shadow: var(--shadow);
}

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

.poster-link img,
.detail-poster img,
.overview-card img,
.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-link img {
  transition: transform 0.35s ease;
}

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

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  border-radius: 50%;
  background: rgba(236, 72, 153, 0.9);
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.3);
}

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 950;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--amber), var(--pink));
}

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

.movie-card-title {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 17px;
  font-weight: 900;
}

.movie-meta,
.movie-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.movie-desc {
  min-height: 42px;
}

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

.tag-row span {
  padding: 5px 8px;
  color: var(--pink-dark);
  font-size: 12px;
  font-weight: 800;
  border-radius: 999px;
  background: #fdf2f8;
}

.feature-band {
  position: relative;
  overflow: hidden;
  padding: 86px 0;
  color: #fff;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.28), transparent 24%),
    linear-gradient(135deg, var(--purple-dark), var(--pink), var(--amber));
}

.feature-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: center;
}

.feature-grid h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.06;
  font-weight: 950;
  letter-spacing: -0.05em;
}

.feature-grid p {
  margin: 18px 0 28px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.9;
}

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

.category-card,
.overview-card {
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.14);
  transition: transform 0.22s ease, background 0.22s ease;
}

.category-card {
  padding: 22px;
}

.category-card strong,
.overview-card strong {
  display: block;
  font-size: 20px;
  font-weight: 950;
}

.category-card span,
.overview-card em {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
  line-height: 1.7;
}

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

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

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

.mini-card {
  display: grid;
  grid-template-columns: 54px 72px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(236, 72, 153, 0.14);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
}

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

.mini-card strong,
.mini-card em {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mini-card strong {
  font-weight: 900;
}

.mini-card em {
  margin-top: 5px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  padding: 95px 0;
  color: #fff;
  background: var(--hero-image), linear-gradient(135deg, var(--purple-dark), var(--pink));
  background-size: cover;
  background-position: center;
}

.page-hero.compact {
  min-height: 300px;
  background: linear-gradient(135deg, var(--purple-dark), var(--pink), var(--amber));
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

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

.overview-card {
  overflow: hidden;
  min-height: 280px;
  color: #fff;
  position: relative;
}

.overview-card img {
  position: absolute;
  inset: 0;
  filter: saturate(1.08);
}

.overview-card::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(17, 24, 39, 0.86));
}

.overview-info {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 1;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  padding: 58px 0 70px;
  color: #fff;
  background: #1f1430;
}

.detail-bg {
  position: absolute;
  inset: 0;
}

.detail-head {
  position: relative;
  z-index: 2;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  aspect-ratio: 3 / 4;
  border: 8px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.detail-copy .lead {
  color: rgba(255, 255, 255, 0.88);
}

.detail-tags span {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.player-section {
  padding-bottom: 34px;
}

.video-card {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(236, 72, 153, 0.18);
  border-radius: 30px;
  background: #0f0b16;
  box-shadow: 0 30px 80px rgba(17, 24, 39, 0.18);
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(15, 11, 22, 0.22);
}

.video-overlay.hidden {
  display: none;
}

.video-overlay span {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  color: #fff;
  font-size: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), var(--amber));
  box-shadow: 0 22px 50px rgba(236, 72, 153, 0.35);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
  padding-top: 20px;
}

.article-card,
.side-card {
  padding: 30px;
  border: 1px solid rgba(236, 72, 153, 0.14);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.07);
}

.article-card h2,
.side-card h2 {
  margin-bottom: 16px;
  font-size: 28px;
}

.article-card h2:not(:first-child) {
  margin-top: 30px;
}

.article-card p {
  color: #374151;
  font-size: 17px;
  line-height: 2;
}

.site-footer {
  padding: 52px 0;
  color: #6b7280;
  border-top: 1px solid rgba(236, 72, 153, 0.14);
  background: #fff;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 1.2fr;
  gap: 32px;
}

.footer-brand {
  color: var(--pink-dark);
  font-size: 22px;
}

.footer-inner p {
  max-width: 520px;
  line-height: 1.9;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-links a {
  padding: 9px 12px;
  color: #4b5563;
  font-weight: 700;
  border-radius: 999px;
  background: #f9fafb;
}

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

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

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

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

  .menu-toggle {
    display: inline-flex;
  }

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 28px;
    align-content: center;
    padding: 70px 0 110px;
  }

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

  .feature-grid,
  .detail-layout,
  .detail-content,
  .footer-inner {
    grid-template-columns: 1fr;
  }

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

  .ranking-grid,
  .ranking-list {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .container,
  .nav-wrap,
  .footer-inner,
  .mobile-nav {
    width: min(100% - 22px, 1180px);
  }

  .hero-content h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

  .hero-content p,
  .page-hero p,
  .detail-copy .lead {
    font-size: 16px;
  }

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

  .section {
    padding: 48px 0;
  }

  .section-title {
    display: block;
  }

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

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

  .search-panel input {
    min-height: 44px;
  }

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

  .movie-desc,
  .tag-row {
    display: none;
  }

  .page-hero,
  .detail-hero {
    padding: 62px 0;
  }

  .article-card,
  .side-card {
    padding: 22px;
  }

  .mini-card {
    grid-template-columns: 44px 62px minmax(0, 1fr);
  }

  .mini-card img {
    width: 62px;
    height: 84px;
  }
}
