
:root {
  color-scheme: light;
  --primary: #7c3aed;
  --secondary: #ec4899;
  --accent: #f97316;
  --ink: #151525;
  --muted: #62617a;
  --line: rgba(124, 58, 237, 0.14);
  --panel: rgba(255, 255, 255, 0.9);
  --bg: #fff7ff;
  --shadow: 0 22px 55px rgba(76, 29, 149, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.18), transparent 36rem),
    linear-gradient(180deg, #fff7ff 0%, #f8f7ff 42%, #ffffff 100%);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.98), rgba(236, 72, 153, 0.96), rgba(168, 85, 247, 0.98));
  box-shadow: 0 14px 35px rgba(76, 29, 149, 0.22);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 22px;
  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;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

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

.nav-link {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  width: min(320px, 28vw);
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.17);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.header-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: none;
  color: #ffffff;
  background: transparent;
  padding: 9px 12px;
}

.header-search input::placeholder {
  color: rgba(255, 255, 255, 0.78);
}

.header-search button,
.primary-btn,
.ghost-btn,
.section-more {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
}

.header-search button {
  color: var(--primary);
  background: #ffffff;
  padding: 9px 15px;
}

.menu-toggle {
  display: none;
  color: #ffffff;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 22px;
}

.mobile-panel {
  display: none;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
  gap: 10px;
}

.mobile-panel a {
  color: #ffffff;
  padding: 11px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 800;
}

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

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

.hero-carousel {
  position: relative;
  min-height: 620px;
  margin: 26px auto 24px;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  background: #2e1065;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 0.8s ease;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 10, 69, 0.95), rgba(88, 28, 135, 0.78) 48%, rgba(236, 72, 153, 0.26)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.58), transparent 65%);
  backdrop-filter: blur(3px);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  align-items: center;
  gap: 48px;
  padding: 66px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.hero-copy h1,
.page-hero h1 {
  margin: 18px 0 18px;
  color: #ffffff;
  font-size: clamp(40px, 7vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.hero-summary {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(17px, 2.2vw, 23px);
  line-height: 1.8;
}

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

.hero-tags span,
.tag-row span {
  color: #6d28d9;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 800;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(90deg, #7c3aed, #ec4899);
  box-shadow: 0 12px 30px rgba(236, 72, 153, 0.3);
}

.ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.hero-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 28px;
  transform: rotate(2deg);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.35);
}

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

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
}

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

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

.hero-dots button.active,
.hero-dots button:first-child {
  background: #ffffff;
}

.quick-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 22px 0;
}

.quick-panel a,
.category-tile {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background: var(--panel);
  box-shadow: 0 14px 40px rgba(76, 29, 149, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-panel a:hover,
.category-tile:hover,
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 60px rgba(76, 29, 149, 0.16);
}

.quick-panel strong,
.category-tile span {
  color: var(--primary);
  font-size: 18px;
  font-weight: 900;
}

.quick-panel span,
.category-tile em {
  color: var(--muted);
  font-style: normal;
}

.content-section,
.page-shell {
  margin: 42px auto;
}

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

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

.section-head .section-kicker {
  color: #ffffff;
}

.section-more {
  color: #ffffff;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  padding: 11px 17px;
  white-space: nowrap;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.12);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 36px rgba(76, 29, 149, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(236, 72, 153, 0.12));
}

.poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.7), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-glow {
  opacity: 1;
}

.play-chip {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.72);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.rank-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: 12px;
  background: linear-gradient(135deg, #f97316, #ec4899);
  box-shadow: 0 10px 24px rgba(236, 72, 153, 0.3);
}

.card-body {
  padding: 16px;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.8em;
  overflow: hidden;
  color: #252045;
  font-weight: 900;
  line-height: 1.4;
}

.card-title:hover {
  color: var(--primary);
}

.card-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 3.2em;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

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

.meta-line span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f3e8ff;
}

.tag-row {
  margin-top: 12px;
}

.tag-row span {
  color: #7c3aed;
  background: #f5f3ff;
  font-size: 12px;
  padding: 5px 8px;
}

.page-shell {
  min-height: 60vh;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 54px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.24), transparent 24rem),
    linear-gradient(135deg, #6d28d9, #ec4899 58%, #f97316);
  box-shadow: var(--shadow);
}

.page-hero h1 {
  max-width: 820px;
}

.page-hero p {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.8;
}

.category-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.category-tile {
  min-height: 150px;
}

.category-tile strong {
  color: #20143f;
  font-size: 20px;
  line-height: 1.4;
}

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

.filter-bar input,
.filter-bar select,
.advanced-filter input,
.advanced-filter select {
  min-height: 48px;
  border: 0;
  outline: none;
  border-radius: 999px;
  padding: 0 17px;
  color: #2e1065;
  background: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.filter-bar input,
.advanced-filter input {
  min-width: min(420px, 100%);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #6d28d9;
  margin: 24px 0 18px;
  font-weight: 800;
}

.detail-page {
  width: min(1160px, calc(100% - 32px));
}

.detail-hero {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(236, 72, 153, 0.22), transparent 28rem),
    rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 22px 48px rgba(76, 29, 149, 0.22);
}

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

.detail-info h1 {
  margin: 18px 0 10px;
  color: #22123f;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

.detail-one-line {
  color: #50446c;
  font-size: 18px;
  line-height: 1.8;
}

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

.detail-meta span {
  color: #5b21b6;
  background: #f3e8ff;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
}

.detail-tags span {
  background: #ffffff;
}

.player-section {
  margin: 32px 0;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  background: #080612;
  box-shadow: 0 28px 70px rgba(22, 11, 58, 0.32);
}

.movie-video {
  width: 100%;
  min-height: 420px;
  max-height: 72vh;
  display: block;
  background: #05030a;
}

.video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.14));
}

.video-play span {
  width: 86px;
  height: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #7c3aed;
  background: #ffffff;
  border-radius: 999px;
  font-size: 36px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.video-shell.playing .video-play {
  display: none;
}

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

.detail-content article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 38px rgba(76, 29, 149, 0.08);
}

.detail-content h2 {
  margin: 0 0 12px;
  color: #2e1065;
}

.detail-content p {
  margin: 0;
  color: #50446c;
  line-height: 1.9;
}

.site-footer {
  margin-top: 70px;
  color: rgba(255, 255, 255, 0.84);
  background: linear-gradient(135deg, #2e1065, #581c87 55%, #831843);
}

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

.footer-inner strong {
  color: #ffffff;
  font-size: 22px;
}

.footer-inner p {
  line-height: 1.8;
}

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

.footer-links a {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.copyright {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 28px;
  color: rgba(255, 255, 255, 0.72);
}

.is-hidden {
  display: none !important;
}

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

  .menu-toggle {
    display: inline-flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding: 42px;
  }

  .hero-poster {
    display: none;
  }

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

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

@media (max-width: 760px) {
  .header-inner {
    height: 64px;
  }

  .brand {
    font-size: 18px;
  }

  main,
  .detail-page {
    width: min(100% - 24px, 1220px);
  }

  .hero-carousel,
  .hero-content {
    min-height: 540px;
  }

  .hero-content,
  .page-hero,
  .detail-hero {
    padding: 24px;
  }

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

  .quick-panel,
  .detail-content,
  .footer-inner,
  .detail-hero {
    grid-template-columns: 1fr;
  }

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

  .detail-cover {
    max-width: 260px;
  }

  .movie-video {
    min-height: 240px;
  }

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

@media (max-width: 460px) {
  .movie-grid,
  .small-grid,
  .category-list {
    grid-template-columns: 1fr;
  }

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