:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.76);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.2);
  --muted: #94a3b8;
  --text: #f8fafc;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --gold: #f59e0b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.24), transparent 36rem),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.16), transparent 34rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(18px);
}

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

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

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.28);
}

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

.nav-link {
  padding: 9px 14px;
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  background: rgba(59, 130, 246, 0.18);
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.mobile-toggle span {
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}

.mobile-panel {
  display: none;
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

.mobile-panel.is-open {
  display: grid;
  gap: 8px;
}

main {
  padding-top: 72px;
}

.hero-carousel {
  position: relative;
  min-height: 86vh;
  overflow: hidden;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.8s ease, transform 1.1s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.76) 42%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.08) 56%);
}

.hero-copy {
  position: absolute;
  left: max(24px, calc((100vw - 1200px) / 2));
  bottom: 12vh;
  width: min(640px, calc(100% - 48px));
  z-index: 3;
}

.hero-copy h2 {
  margin: 14px 0 16px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}

.hero-copy p {
  margin: 0;
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.8;
}

.hero-eyebrow,
.page-hero p:first-child,
.section-heading span,
.panel-head span,
.detail-eyebrow {
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 800;
}

.hero-tags,
.tag-row,
.genre-pills,
.quick-links,
.footer-links,
.link-cloud div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 20px;
}

.hero-tags span,
.tag-row span,
.genre-pills span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #dbeafe;
  font-size: 12px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  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 {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #ffffff;
  box-shadow: 0 16px 42px rgba(59, 130, 246, 0.28);
}

.btn.ghost {
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(15, 23, 42, 0.56);
  color: #ffffff;
}

.hero-topline {
  position: absolute;
  top: 100px;
  left: max(24px, calc((100vw - 1200px) / 2));
  z-index: 4;
  max-width: 780px;
}

.hero-topline h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 42px);
  letter-spacing: -0.04em;
}

.hero-topline p {
  margin: 0;
  color: #cbd5e1;
}

.hero-controls {
  position: absolute;
  right: max(24px, calc((100vw - 1200px) / 2));
  bottom: 12vh;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-arrow,
.hero-dot {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(10px);
}

.hero-arrow {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  font-size: 30px;
  line-height: 1;
}

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

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

.hero-dot.is-active {
  width: 34px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.search-band,
.content-section,
.page-hero,
.filter-bar,
.detail-hero,
.player-section,
.detail-grid,
.ranking-full,
.site-footer,
.breadcrumb {
  width: min(1200px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.search-band {
  margin-top: -46px;
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 430px);
  gap: 20px;
  padding: 24px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.search-band p,
.search-band h2 {
  margin: 0;
}

.search-band p {
  color: #93c5fd;
  font-weight: 800;
}

.search-band h2 {
  margin-top: 6px;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.04em;
}

.search-box,
.filter-bar {
  display: flex;
  gap: 10px;
}

.search-box input,
.filter-bar input,
.filter-bar select {
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.68);
  color: #fff;
  padding: 0 14px;
  outline: none;
}

.search-box input,
.filter-bar input {
  flex: 1;
}

.search-box button {
  border: 0;
  border-radius: 16px;
  padding: 0 18px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.quick-links {
  grid-column: 1 / -1;
}

.quick-links a,
.footer-links a,
.link-cloud a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.74);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 13px;
}

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

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

.section-heading h2,
.panel-head h2,
.page-hero h1,
.story-card h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.64);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.48);
  box-shadow: 0 20px 70px rgba(37, 99, 235, 0.16);
}

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

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

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

.poster-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.78);
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 800;
}

.card-body {
  padding: 14px;
}

.card-meta {
  margin: 0 0 6px;
  color: #93c5fd;
  font-size: 12px;
}

.card-body h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
  color: #fff;
}

.card-desc {
  display: -webkit-box;
  min-height: 44px;
  margin: 8px 0 12px;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1.65;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.compact-card .tag-row span:nth-child(n+3) {
  display: none;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

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

.ranking-panel,
.story-card,
.category-tile,
.page-hero,
.player-shell,
.filter-bar {
  border: 1px solid rgba(148, 163, 184, 0.17);
  background: rgba(15, 23, 42, 0.62);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
}

.ranking-panel {
  position: sticky;
  top: 92px;
  padding: 22px;
  border-radius: 28px;
}

.panel-head {
  margin-bottom: 16px;
}

.rank-list,
.ranking-full {
  display: grid;
  gap: 10px;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px 52px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
  background: rgba(30, 41, 59, 0.72);
  border-color: rgba(59, 130, 246, 0.34);
}

.rank-row img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
}

.rank-no {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
  font-weight: 900;
}

.rank-title {
  min-width: 0;
  color: #fff;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  grid-column: 3;
  margin-top: -14px;
  color: #94a3b8;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row.large {
  grid-template-columns: 46px 64px 1fr auto;
  min-height: 84px;
  padding: 10px 14px;
}

.rank-row.large img {
  width: 64px;
  height: 64px;
}

.rank-row.large .rank-meta {
  grid-column: auto;
  margin-top: 0;
}

.more-link {
  display: block;
  margin-top: 16px;
  color: #93c5fd;
  font-weight: 800;
}

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

.category-tile {
  min-height: 168px;
  padding: 22px;
  border-radius: 26px;
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.category-tile:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.38);
  background: rgba(30, 41, 59, 0.74);
}

.category-tile span {
  display: block;
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.category-tile p {
  margin: 0;
  color: #94a3b8;
  line-height: 1.7;
  font-size: 14px;
}

.inner-page {
  padding-top: 112px;
}

.page-hero {
  padding: 38px;
  border-radius: 30px;
}

.small-hero p:last-child {
  max-width: 760px;
  margin: 14px 0 0;
  color: #cbd5e1;
  line-height: 1.8;
}

.breadcrumb {
  margin-bottom: 16px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a {
  color: #93c5fd;
}

.filter-bar {
  margin-top: 24px;
  padding: 16px;
  border-radius: 22px;
}

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

.category-tile.large {
  min-height: 198px;
}

.ranking-full {
  margin-top: 24px;
  padding-bottom: 40px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 28px;
  border-radius: 34px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.18), transparent 32rem),
    rgba(15, 23, 42, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.poster-large {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 28px;
  box-shadow: var(--shadow);
  background: rgba(15, 23, 42, 0.94);
}

.poster-large img {
  height: 100%;
}

.detail-copy h1 {
  margin: 12px 0 16px;
  font-size: clamp(34px, 6vw, 70px);
  line-height: 1;
  letter-spacing: -0.06em;
}

.detail-one-line {
  max-width: 820px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.85;
}

.large-tags {
  margin-top: 22px;
}

.player-section {
  padding-top: 30px;
}

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

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

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.86));
  font-size: 18px;
  font-weight: 900;
}

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

.play-symbol {
  width: 82px;
  height: 82px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 20px 60px rgba(59, 130, 246, 0.34);
  font-size: 34px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 320px;
  gap: 18px;
  padding-top: 28px;
}

.story-card {
  padding: 24px;
  border-radius: 26px;
}

.story-card p {
  margin: 16px 0 0;
  color: #cbd5e1;
  line-height: 1.9;
}

.meta-card dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px 14px;
  margin: 16px 0 18px;
}

.meta-card dt {
  color: #94a3b8;
}

.meta-card dd {
  margin: 0;
  color: #fff;
}

.link-cloud h2 {
  margin: 0 0 14px;
}

.site-footer {
  margin-top: 84px;
  padding: 38px 0 30px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

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

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

.site-footer p {
  max-width: 560px;
  color: #94a3b8;
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.copyright {
  margin-top: 30px;
  font-size: 13px;
}

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

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

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

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

  .ranking-panel {
    position: static;
  }
}

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

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-wrap {
    height: 64px;
  }

  main {
    padding-top: 64px;
  }

  .hero-carousel {
    min-height: 720px;
  }

  .hero-copy {
    bottom: 120px;
  }

  .hero-controls {
    left: 24px;
    right: auto;
    bottom: 44px;
  }

  .hero-topline {
    top: 84px;
  }

  .search-band {
    grid-template-columns: 1fr;
    margin-top: -24px;
  }

  .search-box,
  .filter-bar {
    flex-direction: column;
  }

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

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

  .poster-large {
    max-width: 280px;
  }

  .rank-row.large {
    grid-template-columns: 38px 56px 1fr;
  }

  .rank-row.large .rank-meta {
    grid-column: 3;
  }

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

@media (max-width: 520px) {
  .movie-grid,
  .compact-grid,
  .featured-grid,
  .category-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .detail-hero,
  .search-band {
    padding: 22px;
    border-radius: 24px;
  }

  .hero-copy h2,
  .detail-copy h1 {
    font-size: 42px;
  }
}
