:root {
  --pink-50: #fff1f7;
  --pink-100: #ffe4ef;
  --pink-200: #fecddf;
  --pink-300: #f9a8d4;
  --pink-500: #ec4899;
  --rose-500: #f43f5e;
  --rose-600: #e11d48;
  --text: #1f2937;
  --muted: #6b7280;
  --border: #f3d1df;
  --surface: #ffffff;
  --shadow: 0 18px 45px rgba(190, 24, 93, 0.14);
  --soft-shadow: 0 10px 30px rgba(17, 24, 39, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

img,
video {
  display: block;
  max-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: linear-gradient(90deg, #f472b6, #f9a8d4 48%, #fb7185);
  box-shadow: 0 10px 28px rgba(190, 24, 93, 0.2);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 66px;
}

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

.brand {
  color: #ffffff;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #ec4899;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(244, 63, 94, 0.25);
}

.brand-text {
  font-size: 24px;
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  padding: 9px 14px;
  border-radius: 999px;
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #be185d;
  background: rgba(255, 255, 255, 0.86);
}

.header-search {
  width: 260px;
}

.page-search {
  width: 100%;
  border: 0;
  outline: 0;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.page-search::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 2px;
}

.mobile-panel {
  display: none;
  padding: 0 16px 16px;
}

.mobile-sub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.mobile-sub-link {
  color: #ffffff;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
}

.hero {
  position: relative;
  height: clamp(520px, 68vw, 650px);
  overflow: hidden;
  margin-bottom: 54px;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 900ms ease;
}

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

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

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.14) 56%, rgba(0, 0, 0, 0.22)),
    linear-gradient(90deg, rgba(190, 24, 93, 0.42), rgba(15, 23, 42, 0.1));
}

.hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 64px;
  z-index: 2;
}

.hero-copy {
  max-width: 760px;
  color: #ffffff;
}

.hero-copy .eyebrow {
  color: #fbcfe8;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 8px 0 18px;
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.8;
}

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

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

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.35);
}

.btn-light {
  color: #be185d;
  background: rgba(255, 255, 255, 0.9);
}

.hero-control {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.42);
  border-radius: 999px;
  transform: translateY(-50%);
}

.hero-control.prev {
  left: 20px;
}

.hero-control.next {
  right: 20px;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  transition: 0.25s ease;
}

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

.main-stack {
  display: grid;
  gap: 58px;
  padding-bottom: 70px;
}

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

.eyebrow {
  display: block;
  color: var(--pink-500);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.section-heading h2,
.page-title h1,
.detail-title h1 {
  margin: 4px 0 0;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.18;
}

.section-heading a {
  color: var(--rose-600);
  font-weight: 800;
}

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

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

.movie-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(249, 168, 212, 0.32);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
  transition: 0.28s ease;
}

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

.poster-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #fda4af);
}

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

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

.poster-badge,
.play-dot {
  position: absolute;
  color: #ffffff;
  font-weight: 900;
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 5px 10px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.48);
  border-radius: 999px;
}

.play-dot {
  right: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  border-radius: 999px;
  box-shadow: 0 10px 20px rgba(190, 24, 93, 0.32);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.movie-card h3 {
  margin: 10px 0 8px;
  color: #111827;
  font-size: 18px;
  line-height: 1.34;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
}

.tag-row span,
.info-chip {
  color: #be185d;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
  background: #fce7f3;
  border-radius: 999px;
}

.feature-panel {
  padding: clamp(22px, 4vw, 40px);
  background: linear-gradient(90deg, #fce7f3, #ffe4e6);
  border: 1px solid rgba(249, 168, 212, 0.36);
  border-radius: 32px;
  box-shadow: var(--soft-shadow);
}

.horizontal-scroll {
  overflow-x: auto;
  padding-bottom: 14px;
}

.horizontal-track {
  display: grid;
  grid-auto-columns: 310px;
  grid-auto-flow: column;
  gap: 18px;
}

.rank-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 32px;
}

.rank-list {
  display: grid;
  gap: 12px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid rgba(249, 168, 212, 0.32);
  border-radius: 26px;
  box-shadow: var(--soft-shadow);
}

.rank-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  transition: 0.25s ease;
}

.rank-item:hover {
  background: var(--pink-50);
}

.rank-num {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  border-radius: 999px;
}

.rank-title {
  display: grid;
  gap: 4px;
}

.rank-title strong {
  color: #111827;
}

.rank-title span,
.rank-score {
  color: var(--muted);
  font-size: 13px;
}

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

.category-card {
  padding: 22px;
  background: #ffffff;
  border: 1px solid rgba(249, 168, 212, 0.35);
  border-radius: 26px;
  box-shadow: var(--soft-shadow);
  transition: 0.28s ease;
}

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

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.page-hero {
  padding: 60px 0 34px;
  background:
    radial-gradient(circle at 14% 18%, rgba(236, 72, 153, 0.18), transparent 32%),
    radial-gradient(circle at 84% 18%, rgba(244, 63, 94, 0.12), transparent 30%);
}

.page-title {
  max-width: 860px;
}

.page-title p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--rose-600);
  font-weight: 800;
}

.detail-wrap {
  padding: 42px 0 72px;
}

.detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 34px;
  align-items: start;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #000000;
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(17, 24, 39, 0.28);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.64), rgba(0, 0, 0, 0.18));
  transition: opacity 0.25s ease;
}

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

.player-button {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border: 0;
  color: #ffffff;
  font-size: 30px;
  background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
  border-radius: 999px;
  box-shadow: 0 18px 34px rgba(244, 63, 94, 0.38);
}

.detail-card {
  padding: 24px;
  background: #ffffff;
  border: 1px solid rgba(249, 168, 212, 0.36);
  border-radius: 28px;
  box-shadow: var(--soft-shadow);
}

.detail-title h1 {
  margin-top: 0;
}

.detail-title p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.info-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3e2ea;
}

.info-list dt {
  color: var(--muted);
}

.info-list dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}

.content-panel {
  display: grid;
  gap: 24px;
  margin-top: 34px;
}

.article-block {
  padding: 26px;
  background: #ffffff;
  border: 1px solid rgba(249, 168, 212, 0.32);
  border-radius: 28px;
  box-shadow: var(--soft-shadow);
}

.article-block h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.article-block p {
  margin: 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.9;
}

.no-results {
  display: none;
  padding: 18px 22px;
  color: #be185d;
  background: #fce7f3;
  border-radius: 18px;
}

.site-footer {
  background: linear-gradient(180deg, #fff7fb, #ffe4ef);
  border-top: 1px solid #f8c6da;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 0.8fr;
  gap: 34px;
  padding: 44px 0 28px;
}

.footer-brand {
  color: #be185d;
  margin-bottom: 12px;
  font-size: 24px;
}

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

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

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  color: #be185d;
  padding: 8px 12px;
  background: #ffffff;
  border-radius: 999px;
}

.footer-bottom {
  padding: 18px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid #f8c6da;
}

.is-hidden-by-search {
  display: none;
}

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

  .rank-layout,
  .detail-top,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .header-search {
    width: 220px;
  }
}

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

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

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

  .mobile-panel .nav-link {
    display: block;
    margin: 6px 0;
  }

  .brand-text {
    font-size: 20px;
  }

  .hero {
    height: 560px;
  }

  .hero-content {
    bottom: 72px;
  }

  .hero-control {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .hero-control.prev {
    left: 18px;
  }

  .hero-control.next {
    right: 18px;
  }

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

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

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

  .movie-card h3 {
    font-size: 16px;
  }

  .rank-item {
    grid-template-columns: 38px 1fr;
  }

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

@media (max-width: 460px) {
  .movie-grid,
  .movie-grid.wide,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .horizontal-track {
    grid-auto-columns: 82vw;
  }

  .detail-card,
  .article-block {
    padding: 20px;
  }
}

.section-search {
  color: var(--text);
  background: #ffffff;
  border: 1px solid rgba(249, 168, 212, 0.55);
}

.section-search::placeholder {
  color: #9ca3af;
}

.rank-layout aside .movie-grid.wide {
  grid-template-columns: 1fr;
}
