:root {
  --pink: #ec4899;
  --rose: #f43f5e;
  --soft: #fff1f5;
  --soft-2: #fdf2f8;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(244, 63, 94, 0.18);
  --shadow: 0 20px 45px rgba(190, 24, 93, 0.14);
  --radius: 24px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fff7fb 0%, #ffffff 32%, #fff1f5 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(244, 63, 94, 0.08);
}
.nav-wrap {
  max-width: 1220px;
  height: 68px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 26px;
}
.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
}
.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(236, 72, 153, 0.34);
  font-size: 14px;
}
.brand-text {
  font-size: 22px;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #374151;
  font-weight: 700;
  flex: 1;
}
.desktop-nav a {
  transition: color 0.2s ease;
}
.desktop-nav a:hover {
  color: var(--pink);
}
.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-search input,
.search-panel input,
.search-panel select,
.local-filter input,
.local-filter select {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 15px;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}
.nav-search input:focus,
.search-panel input:focus,
.search-panel select:focus,
.local-filter input:focus,
.local-filter select:focus {
  border-color: rgba(236, 72, 153, 0.55);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.12);
}
.nav-search button,
.btn,
.search-panel button {
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.25);
}
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: var(--soft);
  color: var(--pink);
  font-size: 22px;
}
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 20px 18px;
}
.mobile-nav a {
  display: block;
  padding: 11px 14px;
  border-radius: 14px;
  font-weight: 700;
}
.mobile-nav a:hover {
  background: var(--soft);
  color: var(--pink);
}
.mobile-nav.is-open {
  display: block;
}
.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}
.hero {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 64px 0 56px;
  background:
    radial-gradient(circle at 18% 10%, rgba(236, 72, 153, 0.28), transparent 34%),
    radial-gradient(circle at 80% 8%, rgba(244, 63, 94, 0.24), transparent 32%),
    linear-gradient(135deg, #fff1f5 0%, #fff 48%, #ffe4e6 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(236, 72, 153, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 72, 153, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}
.hero-shell {
  position: relative;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}
.hero-slider {
  position: relative;
  min-height: 500px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 42px;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--pink);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.08);
}
.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.05;
  letter-spacing: -0.06em;
  color: #111827;
}
.hero h1 span {
  display: block;
  background: linear-gradient(90deg, var(--pink), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc {
  max-width: 720px;
  color: #4b5563;
  font-size: 18px;
}
.hero-meta,
.detail-meta,
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}
.hero-meta span,
.detail-meta span,
.card-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  padding: 4px 10px;
  font-size: 13px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
}
.btn-secondary {
  color: var(--pink);
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(236, 72, 153, 0.12);
}
.hero-poster {
  position: relative;
  min-height: 420px;
  border-radius: 34px;
  overflow: hidden;
  background: linear-gradient(135deg, #f9a8d4, #fb7185);
  box-shadow: var(--shadow);
}
.hero-poster img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  transform: scale(1.02);
}
.hero-poster::after,
.card-cover::after,
.rank-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.68), rgba(17, 24, 39, 0.08), transparent);
  pointer-events: none;
}
.hero-float {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 20px;
  color: white;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: end;
}
.hero-float strong {
  font-size: 24px;
}
.hero-dots {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-dot {
  border: 0;
  padding: 9px 15px;
  border-radius: 999px;
  background: white;
  color: #6b7280;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(190, 24, 93, 0.08);
}
.hero-dot.is-active {
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--rose));
}
.section {
  padding: 54px 0;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}
.section-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
}
.section-title span {
  background: linear-gradient(90deg, var(--pink), var(--rose));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-intro {
  color: var(--muted);
  max-width: 720px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: 0 14px 32px rgba(190, 24, 93, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #fbcfe8, #fecdd3);
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.movie-card:hover .card-cover img {
  transform: scale(1.1);
}
.card-badge {
  position: absolute;
  top: 13px;
  left: 13px;
  z-index: 2;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 800;
}
.card-body {
  padding: 18px;
}
.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}
.card-body h3 a:hover,
.rank-info h3 a:hover,
.text-link:hover {
  color: var(--pink);
}
.card-body p {
  color: var(--muted);
  margin: 0 0 12px;
  font-size: 14px;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}
.tag-row span,
.tag-cloud span,
.tag-cloud a {
  color: #be185d;
  background: var(--soft-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
}
.movie-card-horizontal {
  display: grid;
  grid-template-columns: 180px 1fr;
}
.movie-card-horizontal .card-cover {
  aspect-ratio: auto;
  min-height: 170px;
}
.movie-card-large {
  grid-column: span 2;
}
.movie-card-large .card-cover {
  aspect-ratio: 16 / 9;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}
.category-card {
  display: block;
  min-height: 170px;
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(255,241,245,0.9));
  border: 1px solid var(--line);
  box-shadow: 0 16px 35px rgba(190, 24, 93, 0.09);
  transition: transform 0.25s ease;
}
.category-card:hover {
  transform: translateY(-5px);
}
.category-card strong {
  display: block;
  font-size: 22px;
  color: #be185d;
  margin-bottom: 12px;
}
.category-card p {
  color: var(--muted);
  margin: 0;
}
.rank-list {
  display: grid;
  gap: 14px;
}
.rank-item {
  display: grid;
  grid-template-columns: 58px 112px 1fr;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  box-shadow: 0 12px 25px rgba(190, 24, 93, 0.07);
}
.rank-num {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  border-radius: 15px;
  font-weight: 900;
}
.rank-thumb {
  position: relative;
  display: block;
  height: 82px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #fbcfe8, #fecdd3);
}
.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rank-info h3 {
  margin: 0 0 5px;
}
.rank-info p {
  margin: 0 0 8px;
  color: var(--muted);
}
.page-hero {
  padding: 58px 0 30px;
  background: radial-gradient(circle at 22% 20%, rgba(236,72,153,0.18), transparent 32%), linear-gradient(135deg, #fff1f5, #fff);
}
.page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(36px, 5vw, 58px);
  letter-spacing: -0.04em;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
}
.breadcrumb a {
  color: #be185d;
}
.local-filter,
.search-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,0.92);
  box-shadow: 0 16px 32px rgba(190,24,93,0.08);
  margin-bottom: 26px;
}
.local-filter input,
.search-panel input {
  min-width: min(360px, 100%);
  flex: 1;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
}
.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  aspect-ratio: 16 / 9;
}
.player-box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #020617;
}
.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: white;
  background: radial-gradient(circle at center, rgba(236,72,153,0.22), rgba(2,6,23,0.64));
  cursor: pointer;
}
.play-overlay span {
  width: 86px;
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 18px 36px rgba(236,72,153,0.38);
  font-size: 34px;
  padding-left: 5px;
}
.play-overlay.is-hidden {
  display: none;
}
.detail-card,
.sidebar-card {
  border-radius: 26px;
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(190,24,93,0.08);
  padding: 24px;
}
.detail-card h1 {
  margin: 16px 0 12px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.12;
}
.detail-card h2,
.sidebar-card h2 {
  margin: 24px 0 12px;
  font-size: 24px;
}
.detail-card p {
  color: #4b5563;
  margin: 0 0 14px;
}
.poster-side {
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, #fbcfe8, #fecdd3);
  aspect-ratio: 3 / 4;
  margin-bottom: 18px;
}
.poster-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-list {
  display: grid;
  gap: 12px;
}
.related-list a {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: var(--soft-2);
}
.related-list img {
  width: 72px;
  height: 56px;
  object-fit: cover;
  border-radius: 13px;
  background: linear-gradient(135deg, #fbcfe8, #fecdd3);
}
.related-list strong {
  display: block;
  line-height: 1.3;
}
.related-list span {
  color: var(--muted);
  font-size: 13px;
}
.sitemap-groups {
  display: grid;
  gap: 22px;
}
.sitemap-group {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,0.94);
  padding: 22px;
}
.sitemap-links {
  columns: 4 220px;
  column-gap: 28px;
}
.sitemap-links a {
  display: block;
  break-inside: avoid;
  padding: 5px 0;
  color: #374151;
}
.sitemap-links a:hover {
  color: var(--pink);
}
.no-result {
  display: none;
  padding: 28px;
  border-radius: 24px;
  background: white;
  border: 1px solid var(--line);
  color: var(--muted);
}
@media (max-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-slide,
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .hero-slider {
    min-height: 900px;
  }
}
@media (max-width: 780px) {
  .desktop-nav,
  .nav-search {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }
  .nav-wrap {
    height: 64px;
  }
  .grid,
  .category-grid {
    grid-template-columns: 1fr;
  }
  .movie-card-large {
    grid-column: span 1;
  }
  .movie-card-horizontal {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
    padding: 38px 0 34px;
  }
  .hero-slider {
    min-height: 850px;
  }
  .hero-slide {
    gap: 24px;
  }
  .hero-poster,
  .hero-poster img {
    min-height: 360px;
  }
  .section-head {
    align-items: start;
    flex-direction: column;
  }
  .rank-item {
    grid-template-columns: 48px 1fr;
  }
  .rank-thumb {
    display: none;
  }
  .brand-text {
    font-size: 19px;
  }
  .detail-card,
  .sidebar-card {
    padding: 18px;
  }
}
