:root {
  --pink: #e91e63;
  --pink-dark: #be185d;
  --purple: #7c3aed;
  --purple-soft: #f4e8ff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #f3d5e6;
  --card: #ffffff;
  --bg: #fff7fb;
  --shadow: 0 20px 50px rgba(190, 24, 93, 0.12);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--text);
  background: linear-gradient(180deg, #fff5fb 0%, #ffffff 46%, #fbf5ff 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
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: 60;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(233, 30, 99, 0.12);
  box-shadow: 0 12px 30px rgba(233, 30, 99, 0.08);
}
.nav-shell {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: transparent;
  background: linear-gradient(120deg, var(--pink), var(--purple));
  background-clip: text;
  -webkit-background-clip: text;
  white-space: nowrap;
}
.logo {
  font-size: 23px;
}
.footer-logo {
  font-size: 22px;
}
.logo-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 12px;
  font-size: 15px;
  box-shadow: 0 12px 24px rgba(233, 30, 99, 0.28);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar {
  display: none;
}
.nav-links a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #4b5563;
  font-weight: 700;
  white-space: nowrap;
  transition: 0.22s ease;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--pink-dark);
  background: #ffe4f1;
}
.top-search {
  width: 280px;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid rgba(233, 30, 99, 0.18);
  border-radius: 999px;
  padding: 4px;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.08);
}
.top-search input {
  width: 100%;
  border: 0;
  outline: 0;
  padding: 10px 12px;
  background: transparent;
}
.top-search button,
.search-panel button,
.primary-btn,
.secondary-btn {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
}
.top-search button,
.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 14px 24px rgba(233, 30, 99, 0.2);
}
.top-search button {
  padding: 9px 15px;
}
.primary-btn,
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
}
.secondary-btn {
  color: var(--pink-dark);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.primary-btn:hover,
.secondary-btn:hover,
.top-search button:hover {
  transform: translateY(-2px);
}
.menu-toggle {
  display: none;
  border: 0;
  background: #ffe4f1;
  color: var(--pink-dark);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  font-size: 22px;
}
.hero-slider {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #160617;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center;
  transition: opacity 0.8s ease, transform 1.8s ease;
  transform: scale(1.03);
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 68% 35%, rgba(255, 255, 255, 0.2), transparent 28%), linear-gradient(90deg, rgba(139, 18, 78, 0.95), rgba(124, 58, 237, 0.74) 46%, rgba(0, 0, 0, 0.36));
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  align-items: center;
  gap: 42px;
  color: #fff;
}
.hero-copy {
  max-width: 720px;
}
.hero-kicker,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}
.hero-copy h1 {
  margin: 20px 0 16px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}
.hero-copy p {
  margin: 0 0 28px;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.hero-card {
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}
.hero-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.hero-card div {
  padding: 18px;
}
.hero-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 18px;
}
.hero-card span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}
.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 5;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
  transition: 0.2s ease;
}
.hero-dots button.active {
  width: 32px;
  background: #fff;
}
.section {
  padding: 68px 0;
}
.section.alt {
  background: linear-gradient(90deg, rgba(255, 228, 241, 0.7), rgba(244, 232, 255, 0.72));
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 28px;
}
.section-head.center {
  text-align: center;
  justify-content: center;
}
.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
}
.section-head p,
.category-intro,
.page-lead {
  color: var(--muted);
  line-height: 1.8;
}
.section-link {
  color: var(--pink-dark);
  font-weight: 900;
}
.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.movie-grid.large {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.movie-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid rgba(233, 30, 99, 0.1);
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.movie-card:hover {
  transform: translateY(-8px);
  border-color: rgba(233, 30, 99, 0.28);
  box-shadow: var(--shadow);
}
.poster-box {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #ffe4f1, #f4e8ff);
}
.poster-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.movie-card:hover img {
  transform: scale(1.08);
}
.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.72));
  opacity: 0.74;
}
.region-badge,
.rank-mark {
  position: absolute;
  top: 12px;
  z-index: 2;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.region-badge {
  right: 12px;
  padding: 7px 10px;
  background: rgba(233, 30, 99, 0.9);
}
.rank-mark {
  left: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffbf38, #e91e63);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.card-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  min-height: 176px;
}
.card-info strong {
  font-size: 17px;
  line-height: 1.4;
}
.card-info em {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
  line-height: 1.7;
}
.tag-row,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.tag-row span,
.meta-row small,
.pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--pink-dark);
  background: #ffe4f1;
  font-size: 12px;
  font-weight: 800;
}
.meta-row small {
  color: #6b21a8;
  background: #f4e8ff;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.category-tile {
  min-height: 220px;
  padding: 28px;
  border-radius: 28px;
  background: radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.85), transparent 28%), linear-gradient(135deg, #fff, #fff0f8 46%, #f6ecff);
  border: 1px solid rgba(233, 30, 99, 0.13);
  box-shadow: 0 16px 42px rgba(124, 58, 237, 0.1);
  transition: 0.25s ease;
}
.category-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}
.category-tile h2,
.category-tile h3 {
  margin: 0 0 12px;
  font-size: 24px;
}
.category-tile p {
  color: var(--muted);
  line-height: 1.8;
}
.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.category-links a {
  color: var(--pink-dark);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(233, 30, 99, 0.12);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 800;
}
.rank-list {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}
.rank-feature {
  min-height: 470px;
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: var(--shadow);
  background-size: cover;
  background-position: center;
}
.rank-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(190, 24, 93, 0.4));
}
.rank-feature div {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 28px;
  color: #fff;
}
.rank-feature h2 {
  margin: 0 0 12px;
  font-size: 34px;
}
.rank-side {
  display: grid;
  gap: 12px;
}
.rank-item {
  display: grid;
  grid-template-columns: 48px 76px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(233, 30, 99, 0.1);
  box-shadow: 0 10px 26px rgba(31, 41, 55, 0.06);
}
.rank-num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-radius: 14px;
  font-weight: 900;
}
.rank-item img {
  width: 76px;
  height: 96px;
  object-fit: cover;
  border-radius: 14px;
  background: #ffe4f1;
}
.rank-item strong {
  display: block;
  margin-bottom: 6px;
}
.rank-item span {
  color: var(--muted);
  font-size: 13px;
}
.page-hero {
  padding: 72px 0 48px;
  color: #fff;
  background: radial-gradient(circle at 74% 20%, rgba(255, 255, 255, 0.22), transparent 30%), linear-gradient(135deg, var(--pink-dark), var(--purple));
}
.page-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.04em;
}
.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.85;
  font-size: 18px;
}
.filter-panel,
.search-panel {
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(233, 30, 99, 0.12);
  box-shadow: 0 12px 34px rgba(31, 41, 55, 0.06);
}
.filter-panel input,
.search-panel input {
  width: 100%;
  border: 1px solid rgba(233, 30, 99, 0.16);
  border-radius: 18px;
  padding: 14px 16px;
  outline: 0;
  font-size: 16px;
}
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.filter-buttons button,
.search-panel button {
  padding: 10px 15px;
  color: var(--pink-dark);
  background: #ffe4f1;
}
.filter-buttons button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 14px;
}
.breadcrumb a {
  color: var(--pink-dark);
  font-weight: 800;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) 360px;
  gap: 28px;
  align-items: start;
}
.player-card,
.detail-card,
.side-card {
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(233, 30, 99, 0.1);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.player-wrap {
  position: relative;
  background: #05030a;
  aspect-ratio: 16 / 9;
}
.movie-video {
  width: 100%;
  height: 100%;
  background: #05030a;
  object-fit: contain;
  cursor: pointer;
}
.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background-size: cover;
  background-position: center;
}
.player-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.76), rgba(190, 24, 93, 0.42));
}
.player-cover.is-hidden {
  display: none;
}
.player-start {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.32);
}
.player-error {
  display: none;
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 3;
  padding: 12px 14px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  border-radius: 14px;
  text-align: center;
}
.player-error.show {
  display: block;
}
.player-title {
  padding: 22px 24px;
}
.player-title h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4vw, 42px);
}
.player-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}
.detail-card {
  margin-top: 24px;
  padding: 28px;
}
.detail-card h2,
.side-card h2 {
  margin: 0 0 16px;
  font-size: 24px;
}
.detail-card p {
  color: #374151;
  line-height: 2;
  font-size: 16px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.info-grid span {
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff7fb;
  color: #4b5563;
}
.info-grid b {
  color: var(--pink-dark);
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 18px 0 6px;
}
.side-card {
  padding: 20px;
}
.side-poster {
  overflow: hidden;
  border-radius: 22px;
  margin-bottom: 18px;
  background: #ffe4f1;
}
.side-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.related-list {
  display: grid;
  gap: 14px;
}
.related-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: #fff7fb;
  transition: 0.2s ease;
}
.related-item:hover {
  background: #ffe4f1;
}
.related-item img {
  width: 72px;
  height: 92px;
  object-fit: cover;
  border-radius: 12px;
}
.related-item strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}
.related-item span {
  color: var(--muted);
  font-size: 12px;
}
.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}
.search-results {
  min-height: 160px;
}
.empty-state {
  padding: 44px 24px;
  text-align: center;
  color: var(--muted);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(31, 41, 55, 0.06);
}
.site-footer {
  margin-top: 54px;
  padding: 54px 0 24px;
  background: linear-gradient(135deg, #fff, #fff0f8 50%, #f4e8ff);
  border-top: 1px solid rgba(233, 30, 99, 0.12);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}
.site-footer p {
  color: var(--muted);
  line-height: 1.8;
}
.site-footer h2 {
  margin: 0 0 15px;
  font-size: 18px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-links a {
  color: var(--pink-dark);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 13px;
}
.copyright {
  margin-top: 30px;
  padding-top: 24px;
  color: var(--muted);
  border-top: 1px solid rgba(233, 30, 99, 0.12);
  font-size: 14px;
}
@media (max-width: 1080px) {
  .top-search {
    display: none;
  }
  .movie-grid.large,
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .detail-layout,
  .rank-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 820px) {
  .nav-shell {
    min-height: 64px;
    justify-content: space-between;
  }
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(233, 30, 99, 0.12);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }
  .nav-links.open {
    display: flex;
  }
  .hero-content {
    grid-template-columns: 1fr;
    min-height: 640px;
    padding: 70px 0 90px;
  }
  .hero-card {
    display: none;
  }
  .category-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .movie-grid.large,
  .movie-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .section-head {
    display: block;
  }
  .search-panel {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  .container {
    width: min(100% - 22px, 1180px);
  }
  .logo {
    font-size: 19px;
  }
  .hero-slider,
  .hero-content {
    min-height: 580px;
  }
  .movie-grid.large,
  .movie-grid {
    grid-template-columns: 1fr;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .rank-item {
    grid-template-columns: 40px 68px 1fr;
  }
}
