:root {
  --bg: #fff7ff;
  --bg-soft: #f6edff;
  --text: #231b2e;
  --muted: #6f627d;
  --line: rgba(121, 88, 160, 0.18);
  --card: rgba(255, 255, 255, 0.78);
  --glass: rgba(255, 255, 255, 0.64);
  --purple: #8b5cf6;
  --pink: #ec4899;
  --rose: #fb7185;
  --orange: #f59e0b;
  --shadow: 0 20px 60px rgba(103, 76, 145, 0.18);
  --shadow-soft: 0 12px 30px rgba(103, 76, 145, 0.12);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(236, 72, 153, 0.18), transparent 30rem),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.22), transparent 34rem),
    linear-gradient(180deg, #fff8ff 0%, #f8f2ff 48%, #fff7fb 100%);
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 35px rgba(117, 86, 160, 0.08);
  backdrop-filter: blur(20px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 76px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #7c3aed, #ec4899 55%, #fb7185);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand {
  flex: 0 0 auto;
  font-size: clamp(20px, 2.4vw, 28px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #a78bfa, #f0abfc 55%, #f9a8d4);
  box-shadow: 0 0 32px rgba(236, 72, 153, 0.36);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #43354f;
  font-weight: 700;
}

.desktop-nav > a,
.nav-drop > button {
  position: relative;
  border: 0;
  padding: 8px 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.desktop-nav > a:hover,
.nav-drop > button:hover {
  color: var(--purple);
}

.nav-drop {
  position: relative;
}

.drop-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 260px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: 0.22s ease;
  backdrop-filter: blur(18px);
}

.nav-drop:hover .drop-panel,
.nav-drop:focus-within .drop-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.drop-panel a,
.mobile-panel a {
  padding: 10px 12px;
  border-radius: 14px;
  color: #514260;
}

.drop-panel a:hover,
.mobile-panel a:hover {
  color: var(--purple);
  background: rgba(139, 92, 246, 0.08);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.header-search input,
.mobile-panel input,
.search-card input {
  width: 260px;
  border: 1px solid rgba(139, 92, 246, 0.16);
  border-radius: 999px;
  padding: 12px 16px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.78);
  outline: none;
  transition: 0.2s ease;
}

.header-search input:focus,
.mobile-panel input:focus,
.search-card input:focus {
  border-color: rgba(139, 92, 246, 0.48);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.header-search button,
.jelly-button,
.ghost-button,
.play-button,
.filter-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button,
.jelly-button,
.play-button {
  padding: 12px 20px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 12px 26px rgba(139, 92, 246, 0.24);
}

.header-search button:hover,
.jelly-button:hover,
.play-button:hover,
.ghost-button:hover,
.filter-button:hover {
  transform: translateY(-2px);
}

.ghost-button {
  padding: 12px 18px;
  color: #ffffff;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--purple);
  background: rgba(139, 92, 246, 0.09);
}

.mobile-panel {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

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

.mobile-panel input {
  width: 100%;
  margin-bottom: 12px;
}

.mobile-panel nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.hero {
  position: relative;
  padding: 36px 0 24px;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.34);
  box-shadow: var(--shadow);
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 32px;
  padding: clamp(28px, 5vw, 58px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 16%, rgba(255, 255, 255, 0.5), transparent 20rem),
    linear-gradient(135deg, rgba(40, 25, 78, 0.88), rgba(139, 92, 246, 0.55) 50%, rgba(236, 72, 153, 0.72));
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  color: #ffffff;
}

.kicker {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff3fb;
  font-size: 14px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.hero h1 {
  margin: 0 0 18px;
  max-width: 760px;
  font-size: clamp(34px, 5.6vw, 70px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
}

.hero h1 a:hover,
.movie-card h3 a:hover,
.detail-copy h1 a:hover {
  color: #8b5cf6;
}

.hero p {
  max-width: 740px;
  margin: 0 0 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 2.2vw, 21px);
}

.hero-actions,
.detail-actions,
.search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-stats,
.detail-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 24px;
}

.hero-stats span,
.detail-stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.14);
}

.hero-poster-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-poster-card {
  position: relative;
  width: min(370px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  transform: rotate(2deg);
}

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

.hero-poster-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.74));
}

.hero-poster-info {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: #ffffff;
}

.hero-poster-info strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.hero-dots {
  position: absolute;
  z-index: 4;
  left: clamp(28px, 5vw, 58px);
  bottom: 28px;
  display: flex;
  gap: 10px;
}

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

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

.quick-strip {
  padding: 26px 0 8px;
}

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

.quick-card,
.category-card,
.search-card,
.detail-panel,
.player-box,
.rank-row,
.movie-card {
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.quick-card,
.category-card,
.search-card,
.detail-panel,
.rank-row {
  border-radius: var(--radius-md);
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.quick-card b,
.category-card b {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
}

.quick-card span,
.category-card span,
.section-head p,
.movie-card p,
.footer-grid p,
.detail-copy p,
.breadcrumbs,
.empty-state {
  color: var(--muted);
}

.quick-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  box-shadow: 0 16px 32px rgba(139, 92, 246, 0.2);
}

.page-section {
  padding: 34px 0;
}

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

.section-head h2,
.page-title h1,
.detail-copy h1 {
  margin: 0;
  background: linear-gradient(135deg, #6d28d9, #db2777 58%, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-head h2 {
  font-size: clamp(26px, 3.6vw, 40px);
}

.section-head p,
.page-title p {
  margin: 8px 0 0;
  max-width: 720px;
}

.section-link {
  flex: 0 0 auto;
  color: var(--purple);
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: var(--radius-md);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(103, 76, 145, 0.22);
}

.poster-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(236, 72, 153, 0.18));
}

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

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

.score-pill,
.rank-badge,
.meta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.score-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 48px;
  padding: 6px 10px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--orange), var(--rose));
  box-shadow: 0 10px 22px rgba(245, 158, 11, 0.3);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  color: #ffffff;
  font-style: normal;
  background: linear-gradient(135deg, #111827, #7c3aed);
}

.movie-body {
  padding: 16px;
}

.movie-meta,
.detail-meta,
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.movie-meta {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
}

.movie-meta span,
.detail-meta span,
.tag-row span,
.filter-button {
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.08);
}

.movie-meta span,
.detail-meta span,
.tag-row span {
  padding: 5px 9px;
}

.movie-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.34;
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 0 0 12px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

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

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

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

.category-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-card::after {
  content: "";
  position: absolute;
  width: 160px;
  height: 160px;
  right: -70px;
  top: -70px;
  border-radius: 999px;
  background: rgba(236, 72, 153, 0.14);
}

.category-card span {
  display: block;
  min-height: 58px;
  line-height: 1.7;
}

.category-count {
  display: inline-flex;
  margin-top: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--pink));
}

.page-title {
  padding: 50px 0 24px;
}

.page-title h1 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
}

.filter-bar,
.search-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.search-card {
  margin-bottom: 26px;
  padding: 18px;
  border-radius: var(--radius-md);
}

.search-card input {
  flex: 1 1 300px;
  width: auto;
}

.filter-button {
  padding: 10px 14px;
  color: #6d28d9;
  font-weight: 900;
}

.filter-button.is-active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple), var(--pink));
}

.rank-list {
  display: grid;
  gap: 14px;
}

.rank-row {
  display: grid;
  grid-template-columns: 64px 96px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 12px;
}

.rank-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--pink));
}

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

.rank-info h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.rank-action {
  padding: 10px 16px;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--purple), var(--pink));
}

.detail-hero {
  padding: 34px 0 28px;
}

.breadcrumbs {
  margin-bottom: 18px;
  font-size: 14px;
}

.breadcrumbs a {
  color: #7c3aed;
  font-weight: 800;
}

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

.player-box {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.player-stage {
  position: relative;
  overflow: hidden;
  background: #120b1f;
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #120b1f;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(18, 11, 31, 0.38), rgba(60, 24, 92, 0.56));
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
}

.play-button {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 148px;
  justify-content: center;
}

.player-caption {
  padding: 18px 20px;
}

.player-caption h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.player-caption p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.detail-panel {
  padding: 24px;
}

.detail-cover {
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 26px;
}

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

.detail-copy h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
}

.detail-copy p {
  line-height: 1.85;
}

.detail-meta {
  margin: 16px 0;
  color: #6d28d9;
  font-weight: 800;
}

.article-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.article-block h2 {
  margin: 0 0 12px;
  font-size: 24px;
}

.empty-state {
  display: none;
  width: 100%;
  padding: 28px;
  border-radius: var(--radius-md);
  text-align: center;
  background: rgba(255, 255, 255, 0.72);
}

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

.site-footer {
  margin-top: 42px;
  padding: 40px 0;
  border-top: 1px solid rgba(139, 92, 246, 0.12);
  background: rgba(255, 255, 255, 0.52);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.7fr 1fr;
  gap: 24px;
  align-items: start;
}

.footer-brand .brand-mark {
  width: 36px;
  height: 36px;
}

.footer-links,
.footer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.footer-links a,
.footer-cats a {
  color: #6d28d9;
  font-weight: 800;
}

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

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding-bottom: 76px;
  }

  .hero-poster-wrap {
    display: none;
  }

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

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand {
    font-size: 20px;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-shell {
    min-height: 530px;
    border-radius: 26px;
  }

  .hero-slide {
    padding: 26px 22px 78px;
  }

  .hero-actions,
  .detail-actions,
  .search-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .jelly-button,
  .ghost-button,
  .play-button,
  .rank-action {
    width: 100%;
    text-align: center;
  }

  .quick-grid,
  .movie-grid,
  .movie-grid-wide,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .rank-row {
    grid-template-columns: 42px 76px 1fr;
  }

  .rank-cover img {
    width: 76px;
    height: 96px;
  }

  .rank-action {
    grid-column: 1 / -1;
  }

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