:root {
  --bg-a: #faf5ff;
  --bg-b: #fdf2f8;
  --bg-c: #eff6ff;
  --purple: #9333ea;
  --pink: #db2777;
  --blue: #2563eb;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(255, 255, 255, 0.28);
  --glass: rgba(255, 255, 255, 0.72);
  --shadow: 0 24px 70px rgba(79, 70, 229, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(147, 51, 234, 0.18), transparent 26rem),
    radial-gradient(circle at 84% 18%, rgba(219, 39, 119, 0.14), transparent 22rem),
    linear-gradient(135deg, var(--bg-a), var(--bg-b), var(--bg-c));
}

body.is-menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 32px rgba(99, 102, 241, 0.08);
}

.header-inner {
  max-width: 1280px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--pink), var(--blue));
  box-shadow: 0 12px 24px rgba(147, 51, 234, 0.28);
}

.brand-name,
.footer-brand {
  font-size: 24px;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-search {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
}

.header-search input,
.mobile-search input,
.inline-filter input,
.search-panel input,
.search-panel select,
.inline-filter select {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.header-search input {
  padding: 7px 12px;
}

.header-search button,
.mobile-search button,
.search-panel button {
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, var(--purple), var(--pink));
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: 650;
  color: #4b5563;
}

.nav-link {
  position: relative;
  padding: 8px 0;
}

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

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), var(--pink));
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  margin: 4px auto;
  display: block;
  border-radius: 2px;
  background: #374151;
}

.mobile-panel {
  display: none;
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.9);
}

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

.mobile-search {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(243, 232, 255, 0.88);
}

.mobile-nav-link {
  display: block;
  padding: 12px 10px;
  border-radius: 14px;
  color: #374151;
}

.mobile-nav-link:hover {
  background: rgba(147, 51, 234, 0.08);
  color: var(--purple);
}

main {
  overflow: hidden;
}

.hero-slider {
  position: relative;
  min-height: 720px;
  padding-top: 72px;
  overflow: hidden;
  color: #fff;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 650ms ease, visibility 650ms ease;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-backdrop {
  position: absolute;
  inset: -24px;
  background-size: cover;
  background-position: center;
  filter: blur(12px) brightness(0.58);
  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.42), rgba(17, 24, 39, 0.72)),
    linear-gradient(0deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.08) 42%, rgba(17, 24, 39, 0.72));
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 648px;
  margin: 0 auto;
  padding: 80px 24px 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 58px;
  align-items: end;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #facc15;
}

.hero-copy h1,
.hero-copy h2 {
  max-width: 840px;
  margin: 0 0 20px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-desc {
  max-width: 760px;
  margin: 0 0 24px;
  font-size: 20px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

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

.hero-meta span,
.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

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

.hero-tags span,
.tag-row span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  color: #6d28d9;
  background: rgba(243, 232, 255, 0.9);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

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

.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--pink), var(--blue));
  box-shadow: 0 18px 34px rgba(147, 51, 234, 0.32);
}

.btn.ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(10px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
  transform: rotate(2deg);
}

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

.hero-controls {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.hero-prev,
.hero-next,
.hero-dot {
  border: 0;
  cursor: pointer;
}

.hero-prev,
.hero-next {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  background: rgba(255, 255, 255, 0.16);
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.44);
  transition: width 200ms ease, background 200ms ease;
}

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

.section-block,
.player-section,
.content-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 24px 0;
}

.no-top-space {
  padding-top: 32px;
}

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

.section-head h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.compact-head h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.text-link {
  color: var(--purple);
  font-weight: 800;
}

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

.category-card,
.category-overview-card,
.glass-article,
.page-hero {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 28px;
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.category-card {
  padding: 16px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.category-card:hover,
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 80px rgba(147, 51, 234, 0.18);
}

.category-covers {
  height: 116px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(219, 39, 119, 0.1));
}

.category-covers img,
.overview-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card h3 {
  margin: 14px 0 8px;
  font-size: 20px;
}

.category-card p,
.category-overview-card p,
.page-hero p,
.movie-card p,
.glass-article p,
.footer-inner p {
  color: var(--muted);
  line-height: 1.75;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 45px rgba(99, 102, 241, 0.12);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(147, 51, 234, 0.14), rgba(37, 99, 235, 0.12));
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 350ms ease;
}

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

.poster-shade {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(0deg, rgba(17, 24, 39, 0.78), transparent);
}

.movie-year,
.play-mini {
  position: absolute;
  z-index: 2;
  color: #fff;
}

.movie-year {
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(17, 24, 39, 0.66);
  backdrop-filter: blur(8px);
}

.play-mini {
  right: 12px;
  bottom: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

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

.movie-meta-line {
  margin-bottom: 7px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 800;
}

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

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

.movie-card p {
  margin: 0 0 12px;
  font-size: 14px;
}

.tag-row span {
  font-size: 12px;
  padding: 4px 8px;
}

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

.rank-list.large-rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rank-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 46px 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 16px 36px rgba(99, 102, 241, 0.11);
  transition: transform 180ms ease;
}

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

.rank-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--pink);
}

.rank-item img {
  width: 64px;
  height: 86px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-copy {
  min-width: 0;
}

.rank-copy strong,
.rank-copy em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-copy strong {
  margin-bottom: 6px;
  font-size: 17px;
}

.rank-copy em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.page-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 112px 24px 0;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 56px;
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(147, 51, 234, 0.22), transparent 68%);
}

.page-hero p {
  max-width: 820px;
  margin: 16px 0 0;
  font-size: 18px;
}

.inline-filter,
.search-panel {
  position: relative;
  z-index: 2;
  margin-top: 28px;
  display: grid;
  gap: 12px;
}

.inline-filter {
  grid-template-columns: 1fr 180px;
  max-width: 640px;
}

.search-panel {
  grid-template-columns: minmax(0, 1fr) 180px 180px 120px;
  max-width: 960px;
}

.inline-filter input,
.inline-filter select,
.search-panel input,
.search-panel select {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(147, 51, 234, 0.12);
  background: rgba(255, 255, 255, 0.8);
}

.search-panel button {
  min-height: 46px;
}

.overview-list {
  padding: 38px 0 0;
  display: grid;
  gap: 22px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
  padding: 18px;
}

.overview-cover {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  overflow: hidden;
  min-height: 190px;
  border-radius: 22px;
}

.category-overview-card h2 {
  margin: 4px 0 10px;
  font-size: 28px;
}

.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.overview-links a {
  padding: 8px 10px;
  border-radius: 999px;
  color: #6d28d9;
  background: rgba(243, 232, 255, 0.9);
  font-size: 13px;
}

.detail-main {
  color: #fff;
}

.detail-hero {
  position: relative;
  min-height: 680px;
  padding: 120px 24px 72px;
  overflow: hidden;
}

.detail-backdrop {
  position: absolute;
  inset: -24px;
  background-size: cover;
  background-position: center;
  filter: blur(14px) brightness(0.52);
  transform: scale(1.08);
}

.detail-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.9), rgba(17, 24, 39, 0.5)),
    linear-gradient(0deg, rgba(17, 24, 39, 1), rgba(17, 24, 39, 0.18));
}

.detail-grid {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 48px;
  align-items: end;
}

.detail-cover-wrap {
  border-radius: 30px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.44);
}

.detail-cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.76);
}

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

.detail-copy h1 {
  font-size: clamp(42px, 6vw, 68px);
  color: #fff;
}

.detail-one-line {
  max-width: 780px;
  margin: 20px 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.75;
}

.player-section,
.content-section,
.related-section {
  color: var(--ink);
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #000;
  box-shadow: 0 28px 80px rgba(17, 24, 39, 0.32);
}

.video-player {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.08));
}

.play-overlay span {
  width: 88px;
  height: 88px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 42px;
  background: linear-gradient(135deg, var(--purple), var(--pink), var(--blue));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32);
}

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

.glass-article {
  padding: 34px;
}

.glass-article h2 {
  margin: 0 0 16px;
  font-size: 28px;
}

.glass-article h2:not(:first-child) {
  margin-top: 30px;
}

.glass-article p {
  margin: 0;
  font-size: 17px;
}

.site-footer {
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(14px);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 38px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-inner p {
  max-width: 620px;
  margin: 10px 0 0;
}

.footer-links {
  display: flex;
  gap: 16px;
  color: var(--purple);
  font-weight: 800;
}

[hidden] {
  display: none !important;
}

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

  .hero-content {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

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

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

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

  .header-inner {
    height: 66px;
    padding: 0 16px;
  }

  .brand-name {
    font-size: 20px;
  }

  .hero-slider {
    min-height: 760px;
    padding-top: 66px;
  }

  .hero-content {
    min-height: 694px;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 52px 18px 82px;
    align-items: center;
  }

  .hero-poster {
    width: min(270px, 72vw);
    margin: 0 auto;
    order: -1;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: clamp(34px, 12vw, 54px);
  }

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

  .section-block,
  .player-section,
  .content-section,
  .page-main {
    padding-left: 16px;
    padding-right: 16px;
  }

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

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

  .rank-grid,
  .rank-list.large-rank-list {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 34px 22px;
  }

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

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

  .overview-cover {
    min-height: 160px;
  }

  .detail-hero {
    padding-top: 104px;
  }

  .detail-cover-wrap {
    max-width: 260px;
    margin: 0 auto;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .compact-grid,
  .category-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

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

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

  .movie-card p {
    display: none;
  }

  .hero-controls {
    bottom: 16px;
  }

  .page-main {
    padding-top: 96px;
  }

  .play-overlay span {
    width: 70px;
    height: 70px;
    font-size: 34px;
  }
}
