:root {
  --pink: #ec4899;
  --pink-deep: #db2777;
  --orange: #fb923c;
  --orange-deep: #f97316;
  --blue: #60a5fa;
  --ink: #1f2937;
  --muted: #6b7280;
  --soft: #fff7ed;
  --line: #f1f5f9;
  --card: rgba(255, 255, 255, 0.94);
  --shadow: 0 18px 45px rgba(236, 72, 153, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #fff7ed 0%, #fdf2f8 45%, #eff6ff 100%);
}

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

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

.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.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
}

.header-inner {
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.28);
}

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

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-weight: 600;
  color: #374151;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--pink);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #fff1f2;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: #9f1239;
}

.hero-section {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
}

.hero-gradient,
.hero-glass {
  position: absolute;
  inset: 0;
}

.hero-gradient {
  background: linear-gradient(120deg, #ec4899 0%, #fb923c 48%, #60a5fa 100%);
}

.hero-glass {
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.22), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.18), transparent 24%),
    rgba(0, 0, 0, 0.18);
}

.hero-inner {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.1fr 0.65fr;
  align-items: center;
  gap: 48px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  font-weight: 700;
}

.hero-copy h1 {
  margin: 22px 0 16px;
  max-width: 760px;
  font-size: clamp(42px, 7vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy p {
  max-width: 720px;
  font-size: clamp(18px, 2.5vw, 26px);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.hero-tags,
.detail-meta,
.card-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-tags span,
.detail-meta span,
.tag-row span,
.card-meta span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: inherit;
  font-size: 13px;
  font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.search-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.search-form button {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--orange-deep));
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.25);
}

.primary-btn:hover,
.ghost-btn:hover,
.search-form button:hover {
  transform: translateY(-2px) scale(1.02);
}

.primary-btn.small {
  min-height: 38px;
  padding: 0 18px;
  font-size: 14px;
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 10px solid rgba(255, 255, 255, 0.28);
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
  transform: rotate(2deg);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(255,255,255,0.24), rgba(255,255,255,0.06));
}

.poster-img.is-missing,
.hero-poster img.is-missing {
  min-height: 260px;
  background:
    linear-gradient(135deg, rgba(236, 72, 153, 0.88), rgba(251, 146, 60, 0.82)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.1) 0 8px, transparent 8px 16px);
}

.hero-dots {
  position: absolute;
  left: 0;
  bottom: 86px;
  display: flex;
  gap: 10px;
}

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

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

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 76px;
  color: #fff7ed;
}

.hero-wave svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.search-panel {
  margin-top: -34px;
  position: relative;
  z-index: 2;
  padding: 22px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.search-panel.full {
  margin-top: 0;
}

.search-form {
  display: flex;
  gap: 12px;
}

.search-form input,
.filter-bar input,
.filter-bar select,
.search-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #fed7e2;
  border-radius: 999px;
  padding: 0 18px;
  background: #ffffff;
  color: var(--ink);
  outline: none;
}

.search-form input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}

.stats-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
}

.stats-strip span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff7ed;
}

.stats-strip strong {
  color: var(--pink-deep);
}

.page-section {
  padding: 58px 0;
}

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

.section-heading h2 {
  display: inline;
  margin: 0 0 0 8px;
  font-size: clamp(26px, 4vw, 38px);
}

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

.section-icon {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.section-more,
.mini-link,
.back-link {
  color: var(--pink-deep);
  font-weight: 800;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #fbcfe8, #fed7aa);
}

.poster-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.poster-badge,
.poster-play {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.poster-badge {
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(236, 72, 153, 0.9);
  font-size: 12px;
  font-weight: 800;
}

.poster-play {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--pink-deep);
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.movie-body {
  padding: 16px;
}

.card-title,
.rank-title {
  display: block;
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.card-title:hover,
.rank-title:hover {
  color: var(--pink-deep);
}

.card-desc {
  min-height: 48px;
  margin: 8px 0 12px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta span,
.tag-row span {
  color: #9f1239;
  background: #fff1f2;
}

.tag-row {
  margin: 12px 0;
}

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

.rank-item,
.rank-row {
  display: grid;
  grid-template-columns: auto 90px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.rank-number,
.rank-row-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--orange));
}

.rank-thumb img,
.rank-row-poster img {
  width: 90px;
  height: 112px;
  border-radius: 16px;
  object-fit: cover;
  background: linear-gradient(135deg, #fbcfe8, #fed7aa);
}

.rank-item p,
.rank-row p {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.category-box,
.category-overview-card,
.content-card,
.side-card {
  padding: 24px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.category-box {
  display: grid;
  gap: 8px;
}

.category-box span,
.category-overview-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.category-box strong,
.category-overview-head strong {
  color: var(--pink-deep);
}

.category-box small,
.category-overview-card p {
  color: var(--muted);
  line-height: 1.7;
}

.category-box em {
  color: var(--orange-deep);
  font-style: normal;
  font-weight: 700;
}

.sub-hero {
  padding: 64px 0;
  color: #ffffff;
  background: linear-gradient(120deg, #ec4899 0%, #fb923c 52%, #60a5fa 100%);
}

.sub-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(36px, 6vw, 58px);
}

.sub-hero p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1.8;
}

.sub-hero .back-link {
  color: rgba(255, 255, 255, 0.88);
}

.category-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.category-mini-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.category-mini-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff7ed;
  color: #374151;
  font-weight: 700;
}

.category-mini-list span {
  color: var(--muted);
  font-weight: 600;
}

.filter-bar {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.result-count {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 800;
}

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

.rank-row {
  grid-template-columns: 54px 100px 1fr auto;
}

.rank-row-poster img {
  width: 100px;
  height: 130px;
}

.rank-score {
  min-width: 96px;
  text-align: center;
}

.rank-score strong {
  display: block;
  color: var(--pink-deep);
  font-size: 28px;
}

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

.detail-hero {
  position: relative;
  padding: 58px 0;
  color: #ffffff;
  overflow: hidden;
  background: linear-gradient(120deg, #ec4899 0%, #fb923c 52%, #60a5fa 100%);
}

.detail-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.22), transparent 26%), rgba(0,0,0,0.18);
}

.detail-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 34px;
  align-items: center;
}

.detail-poster-card {
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.26);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.detail-poster-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: linear-gradient(135deg, #fbcfe8, #fed7aa);
}

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

.detail-main-copy h1 {
  margin: 16px 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.1;
}

.detail-main-copy p {
  max-width: 860px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
  line-height: 1.8;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
  padding: 42px 0 0;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.24);
}

.movie-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0.82));
  cursor: pointer;
}

.player-overlay span {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--pink-deep);
  background: #ffffff;
  font-size: 30px;
}

.player-overlay strong {
  font-size: 22px;
}

.player-card.is-playing .player-overlay {
  display: none;
}

.content-card {
  margin-top: 22px;
}

.content-card h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.content-card p {
  margin: 0;
  color: #374151;
  font-size: 16px;
  line-height: 1.9;
  white-space: pre-line;
}

.detail-sidebar {
  display: grid;
  align-content: start;
  gap: 20px;
}

.side-card {
  position: sticky;
  top: 84px;
}

.side-card + .side-card {
  position: static;
}

dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px 12px;
  margin: 0;
}

dt {
  color: var(--muted);
  font-weight: 700;
}

dd {
  margin: 0;
  font-weight: 700;
}

.movie-card.compact {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  padding: 10px;
  box-shadow: none;
  background: #fff7ed;
}

.compact-poster img {
  width: 86px;
  height: 104px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #fbcfe8, #fed7aa);
}

.compact-info p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.quick-filters button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  color: #9f1239;
  background: #fff1f2;
  font-weight: 800;
  cursor: pointer;
}

.site-footer {
  margin-top: 60px;
  color: #e5e7eb;
  background: linear-gradient(90deg, #1f2937, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  padding: 42px 0;
}

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

.site-footer h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.site-footer p,
.site-footer a {
  display: block;
  margin: 8px 0;
  color: #cbd5e1;
  line-height: 1.7;
}

.site-footer a:hover {
  color: #f9a8d4;
}

.footer-bottom {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: #94a3b8;
}

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

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

  .hero-poster {
    display: none;
  }

  .detail-hero-inner {
    grid-template-columns: 160px 1fr;
  }

  .rank-preview,
  .category-grid,
  .category-overview-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

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

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

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 12px;
    right: 12px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-link {
    padding: 12px 14px;
    border-radius: 14px;
  }

  .nav-link:hover,
  .nav-link.active {
    background: #fff1f2;
  }

  .hero-section,
  .hero-inner {
    min-height: 580px;
  }

  .hero-slide {
    display: flex;
  }

  .hero-dots {
    bottom: 70px;
  }

  .search-form,
  .section-heading,
  .detail-hero-inner,
  .rank-row {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

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

  .movie-body {
    padding: 12px;
  }

  .card-title {
    font-size: 16px;
  }

  .card-desc {
    min-height: 0;
    font-size: 13px;
  }

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

  .rank-item,
  .rank-row {
    grid-template-columns: 42px 76px 1fr;
  }

  .rank-score {
    grid-column: 1 / -1;
    text-align: left;
  }

  .detail-poster-card {
    max-width: 180px;
  }

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

@media (max-width: 430px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

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

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