:root {
  --rose: #f43f5e;
  --pink: #ec4899;
  --amber: #f59e0b;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff1f2;
  --line: #ffe4e6;
  --panel: rgba(255, 255, 255, 0.92);
  --shadow: 0 24px 60px rgba(244, 63, 94, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(244, 63, 94, 0.13), transparent 34rem),
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.13), transparent 32rem),
    linear-gradient(180deg, #fff7f8 0%, #ffffff 38%, #fff8fa 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

.site-header {
  border-bottom: 1px solid rgba(255, 228, 230, 0.95);
}

.nav-row {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.logo-mark {
  width: 2.4rem;
  height: 2.4rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.9rem;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 12px 30px rgba(244, 63, 94, 0.35);
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.nav-links {
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 0.96rem;
  color: #374151;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--rose);
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-link.subtle {
  color: #6b7280;
}

.top-search,
.mobile-search {
  align-items: center;
  gap: 0.5rem;
}

.top-search input,
.mobile-search input,
.filter-panel input,
.hero-search input {
  outline: none;
  border: 1px solid #fecdd3;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.top-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.hero-search input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.13);
}

.top-search input {
  width: 12rem;
  border-radius: 999px;
  padding: 0.62rem 1rem;
}

.top-search button,
.mobile-search button,
.hero-search button {
  border: 0;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.22);
}

.menu-button {
  margin-left: auto;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 0.8rem;
  background: #fff1f2;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
}

.menu-button span {
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: var(--rose);
}

.mobile-menu {
  display: none;
  padding: 0 0 1rem;
}

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

.mobile-link {
  display: block;
  padding: 0.8rem 1rem;
  border-radius: 0.9rem;
  color: #374151;
}

.mobile-link.active,
.mobile-link:hover {
  color: var(--rose);
  background: #fff1f2;
}

.mobile-search {
  display: flex;
  margin-top: 0.6rem;
}

.mobile-search input {
  min-width: 0;
  flex: 1;
  border-radius: 999px;
  padding: 0.75rem 1rem;
}

main {
  padding-top: 4.5rem;
}

.home-hero {
  position: relative;
  min-height: calc(100vh - 4.5rem);
  overflow: hidden;
  background: linear-gradient(135deg, #fff1f2, #fdf2f8 48%, #ffffff);
}

.hero-track {
  min-height: calc(100vh - 4.5rem);
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.8fr);
  align-items: center;
  gap: 3rem;
  opacity: 0;
  transform: scale(1.015);
  pointer-events: none;
  padding: 5rem max(1rem, calc((100vw - 80rem) / 2)) 8rem;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.hero-slide::before {
  content: "";
  position: absolute;
  inset: -25% auto auto -12%;
  width: 44rem;
  height: 44rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.2), transparent 65%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 47rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--rose);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-content h1,
.page-hero h1,
.detail-copy h1 {
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 0.98;
  margin: 0 0 1.25rem;
  letter-spacing: -0.06em;
}

.hero-content p,
.page-hero p,
.detail-copy p {
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.9;
  color: #4b5563;
  margin: 0 0 1.5rem;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #9f1239;
  border: 1px solid #fecdd3;
  padding: 0.45rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  border-radius: 999px;
  padding: 0 1.3rem;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button {
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 16px 35px rgba(244, 63, 94, 0.25);
}

.ghost-button {
  color: #be123c;
  border: 1px solid #fecdd3;
  background: rgba(255, 255, 255, 0.74);
}

.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.hero-visual {
  position: relative;
  z-index: 1;
  min-height: min(68vh, 40rem);
  border-radius: 2.4rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  background-image:
    linear-gradient(180deg, rgba(17, 24, 39, 0.05), rgba(17, 24, 39, 0.58)),
    linear-gradient(135deg, #fb7185, #f9a8d4),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto 1.2rem 1.2rem 1.2rem;
  height: 8rem;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.2));
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.hero-controls {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateX(-50%);
}

.hero-controls button {
  border: 0;
  cursor: pointer;
}

.hero-controls > button {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 999px;
  color: #be123c;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(244, 63, 94, 0.16);
  font-size: 1.6rem;
}

.hero-dots {
  display: flex;
  gap: 0.45rem;
}

.hero-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: #fda4af;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 1.7rem;
  background: var(--rose);
}

.hero-search {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 5.3rem;
  width: min(42rem, calc(100vw - 2rem));
  padding: 0.5rem;
  display: flex;
  gap: 0.5rem;
  border: 1px solid rgba(254, 205, 211, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 50px rgba(244, 63, 94, 0.16);
  transform: translateX(-50%);
}

.hero-search input {
  min-width: 0;
  flex: 1;
  border-radius: 999px;
  padding: 0 1.15rem;
}

.content-section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.section-more {
  flex-shrink: 0;
  color: var(--rose);
  font-weight: 800;
}

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

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

.rank-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.4rem;
  border: 1px solid rgba(254, 205, 211, 0.85);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 36px rgba(244, 63, 94, 0.08);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(244, 63, 94, 0.45);
  box-shadow: 0 24px 55px rgba(244, 63, 94, 0.15);
}

.movie-card[hidden] {
  display: none;
}

.movie-poster {
  position: relative;
  display: block;
  min-height: 18rem;
  overflow: hidden;
  background-image:
    linear-gradient(180deg, rgba(17, 24, 39, 0.08), rgba(17, 24, 39, 0.64)),
    linear-gradient(135deg, #fb7185, #f9a8d4),
    var(--poster-image);
  background-size: cover;
  background-position: center;
}

.poster-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.25), transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.55s ease;
}

.movie-card:hover .poster-shine {
  transform: translateX(100%);
}

.poster-year,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 800;
  background: rgba(17, 24, 39, 0.56);
  backdrop-filter: blur(12px);
}

.poster-year {
  right: 0.85rem;
  bottom: 0.85rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
}

.rank-badge {
  left: 0.85rem;
  top: 0.85rem;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--amber), var(--rose));
}

.movie-card-body {
  padding: 1.05rem;
}

.movie-title {
  display: block;
  min-height: 2.8rem;
  color: #111827;
  font-weight: 850;
  font-size: 1.05rem;
  line-height: 1.35;
}

.movie-meta,
.movie-desc {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.movie-meta {
  margin: 0.5rem 0 0.3rem;
}

.movie-desc {
  min-height: 4.45rem;
  margin: 0 0 0.8rem;
}

.card-actions {
  margin-top: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.card-actions a {
  color: var(--rose);
  font-weight: 850;
}

.card-actions span {
  color: #be123c;
  font-size: 0.86rem;
  font-weight: 800;
}

.movie-card-compact {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
}

.movie-card-compact .movie-poster {
  min-height: 12rem;
}

.movie-card-compact .movie-desc {
  min-height: auto;
}

.movie-card-compact .tag-row {
  display: none;
}

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

.category-card,
.overview-card {
  border: 1px solid rgba(254, 205, 211, 0.9);
  border-radius: 1.4rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 40px rgba(244, 63, 94, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover,
.overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(244, 63, 94, 0.14);
}

.category-card span,
.overview-link span {
  color: var(--rose);
  font-weight: 850;
}

.category-card strong,
.overview-card h2 {
  display: block;
  margin: 0.7rem 0;
  font-size: 1.15rem;
  line-height: 1.45;
}

.category-card em {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  color: var(--muted);
  font-style: normal;
  font-size: 0.88rem;
}

.overview-card p {
  color: var(--muted);
  line-height: 1.75;
}

.overview-card ul,
.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.overview-card li,
.site-footer li {
  margin: 0.55rem 0;
  color: #4b5563;
}

.inner-page {
  min-height: 60vh;
}

.page-hero {
  position: relative;
  padding: 6rem 0 4rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(244, 63, 94, 0.18), transparent 28rem),
    linear-gradient(135deg, #fff1f2, #fdf2f8 55%, #ffffff);
}

.page-hero::after {
  content: "";
  position: absolute;
  right: -8rem;
  top: -8rem;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.18), transparent 65%);
}

.page-hero h1 {
  max-width: 60rem;
}

.page-hero p {
  max-width: 46rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: #be123c;
  font-weight: 700;
}

.filter-panel {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(254, 205, 211, 0.95);
  border-radius: 1.4rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 36px rgba(244, 63, 94, 0.08);
}

.sticky-filter {
  position: sticky;
  top: 5rem;
  z-index: 20;
  backdrop-filter: blur(18px);
}

.filter-panel input {
  width: 100%;
  border-radius: 999px;
  padding: 0.9rem 1.1rem;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.filter-chip {
  border: 1px solid #fecdd3;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  color: #be123c;
  background: #ffffff;
  cursor: pointer;
  font-weight: 750;
}

.filter-chip.active,
.filter-chip:hover {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--rose), var(--pink));
}

.empty-state {
  margin-top: 2rem;
  border-radius: 1.4rem;
  padding: 2rem;
  text-align: center;
  color: #be123c;
  background: #fff1f2;
}

.detail-hero {
  position: relative;
  min-height: 34rem;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.45), rgba(17, 24, 39, 0.12)),
    linear-gradient(135deg, #881337, #be185d),
    var(--detail-image);
  background-size: cover;
  background-position: center;
  color: #ffffff;
}

.detail-hero-layer {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.14), transparent 30rem);
}

.detail-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.detail-copy {
  max-width: 60rem;
}

.detail-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.detail-copy .breadcrumb,
.detail-copy .eyebrow,
.detail-hero .breadcrumb {
  color: #fecdd3;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20rem;
  gap: 2rem;
}

.player-card,
.detail-article,
.side-card {
  border: 1px solid rgba(254, 205, 211, 0.9);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 42px rgba(244, 63, 94, 0.1);
}

.player-card {
  overflow: hidden;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0f172a;
}

.main-video {
  width: 100%;
  height: 100%;
  display: block;
  background: #0f172a;
}

.play-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  border: 0;
  color: #ffffff;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.28), rgba(15, 23, 42, 0.64));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-panel span {
  width: 5rem;
  height: 5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 20px 45px rgba(244, 63, 94, 0.38);
  font-size: 2rem;
}

.play-panel strong {
  font-size: 1.2rem;
}

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

.detail-article {
  margin-top: 1.5rem;
  padding: 1.5rem;
}

.detail-article h2,
.side-card h2 {
  margin: 0 0 1rem;
  font-size: 1.3rem;
}

.detail-article p {
  color: #374151;
  line-height: 2;
  margin: 0 0 1.3rem;
}

.detail-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.side-card {
  padding: 1.2rem;
}

.side-card dl {
  display: grid;
  grid-template-columns: 4rem minmax(0, 1fr);
  gap: 0.7rem 0.9rem;
  margin: 0;
}

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

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

.side-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.side-tags a {
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  color: #be123c;
  background: #fff1f2;
  border: 1px solid #fecdd3;
  font-weight: 750;
}

.site-footer {
  border-top: 1px solid rgba(254, 205, 211, 0.9);
  background: linear-gradient(135deg, #fff1f2, #fdf2f8);
  padding: 4rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 2rem;
}

.site-footer p {
  color: #4b5563;
  line-height: 1.8;
  margin: 1rem 0 0;
}

.site-footer h3 {
  margin: 0 0 1rem;
}

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

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

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

@media (max-width: 900px) {
  .hero-slide {
    position: relative;
    min-height: calc(100vh - 4.5rem);
    grid-template-columns: 1fr;
    gap: 2rem;
    padding-top: 3rem;
  }

  .hero-slide:not(.is-active) {
    display: none;
  }

  .hero-visual {
    min-height: 22rem;
    order: -1;
  }

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

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

  .detail-hero {
    min-height: 30rem;
  }
}

@media (max-width: 640px) {
  .logo-text {
    font-size: 1.05rem;
  }

  .hero-content h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 2.55rem;
  }

  .hero-search {
    bottom: 4.7rem;
  }

  .hero-search button {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

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

  .movie-card-compact {
    grid-template-columns: 7.5rem minmax(0, 1fr);
  }

  .movie-card-compact .movie-poster {
    min-height: 11rem;
  }

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

  .content-section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}
