:root {
  --purple-950: #24103d;
  --purple-900: #361461;
  --purple-800: #4c1d95;
  --purple-700: #6d28d9;
  --purple-600: #7c3aed;
  --purple-500: #8b5cf6;
  --purple-100: #ede9fe;
  --rose-500: #ec4899;
  --taro-300: #e0c3fc;
  --paper: #ffffff;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(124, 58, 237, 0.14);
  --soft-shadow: 0 18px 45px rgba(76, 29, 149, 0.12);
  --strong-shadow: 0 28px 80px rgba(76, 29, 149, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(224, 195, 252, 0.55), transparent 28rem),
    radial-gradient(circle at 90% 22%, rgba(236, 72, 153, 0.14), transparent 24rem),
    linear-gradient(180deg, #faf7ff 0%, #ffffff 42%, #faf7ff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(124, 58, 237, 0.12);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.08);
}

.site-nav {
  width: min(1280px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: transparent;
  background: linear-gradient(135deg, var(--purple-700), var(--rose-500));
  -webkit-background-clip: text;
  background-clip: text;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple-700), var(--rose-500));
  box-shadow: 0 12px 30px rgba(124, 58, 237, 0.28);
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav-link {
  padding: 10px 13px;
  border-radius: 999px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--purple-700);
  background: linear-gradient(135deg, rgba(183, 148, 246, 0.22), rgba(224, 195, 252, 0.4));
  transform: translateY(-1px);
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(124, 58, 237, 0.16);
  border-radius: 999px;
  background: rgba(237, 233, 254, 0.62);
}

.nav-search input {
  width: 230px;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 6px 10px 12px;
  background: transparent;
  color: var(--ink);
}

.nav-search button,
.primary-btn,
.ghost-btn,
.inline-btn {
  border: 0;
  cursor: pointer;
  font-weight: 900;
}

.nav-search button,
.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple-700), var(--rose-500));
  box-shadow: 0 16px 32px rgba(124, 58, 237, 0.26);
}

.nav-search button {
  padding: 10px 16px;
  border-radius: 999px;
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(237, 233, 254, 0.85);
  cursor: pointer;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--purple-700);
}

.hero-carousel {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--purple-950), var(--purple-800) 45%, #b14fca);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: center;
  gap: 42px;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: translateY(18px);
}

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

.hero-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 640px;
  object-fit: cover;
  opacity: 0.28;
  filter: saturate(1.12);
}

.hero-shade {
  position: fixed;
  inset: 0;
  height: 640px;
  background:
    linear-gradient(90deg, rgba(36, 16, 61, 0.92), rgba(54, 20, 97, 0.66), rgba(54, 20, 97, 0.28)),
    linear-gradient(0deg, rgba(36, 16, 61, 0.72), transparent 42%);
}

.hero-content,
.hero-poster {
  position: relative;
  z-index: 3;
}

.hero-content {
  max-width: 760px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #4c1d95;
  background: linear-gradient(135deg, rgba(224, 195, 252, 0.94), rgba(255, 255, 255, 0.82));
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(255, 255, 255, 0.16);
}

.hero-content h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.05em;
  text-shadow: 0 22px 45px rgba(0, 0, 0, 0.24);
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.8;
}

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

.hero-tags span,
.movie-tags span,
.detail-tags span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.hero-tags span {
  padding: 7px 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

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

.primary-btn,
.ghost-btn,
.inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 24px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.ghost-btn,
.inline-btn {
  color: var(--purple-700);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 35px rgba(76, 29, 149, 0.14);
}

.hero-poster {
  display: block;
  overflow: hidden;
  border-radius: 32px;
  transform: rotate(2deg);
  box-shadow: var(--strong-shadow);
}

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

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: inherit;
  pointer-events: none;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
}

.hero-prev {
  left: 24px;
}

.hero-next {
  right: 24px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 26px;
  z-index: 12;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
}

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

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

.hero-orb {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.32;
  pointer-events: none;
}

.hero-orb-a {
  width: 280px;
  height: 280px;
  right: 12%;
  top: 12%;
  background: var(--taro-300);
}

.hero-orb-b {
  width: 360px;
  height: 360px;
  left: -120px;
  bottom: -110px;
  background: var(--rose-500);
}

.section {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 0;
}

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

.section-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  margin-bottom: 10px;
  border-radius: 999px;
  color: var(--purple-700);
  background: rgba(237, 233, 254, 0.8);
  font-size: 13px;
  font-weight: 900;
}

.section h2,
.page-title h1,
.detail-title h1 {
  margin: 0;
  color: #1f1a33;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.section h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.section-head p,
.page-title p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(124, 58, 237, 0.34);
  box-shadow: 0 26px 65px rgba(76, 29, 149, 0.18);
  transform: translateY(-8px);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, #4c1d95, #ec4899);
}

.poster-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

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

.card-rank {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 40px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(36, 16, 61, 0.76);
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

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

.movie-tags {
  margin-bottom: 12px;
}

.movie-tags span,
.detail-tags span {
  padding: 5px 9px;
  color: var(--purple-700);
  background: rgba(237, 233, 254, 0.86);
  font-size: 12px;
}

.movie-card h3 {
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 19px;
  line-height: 1.35;
  font-weight: 950;
}

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

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 800;
}

.movie-meta span {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(250, 245, 255, 0.96);
}

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

.category-tile {
  position: relative;
  min-height: 178px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
  transform: translateY(-7px);
  box-shadow: var(--strong-shadow);
}

.category-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background: linear-gradient(135deg, var(--purple-600), var(--rose-500));
}

.category-icon {
  position: relative;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 18px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple-700), var(--rose-500));
  font-size: 24px;
  font-weight: 950;
}

.category-tile strong,
.category-tile em {
  position: relative;
  display: block;
}

.category-tile strong {
  margin-bottom: 8px;
  color: #1f2937;
  font-size: 20px;
  font-weight: 950;
}

.category-tile em {
  color: #6b7280;
  font-style: normal;
  font-size: 14px;
  line-height: 1.55;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 46px 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 36px rgba(76, 29, 149, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-4px);
  box-shadow: var(--soft-shadow);
}

.rank-num {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple-700), var(--rose-500));
  font-weight: 950;
}

.rank-row img {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  object-fit: cover;
}

.rank-title {
  overflow: hidden;
  color: #1f2937;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rank-meta {
  color: #8b5cf6;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.page-title {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 64px 0 18px;
}

.page-title h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.filter-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 20px 0 0;
}

.filter-chip {
  border: 1px solid rgba(124, 58, 237, 0.18);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--purple-700);
  background: rgba(255, 255, 255, 0.82);
  font-weight: 850;
  cursor: pointer;
}

.filter-chip.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple-700), var(--rose-500));
}

.empty-state {
  display: none;
  padding: 40px;
  border: 1px dashed rgba(124, 58, 237, 0.35);
  border-radius: 28px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

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

.detail-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 0;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #7c3aed;
  font-size: 14px;
  font-weight: 800;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 360px;
  gap: 28px;
  align-items: start;
}

.player-card,
.detail-side,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--soft-shadow);
}

.player-card {
  overflow: hidden;
}

.video-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 30px 30px 0 0;
  background: #0f0620;
}

.video-wrap video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #0f0620;
  cursor: pointer;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(15, 6, 32, 0.18), rgba(15, 6, 32, 0.62));
  cursor: pointer;
}

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

.play-bubble {
  width: 92px;
  height: 92px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-700), var(--rose-500));
  box-shadow: 0 24px 55px rgba(124, 58, 237, 0.38);
  font-size: 42px;
  transform: translateX(3px);
}

.detail-title {
  padding: 26px;
}

.detail-title h1 {
  font-size: clamp(32px, 5vw, 52px);
}

.detail-title p {
  margin: 14px 0 0;
  color: #6b7280;
  font-size: 17px;
  line-height: 1.85;
}

.detail-side {
  overflow: hidden;
}

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

.detail-side-body {
  padding: 22px;
}

.detail-meta-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.detail-meta-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(124, 58, 237, 0.1);
  color: #6b7280;
}

.detail-meta-list strong {
  color: #1f2937;
}

.detail-panel {
  padding: 28px;
}

.detail-panel h2 {
  margin: 0 0 16px;
  color: #1f2937;
  font-size: 26px;
  font-weight: 950;
}

.detail-panel p {
  color: #4b5563;
  line-height: 1.95;
}

.site-footer {
  position: relative;
  margin-top: 88px;
  overflow: hidden;
  border-top: 1px solid rgba(124, 58, 237, 0.12);
  background: linear-gradient(180deg, rgba(237, 233, 254, 0.6), rgba(255, 255, 255, 0.95));
}

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

.footer-brand p {
  max-width: 480px;
  color: #6b7280;
  line-height: 1.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: #6b7280;
  background: rgba(255, 255, 255, 0.7);
  font-weight: 800;
}

.footer-bottom {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(124, 58, 237, 0.1);
  color: #8b5cf6;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 1100px) {
  .site-nav {
    grid-template-columns: auto auto;
  }

  .mobile-toggle {
    display: block;
    justify-self: end;
  }

  .nav-panel,
  .nav-search {
    grid-column: 1 / -1;
    display: none;
  }

  .nav-panel.is-open,
  .nav-search.is-open {
    display: flex;
  }

  .nav-panel {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-bottom: 8px;
  }

  .nav-search {
    margin-bottom: 14px;
  }

  .nav-search input {
    width: 100%;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: center;
    gap: 24px;
  }

  .hero-poster {
    display: none;
  }

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

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

  .detail-side {
    max-width: 420px;
  }
}

@media (max-width: 760px) {
  .site-nav,
  .section,
  .page-title,
  .detail-hero,
  .footer-inner,
  .footer-bottom {
    width: min(100% - 24px, 1280px);
  }

  .hero-carousel {
    min-height: 620px;
  }

  .hero-bg,
  .hero-shade {
    height: 620px;
  }

  .hero-slide {
    width: min(100% - 24px, 1280px);
  }

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

  .hero-arrow {
    display: none;
  }

  .section {
    padding-top: 44px;
  }

  .section-head {
    display: block;
  }

  .movie-grid,
  .category-grid,
  .rank-board {
    grid-template-columns: 1fr;
  }

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

  .rank-meta {
    grid-column: 3;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 18px;
  }

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

  .primary-btn,
  .ghost-btn,
  .inline-btn {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }
}
