:root {
  color-scheme: light;
  --bg: #fff7f8;
  --surface: #ffffff;
  --surface-strong: #fff1f2;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(244, 63, 94, 0.16);
  --rose: #f43f5e;
  --rose-dark: #be123c;
  --amber: #facc15;
  --dark: #111827;
  --shadow: 0 24px 60px rgba(190, 18, 60, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(244, 63, 94, 0.18), transparent 28rem),
    linear-gradient(180deg, #fff7f8 0%, #ffffff 42%, #fff7f8 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(255, 247, 248, 0.86);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--rose), #fb7185 52%, var(--amber));
  box-shadow: 0 12px 24px rgba(244, 63, 94, 0.24);
}

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  transition: all 0.2s ease;
}

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

.top-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.04);
}

.top-search input,
.mobile-panel input,
.filter-bar input,
.filter-bar select {
  border: 0;
  outline: 0;
  min-width: 0;
  border-radius: 999px;
  padding: 10px 12px;
  background: transparent;
  color: var(--ink);
}

.top-search button,
.mobile-panel button,
.btn,
.filter-bar button,
.play-button {
  border: 0;
  cursor: pointer;
  font-weight: 900;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--rose), var(--rose-dark));
  box-shadow: 0 12px 26px rgba(244, 63, 94, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.top-search button,
.mobile-panel button,
.filter-bar button {
  padding: 10px 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
}

.btn:hover,
.top-search button:hover,
.mobile-panel button:hover,
.filter-bar button:hover,
.play-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(244, 63, 94, 0.32);
}

.btn.secondary {
  color: var(--rose-dark);
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  color: var(--rose-dark);
  background: #ffffff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
}

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

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

.mobile-panel a {
  padding: 10px 12px;
  border-radius: 14px;
  font-weight: 800;
  background: #fff7f8;
}

.mobile-panel form {
  display: flex;
  gap: 8px;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 28px;
}

.hero-shell {
  position: relative;
  min-height: 580px;
  border-radius: 36px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.44), transparent 20rem),
    linear-gradient(135deg, #be123c 0%, #f43f5e 44%, #f59e0b 100%);
  color: #ffffff;
  box-shadow: var(--shadow);
}

.hero-shell::before,
.hero-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.hero-shell::before {
  width: 360px;
  height: 360px;
  right: -120px;
  top: -80px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-shell::after {
  width: 520px;
  height: 520px;
  left: -220px;
  bottom: -260px;
  background: rgba(250, 204, 21, 0.2);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.72fr);
  gap: 40px;
  align-items: center;
  padding: 58px;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: 100%;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff7ed;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero h1,
.hero h2 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

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

.hero-tags span,
.tag-row span,
.meta-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.hero-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.tag-row span,
.meta-chip {
  color: var(--rose-dark);
  background: #ffe4e6;
}

.hero-panel {
  position: relative;
  z-index: 1;
  padding: 20px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.18);
}

.hero-panel .poster {
  min-height: 420px;
}

.hero-dots {
  position: absolute;
  left: 58px;
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

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

.hero-dot.active {
  background: #ffffff;
}

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

.quick-card,
.category-card,
.stat-card,
.info-box,
.review-box,
.rank-row,
.search-panel {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 44px rgba(190, 18, 60, 0.08);
}

.quick-card,
.category-card,
.stat-card {
  padding: 22px;
}

.quick-card:hover,
.category-card:hover,
.movie-card:hover,
.rank-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(244, 63, 94, 0.14);
}

.quick-card strong,
.category-card strong,
.stat-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.quick-card p,
.category-card p,
.stat-card p,
.card-body p,
.info-box p,
.review-box p,
.page-intro p,
.empty-state {
  color: var(--muted);
  line-height: 1.75;
}

.section {
  padding: 34px 0;
}

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

.section-head p,
.page-title p {
  margin: 0 0 8px;
  color: var(--rose-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.section-head h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.04em;
}

.section-link {
  flex: 0 0 auto;
  color: var(--rose-dark);
  font-weight: 900;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-poster {
  display: block;
}

.poster {
  position: relative;
  min-height: 250px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, #be123c, #fb7185);
}

.poster::before,
.poster::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.poster::before {
  width: 180px;
  height: 180px;
  right: -70px;
  top: -40px;
  background: rgba(255, 255, 255, 0.18);
}

.poster::after {
  width: 120px;
  height: 120px;
  left: -44px;
  bottom: -34px;
  background: rgba(250, 204, 21, 0.2);
}

.poster strong,
.poster small,
.poster-year {
  position: relative;
  z-index: 1;
}

.poster strong {
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.poster small {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
}

.poster-year {
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  font-weight: 900;
}

.poster-large strong {
  font-size: clamp(32px, 4vw, 52px);
}

.poster-v0 { background: linear-gradient(135deg, #be123c, #fb7185); }
.poster-v1 { background: linear-gradient(135deg, #9f1239, #f97316); }
.poster-v2 { background: linear-gradient(135deg, #7c2d12, #f59e0b); }
.poster-v3 { background: linear-gradient(135deg, #831843, #ec4899); }
.poster-v4 { background: linear-gradient(135deg, #881337, #e11d48); }
.poster-v5 { background: linear-gradient(135deg, #0f172a, #f43f5e); }
.poster-v6 { background: linear-gradient(135deg, #1e1b4b, #fb7185); }
.poster-v7 { background: linear-gradient(135deg, #312e81, #f97316); }
.poster-v8 { background: linear-gradient(135deg, #3f3f46, #f43f5e); }
.poster-v9 { background: linear-gradient(135deg, #713f12, #eab308); }
.poster-v10 { background: linear-gradient(135deg, #4c0519, #fda4af); }
.poster-v11 { background: linear-gradient(135deg, #111827, #f59e0b); }

.card-body {
  padding: 17px;
}

.card-meta,
.detail-meta,
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.card-body h3 {
  margin: 10px 0 8px;
  font-size: 19px;
  line-height: 1.25;
}

.card-body h3 a:hover {
  color: var(--rose-dark);
}

.movie-card.compact .poster {
  min-height: 180px;
}

.movie-card.compact .card-body p {
  display: none;
}

.page-hero {
  padding: 46px 0 22px;
}

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

.filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
  gap: 10px;
  margin: 24px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.05);
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  background: #fff7f8;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) 160px 140px;
  gap: 16px;
  align-items: center;
  padding: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: #ffffff;
  font-weight: 1000;
  background: linear-gradient(135deg, var(--rose), var(--amber));
}

.rank-main strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.detail-hero {
  padding: 34px 0;
}

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

.detail-copy h1 {
  margin: 16px 0 14px;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-copy .lead {
  color: #374151;
  font-size: 18px;
  line-height: 1.85;
}

.player-card {
  overflow: hidden;
  border-radius: 34px;
  background: #050816;
  box-shadow: 0 22px 70px rgba(17, 24, 39, 0.24);
}

.player-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.5), transparent 22rem),
    linear-gradient(135deg, #0f172a, #111827);
}

.player-wrap video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

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

.player-overlay-content {
  pointer-events: auto;
}

.play-button {
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  font-size: 30px;
}

.player-caption {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

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

.info-box,
.review-box,
.search-panel {
  padding: 24px;
}

.info-box h2,
.review-box h2 {
  margin-top: 0;
}

.breadcrumb {
  margin-bottom: 10px;
}

.breadcrumb a {
  color: var(--rose-dark);
}

.sitemap-list {
  columns: 4 220px;
  column-gap: 28px;
}

.sitemap-list a {
  display: block;
  break-inside: avoid;
  padding: 8px 0;
  color: #374151;
}

.sitemap-list a:hover {
  color: var(--rose-dark);
}

.hidden-by-filter {
  display: none !important;
}

.empty-state {
  display: none;
  padding: 28px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
}

.empty-state.show {
  display: block;
}

.site-footer {
  margin-top: 40px;
  padding: 42px 0;
  color: #f9fafb;
  background: #111827;
}

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

.footer-inner p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.footer-links,
.footer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: start;
}

.footer-links a,
.footer-cats a {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 1080px) {
  .top-search {
    display: none;
  }

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

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

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

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

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .hero-shell {
    min-height: 760px;
    border-radius: 28px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 24px;
  }

  .hero-panel .poster {
    min-height: 260px;
  }

  .hero-dots {
    left: 28px;
    bottom: 24px;
  }

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

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

  .rank-row > span:not(.rank-number) {
    display: none;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container,
  .header-inner,
  .footer-inner,
  .mobile-panel {
    width: min(100% - 22px, 1180px);
  }

  .hero {
    padding-top: 20px;
  }

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

  .movie-grid,
  .quick-grid,
  .category-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .poster {
    min-height: 220px;
  }

  .section-head,
  .page-title {
    display: block;
  }
}
