:root {
  --bg-primary: #f8f9fe;
  --bg-secondary: rgba(255, 255, 255, 0.88);
  --text-primary: #2d3748;
  --text-secondary: #718096;
  --accent-purple: #7c3aed;
  --accent-pink: #ec4899;
  --accent-blue: #4facfe;
  --accent-mint: #b8e6d5;
  --accent-lavender: #d4c5f9;
  --accent-peach: #ffd4c4;
  --border-soft: rgba(255, 255, 255, 0.38);
  --shadow-soft: 0 18px 50px rgba(31, 38, 135, 0.24);
  --shadow-hover: 0 24px 70px rgba(31, 38, 135, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb, #4facfe, #00f2fe);
  background-size: 420% 420%;
  animation: gradientShift 30s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

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.32);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: linear-gradient(135deg, #a78bfa, #f9a8d4);
  box-shadow: 0 0 32px rgba(167, 139, 250, 0.48);
}

.brand-text {
  font-size: 23px;
  background: linear-gradient(135deg, #7c3aed, #ec4899, #06b6d4);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

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

.nav-link,
.mobile-nav-link {
  color: #4a5568;
  font-weight: 650;
  transition: color 0.25s ease, transform 0.25s ease;
}

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

.nav-link:hover {
  transform: translateY(-2px);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: #4a5568;
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  padding: 0 16px 16px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

.hero-shell {
  position: relative;
  overflow: hidden;
  padding: 72px 0 46px;
}

.hero-background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.38), transparent 28%),
    radial-gradient(circle at 78% 15%, rgba(248, 187, 217, 0.38), transparent 26%),
    radial-gradient(circle at 58% 80%, rgba(196, 221, 255, 0.34), transparent 32%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
}

.hero-slide {
  display: none;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 44px;
  min-height: 520px;
}

.hero-slide.is-active {
  display: grid;
}

.hero-art {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 34px;
  box-shadow: var(--shadow-soft);
  transform: rotate(-1.5deg);
}

.hero-art::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(0, 0, 0, 0.52), transparent 60%);
}

.hero-art img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.24);
}

.hero-copy {
  padding: 36px;
  border: 1px solid var(--border-soft);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--accent-purple);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.page-hero h1,
.detail-content h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 70px);
  line-height: 1.04;
  background: linear-gradient(135deg, #5b21b6, #db2777, #0284c7);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.hero-copy p,
.page-hero p,
.section-heading p,
.category-overview-head p,
.detail-content p,
.site-footer p {
  color: var(--text-secondary);
  line-height: 1.82;
}

.hero-copy p {
  margin: 20px 0;
  font-size: 18px;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 11px;
  color: #6d28d9;
  border-radius: 999px;
  background: rgba(237, 233, 254, 0.9);
  font-size: 13px;
  font-weight: 700;
}

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

.primary-button,
.ghost-button,
.hero-search button,
.inline-filter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.primary-button,
.hero-search button,
.inline-filter button {
  color: #ffffff;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  box-shadow: 0 14px 32px rgba(139, 92, 246, 0.36);
}

.ghost-button {
  color: #6d28d9;
  border: 1px solid rgba(124, 58, 237, 0.18);
  background: rgba(255, 255, 255, 0.78);
}

.primary-button:hover,
.ghost-button:hover,
.hero-search button:hover,
.inline-filter button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(139, 92, 246, 0.42);
}

.primary-button.small {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
}

.hero-dots,
.hero-arrows {
  display: flex;
  gap: 10px;
}

.hero-dot,
.hero-arrows button {
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.78);
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 999px;
}

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.hero-arrows button {
  width: 44px;
  height: 44px;
  color: #6d28d9;
  border-radius: 999px;
  font-size: 28px;
}

.hero-search,
.inline-filter {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(20px);
}

.hero-search {
  width: min(760px, 100%);
  margin-top: 28px;
}

.hero-search input,
.inline-filter input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  color: var(--text-primary);
  background: transparent;
}

.content-section {
  padding: 42px 0;
}

.section-heading,
.category-overview-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.section-heading h2,
.category-overview-head h2,
.detail-content h2,
.side-card h2 {
  margin: 0;
  font-size: clamp(25px, 4vw, 36px);
}

.section-heading p,
.category-overview-head p {
  margin: 8px 0 0;
}

.section-link {
  color: #6d28d9;
  font-weight: 800;
}

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

.category-card,
.jelly-panel,
.movie-card {
  border: 1px solid var(--border-soft);
  background: var(--bg-secondary);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px);
}

.category-card {
  min-height: 168px;
  padding: 22px;
  border-radius: 26px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-card:hover,
.movie-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--shadow-hover);
}

.category-card span {
  color: #5b21b6;
  font-size: 20px;
  font-weight: 900;
}

.category-card p {
  color: var(--text-secondary);
  line-height: 1.7;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 26px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.poster-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
}

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

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

.play-chip,
.rank-badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.play-chip {
  right: 14px;
  bottom: 14px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.rank-badge {
  top: 12px;
  left: 12px;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f97316, #ec4899);
}

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

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #805ad5;
  font-size: 13px;
  font-weight: 800;
}

.movie-card h3 {
  margin: 10px 0 8px;
  font-size: 20px;
  line-height: 1.35;
}

.movie-card p {
  min-height: 52px;
  margin: 0 0 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

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

.movie-card-compact p {
  min-height: 42px;
  font-size: 14px;
}

.page-main {
  padding: 40px 0 64px;
}

.page-hero {
  padding: 42px;
  border: 1px solid var(--border-soft);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(24px);
}

.slim-hero {
  margin-bottom: 28px;
}

.page-hero h1 {
  margin-bottom: 16px;
}

.inline-filter {
  width: min(760px, 100%);
  margin-top: 24px;
  box-shadow: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #6d28d9;
  font-weight: 750;
}

.category-overview-list {
  display: grid;
  gap: 26px;
}

.category-overview,
.detail-panel,
.side-card {
  border-radius: 30px;
  padding: 28px;
}

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

.detail-panel {
  overflow: hidden;
  padding: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  background: #111827;
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 16px;
  width: 100%;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.88), rgba(17, 24, 39, 0.24));
}

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

.player-icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  box-shadow: 0 18px 42px rgba(236, 72, 153, 0.36);
  font-size: 30px;
}

.player-title {
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 900;
}

.detail-content {
  padding: 30px;
}

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

.detail-content h2 {
  margin-top: 28px;
  font-size: 26px;
}

.lead-text {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(237, 233, 254, 0.62);
  font-size: 18px;
}

.side-card {
  position: sticky;
  top: 102px;
}

.side-card dl {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
}

.side-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(124, 58, 237, 0.12);
}

.side-card dt {
  color: var(--text-secondary);
}

.side-card dd {
  margin: 0;
  color: #5b21b6;
  font-weight: 850;
  text-align: right;
}

.empty-state {
  display: none;
  margin-top: 22px;
  padding: 30px;
  text-align: center;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-secondary);
  font-weight: 800;
}

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

.site-footer {
  margin-top: 30px;
  padding: 38px 0 22px;
  background: rgba(255, 255, 255, 0.64);
  backdrop-filter: blur(24px);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-grid strong {
  font-size: 22px;
  color: #5b21b6;
}

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

.footer-links a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(237, 233, 254, 0.72);
  color: #6d28d9;
  font-weight: 800;
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(124, 58, 237, 0.12);
  color: var(--text-secondary);
}

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

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

  .side-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .brand-text {
    font-size: 19px;
  }

  .hero-shell {
    padding-top: 34px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: auto;
  }

  .hero-copy,
  .page-hero,
  .detail-content,
  .category-overview,
  .side-card {
    padding: 22px;
    border-radius: 26px;
  }

  .hero-copy h1,
  .page-hero h1,
  .detail-content h1 {
    font-size: 36px;
  }

  .hero-search,
  .inline-filter,
  .section-heading,
  .category-overview-head,
  .footer-grid {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-search,
  .inline-filter {
    border-radius: 24px;
  }

  .hero-search input,
  .inline-filter input {
    min-height: 44px;
  }

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

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

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

  .movie-card p {
    min-height: auto;
    font-size: 14px;
  }

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

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

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

  .hero-actions,
  .detail-actions {
    flex-direction: column;
  }
}
