:root {
  --bg: #050816;
  --bg-soft: #0b1020;
  --panel: rgba(12, 17, 34, 0.78);
  --panel-solid: #10182d;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --accent: #8b5cf6;
  --accent-2: #ec4899;
  --accent-3: #06b6d4;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at top, rgba(139, 92, 246, 0.24), transparent 34%),
    radial-gradient(circle at 80% 20%, rgba(236, 72, 153, 0.18), transparent 28%),
    radial-gradient(circle at 20% 80%, rgba(6, 182, 212, 0.16), transparent 30%),
    linear-gradient(180deg, #090b15 0%, #050816 52%, #02040b 100%);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 10, 24, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 24px rgba(139, 92, 246, 0.28);
}

.brand-text {
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: #fff;
}

.hero-section {
  padding: 34px 0 12px;
}

.hero-frame {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(13, 18, 35, 0.92), rgba(6, 10, 24, 0.96)),
    radial-gradient(circle at top left, rgba(139, 92, 246, 0.24), transparent 30%);
  box-shadow: var(--shadow);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  padding: clamp(24px, 4vw, 52px);
  opacity: 0;
  transform: translateX(18px);
  transition: 0.45s ease;
  pointer-events: none;
}

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

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.08);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.hero-copy h1,
.page-hero-inner h1,
.section-head h2 {
  margin: 0;
  line-height: 1.06;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 6vw, 5.8rem);
  max-width: 12ch;
}

.hero-copy p,
.page-hero-inner p,
.spotlight-copy p,
.story-block p,
.movie-body p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-copy p {
  font-size: 1.06rem;
  max-width: 58ch;
}

.hero-meta,
.detail-meta,
.quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span,
.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.25s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 18px 34px rgba(139, 92, 246, 0.28);
}

.btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual img {
  width: min(100%, 430px);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
  transform: translateY(10px);
}

.hero-shadow {
  position: absolute;
  inset: auto 10% 4% 10%;
  height: 110px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.46);
  filter: blur(30px);
}

.hero-indicators {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 24px;
  display: flex;
  gap: 10px;
  justify-content: center;
  z-index: 10;
}

.hero-indicators button {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.hero-indicators button.active {
  width: 34px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.section,
.page-main .section {
  padding: 44px 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

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

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: 10px;
}

.section-link {
  color: #c4b5fd;
}

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

.movie-card {
  overflow: hidden;
  display: block;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: 0.3s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.16);
}

.movie-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.45s ease;
}

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

.movie-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(5, 8, 22, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.82rem;
}

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

.movie-body h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.movie-meta {
  color: #cbd5e1;
  font-size: 0.86rem;
  margin-bottom: 10px;
}

.movie-body p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  min-height: 3.7em;
}

.tag-row,
.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: 0.78rem;
}

.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: 0.2s ease;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.09);
  transform: translateY(-1px);
}

.chip span {
  color: #cbd5e1;
}

.chip-alt {
  background: rgba(139, 92, 246, 0.1);
}

.chip-soft {
  background: rgba(6, 182, 212, 0.09);
}

.ranking-grid,
.ranking-list {
  display: grid;
  gap: 12px;
}

.rank-card {
  display: grid;
  grid-template-columns: 72px 84px 1fr;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border: 1px solid var(--line);
  transition: 0.25s ease;
}

.rank-card:hover {
  transform: translateY(-3px);
}

.rank-card img {
  width: 84px;
  height: 112px;
  object-fit: cover;
  border-radius: 14px;
}

.rank-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}

.rank-info h4,
.story-block h3 {
  margin: 0 0 8px;
}

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

.spotlight {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(236, 72, 153, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
}

.spotlight-copy h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 10px 0 12px;
}

.spotlight-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.stat {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(5, 8, 22, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.stat strong {
  display: block;
  font-size: 2rem;
}

.stat span {
  color: var(--muted);
}

.site-footer {
  padding: 40px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(0, 0, 0, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 24px;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: #fff;
}

.footer-note {
  margin-top: 20px;
  color: #94a3b8;
  font-size: 0.95rem;
}

.page-hero {
  padding: 30px 0 18px;
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: center;
  padding: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.search-panel {
  display: grid;
  gap: 14px;
}

.search-box input,
.filter-row select {
  width: 100%;
  min-height: 50px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 0 14px;
  outline: none;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.page-info {
  color: #cbd5e1;
}

.hero-stats-inline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hero-stats-inline div {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-stats-inline strong {
  display: block;
  font-size: 1.5rem;
}

.hero-stats-inline span {
  color: var(--muted);
}

.detail-page {
  padding-bottom: 28px;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 24px;
  align-items: start;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
}

.detail-copy {
  padding: 10px 0;
}

.detail-copy h1 {
  margin: 10px 0 14px;
  font-size: clamp(2rem, 4.8vw, 4.6rem);
  line-height: 1.05;
}

.detail-one-line {
  font-size: 1.08rem;
  color: #dbeafe;
  max-width: 65ch;
}

.quick-facts {
  margin-top: 18px;
}

.quick-facts div {
  min-width: 180px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.quick-facts strong {
  display: block;
  margin-bottom: 6px;
}

.quick-facts span {
  color: var(--muted);
  word-break: break-all;
}

.video-shell {
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: #050816;
  box-shadow: var(--shadow);
}

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

.video-fallback {
  padding: 12px 16px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.story-block {
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.story-block p {
  margin-bottom: 0;
}

@media (max-width: 1080px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-slide,
  .spotlight,
  .page-hero-inner,
  .detail-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .hero-frame {
    min-height: 760px;
  }
}

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

  .menu-button {
    display: inline-block;
  }

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

  .filter-row {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 100%;
  }

  .hero-frame {
    min-height: 860px;
  }

  .hero-slide {
    padding: 20px;
  }

  .hero-visual img {
    width: min(100%, 320px);
  }

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

  .spotlight-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats-inline {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 52px 72px 1fr;
  }

  .rank-num {
    font-size: 1.35rem;
  }

  .container {
    width: min(var(--container), calc(100% - 22px));
  }
}
