:root {
  --bg: #0a0e27;
  --bg-soft: #111936;
  --panel: rgba(18, 27, 55, 0.76);
  --panel-solid: #121b37;
  --line: rgba(168, 181, 199, 0.16);
  --text: #e8eef5;
  --muted: #a8b5c7;
  --dim: #6b7b8c;
  --blue: #4a9eff;
  --green: #00d4aa;
  --orange: #ff6b35;
  --gold: #f4c430;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 10%, rgba(74, 158, 255, 0.16), transparent 32rem),
    radial-gradient(circle at 82% 4%, rgba(0, 212, 170, 0.13), transparent 28rem),
    linear-gradient(180deg, #0a0e27 0%, #0d142d 45%, #080b1f 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  min-height: 100vh;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(168, 181, 199, 0.12);
  background: rgba(10, 14, 39, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-nav {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 12px 32px rgba(74, 158, 255, 0.28);
}

.brand-name {
  font-size: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero {
  position: relative;
  min-height: 78vh;
  overflow: hidden;
}

.hero-track {
  position: relative;
  min-height: 78vh;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  background-image:
    linear-gradient(90deg, rgba(10, 14, 39, 0.94), rgba(10, 14, 39, 0.64) 48%, rgba(10, 14, 39, 0.2)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, rgba(0, 212, 170, 0.22), transparent 28rem),
    linear-gradient(180deg, transparent 0%, var(--bg) 100%);
}

.hero-content {
  min-height: 78vh;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.55fr;
  align-items: center;
  gap: 56px;
  padding: 60px 0;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
  margin: 12px 0 18px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.hero-copy p,
.page-hero p,
.detail-copy p {
  max-width: 720px;
  color: #c5d0de;
  font-size: 18px;
  line-height: 1.8;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.hero-tags span,
.tag-row span {
  color: #dce6f4;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

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

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 16px 36px rgba(74, 158, 255, 0.28);
}

.btn-soft {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-poster {
  position: relative;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
  aspect-ratio: 3 / 4.2;
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.18), rgba(0, 212, 170, 0.16));
}

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

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

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

.hero-dots button.is-active {
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.section {
  padding: 70px 0;
}

.section-head {
  margin-bottom: 26px;
}

.section-head h2 {
  margin: 8px 0 8px;
  font-size: clamp(26px, 4vw, 42px);
}

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

.split-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
}

.text-link {
  color: var(--blue);
  font-weight: 700;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(18, 27, 55, 0.72);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(74, 158, 255, 0.42);
  background: rgba(23, 35, 68, 0.86);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.05;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.14), rgba(0, 212, 170, 0.14));
}

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

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

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

.poster-wrap em {
  position: absolute;
  left: 10px;
  bottom: 10px;
  color: #ffffff;
  font-style: normal;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  padding: 4px 10px;
}

.rank-no {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #081023;
  background: linear-gradient(135deg, var(--gold), #fff3a0);
  box-shadow: 0 12px 24px rgba(244, 196, 48, 0.26);
}

.movie-body {
  padding: 14px;
}

.movie-title {
  display: -webkit-box;
  min-height: 44px;
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-title:hover {
  color: var(--blue);
}

.movie-body p {
  display: -webkit-box;
  margin: 10px 0 12px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.movie-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--dim);
  font-size: 12px;
  margin-bottom: 12px;
}

.card-compact .movie-body p {
  -webkit-line-clamp: 1;
}

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

.category-card,
.overview-card,
.filter-panel,
.detail-article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.23);
}

.category-card {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 230px;
}

.category-card strong {
  font-size: 18px;
}

.category-card span,
.overview-card p {
  color: var(--muted);
  line-height: 1.6;
}

.category-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.category-thumbs img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.category-thumbs.large img {
  aspect-ratio: 16 / 10;
}

.overview-grid {
  display: grid;
  gap: 20px;
}

.overview-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 20px;
}

.overview-card h2 {
  margin: 0 0 10px;
}

.overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.overview-links a {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 7px 11px;
}

.filter-panel {
  margin-bottom: 24px;
  padding: 18px;
}

.search-box {
  display: flex;
  gap: 12px;
}

.search-box input {
  flex: 1;
  height: 48px;
  color: var(--text);
  border: 1px solid rgba(168, 181, 199, 0.2);
  border-radius: 999px;
  outline: none;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.06);
}

.search-box button {
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(74, 158, 255, 0.32);
  padding: 0 18px;
  cursor: pointer;
}

.filter-hint {
  min-height: 20px;
  margin-top: 10px;
  color: var(--dim);
  font-size: 13px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 78px;
  background-image:
    linear-gradient(90deg, rgba(10, 14, 39, 0.95), rgba(10, 14, 39, 0.7)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.page-hero.slim {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(74, 158, 255, 0.18), transparent 28rem),
    radial-gradient(circle at 80% 20%, rgba(0, 212, 170, 0.16), transparent 22rem);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0;
  background-image:
    linear-gradient(90deg, rgba(10, 14, 39, 0.97), rgba(10, 14, 39, 0.76)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.detail-hero::after,
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.detail-hero-grid,
.page-hero .container {
  position: relative;
  z-index: 2;
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 42px;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: var(--panel-solid);
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: var(--blue);
}

.breadcrumb em {
  font-style: normal;
  color: var(--text);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.detail-meta span {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 8px 12px;
}

.detail-meta a {
  color: var(--blue);
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #ffffff;
  border: 0;
  cursor: pointer;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.56));
}

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

.play-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 18px 48px rgba(74, 158, 255, 0.34);
}

.player-status {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 4;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.52);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
}

.player-status:empty {
  display: none;
}

.detail-article {
  padding: 28px;
  color: #dce6f4;
  line-height: 1.9;
}

.detail-article h2 {
  margin: 0 0 10px;
  color: #ffffff;
}

.detail-article p {
  margin: 0 0 24px;
}

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

.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 22, 0.5);
  padding: 36px 0;
}

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

.footer-grid p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

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

[data-card].is-hidden {
  display: none;
}

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

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

@media (max-width: 820px) {
  .site-nav {
    height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(10, 14, 39, 0.96);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .hero-content,
  .detail-hero-grid,
  .overview-card {
    grid-template-columns: 1fr;
  }

  .hero-poster,
  .detail-poster {
    width: min(360px, 100%);
    margin: 0 auto;
  }

  .split-head,
  .footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

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

  .hero,
  .hero-track,
  .hero-content {
    min-height: 720px;
  }

  .hero-content {
    padding: 42px 0 76px;
    gap: 30px;
  }

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

  .movie-grid,
  .rank-grid,
  .related-grid,
  .rank-strip,
  .category-grid {
    grid-template-columns: 1fr;
  }

  .search-box {
    flex-direction: column;
  }

  .search-box button {
    height: 44px;
  }

  .section {
    padding: 46px 0;
  }
}
