:root {
  --bg: #fff7fb;
  --bg-soft: #f5f7ff;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #ececf3;
  --primary: #ec4899;
  --primary-dark: #db2777;
  --accent: #f97316;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --shadow: 0 20px 50px rgba(236, 72, 153, 0.13);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 5%, rgba(236, 72, 153, 0.18), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(59, 130, 246, 0.16), transparent 30rem),
    linear-gradient(135deg, #fff7fb 0%, #f4f8ff 48%, #fbf7ff 100%);
  -webkit-font-smoothing: antialiased;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(236, 72, 153, 0.12);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 15px;
  background: linear-gradient(135deg, #ef4444 0%, #ec4899 48%, #8b5cf6 100%);
  box-shadow: 0 12px 28px rgba(236, 72, 153, 0.3);
}

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 10px 15px;
  color: #4b5563;
  border-radius: 999px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  color: var(--primary-dark);
  background: rgba(236, 72, 153, 0.09);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(236, 72, 153, 0.08);
}

.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  background: #be185d;
  border-radius: 99px;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 620px;
  margin: 28px 0 52px;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 251, 0.72));
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.75;
}

.hero::before {
  width: 380px;
  height: 380px;
  top: -140px;
  right: -90px;
  background: rgba(236, 72, 153, 0.22);
}

.hero::after {
  width: 320px;
  height: 320px;
  bottom: -120px;
  left: -80px;
  background: rgba(59, 130, 246, 0.17);
}

.hero-track {
  position: relative;
  z-index: 2;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 42px;
  align-items: center;
  padding: 56px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s ease;
}

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

.hero-copy {
  position: relative;
  z-index: 3;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  color: #be185d;
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.16);
  border-radius: 999px;
  font-weight: 800;
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 670px;
  color: #4b5563;
  font-size: 18px;
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 900;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #ec4899 55%, #f97316);
  box-shadow: 0 16px 28px rgba(236, 72, 153, 0.32);
}

.btn-ghost {
  color: #be185d;
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(236, 72, 153, 0.18);
}

.hero-art {
  position: relative;
  min-height: 480px;
}

.hero-poster {
  position: absolute;
  inset: 0 6% 0 0;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(31, 41, 55, 0.24);
  transform: rotate(1.5deg);
  background: linear-gradient(145deg, #fdf2f8, #eff6ff);
}

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

.hero-card {
  position: absolute;
  right: 0;
  bottom: 28px;
  width: min(330px, 90%);
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 45px rgba(236, 72, 153, 0.2);
}

.hero-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-card span {
  color: var(--muted);
  line-height: 1.7;
}

.hero-dots {
  position: absolute;
  left: 56px;
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.25);
}

.hero-dots button.active {
  width: 34px;
  background: linear-gradient(90deg, #ec4899, #f97316);
}

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

.eyebrow {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-heading h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(236, 72, 153, 0.1);
  box-shadow: 0 14px 35px rgba(31, 41, 55, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(236, 72, 153, 0.22);
  box-shadow: 0 22px 50px rgba(236, 72, 153, 0.15);
}

.movie-poster-link {
  position: relative;
  display: block;
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  margin: 0;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(236, 72, 153, 0.2), rgba(59, 130, 246, 0.18)),
    #fff7fb;
}

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

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

.poster-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  text-align: center;
  color: #be185d;
  font-size: 34px;
  font-weight: 900;
}

.poster-frame.image-missing .poster-fallback {
  display: grid;
}

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

.movie-card h3 {
  margin: 8px 0 8px;
  min-height: 48px;
  font-size: 17px;
  line-height: 1.4;
}

.movie-card p {
  min-height: 44px;
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #9d174d;
  font-size: 12px;
  font-weight: 800;
}

.movie-meta-line span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.08);
}

.movie-tags {
  margin-top: 12px;
  color: #7c3aed;
  font-size: 13px;
  font-weight: 800;
}

.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(239, 68, 68, 0.35);
}

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

.category-card {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 251, 0.78));
  border: 1px solid rgba(236, 72, 153, 0.12);
  box-shadow: 0 14px 32px rgba(31, 41, 55, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(236, 72, 153, 0.14);
}

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

.category-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.category-card span {
  margin-top: 18px;
  color: var(--primary-dark);
  font-weight: 900;
}

.page-title {
  margin: 34px 0 24px;
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.93), rgba(239, 246, 255, 0.8));
  box-shadow: var(--shadow);
}

.filter-bar {
  position: sticky;
  top: 84px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 190px;
  gap: 12px;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(236, 72, 153, 0.12);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.08);
}

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

.filter-bar input:focus,
.filter-bar select:focus {
  border-color: rgba(236, 72, 153, 0.45);
  box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.08);
}

.no-results {
  display: none;
  margin: 30px 0;
  padding: 24px;
  text-align: center;
  color: var(--muted);
  border-radius: 22px;
  background: #ffffff;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 34px;
  margin: 34px 0 40px;
}

.detail-poster-card {
  position: sticky;
  top: 96px;
  align-self: start;
  overflow: hidden;
  border-radius: 30px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.detail-info {
  padding: 34px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

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

.breadcrumb a {
  color: var(--primary-dark);
  font-weight: 800;
}

.detail-info h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #9d174d;
  background: rgba(236, 72, 153, 0.09);
  font-weight: 800;
}

.detail-info p {
  color: #4b5563;
  font-size: 16px;
  line-height: 1.9;
}

.content-box {
  margin-top: 22px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(249, 250, 251, 0.8);
  border: 1px solid rgba(236, 72, 153, 0.08);
}

.content-box h2 {
  margin: 0 0 12px;
  font-size: 22px;
}

.player-shell {
  margin: 36px 0;
  overflow: hidden;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.26);
}

.player-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.player-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #020617;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.2), rgba(2, 6, 23, 0.78));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-shell.is-playing .play-cover {
  opacity: 0;
  visibility: hidden;
}

.play-button {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #ec4899, #f97316);
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.36);
  font-size: 30px;
}

.player-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  color: #e5e7eb;
}

.player-status {
  color: #f9a8d4;
  font-size: 14px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(236, 72, 153, 0.1);
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.06);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: #ffffff;
  border-radius: 18px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  font-weight: 900;
}

.rank-row h3 {
  margin: 0 0 6px;
  font-size: 19px;
}

.rank-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  margin-top: 60px;
  padding: 34px 0;
  border-top: 1px solid rgba(236, 72, 153, 0.12);
  background: rgba(255, 255, 255, 0.62);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
}

.footer-inner strong {
  color: var(--text);
  font-size: 18px;
}

.footer-inner p {
  max-width: 560px;
  margin: 8px 0 0;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.footer-links a {
  color: #be185d;
  font-weight: 800;
}

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

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 38px;
  }

  .hero-art {
    min-height: 360px;
  }
}

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

  .site-nav {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

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

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

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

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

  .detail-poster-card {
    position: relative;
    top: auto;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  main,
  .header-inner,
  .footer-inner {
    width: min(100% - 22px, 1180px);
  }

  .logo-text {
    font-size: 17px;
  }

  .hero {
    min-height: 650px;
    border-radius: 24px;
  }

  .hero-track {
    min-height: 650px;
  }

  .hero-slide {
    padding: 28px 22px;
  }

  .hero h1 {
    font-size: 38px;
  }

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

  .hero-dots {
    left: 24px;
  }

  .movie-grid {
    gap: 14px;
  }

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

  .movie-card h3 {
    font-size: 15px;
  }

  .rank-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .rank-row .btn {
    grid-column: 2;
    justify-self: start;
  }
}
