:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --yellow: #fde047;
  --slate: #111827;
  --muted: #6b7280;
  --line: rgba(17, 24, 39, 0.1);
  --shadow: 0 20px 45px rgba(88, 28, 135, 0.14);
  --soft-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: #1f2937;
  background: linear-gradient(135deg, #fdf2f8 0%, #faf5ff 48%, #eff6ff 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: #fff;
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.96), rgba(139, 92, 246, 0.96), rgba(59, 130, 246, 0.96));
  box-shadow: 0 10px 30px rgba(88, 28, 135, 0.22);
  backdrop-filter: blur(18px);
}

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 650;
  transition: 0.24s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  color: #fff;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
}

.mobile-panel {
  display: none;
  padding: 0 0 18px;
}

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

.hero {
  position: relative;
  height: 500px;
  overflow: hidden;
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 6s ease;
}

.hero-slide.active .hero-image {
  transform: scale(1.12);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(80, 7, 36, 0.94), rgba(76, 29, 149, 0.82), rgba(30, 64, 175, 0.86));
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-copy {
  width: min(100%, 680px);
  color: #fff;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--yellow);
  font-weight: 800;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.hero-text {
  max-width: 640px;
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 19px;
  line-height: 1.8;
}

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

.button-primary,
.button-soft,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.25s ease;
  cursor: pointer;
}

.button-primary {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 16px 30px rgba(236, 72, 153, 0.28);
}

.button-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 24px 45px rgba(236, 72, 153, 0.34);
}

.button-soft {
  color: #be185d;
  background: #fff;
}

.button-soft:hover {
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow);
}

.button-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: 0.24s ease;
}

.hero-dot.active {
  width: 32px;
  background: #fff;
}

.hero-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-50%);
  transition: 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.28);
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.section {
  padding: 72px 0;
}

.section.white {
  background: rgba(255, 255, 255, 0.76);
}

.section.soft {
  background: linear-gradient(90deg, rgba(243, 232, 255, 0.88), rgba(252, 231, 243, 0.88));
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.section-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: var(--soft-shadow);
}

.section h2,
.page-title {
  margin: 0;
  color: #1f2937;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section-subtitle,
.page-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

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

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

.movie-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.movie-poster {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, #831843, #4c1d95);
}

.compact .movie-poster {
  height: 190px;
}

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

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

.poster-glow {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent 68%);
  opacity: 0;
  transition: 0.25s ease;
}

.movie-card:hover .poster-glow {
  opacity: 1;
}

.play-bubble {
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #db2777;
  background: rgba(255, 255, 255, 0.92);
  transform: scale(0.8);
  transition: 0.25s ease;
}

.movie-card:hover .play-bubble {
  transform: scale(1);
}

.badge,
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  font-weight: 750;
}

.badge {
  padding: 5px 11px;
  color: #fff;
  font-size: 12px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 8px 22px rgba(236, 72, 153, 0.22);
}

.poster-badge {
  position: absolute;
  top: 14px;
  left: 14px;
}

.poster-time {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.78);
}

.movie-info {
  padding: 18px;
}

.movie-title {
  display: -webkit-box;
  min-height: 46px;
  margin: 0;
  overflow: hidden;
  color: #1f2937;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 850;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: color 0.2s ease;
}

.movie-card:hover .movie-title {
  color: #db2777;
}

.movie-desc {
  display: -webkit-box;
  min-height: 44px;
  margin: 10px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #6b7280;
  font-size: 13px;
}

.movie-meta {
  justify-content: space-between;
  margin-top: 14px;
}

.horizontal-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 0;
}

.horizontal-card .movie-poster {
  height: 150px;
  border-radius: var(--radius) 0 0 var(--radius);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  padding: 24px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  box-shadow: var(--soft-shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.category-card:nth-child(3n) {
  background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.category-card:nth-child(4n) {
  background: linear-gradient(135deg, #22c55e, #14b8a6);
}

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

.category-icon {
  font-size: 38px;
}

.category-card h3 {
  margin: 12px 0 8px;
  font-size: 22px;
}

.category-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.7;
}

.page-hero {
  padding: 58px 0;
  color: #fff;
  background: linear-gradient(90deg, #ec4899, #8b5cf6, #3b82f6);
}

.page-hero .page-title,
.page-hero .page-subtitle {
  color: #fff;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
  margin: 0 0 28px;
}

.search-box,
.select-box {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(236, 72, 153, 0.16);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  outline: 0;
}

.search-box {
  padding: 0 18px;
}

.select-box {
  padding: 0 14px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}

.filter-chip {
  min-height: 38px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  color: #6b7280;
  background: #fff;
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  transition: 0.2s ease;
}

.filter-chip.active,
.filter-chip:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.no-results {
  display: none;
  padding: 32px;
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.no-results.show {
  display: block;
}

.ranking-list {
  display: grid;
  gap: 14px;
}

.rank-item {
  display: grid;
  grid-template-columns: 54px 120px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: 0.22s ease;
}

.rank-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.rank-no {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--purple));
}

.rank-cover {
  width: 120px;
  height: 76px;
  overflow: hidden;
  border-radius: 14px;
  background: #4c1d95;
}

.rank-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-info h3 {
  margin: 0 0 7px;
  font-size: 17px;
}

.detail-wrap {
  padding: 34px 0 72px;
  background: linear-gradient(135deg, #f9fafb, #f3f4f6);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a:hover {
  color: #db2777;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.panel {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.player-panel {
  overflow: hidden;
  background: #000;
}

.player-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.player-box video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay,
.player-loading,
.player-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.48);
}

.player-overlay.hidden,
.player-loading.hidden,
.player-error.hidden {
  display: none;
}

.player-button {
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 50%;
  color: #db2777;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
  transition: 0.22s ease;
}

.player-button:hover {
  transform: scale(1.08);
  background: #fff;
}

.player-loading {
  pointer-events: none;
  background: rgba(0, 0, 0, 0.72);
}

.loader {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(255, 255, 255, 0.32);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.detail-card {
  padding: 26px;
}

.detail-title {
  margin: 12px 0 16px;
  color: #1f2937;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.tag {
  padding: 7px 11px;
  border-radius: 999px;
  color: #6b7280;
  font-size: 13px;
  background: #f3f4f6;
}

.stats-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #6b7280;
}

.prose-block {
  margin-top: 22px;
  color: #374151;
  line-height: 1.9;
  font-size: 16px;
}

.prose-block h2,
.prose-block h3 {
  color: #1f2937;
}

.review-box {
  margin-top: 18px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #fdf2f8, #faf5ff);
}

.sidebar {
  position: sticky;
  top: 96px;
  padding: 22px;
}

.related-list {
  display: grid;
  gap: 14px;
}

.related-card {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 12px;
  align-items: center;
}

.related-thumb {
  width: 118px;
  height: 76px;
  overflow: hidden;
  border-radius: 14px;
  background: #4c1d95;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.25s ease;
}

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

.related-title {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: #1f2937;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.related-card:hover .related-title {
  color: #db2777;
}

.site-footer {
  color: #fff;
  background: linear-gradient(90deg, #111827, #581c87, #111827);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
  padding: 48px 0;
}

.footer-title {
  margin: 0 0 14px;
  font-size: 18px;
}

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

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

.footer-link:hover {
  color: #f9a8d4;
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

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

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

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

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

  .sidebar {
    position: static;
  }
}

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

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    height: 560px;
  }

  .hero-arrow {
    display: none;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .horizontal-card {
    grid-template-columns: 1fr;
  }

  .horizontal-card .movie-poster {
    height: 230px;
    border-radius: var(--radius) var(--radius) 0 0;
  }

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

  .rank-item {
    grid-template-columns: 44px 92px 1fr;
  }

  .rank-score {
    display: none;
  }

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

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

  .brand {
    font-size: 18px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-text {
    font-size: 16px;
  }

  .card-grid,
  .category-grid,
  .card-grid.compact {
    grid-template-columns: 1fr;
  }

  .movie-poster,
  .compact .movie-poster {
    height: 250px;
  }

  .rank-item {
    grid-template-columns: 38px 1fr;
  }

  .rank-cover {
    display: none;
  }

  .related-card {
    grid-template-columns: 96px 1fr;
  }

  .related-thumb {
    width: 96px;
    height: 64px;
  }

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