:root {
  --pink: #ec4899;
  --pink-dark: #db2777;
  --purple: #8b5cf6;
  --purple-dark: #7c3aed;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --yellow: #fde047;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #fdf2f8;
  --line: rgba(17, 24, 39, 0.1);
  --shadow: 0 24px 60px rgba(79, 70, 229, 0.16);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(236, 72, 153, 0.16), transparent 26rem),
    radial-gradient(circle at 88% 0%, rgba(59, 130, 246, 0.14), transparent 30rem),
    linear-gradient(180deg, #fff7fb 0%, #f8fbff 42%, #ffffff 100%);
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, var(--pink), var(--purple), var(--blue));
  box-shadow: 0 12px 35px rgba(124, 58, 237, 0.25);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7c2d12;
  background: var(--yellow);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(253, 224, 71, 0.35);
  font-size: 15px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: rgba(255, 255, 255, 0.94);
  font-size: 15px;
  font-weight: 700;
}

.nav-links a,
.mobile-links a {
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.mobile-links a:hover {
  color: var(--yellow);
  transform: translateY(-1px);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 9px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #ffffff;
  border-radius: 99px;
}

.mobile-links {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile-links a {
  padding: 10px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  font-weight: 700;
}

.mobile-links.open {
  display: grid;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 36px 0 28px;
  background: linear-gradient(135deg, rgba(252, 231, 243, 0.9), rgba(237, 233, 254, 0.92), rgba(219, 234, 254, 0.95));
}

.hero-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.32;
  pointer-events: none;
}

.hero-glow.one {
  top: -130px;
  left: -90px;
  background: var(--pink);
}

.hero-glow.two {
  right: -120px;
  bottom: -160px;
  background: var(--blue);
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 550px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: 40px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-copy {
  position: relative;
  z-index: 2;
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: 32px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--pink-dark);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(34px, 6vw, 62px);
  line-height: 1.04;
  color: transparent;
  background: linear-gradient(90deg, var(--pink-dark), var(--purple-dark), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.hero h2 {
  margin: 18px 0 12px;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
}

.hero-text,
.page-hero p,
.intro-copy p,
.category-overview-head p,
.detail-one-line,
.content-card p {
  color: #4b5563;
  line-height: 1.9;
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.primary-button,
.ghost-button,
.rank-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 900;
  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 14px 32px rgba(236, 72, 153, 0.28);
}

.primary-button:hover,
.rank-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(124, 58, 237, 0.32);
}

.ghost-button {
  color: var(--purple-dark);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(124, 58, 237, 0.16);
}

.ghost-button.dark {
  color: #ffffff;
  background: linear-gradient(90deg, var(--purple), var(--blue));
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-tags span,
.tag-row span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  color: #7e22ce;
  background: rgba(245, 208, 254, 0.65);
  font-size: 13px;
  font-weight: 800;
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 460px;
  border-radius: 34px;
  box-shadow: 0 28px 70px rgba(30, 64, 175, 0.26);
  background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

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

.hero-poster:hover img {
  transform: scale(1.04);
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 36%, rgba(0, 0, 0, 0.72));
}

.hero-poster span {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  color: #ffffff;
  font-size: 26px;
  font-weight: 950;
}

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.22);
}

.hero-dot.active {
  width: 34px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 430px);
  gap: 24px;
  align-items: stretch;
  padding: 56px 0 18px;
}

.intro-copy,
.search-panel,
.content-card,
.category-overview-card {
  border: 1px solid rgba(124, 58, 237, 0.1);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.intro-copy {
  padding: 30px;
}

.intro-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.15;
}

.search-panel {
  padding: 24px;
}

.search-panel label {
  display: block;
  margin-bottom: 12px;
  font-weight: 950;
}

.search-row {
  display: flex;
  gap: 10px;
}

.search-row input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 14px;
  padding: 0 14px;
  outline: none;
  background: #ffffff;
}

.search-row input:focus,
.filter-panel input:focus,
.filter-panel select:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14);
}

.search-row button {
  min-width: 92px;
  border: 0;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  font-weight: 900;
}

.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin: 54px 0 22px;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.1;
}

.section-title p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(31, 41, 55, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 48px rgba(124, 58, 237, 0.18);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

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

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

.play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3);
}

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

.movie-card-title {
  display: -webkit-box;
  min-height: 48px;
  overflow: hidden;
  color: #111827;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-meta {
  margin: 8px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.movie-one-line {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.movie-card.compact .movie-card-title {
  min-height: 42px;
  font-size: 15px;
}

.movie-card.compact .movie-one-line,
.movie-card.compact .tag-row {
  display: none;
}

.center-action {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

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

.category-card {
  min-height: 210px;
  padding: 22px;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(252, 231, 243, 0.86));
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 62px rgba(124, 58, 237, 0.2);
}

.category-card span {
  display: block;
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 950;
  color: var(--purple-dark);
}

.category-card p {
  color: #4b5563;
  line-height: 1.7;
}

.category-card em {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 16px;
  color: var(--pink-dark);
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
}

.page-hero {
  padding: 76px 0;
  color: #ffffff;
}

.gradient-soft {
  color: var(--ink);
  background: linear-gradient(135deg, #fdf2f8, #ede9fe, #dbeafe);
}

.gradient-strong {
  background: linear-gradient(135deg, var(--pink), var(--purple), var(--blue));
}

.gradient-strong .eyebrow,
.gradient-strong p,
.gradient-strong h1 {
  color: #ffffff;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.category-overview-list {
  display: grid;
  gap: 26px;
  padding: 48px 0;
}

.category-overview-card {
  padding: 26px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.category-overview-head h2 {
  margin: 0 0 8px;
  font-size: 34px;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px 180px;
  gap: 12px;
  margin: 36px 0 26px;
  padding: 18px;
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 32px rgba(31, 41, 55, 0.08);
}

.empty-state {
  display: none;
  padding: 30px;
  text-align: center;
  color: var(--muted);
  background: #ffffff;
  border-radius: 20px;
}

.empty-state.show {
  display: block;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 70px 90px minmax(0, 1fr) 96px;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.08);
}

.rank-row strong {
  color: transparent;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 34px;
  font-weight: 950;
  text-align: center;
}

.rank-cover {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: linear-gradient(135deg, #fce7f3, #dbeafe);
}

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

.rank-title {
  font-size: 20px;
  font-weight: 950;
}

.rank-row p {
  margin: 6px 0 0;
  color: #4b5563;
  line-height: 1.65;
}

.rank-play {
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
}

.library-filter {
  grid-template-columns: minmax(0, 1fr) 160px 200px;
}

.library-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.library-link {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border: 1px solid rgba(124, 58, 237, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.library-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(124, 58, 237, 0.14);
}

.library-link strong {
  font-size: 16px;
}

.library-link span {
  color: var(--muted);
  font-size: 13px;
}

.detail-hero {
  padding: 58px 0;
  background: linear-gradient(135deg, #fdf2f8, #ede9fe, #dbeafe);
}

.detail-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(135deg, #fce7f3, #dbeafe);
  box-shadow: 0 28px 70px rgba(30, 64, 175, 0.22);
}

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

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

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

.detail-one-line {
  margin: 20px 0;
  font-size: 19px;
}

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

.player-section {
  padding: 52px 0 18px;
}

.player-section h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3vw, 40px);
}

.player-box {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #050816;
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050816;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.38), rgba(15, 23, 42, 0.78));
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-icon {
  width: 76px;
  height: 76px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 5px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  box-shadow: 0 18px 45px rgba(236, 72, 153, 0.36);
  font-size: 28px;
}

.player-title {
  max-width: 86%;
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 950;
  text-align: center;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  padding: 28px 0 8px;
}

.content-card {
  padding: 26px;
}

.content-card h2 {
  margin: 0 0 14px;
  font-size: 28px;
}

.site-footer {
  margin-top: 70px;
  padding: 46px 0 26px;
  color: #e5e7eb;
  background: linear-gradient(90deg, #111827, #1f2937, #111827);
}

.footer-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
}

.footer-grid strong {
  display: block;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 18px;
}

.footer-grid p {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.8;
}

.footer-grid a {
  color: #f9a8d4;
  font-weight: 800;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 30px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  text-align: center;
  font-size: 14px;
}

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

  .menu-button {
    display: block;
  }

  .hero-shell {
    min-height: 780px;
  }

  .hero-slide,
  .detail-grid,
  .intro-grid {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 380px;
  }

  .movie-grid,
  .rank-strip,
  .category-grid,
  .movie-grid.small-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .container,
  .site-nav,
  .mobile-links,
  .hero-shell,
  .footer-grid,
  .footer-bottom {
    width: min(100% - 22px, 1180px);
  }

  .brand {
    font-size: 20px;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-shell {
    min-height: 840px;
  }

  .hero-copy {
    padding: 22px;
  }

  .hero-poster,
  .hero-poster img {
    min-height: 310px;
  }

  .hero-dots {
    left: 22px;
    bottom: 0;
  }

  .search-row,
  .section-title,
  .category-overview-head {
    display: grid;
  }

  .movie-grid,
  .rank-strip,
  .category-grid,
  .movie-grid.small-grid,
  .library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

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

  .rank-play {
    grid-column: 2 / 4;
  }

  .detail-grid {
    gap: 22px;
  }

  .detail-poster {
    max-width: 300px;
  }

  .page-hero {
    padding: 54px 0;
  }
}

@media (max-width: 480px) {
  .movie-grid,
  .rank-strip,
  .category-grid,
  .movie-grid.small-grid,
  .library-grid {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    min-height: 900px;
  }

  .rank-row {
    grid-template-columns: 42px 70px minmax(0, 1fr);
    gap: 12px;
  }
}
