:root {
  --bg: #f8f5ff;
  --text: #1f1b2d;
  --muted: #6b6580;
  --primary: #7c3aed;
  --primary-2: #ec4899;
  --accent: #f59e0b;
  --surface: rgba(255, 255, 255, 0.88);
  --line: rgba(111, 76, 255, 0.16);
  --shadow: 0 20px 60px rgba(65, 35, 120, 0.14);
  --radius: 24px;
}
body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.16), transparent 28rem),
    radial-gradient(circle at top right, rgba(124, 58, 237, 0.18), transparent 30rem),
    linear-gradient(180deg, #fff7ed 0%, var(--bg) 28%, #ffffff 100%);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
a {
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(90deg, rgba(124, 58, 237, 0.94), rgba(236, 72, 153, 0.9), rgba(245, 158, 11, 0.9));
  box-shadow: 0 10px 35px rgba(88, 28, 135, 0.22);
  backdrop-filter: blur(18px);
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.site-logo {
  font-size: 24px;
}
.logo-icon {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.2);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.nav-link {
  color: rgba(255,255,255,0.92);
  font-weight: 700;
  padding: 9px 12px;
  border-radius: 999px;
}
.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.18);
}
.header-search {
  position: relative;
  width: min(280px, 30vw);
}
.header-search input,
.mobile-search input,
.filter-input {
  width: 100%;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.5);
  padding: 11px 18px;
  outline: none;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.7);
}
.site-search-results {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: min(420px, 90vw);
  max-height: 520px;
  overflow: auto;
  display: none;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255,255,255,0.98);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.site-search-results.active {
  display: grid;
  gap: 8px;
}
.search-hit {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  padding: 8px;
  border-radius: 14px;
  color: var(--text);
}
.search-hit:hover {
  background: #f5f0ff;
}
.search-hit img {
  width: 64px;
  height: 46px;
  object-fit: cover;
  border-radius: 10px;
  background: linear-gradient(135deg, #ede9fe, #fce7f3);
}
.search-hit strong {
  display: block;
  font-size: 14px;
}
.search-hit span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.menu-toggle {
  display: none;
  color: #fff;
  font-size: 28px;
}
.mobile-nav {
  display: none;
  padding: 0 20px 18px;
  background: rgba(255,255,255,0.96);
}
.mobile-nav .nav-link {
  color: var(--text);
  display: block;
  margin: 4px 0;
}
.mobile-search {
  position: relative;
  margin-top: 12px;
}
.main-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 22px 70px;
}
.hero {
  position: relative;
  min-height: 580px;
  overflow: hidden;
  border-radius: 34px;
  box-shadow: var(--shadow);
  isolation: isolate;
  background: #12091f;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  filter: blur(3px) saturate(1.2);
}
.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 9, 31, 0.92) 0%, rgba(39, 16, 63, 0.74) 46%, rgba(236, 72, 153, 0.28) 100%),
    linear-gradient(0deg, rgba(18, 9, 31, 0.92), transparent 52%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  min-height: 580px;
  padding: clamp(34px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  align-items: center;
  gap: clamp(24px, 5vw, 70px);
}
.hero-copy {
  color: #fff;
  max-width: 720px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  color: #fde68a;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: -0.06em;
  margin-bottom: 20px;
  text-shadow: 0 12px 45px rgba(0,0,0,0.35);
}
.hero p {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.9;
  color: rgba(255,255,255,0.9);
}
.hero-tags,
.meta-pills,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-tags {
  margin: 22px 0 28px;
}
.hero-tags span,
.meta-pills span,
.tag-list span {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}
.hero-tags span {
  color: #fff;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.18);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.primary-btn,
.ghost-btn,
.small-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 900;
}
.primary-btn {
  padding: 14px 24px;
  color: #fff;
  background: linear-gradient(90deg, var(--primary-2), var(--primary));
  box-shadow: 0 14px 35px rgba(236, 72, 153, 0.32);
}
.primary-btn:hover,
.small-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(124, 58, 237, 0.34);
}
.ghost-btn {
  padding: 13px 21px;
  color: #fff;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.22);
}
.ghost-btn:hover {
  background: rgba(255,255,255,0.22);
}
.hero-poster {
  position: relative;
  display: block;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
  transform: rotate(2deg);
  background: linear-gradient(135deg, #ede9fe, #fce7f3);
}
.hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-poster span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 18px;
  border-radius: 999px;
  color: #fff;
  text-align: center;
  font-weight: 900;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(10px);
}
.hero-controls {
  position: absolute;
  z-index: 5;
  right: 28px;
  bottom: 26px;
  display: flex;
  gap: 10px;
}
.hero-controls button {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(12px);
}
.hero-controls button:hover {
  background: rgba(255,255,255,0.28);
}
.section {
  margin-top: 46px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 950;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-desc {
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.8;
}
.category-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 18px 4px 4px;
  scrollbar-width: thin;
}
.category-strip a,
.category-card,
.filter-btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.82);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.08);
}
.category-strip a {
  flex: 0 0 auto;
  padding: 12px 17px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 850;
}
.category-strip a:hover,
.filter-btn.active,
.filter-btn:hover {
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transform: translateY(-2px);
}
.movie-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}
.compact-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}
.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 12px 36px rgba(65, 35, 120, 0.10);
  border: 1px solid rgba(255,255,255,0.85);
}
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(65, 35, 120, 0.18);
}
.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #ede9fe, #fce7f3 48%, #ffedd5);
}
.compact-grid .poster-frame {
  aspect-ratio: 16 / 10;
}
.poster-frame img,
.detail-cover img,
.related-card img,
.rank-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.movie-card:hover .poster-frame img,
.related-card:hover img,
.rank-row:hover img {
  transform: scale(1.08);
}
.poster-frame img,
.related-card img,
.rank-thumb img,
.hero-poster img,
.detail-cover img {
  transition: transform 0.45s ease;
}
.duration-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  color: #fff;
  font-weight: 900;
  border-radius: 999px;
  background: rgba(0,0,0,0.64);
  backdrop-filter: blur(8px);
}
.duration-pill {
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  font-size: 12px;
}
.rank-badge {
  left: 10px;
  top: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}
.card-body {
  padding: 16px;
}
.card-title {
  display: block;
  min-height: 48px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.38;
  font-weight: 900;
}
.card-title:hover {
  color: var(--primary);
}
.card-body p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}
.card-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f5f3ff;
}
.tag-list {
  margin-top: 12px;
}
.tag-list span,
.meta-pills span {
  color: #6d28d9;
  background: #f3e8ff;
}
.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 26px;
}
.rank-panel,
.feature-panel,
.category-card,
.detail-panel,
.player-shell,
.filter-box {
  border-radius: var(--radius);
  background: rgba(255,255,255,0.9);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.85);
}
.rank-panel {
  padding: 20px;
}
.rank-list {
  display: grid;
  gap: 10px;
}
.rank-row {
  display: grid;
  grid-template-columns: 36px 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  color: var(--text);
}
.rank-row:hover {
  background: #f5f0ff;
  transform: translateX(4px);
}
.list-rank {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
}
.rank-thumb {
  width: 86px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #ede9fe, #fce7f3);
}
.rank-info {
  min-width: 0;
}
.rank-info strong,
.rank-info em {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-info strong {
  font-weight: 900;
}
.rank-info em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}
.rank-more {
  color: var(--primary);
  font-weight: 900;
}
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.category-card {
  padding: 24px;
  color: var(--text);
}
.category-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(135deg, rgba(255,255,255,0.94), #f5f0ff);
}
.category-card h2,
.category-card h3 {
  font-size: 22px;
  font-weight: 950;
}
.category-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.8;
}
.page-hero {
  padding: clamp(34px, 5vw, 64px);
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 0%, rgba(255,255,255,0.18), transparent 28rem),
    linear-gradient(135deg, #6d28d9, #db2777 58%, #f59e0b);
  box-shadow: var(--shadow);
}
.page-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 950;
  line-height: 1.08;
  letter-spacing: -0.05em;
}
.page-hero p {
  max-width: 820px;
  margin-top: 14px;
  color: rgba(255,255,255,0.9);
  line-height: 1.9;
}
.filter-box {
  margin-top: 24px;
  padding: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.filter-input {
  flex: 1 1 260px;
  background: #fff;
  border: 1px solid var(--line);
}
.filter-btn {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--text);
  font-weight: 850;
}
.detail-hero {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  margin-top: 26px;
}
.detail-cover {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #ede9fe, #fce7f3);
  box-shadow: var(--shadow);
}
.detail-info h1 {
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.05em;
}
.detail-info p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.9;
}
.meta-pills {
  margin: 18px 0;
}
.player-shell {
  position: relative;
  overflow: hidden;
  margin-top: 34px;
  background: #09090f;
  aspect-ratio: 16 / 9;
}
.player-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #050509;
  cursor: pointer;
}
.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.72), rgba(0,0,0,0.2)),
    var(--poster-image);
  background-size: cover;
  background-position: center;
  cursor: pointer;
}
.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.play-circle {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 38px;
  background: linear-gradient(135deg, var(--primary-2), var(--primary));
  box-shadow: 0 20px 55px rgba(124, 58, 237, 0.45);
}
.detail-panel {
  margin-top: 28px;
  padding: clamp(22px, 4vw, 38px);
}
.detail-panel h2 {
  font-size: 26px;
  font-weight: 950;
  margin-top: 22px;
  margin-bottom: 12px;
}
.detail-panel h2:first-child {
  margin-top: 0;
}
.detail-panel p {
  color: #413a55;
  line-height: 2;
  font-size: 16px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.related-card {
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  color: var(--text);
  box-shadow: 0 12px 36px rgba(65,35,120,0.10);
}
.related-card .poster-frame {
  aspect-ratio: 16 / 10;
}
.related-card strong {
  display: block;
  padding: 12px 14px 0;
  font-weight: 900;
}
.related-card span {
  display: block;
  padding: 3px 14px 14px;
  color: var(--muted);
  font-size: 13px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 16px;
}
.breadcrumb a {
  color: var(--primary);
  font-weight: 800;
}
.site-footer {
  color: #fff;
  background: linear-gradient(135deg, #2e1065, #831843);
  margin-top: 40px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 22px;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 30px;
}
.footer-logo {
  color: #fff;
  font-size: 24px;
}
.site-footer p {
  margin-top: 12px;
  color: rgba(255,255,255,0.78);
  line-height: 1.8;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.footer-links a {
  color: rgba(255,255,255,0.9);
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
}
.footer-copy {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 22px 24px;
  color: rgba(255,255,255,0.66);
  font-size: 14px;
}
.hidden-card {
  display: none !important;
}
img.image-missing {
  display: none;
}
@media (max-width: 1080px) {
  .desktop-nav,
  .header-search {
    display: none;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
  }
  .mobile-nav.open {
    display: block;
  }
  .hero-content,
  .split-layout,
  .detail-hero,
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .hero-poster {
    display: none;
  }
  .movie-grid,
  .category-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .compact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer-links {
    justify-content: flex-start;
  }
}
@media (max-width: 640px) {
  .header-inner {
    padding: 12px 16px;
  }
  .site-logo {
    font-size: 19px;
  }
  .main-wrap {
    padding: 18px 14px 46px;
  }
  .hero,
  .hero-content {
    min-height: 520px;
  }
  .hero-content {
    padding: 28px;
  }
  .hero-controls {
    right: 18px;
    bottom: 16px;
  }
  .movie-grid,
  .compact-grid,
  .category-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }
  .rank-row {
    grid-template-columns: 32px 72px minmax(0, 1fr);
  }
  .rank-more {
    display: none;
  }
  .detail-cover {
    max-width: 280px;
  }
}
