:root {
  --page-bg: #fff7ff;
  --text: #1f1933;
  --muted: #706580;
  --purple: #7c3aed;
  --purple-dark: #4c1d95;
  --pink: #ec4899;
  --pink-soft: #f9a8d4;
  --card: #ffffff;
  --line: rgba(124, 58, 237, 0.14);
  --shadow: 0 24px 70px rgba(76, 29, 149, 0.18);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(236, 72, 153, 0.18), transparent 34rem),
    radial-gradient(circle at 88% 6%, rgba(124, 58, 237, 0.20), transparent 36rem),
    var(--page-bg);
}

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: 100;
  background: linear-gradient(90deg, rgba(91, 33, 182, 0.96), rgba(219, 39, 119, 0.95), rgba(168, 85, 247, 0.96));
  color: #ffffff;
  box-shadow: 0 18px 50px rgba(76, 29, 149, 0.26);
  backdrop-filter: blur(18px);
}

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

.site-logo,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.site-logo {
  font-size: 22px;
  white-space: nowrap;
}

.logo-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.92);
  color: var(--purple);
  font-size: 13px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.desktop-nav a,
.mobile-nav a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
  color: #ffffff;
  transform: translateY(-1px);
}

.top-search,
.mobile-search,
.hero-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-search input,
.mobile-search input,
.hero-search input,
.filter-box input,
.filter-box select {
  border: 1px solid rgba(255, 255, 255, 0.32);
  outline: none;
  border-radius: 999px;
  padding: 11px 16px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.17);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.top-search input::placeholder,
.mobile-search input::placeholder,
.hero-search input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.top-search button,
.mobile-search button,
.hero-search button,
.primary-button,
.secondary-button {
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search button,
.mobile-search button,
.hero-search button,
.primary-button {
  color: var(--purple-dark);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
}

.secondary-button {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.top-search button:hover,
.mobile-search button:hover,
.hero-search button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(76, 29, 149, 0.24);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 18px;
}

.mobile-nav nav {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

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

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.9fr);
  gap: 24px;
  padding: 30px 0 10px;
}

.hero-stage {
  position: relative;
  overflow: hidden;
  min-height: 590px;
  border-radius: 36px;
  box-shadow: var(--shadow);
  background: var(--purple-dark);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: scale(1.02);
}

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

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

.hero-overlay,
.detail-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(35, 10, 74, 0.86), rgba(76, 29, 149, 0.48), rgba(236, 72, 153, 0.24)),
    linear-gradient(0deg, rgba(24, 12, 48, 0.82), transparent 60%);
}

.hero-content {
  position: absolute;
  left: clamp(26px, 6vw, 72px);
  bottom: clamp(34px, 8vw, 86px);
  width: min(650px, calc(100% - 52px));
  color: #ffffff;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  background: linear-gradient(90deg, rgba(236, 72, 153, 0.88), rgba(124, 58, 237, 0.88));
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.hero-content h1 {
  margin: 18px 0 14px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.07em;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.48);
}

.hero-content p,
.hero-side-panel p,
.page-hero p,
.lead-text {
  color: rgba(255, 255, 255, 0.86);
  font-size: 17px;
  line-height: 1.8;
}

.hero-tags,
.detail-meta,
.hero-actions,
.hero-quick-links,
.tag-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.detail-meta span,
.tag-row span {
  padding: 7px 12px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
}

.hero-actions {
  margin-top: 24px;
}

.hero-dots {
  position: absolute;
  left: 52px;
  bottom: 28px;
  display: flex;
  gap: 9px;
}

.hero-dots button {
  width: 34px;
  height: 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.hero-dots button.is-active {
  background: #ffffff;
}

.hero-side-panel,
.page-hero,
.content-card,
.category-overview-card {
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.92), rgba(236, 72, 153, 0.86));
  color: #ffffff;
  box-shadow: var(--shadow);
}

.hero-side-panel {
  padding: 34px;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}

.hero-side-panel h2,
.page-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.hero-search {
  align-items: stretch;
}

.hero-search input {
  flex: 1;
  min-width: 0;
}

.hero-quick-links a {
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 800;
}

.section-block {
  margin: 48px 0;
}

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

.section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: -0.05em;
}

.section-heading a {
  color: var(--purple);
  font-weight: 900;
}

.section-kicker {
  color: var(--purple-dark);
  background: rgba(236, 72, 153, 0.14);
}

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

.category-tile,
.category-heading-link {
  display: block;
  min-height: 160px;
  padding: 24px;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 240, 250, 0.92));
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(76, 29, 149, 0.10);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.category-heading-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 64px rgba(76, 29, 149, 0.18);
}

.category-tile span,
.category-heading-link span {
  display: block;
  color: var(--pink);
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 12px;
}

.category-tile strong,
.category-heading-link strong {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.75;
}

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 18px 50px rgba(76, 29, 149, 0.11);
  border: 1px solid rgba(124, 58, 237, 0.10);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(76, 29, 149, 0.20);
}

.movie-cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(236, 72, 153, 0.18));
}

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

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

.cover-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(24, 12, 48, 0.76), transparent 56%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

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

.play-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--purple);
  background: rgba(255, 255, 255, 0.92);
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  font-size: 22px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.24);
}

.movie-card:hover .play-mark {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.rank-number {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.24);
}

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

.movie-meta {
  color: var(--pink);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}

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

.movie-card h3 a:hover {
  color: var(--purple);
}

.movie-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-card .tag-row span {
  color: var(--purple);
  background: rgba(124, 58, 237, 0.09);
  border: 1px solid rgba(124, 58, 237, 0.10);
}

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

.page-hero {
  position: relative;
  overflow: hidden;
  margin-top: 30px;
  padding: clamp(34px, 6vw, 70px);
}

.page-hero p {
  max-width: 760px;
}

.filter-box {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.filter-box input,
.filter-box select {
  color: #ffffff;
  min-width: 230px;
  background: rgba(255, 255, 255, 0.17);
}

.filter-box select option {
  color: #1f1933;
}

.empty-state {
  display: none;
  margin: 24px 0;
  padding: 22px;
  text-align: center;
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.88);
}

.empty-state.is-visible {
  display: block;
}

.category-overview-card {
  padding: 16px;
}

.category-overview-card .category-heading-link {
  min-height: 140px;
  box-shadow: none;
}

.mini-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mini-link {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: #ffffff;
  font-weight: 800;
  line-height: 1.35;
}

.mini-link img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 14px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  color: #ffffff;
  background: var(--purple-dark);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--detail-cover);
  background-size: cover;
  background-position: center;
  filter: blur(24px);
  transform: scale(1.12);
  opacity: 0.56;
}

.detail-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 60px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 26px;
  font-weight: 800;
}

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

.detail-top {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.poster-card {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

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

.detail-copy h1 {
  margin: 18px 0 16px;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-tags {
  margin: 20px 0 24px;
}

.player-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: #120a22;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #ffffff;
  background:
    radial-gradient(circle at 50% 45%, rgba(236, 72, 153, 0.24), transparent 22rem),
    linear-gradient(135deg, rgba(76, 29, 149, 0.76), rgba(0, 0, 0, 0.66));
  cursor: pointer;
  z-index: 4;
}

.player-overlay.is-hidden {
  display: none;
}

.big-play {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--purple);
  background: #ffffff;
  font-size: 34px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}

.player-overlay strong {
  font-size: 22px;
}

.content-card {
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
}

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

.content-card h2:not(:first-child) {
  margin-top: 32px;
}

.content-card p {
  margin: 0;
  color: #51465f;
  font-size: 17px;
  line-height: 1.95;
  text-align: justify;
}

.site-footer {
  margin-top: 70px;
  color: #ffffff;
  background: linear-gradient(180deg, #581c87, #2e1065);
}

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

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

.site-footer p,
.site-footer a,
.copyright {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.site-footer a:hover {
  color: #ffffff;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: center;
}

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

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

@media (max-width: 920px) {
  .desktop-nav,
  .top-search {
    display: none;
  }

  .mobile-menu-button {
    display: block;
    margin-left: auto;
  }

  .mobile-nav.is-open {
    display: block;
  }

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

  .hero-stage {
    min-height: 520px;
  }

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

  .poster-card {
    width: min(260px, 70vw);
  }

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

@media (max-width: 640px) {
  .nav-shell {
    height: 62px;
  }

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

  .hero-stage {
    min-height: 500px;
    border-radius: 26px;
  }

  .hero-side-panel,
  .page-hero {
    padding: 24px;
  }

  .hero-content {
    left: 22px;
    bottom: 56px;
    width: calc(100% - 44px);
  }

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

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

  .category-grid,
  .category-overview-grid,
  .footer-shell {
    grid-template-columns: 1fr;
  }

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

  .filter-box input,
  .filter-box select {
    min-width: 100%;
  }
}
