:root {
  --rose: #f43f5e;
  --pink: #ec4899;
  --amber: #f59e0b;
  --purple: #8b5cf6;
  --blue: #2563eb;
  --green: #10b981;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fff1f2;
  --line: #e5e7eb;
  --shadow: 0 20px 50px rgba(17, 24, 39, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img,
video {
  display: block;
  max-width: 100%;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.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.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 74px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #f472b6, #f43f5e);
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.28);
}

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

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

.nav-link {
  position: relative;
  color: #374151;
  font-weight: 700;
}

.nav-link::after {
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 3px;
  content: "";
  border-radius: 999px;
  background: var(--rose);
  transition: width 0.25s ease;
}

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

.nav-link:hover::after {
  width: 100%;
}

.header-search,
.mobile-search {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 2px solid #f3f4f6;
  border-radius: 999px;
  background: #ffffff;
}

.header-search input,
.mobile-search input {
  width: 220px;
  border: 0;
  outline: 0;
  padding: 11px 14px;
}

.header-search button,
.mobile-search button {
  border: 0;
  padding: 11px 18px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
}

.menu-button {
  display: none;
  margin-left: auto;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  color: #374151;
  background: #f3f4f6;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 16px;
  background: #ffffff;
}

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

.mobile-panel nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.mobile-link {
  border-radius: 14px;
  padding: 12px 14px;
  color: #374151;
  background: #f9fafb;
}

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  padding: 96px 0 72px;
  background: linear-gradient(135deg, #ffe4e6 0%, #fff7ed 48%, #ffffff 100%);
}

.hero-blobs span {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 999px;
  filter: blur(54px);
  opacity: 0.28;
  animation: blob 12s infinite ease-in-out;
}

.hero-blobs span:nth-child(1) {
  top: 30px;
  left: 8%;
  background: #fb7185;
}

.hero-blobs span:nth-child(2) {
  top: 20px;
  right: 9%;
  background: #f0abfc;
  animation-delay: 2s;
}

.hero-blobs span:nth-child(3) {
  bottom: 16px;
  left: 28%;
  background: #fcd34d;
  animation-delay: 4s;
}

@keyframes blob {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(24px, -18px) scale(1.08);
  }
  66% {
    transform: translate(-18px, 18px) scale(0.95);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-label,
.section-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  border-radius: 999px;
  padding: 8px 15px;
  color: #be123c;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 30px rgba(244, 63, 94, 0.12);
  font-size: 14px;
  font-weight: 800;
}

.hero-carousel {
  position: relative;
  min-height: 420px;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 420px);
  gap: 56px;
  align-items: center;
}

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

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  background: linear-gradient(90deg, #be123c, #db2777, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 710px;
  margin: 0 0 28px;
  color: #4b5563;
  font-size: 20px;
  line-height: 1.8;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 18px;
  color: #9f1239;
  font-weight: 800;
}

.hero-actions,
.center-action,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

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

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

.btn.primary {
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  box-shadow: 0 18px 36px rgba(244, 63, 94, 0.24);
}

.btn.ghost {
  color: #374151;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.08);
}

.btn.outline {
  color: var(--rose);
  border: 2px solid var(--rose);
  background: #ffffff;
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.78);
  border-radius: 34px;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}

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

.hero-poster span {
  position: absolute;
  right: 18px;
  top: 18px;
  border-radius: 999px;
  padding: 8px 13px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.82);
  font-weight: 900;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 22px 0 26px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 999px;
  background: rgba(244, 63, 94, 0.25);
}

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

.hero-search {
  display: flex;
  max-width: 760px;
  margin: 0 auto;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 17px 22px;
  background: transparent;
}

.hero-search button {
  border: 0;
  padding: 0 26px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--rose), var(--pink));
  font-weight: 900;
}

.section {
  padding: 74px 0;
}

.white-section {
  background: #ffffff;
}

.soft-section {
  background: linear-gradient(135deg, #f9fafb, #fff1f2);
}

.warm-section {
  background: linear-gradient(135deg, #fffbeb, #fff1f2, #fdf2f8);
}

.section-head {
  margin-bottom: 32px;
}

.section-head.center {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-head.between {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.section-head h2,
.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.section-head p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.section-kicker.purple {
  color: #6d28d9;
  background: #f3e8ff;
}

.section-kicker.green {
  color: #047857;
  background: #d1fae5;
}

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

.category-card,
.category-tile {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 24px 18px;
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.11);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.category-tile:hover,
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px rgba(17, 24, 39, 0.16);
}

.category-card strong,
.category-card em,
.category-tile h2,
.category-tile p,
.category-tile em {
  position: relative;
  z-index: 1;
}

.category-icon,
.category-tile span {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 10px;
  font-size: 34px;
}

.category-card strong,
.category-tile h2 {
  display: block;
  margin: 0 0 6px;
  font-size: 18px;
}

.category-card em,
.category-tile em {
  display: block;
  font-style: normal;
  opacity: 0.92;
}

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

.category-tile {
  min-height: 210px;
  padding: 30px;
}

.category-tile p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.7;
}

.tone-rose {
  background: linear-gradient(135deg, #fb7185, #e11d48);
}

.tone-blue {
  background: linear-gradient(135deg, #38bdf8, #2563eb);
}

.tone-purple {
  background: linear-gradient(135deg, #a78bfa, #db2777);
}

.tone-indigo {
  background: linear-gradient(135deg, #818cf8, #6d28d9);
}

.tone-pink {
  background: linear-gradient(135deg, #f9a8d4, #f43f5e);
}

.tone-orange {
  background: linear-gradient(135deg, #fb923c, #ef4444);
}

.tone-amber {
  background: linear-gradient(135deg, #fbbf24, #f97316);
}

.tone-cyan {
  background: linear-gradient(135deg, #22d3ee, #2563eb);
}

.tone-slate {
  background: linear-gradient(135deg, #64748b, #111827);
}

.tone-green {
  background: linear-gradient(135deg, #34d399, #0f766e);
}

.tone-emerald {
  background: linear-gradient(135deg, #10b981, #65a30d);
}

.tone-fuchsia {
  background: linear-gradient(135deg, #e879f9, #7c3aed);
}

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

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

.dense-grid {
  gap: 18px;
}

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.10);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-link {
  display: block;
  height: 100%;
}

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

.movie-card.featured .poster-wrap {
  aspect-ratio: 16 / 10;
}

.movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

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

.score-badge,
.rank-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(17, 24, 39, 0.82);
  font-size: 13px;
  font-weight: 900;
}

.rank-badge {
  left: 12px;
  right: auto;
  background: linear-gradient(90deg, var(--amber), var(--rose));
}

.card-body {
  padding: 18px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.meta-row span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  padding: 5px 9px;
  color: #be123c;
  background: #ffe4e6;
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 14px;
  overflow: hidden;
  color: #6b7280;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.movie-card.overlay .card-body {
  background: linear-gradient(180deg, #ffffff, #fff1f2);
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
}

.rank-panel,
.side-card,
.detail-content,
.player-card {
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(17, 24, 39, 0.10);
}

.rank-panel {
  position: sticky;
  top: 96px;
  padding: 24px;
}

.rank-panel h2,
.side-card h2 {
  margin: 0 0 18px;
}

.compact-list {
  display: grid;
  gap: 12px;
}

.compact-link {
  display: grid;
  grid-template-columns: auto 58px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 16px;
  padding: 10px;
  background: #f9fafb;
  transition: background 0.25s ease, transform 0.25s ease;
}

.compact-link:hover {
  background: #fff1f2;
  transform: translateX(4px);
}

.compact-link img {
  width: 58px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
}

.compact-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  font-size: 13px;
  font-weight: 900;
}

.compact-link strong,
.compact-link em {
  display: block;
}

.compact-link strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-link em {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.more-link,
.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--rose);
  font-weight: 900;
}

.center-action {
  justify-content: center;
  margin-top: 36px;
}

.page-hero {
  padding: 74px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #f43f5e, #db2777);
}

.page-hero .section-kicker {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
}

.page-hero .back-link {
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.9);
}

.filter-bar,
.search-page-form {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(4, minmax(130px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  border-radius: 22px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
}

.filter-bar input,
.filter-bar select,
.search-page-form input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  outline: 0;
  padding: 13px 14px;
  background: #f9fafb;
}

.filter-status,
.search-summary {
  margin: 0 0 24px;
  color: var(--muted);
  font-weight: 700;
}

.search-page-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.detail-shell {
  padding: 34px 0 72px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.detail-main {
  min-width: 0;
}

.player-card {
  overflow: hidden;
  margin-bottom: 24px;
  background: #020617;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  background: #020617;
}

.player-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.55), rgba(190, 18, 60, 0.28));
}

.player-overlay[hidden] {
  display: none;
}

.player-overlay span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 86px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose), var(--pink));
  box-shadow: 0 18px 45px rgba(244, 63, 94, 0.35);
  font-size: 34px;
}

.detail-content {
  padding: 30px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.detail-content h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.lead {
  margin: 0 0 24px;
  color: #4b5563;
  font-size: 19px;
  line-height: 1.8;
}

.content-block {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

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

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

.review-block {
  border: 0;
  border-radius: 22px;
  padding: 24px;
  background: linear-gradient(135deg, #fffbeb, #fff1f2);
}

.info-grid dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.info-grid dl div {
  border-radius: 16px;
  padding: 14px;
  background: #f9fafb;
}

.info-grid dt {
  color: var(--muted);
  font-size: 13px;
}

.info-grid dd {
  margin: 5px 0 0;
  font-weight: 800;
}

.detail-side {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 20px;
}

.side-card {
  overflow: hidden;
  padding: 22px;
}

.poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  object-fit: cover;
}

.poster-card h2 {
  margin: 18px 0 8px;
}

.poster-card p {
  margin: 0;
  color: var(--muted);
}

.related-section {
  padding-bottom: 0;
}

.site-footer {
  color: #d1d5db;
  background: linear-gradient(135deg, #111827, #1f2937, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 36px;
  padding: 54px 0 34px;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
}

.site-footer p {
  color: #9ca3af;
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 9px;
}

.footer-links a:hover {
  color: #fb7185;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  gap: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 18px;
  color: #9ca3af;
  font-size: 14px;
}

.is-hidden {
  display: none !important;
}

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

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

  .hero-slide {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-copy p {
    margin-right: auto;
    margin-left: auto;
  }

  .hero-actions {
    justify-content: center;
  }

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

  .two-col,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .rank-panel,
  .detail-side {
    position: static;
  }
}

@media (max-width: 900px) {
  .category-grid,
  .category-tile-grid,
  .movie-grid,
  .featured-grid,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .section-head.between {
    display: block;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .home-hero {
    min-height: auto;
    padding: 56px 0 48px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-poster img {
    height: 430px;
  }

  .hero-search,
  .search-page-form {
    display: grid;
    border-radius: 22px;
  }

  .hero-search button {
    padding: 14px;
  }

  .category-grid,
  .category-tile-grid,
  .movie-grid,
  .featured-grid,
  .footer-grid,
  .filter-bar,
  .info-grid dl {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 52px 0;
  }

  .detail-content {
    padding: 22px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
}
