:root {
  --bg: #07111f;
  --bg-soft: #0d1a2c;
  --panel: rgba(16, 30, 49, 0.78);
  --panel-solid: #12243a;
  --text: #f6fbff;
  --muted: #9fb0c4;
  --line: rgba(255, 255, 255, 0.12);
  --brand: #38bdf8;
  --brand-2: #8b5cf6;
  --brand-3: #22d3ee;
  --danger: #fb7185;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 34rem),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.2), transparent 34rem),
    linear-gradient(180deg, #06101f 0%, #08182a 42%, #050b14 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.65;
}

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

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

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

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

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 34px rgba(56, 189, 248, 0.25);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: #dbeafe;
  font-size: 14px;
}

.main-nav a {
  padding: 8px 0;
  color: rgba(240, 249, 255, 0.86);
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: white;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  color: white;
  background: rgba(255, 255, 255, 0.08);
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 20px;
}

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

.hero {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 10, 20, 0.94) 0%, rgba(5, 12, 24, 0.72) 46%, rgba(5, 12, 24, 0.3) 100%),
    radial-gradient(circle at 64% 28%, rgba(56, 189, 248, 0.25), transparent 28rem),
    radial-gradient(circle at 82% 64%, rgba(139, 92, 246, 0.24), transparent 26rem);
  z-index: 1;
}

.hero-stage {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 32px));
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-3);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero h1,
.page-title h1,
.detail-title h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-lead,
.page-title p,
.detail-title p {
  margin: 20px 0 0;
  color: #c7d2fe;
  font-size: clamp(16px, 2vw, 20px);
  max-width: 760px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  color: white;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 42px rgba(56, 189, 248, 0.22);
  border: 0;
  cursor: pointer;
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  box-shadow: none;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-tags a,
.tag-row span,
.detail-tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: #cffafe;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
}

.hero-visual {
  position: relative;
  min-height: 460px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  pointer-events: none;
  transition: opacity 0.56s ease, transform 0.56s ease;
}

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

.hero-card {
  height: 100%;
  overflow: hidden;
  border-radius: 36px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.hero-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 34px;
  background: linear-gradient(180deg, transparent, rgba(3, 7, 18, 0.92));
}

.hero-card-content h2 {
  margin: 0 0 8px;
  font-size: clamp(24px, 4vw, 40px);
  line-height: 1.1;
}

.hero-card-content p {
  margin: 0 0 18px;
  color: #dbeafe;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: 34px;
  top: 34px;
  display: flex;
  gap: 8px;
}

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

.hero-dots button.active {
  background: white;
}

.section,
.page-title,
.search-panel,
.detail-section {
  margin: 52px 0;
}

.section-head,
.page-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-head h2,
.search-panel h2,
.detail-section h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.15;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
}

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

.movie-card {
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(139, 92, 246, 0.18));
}

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

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

.poster-shine {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.66));
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #fb7185);
  color: white;
  font-size: 12px;
}

.card-body {
  padding: 16px;
}

.meta-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
}

.card-body h3 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.28;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tag-row,
.detail-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

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

.category-card {
  min-height: 160px;
  padding: 24px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(139, 92, 246, 0.12)),
    rgba(255, 255, 255, 0.055);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
}

.category-card h2,
.category-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: var(--muted);
}

.category-card span {
  display: inline-flex;
  margin-top: 18px;
  color: var(--brand-3);
  font-weight: 800;
}

.search-panel {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: center;
  padding: 26px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid var(--line);
}

.filter-bar {
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 0.75fr;
  gap: 12px;
}

.filter-bar input,
.filter-bar select {
  width: 100%;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  background: rgba(3, 7, 18, 0.44);
  padding: 0 14px;
  outline: none;
}

.filter-bar option {
  color: #0f172a;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 70px 96px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.rank-no {
  font-size: 24px;
  font-weight: 900;
  color: var(--brand-3);
  text-align: center;
}

.rank-row img {
  width: 96px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.rank-info h2,
.rank-info h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

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

.heat-score {
  padding: 8px 12px;
  border-radius: 999px;
  color: #fef3c7;
  background: rgba(251, 146, 60, 0.16);
  font-weight: 800;
}

.detail-hero {
  width: min(1200px, calc(100% - 32px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 34px;
  align-items: end;
}

.detail-cover {
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.14), rgba(139, 92, 246, 0.16));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.detail-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid var(--line);
  background: #020617;
  box-shadow: var(--shadow);
}

.player-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-layer {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.18), rgba(2, 6, 23, 0.78));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-layer.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-layer button {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  border: 0;
  color: white;
  font-size: 34px;
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 18px 54px rgba(56, 189, 248, 0.32);
}

.text-block {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line);
}

.text-block p {
  margin: 0;
  color: #dbeafe;
}

.text-block p + p {
  margin-top: 16px;
}

.breadcrumb {
  width: min(1200px, calc(100% - 32px));
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #bfdbfe;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.45);
}

.footer-grid {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr;
  gap: 28px;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
}

.footer-grid h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
}

.no-results {
  display: none;
  margin-top: 20px;
  color: #fecaca;
}

@media (max-width: 1080px) {
  .main-nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(5, 12, 24, 0.96);
    border: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .hero-stage,
  .detail-hero,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 520px;
  }

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

@media (max-width: 720px) {
  .hero,
  .hero-stage {
    min-height: auto;
  }

  .hero-stage {
    padding: 40px 0;
  }

  .hero-visual {
    min-height: 430px;
  }

  .hero-card img {
    min-height: 430px;
  }

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

  .filter-bar,
  .footer-grid,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .rank-row img {
    width: 100%;
    max-width: 180px;
  }

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

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

  .section-head,
  .page-title {
    display: block;
  }
}
