:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.86);
  --panel-solid: #0f172a;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.13);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --line: rgba(148, 163, 184, 0.22);
  --cyan: #22d3ee;
  --cyan-dark: #0891b2;
  --amber: #f59e0b;
  --rose: #fb7185;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius: 24px;
  --wrap: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.16), transparent 30%),
    radial-gradient(circle at 90% 20%, rgba(245, 158, 11, 0.10), transparent 28%),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #111827 100%);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.65;
}

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

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

button,
input {
  font: inherit;
}

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

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

.site-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #021118;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), #fef3c7);
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.28);
}

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

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

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

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

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

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  background: #020617;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.05);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.15) 100%),
    linear-gradient(0deg, #020617 0%, transparent 42%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-top: 70px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.hero-summary {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--soft);
  font-size: 18px;
}

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

.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: #dbeafe;
  font-size: 12px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.10);
}

.hero-tags {
  margin: 22px 0 0;
}

.hero-actions,
.detail-copy .btn {
  margin-top: 28px;
}

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

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

.btn.primary {
  color: #04111a;
  background: linear-gradient(135deg, var(--cyan), #fde68a);
  box-shadow: 0 18px 42px rgba(34, 211, 238, 0.28);
}

.btn.ghost {
  color: var(--text);
  margin-left: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.08);
}

.hero-controls {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.hero-dots,
.hero-arrow {
  pointer-events: auto;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 34px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
}

.hero-dot.active {
  background: var(--cyan);
}

.hero-arrow {
  width: 44px;
  height: 44px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.70);
  backdrop-filter: blur(16px);
}

.section {
  padding: 64px 0;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 28px;
  align-items: end;
}

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

.section-title h2,
.content-card h2,
.category-overview-card h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.14;
}

.section-title p,
.wide-title p,
.page-hero p,
.category-overview-card p,
.site-footer p {
  color: var(--muted);
}

.section-title a,
.text-link {
  color: var(--cyan);
  font-weight: 800;
}

.wide-title h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
}

.search-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
}

.search-panel input {
  width: 100%;
  height: 52px;
  color: var(--text);
  border: 1px solid var(--line);
  outline: none;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.60);
  padding: 0 16px;
}

.search-panel input:focus {
  border-color: rgba(34, 211, 238, 0.70);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.14);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.filter-chip {
  min-height: 34px;
  padding: 0 12px;
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.filter-chip.active,
.filter-chip:hover {
  color: #04202a;
  border-color: transparent;
  background: var(--cyan);
}

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

.category-card,
.category-overview-card,
.content-card,
.movie-card,
.rank-item,
.player-shell {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.055));
  box-shadow: var(--shadow);
}

.category-card {
  min-height: 170px;
  padding: 22px;
  border-radius: var(--radius);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover,
.movie-card:hover,
.rank-item:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.45);
}

.category-card span {
  display: block;
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 900;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.poster-link img,
.rank-poster img,
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.34s ease;
}

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

.score-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  padding: 0 8px;
  color: #1f1300;
  border-radius: 999px;
  font-weight: 900;
  background: linear-gradient(135deg, #fef3c7, var(--amber));
}

.score-badge.large {
  right: 16px;
  top: 16px;
  min-width: 54px;
  height: 38px;
  font-size: 18px;
}

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

.movie-card h3,
.rank-info h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.movie-meta,
.movie-line,
.rank-info p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.movie-line {
  min-height: 42px;
}

.movie-card .tag-row {
  margin-top: 12px;
}

.movie-card.compact .movie-line,
.movie-card.compact .tag-row {
  display: none;
}

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

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

.rank-item {
  display: grid;
  grid-template-columns: 82px 48px minmax(0, 1fr) 74px;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border-radius: 22px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.rank-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 16px;
}

.rank-number {
  color: var(--cyan);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.rank-score {
  text-align: center;
}

.rank-score strong {
  display: block;
  color: #fef3c7;
  font-size: 24px;
}

.rank-score span {
  color: var(--muted);
  font-size: 12px;
}

.page-main {
  padding-top: 38px;
}

.page-hero {
  padding: 56px 0 24px;
}

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

.page-hero > p {
  max-width: 760px;
  font-size: 18px;
}

.page-hero .search-panel {
  margin-top: 28px;
}

.category-overview-list {
  display: grid;
  gap: 22px;
  padding: 24px 0 70px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
  border-radius: var(--radius);
}

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

.detail-main {
  overflow: hidden;
}

.detail-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  isolation: isolate;
}

.detail-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.detail-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) saturate(1.1);
  transform: scale(1.08);
  opacity: 0.45;
}

.detail-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.74)),
    linear-gradient(0deg, #020617, transparent 45%);
}

.detail-hero-inner {
  padding-top: 60px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
}

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

.detail-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.detail-poster {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  max-width: 880px;
}

.detail-line {
  max-width: 820px;
  margin: 18px 0 18px;
  color: var(--soft);
  font-size: 18px;
}

.player-section {
  margin-top: -72px;
  position: relative;
  z-index: 4;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  background: #000;
}

.movie-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text);
  border: 0;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.16), rgba(2, 6, 23, 0.72));
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.play-icon {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  color: #03121a;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), #fef3c7);
  box-shadow: 0 20px 60px rgba(34, 211, 238, 0.32);
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 330px;
  gap: 18px;
}

.content-card {
  padding: 24px;
  border-radius: var(--radius);
}

.content-card p {
  margin: 14px 0 0;
  color: var(--soft);
}

.detail-table {
  margin: 18px 0 0;
}

.detail-table div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.detail-table dt {
  color: var(--muted);
}

.detail-table dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}

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

.site-footer {
  margin-top: 40px;
  padding: 48px 0 30px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.48);
}

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

.footer-brand {
  margin-bottom: 14px;
}

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

.footer-links a {
  padding: 9px 12px;
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.copyright {
  width: min(100% - 32px, var(--wrap));
  margin: 26px auto 0;
  color: var(--muted);
  font-size: 13px;
}

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

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

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

  .rank-list.slim {
    grid-template-columns: 1fr;
  }

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

  .meta-card {
    grid-column: 1 / -1;
  }

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

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

  .menu-toggle {
    display: block;
  }

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

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

  .hero {
    min-height: 640px;
  }

  .hero-vignette {
    background:
      linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.72) 44%, rgba(2, 6, 23, 0.36) 100%),
      linear-gradient(90deg, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.24));
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 112px;
  }

  .hero-summary,
  .detail-line {
    font-size: 16px;
  }

  .intro-section,
  .category-overview-card,
  .detail-layout,
  .detail-content,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .rank-item {
    grid-template-columns: 72px minmax(0, 1fr) 62px;
  }

  .rank-number {
    display: none;
  }

  .detail-poster {
    width: min(100%, 260px);
  }

  .player-section {
    margin-top: -38px;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: min(100% - 24px, var(--wrap));
  }

  .brand {
    font-size: 17px;
  }

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

  .hero {
    min-height: 600px;
  }

  .btn.ghost {
    margin-left: 0;
    margin-top: 10px;
  }

  .hero-actions {
    display: grid;
    width: 100%;
  }

  .category-grid,
  .movie-grid,
  .mini-grid,
  .related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

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

  .movie-line,
  .movie-card .tag-row {
    display: none;
  }

  .rank-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .rank-score {
    display: none;
  }

  .content-card {
    padding: 18px;
  }

  .play-icon {
    width: 64px;
    height: 64px;
  }
}
