:root {
  --pink: #ec4899;
  --pink-strong: #db2777;
  --purple: #8b5cf6;
  --blue: #3b82f6;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft: #fdf2f8;
  --shadow: 0 18px 45px rgba(31, 41, 55, 0.12);
  --radius-xl: 24px;
  --radius-lg: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 16px rgba(31, 41, 55, 0.08);
}

.site-header-inner {
  max-width: 1180px;
  height: 72px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.site-logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 10px 28px rgba(236, 72, 153, 0.35);
}

.site-logo-text {
  font-size: 22px;
  background: linear-gradient(90deg, #f472b6, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.nav-link:hover,
.nav-link.is-active {
  color: var(--pink);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(31, 41, 55, 0.12);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #374151;
}

.mobile-nav {
  display: none;
  padding: 0 20px 16px;
  border-top: 1px solid rgba(229, 231, 235, 0.7);
}

.mobile-nav.is-open {
  display: grid;
  gap: 6px;
}

.mobile-nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: #374151;
  font-weight: 600;
}

.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  color: var(--pink);
  background: #fdf2f8;
}

.home-hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: linear-gradient(135deg, #f9a8d4, #ddd6fe 46%, #bfdbfe);
}

.hero-ambient {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  mix-blend-mode: multiply;
  filter: blur(42px);
  opacity: 0.35;
  animation: blobFloat 13s infinite ease-in-out;
}

.blob-one {
  top: 80px;
  left: 7%;
  background: #f472b6;
}

.blob-two {
  top: 190px;
  right: 10%;
  background: #a78bfa;
  animation-delay: 2s;
}

.blob-three {
  bottom: -60px;
  left: 48%;
  background: #60a5fa;
  animation-delay: 4s;
}

@keyframes blobFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(26px, -34px) scale(1.08);
  }
  66% {
    transform: translate(-18px, 22px) scale(0.94);
  }
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 86px 20px 74px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  color: #ffffff;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.hero-copy h1 {
  margin: 0 0 22px;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.04;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.gradient-text {
  display: inline-block;
  background: linear-gradient(90deg, #db2777, #7c3aed, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy p {
  max-width: 640px;
  margin: 0 0 30px;
  font-size: 20px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.secondary-button {
  color: var(--pink-strong);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 15px 30px rgba(31, 41, 55, 0.12);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 36px rgba(236, 72, 153, 0.32);
}

.hero-slider {
  position: relative;
}

.hero-slider-window {
  position: relative;
  min-height: 520px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}

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

.hero-feature-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: 32px;
  box-shadow: 0 28px 80px rgba(31, 41, 55, 0.28);
  background: #111827;
}

.hero-feature-card img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-feature-card:hover img {
  transform: scale(1.05);
}

.hero-feature-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 34px;
  color: #ffffff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0));
}

.hero-feature-overlay h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.2;
}

.hero-feature-overlay p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.hero-meta span {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 13px;
  font-weight: 700;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

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

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

.hero-bottom-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  background: linear-gradient(0deg, #ffffff, rgba(255, 255, 255, 0));
}

.section-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 20px;
}

.section-wrap.is-soft {
  max-width: none;
  background: linear-gradient(135deg, #fdf2f8, #faf5ff, #eff6ff);
}

.section-wrap.is-soft > .section-inner {
  max-width: 1180px;
  margin: 0 auto;
}

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

.section-heading.centered {
  display: block;
  text-align: center;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  font-weight: 900;
}

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

.grid-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.movie-cover-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #f9a8d4, #c4b5fd, #93c5fd);
}

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

.movie-card:hover .movie-cover-link img {
  transform: scale(1.08);
}

.movie-cover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.38);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .movie-cover-overlay {
  opacity: 1;
}

.movie-card-body {
  padding: 20px;
}

.movie-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.movie-card h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 900;
}

.movie-card h2 a:hover {
  color: var(--pink);
}

.movie-card p {
  min-height: 52px;
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card-tags,
.tag-list,
.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.movie-card-tags span,
.tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  color: #be185d;
  background: linear-gradient(90deg, #fce7f3, #ede9fe);
  font-size: 13px;
  font-weight: 700;
}

.compact-card .movie-card-body {
  padding: 16px;
}

.compact-card h2 {
  font-size: 18px;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
  background: linear-gradient(135deg, #f97316, #ef4444);
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.34);
}

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

.category-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 28px;
  border-radius: var(--radius-xl);
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 18px 40px rgba(124, 58, 237, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:nth-child(2n) {
  background: linear-gradient(135deg, #8b5cf6, #3b82f6, #14b8a6);
}

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

.category-card:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 24px 56px rgba(124, 58, 237, 0.26);
}

.category-mark {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 18px;
  color: var(--pink-strong);
  background: rgba(255, 255, 255, 0.92);
  font-size: 24px;
  font-weight: 900;
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f9a8d4, #ddd6fe 48%, #bfdbfe);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 20px;
  color: #ffffff;
}

.page-hero h1 {
  max-width: 850px;
  margin: 0 0 18px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.page-hero p {
  max-width: 720px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 20px;
  line-height: 1.8;
}

.filter-panel {
  max-width: 1180px;
  margin: -34px auto 48px;
  position: relative;
  z-index: 4;
  padding: 24px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(4, minmax(130px, 170px));
  gap: 14px;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  outline: none;
}

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

.result-line {
  max-width: 1180px;
  margin: 0 auto 22px;
  padding: 0 20px;
  color: var(--muted);
  font-weight: 700;
}

.no-results {
  display: none;
  max-width: 1180px;
  margin: 40px auto;
  padding: 46px 20px;
  text-align: center;
  color: var(--muted);
  border-radius: var(--radius-xl);
  background: #f9fafb;
}

.no-results.is-visible {
  display: block;
}

.detail-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 46px 20px 82px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: var(--pink-strong);
  font-weight: 700;
}

.detail-hero {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
  margin-bottom: 52px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #f9a8d4, #c4b5fd, #93c5fd);
  box-shadow: var(--shadow);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.12;
  font-weight: 900;
}

.detail-lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
}

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

.info-item {
  padding: 15px 16px;
  border-radius: 16px;
  background: #f9fafb;
}

.info-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
}

.info-item span {
  color: var(--ink);
  font-weight: 800;
}

.player-section,
.content-panel,
.related-section {
  margin-top: 38px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.32);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  object-fit: contain;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.08), rgba(0, 0, 0, 0.34));
  z-index: 2;
}

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

.play-button {
  width: 86px;
  height: 86px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 22px 50px rgba(236, 72, 153, 0.42);
  cursor: pointer;
  font-size: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.play-button:hover {
  transform: scale(1.08);
}

.content-panel {
  padding: 32px;
  border-radius: var(--radius-xl);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(31, 41, 55, 0.08);
}

.content-panel h2,
.related-section h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 28px;
  font-weight: 900;
}

.content-panel p {
  margin: 0 0 22px;
  color: #4b5563;
  font-size: 17px;
  line-height: 2;
}

.content-panel p:last-child {
  margin-bottom: 0;
}

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

.site-footer {
  background: linear-gradient(135deg, #fdf2f8, #faf5ff, #eff6ff);
  border-top: 1px solid rgba(229, 231, 235, 0.75);
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 50px 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 42px;
}

.footer-brand p {
  max-width: 420px;
  color: var(--muted);
  line-height: 1.8;
}

.footer-logo {
  margin-bottom: 16px;
}

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

.footer-links h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.footer-links a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--pink);
}

.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px;
  color: var(--muted);
  border-top: 1px solid rgba(229, 231, 235, 0.85);
  text-align: center;
}

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

  .mobile-menu-button {
    display: inline-flex;
  }

  .home-hero-inner,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .hero-slider-window,
  .hero-feature-card,
  .hero-feature-card img {
    min-height: auto;
    height: auto;
  }

  .hero-feature-card img {
    aspect-ratio: 16 / 11;
  }

  .grid-cards,
  .grid-cards.four,
  .category-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-panel {
    grid-template-columns: 1fr 1fr;
    margin-left: 20px;
    margin-right: 20px;
  }

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

@media (max-width: 640px) {
  .site-header-inner {
    height: 64px;
  }

  .site-logo-text {
    font-size: 18px;
  }

  .home-hero-inner {
    padding-top: 58px;
    gap: 28px;
  }

  .hero-copy p,
  .page-hero p {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-feature-overlay {
    padding: 24px;
  }

  .section-heading {
    display: block;
  }

  .grid-cards,
  .grid-cards.four,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

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

  .detail-layout {
    padding-top: 30px;
  }

  .content-panel {
    padding: 24px;
  }
}
