:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: #0f172a;
  --line: rgba(148, 163, 184, 0.16);
  --muted: #94a3b8;
  --text: #e2e8f0;
  --white: #ffffff;
  --cyan: #06b6d4;
  --cyan-soft: rgba(6, 182, 212, 0.18);
  --cyan-bright: #67e8f9;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 24px;
  --radius-sm: 16px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(8, 145, 178, 0.22), transparent 30rem),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.13), transparent 35rem),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

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

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

.brand-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.35);
}

.nav-toggle {
  display: none;
  border: 0;
  background: rgba(15, 23, 42, 0.8);
  color: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

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

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: var(--cyan-soft);
}

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

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

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

.hero-image {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.06);
}

.hero-overlay {
  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.34) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.08) 44%);
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-top: 118px;
  max-width: 760px;
}

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

.hero h1,
.page-hero h1,
.detail-info h1 {
  margin: 14px 0 18px;
  color: var(--white);
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p,
.page-hero p,
.detail-one {
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.75;
}

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

.hero-tags span {
  padding: 7px 12px;
  border: 1px solid rgba(103, 232, 249, 0.28);
  background: rgba(8, 145, 178, 0.18);
  color: var(--cyan-bright);
  border-radius: 999px;
  font-size: 13px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: 0.22s ease;
}

.btn.primary {
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  color: var(--white);
  box-shadow: 0 16px 42px rgba(6, 182, 212, 0.32);
}

.btn.ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.58);
}

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

.hero-panel {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 18px;
  align-items: end;
}

.hero-search,
.hero-shortcuts {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.hero-search {
  padding: 18px;
}

.hero-search label {
  display: block;
  color: var(--muted);
  margin-bottom: 10px;
  font-size: 13px;
}

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

input,
select {
  width: 100%;
  color: var(--text);
  background: rgba(2, 6, 23, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  min-height: 46px;
  padding: 0 14px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
}

.search-jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0 16px;
  color: var(--white);
  background: var(--cyan);
  border-radius: 14px;
  font-weight: 800;
}

.hero-shortcuts {
  padding: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-shortcuts a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #cbd5e1;
  transition: 0.22s ease;
}

.hero-shortcuts a:hover {
  color: var(--white);
  background: var(--cyan-soft);
}

.hero-dots {
  position: absolute;
  right: calc((100% - min(1180px, calc(100% - 32px))) / 2);
  top: 130px;
  z-index: 5;
  display: grid;
  gap: 10px;
}

.hero-dot {
  width: 42px;
  height: 5px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

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

.page-section {
  padding: 66px 0;
}

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

.section-head.compact {
  margin-bottom: 18px;
}

.section-head h2 {
  color: var(--white);
  font-size: clamp(25px, 4vw, 36px);
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

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

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

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

.movie-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
  transition: 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(103, 232, 249, 0.34);
  box-shadow: 0 25px 60px rgba(6, 182, 212, 0.14);
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #0f172a;
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), transparent 48%);
}

.play-chip {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.92);
  box-shadow: 0 10px 25px rgba(6, 182, 212, 0.3);
}

.type-badge {
  position: absolute;
  right: 10px;
  top: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 8px;
  color: var(--white);
  font-size: 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(12px);
}

.card-content {
  display: grid;
  gap: 7px;
  padding: 13px;
}

.card-content strong {
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta-line,
.desc-line {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.desc-line {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 34px;
  align-items: start;
}

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

.category-tile {
  position: relative;
  display: grid;
  min-height: 180px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-strong);
}

.category-tile img {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  opacity: 0.56;
  transition: 0.3s ease;
}

.category-tile:hover img {
  transform: scale(1.05);
  opacity: 0.7;
}

.category-tile span {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: 22px;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent);
}

.category-tile strong,
.overview-body h2,
.story-card h2 {
  display: block;
  color: var(--white);
  font-size: 22px;
  margin: 0 0 8px;
}

.category-tile em {
  color: #cbd5e1;
  line-height: 1.55;
  font-style: normal;
}

.rank-panel,
.story-card,
.player-shell,
.overview-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.rank-panel {
  padding: 20px;
  position: sticky;
  top: 96px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.46);
  transition: 0.2s ease;
}

.rank-row:hover {
  background: rgba(8, 145, 178, 0.2);
}

.rank-num {
  grid-row: span 2;
  color: var(--cyan-bright);
  font-weight: 900;
  font-size: 20px;
}

.rank-title {
  color: var(--white);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}

.rank-meta {
  color: var(--muted);
  font-size: 13px;
}

.inner-page {
  padding: 54px 0 76px;
}

.page-hero {
  position: relative;
  padding: 42px;
  margin-bottom: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.2), rgba(15, 23, 42, 0.74)),
    var(--panel-strong);
  box-shadow: var(--shadow);
}

.page-hero.slim h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.filter-bar {
  max-width: 740px;
  margin-top: 26px;
}

.filter-bar.wide {
  max-width: 920px;
}

.filter-bar select {
  max-width: 180px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.overview-card {
  overflow: hidden;
}

.overview-cover {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  aspect-ratio: 16 / 7;
  overflow: hidden;
}

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

.overview-body {
  padding: 22px;
}

.overview-body p,
.story-card p,
.site-footer p {
  color: #cbd5e1;
  line-height: 1.8;
  margin: 0 0 14px;
}

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

.rank-card {
  display: grid;
  grid-template-columns: 72px 94px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
  transition: 0.22s ease;
}

.rank-card:hover {
  transform: translateX(4px);
  border-color: rgba(103, 232, 249, 0.32);
}

.rank-num.large {
  grid-row: auto;
  text-align: center;
  font-size: 24px;
}

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

.rank-card-body {
  display: grid;
  gap: 8px;
}

.rank-card-body strong {
  color: var(--white);
  font-size: 18px;
}

.rank-card-body em,
.rank-card-body span {
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
}

.movie-detail {
  overflow: hidden;
}

.detail-hero {
  position: relative;
  min-height: 520px;
  display: grid;
  align-items: end;
  padding: 56px 0;
}

.detail-bg {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(1.1);
  transform: scale(1.04);
  opacity: 0.55;
}

.detail-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.66)),
    linear-gradient(0deg, #020617, transparent 60%);
}

.detail-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

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

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

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

.detail-info h1 {
  font-size: clamp(38px, 7vw, 68px);
}

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

.detail-meta span {
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: #e2e8f0;
}

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

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

.player-shell video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
  object-fit: contain;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  color: var(--white);
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.5), rgba(2, 6, 23, 0.18));
  cursor: pointer;
  transition: 0.22s ease;
}

.player-overlay span {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  padding-left: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), #2563eb);
  box-shadow: 0 20px 60px rgba(6, 182, 212, 0.38);
  font-size: 34px;
}

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

.detail-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 34px 0 0;
}

.story-card {
  padding: 26px;
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
  padding: 42px 0 24px;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 30px;
}

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

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

.footer-links a {
  padding: 9px 13px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
}

.footer-links a:hover {
  color: var(--white);
  background: var(--cyan-soft);
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.is-filter-hidden {
  display: none !important;
}

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

  .split-section,
  .detail-body,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .rank-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    grid-template-columns: 1fr 1fr;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
  }

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

  .hero {
    min-height: 760px;
  }

  .hero-content {
    padding-top: 96px;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    bottom: 24px;
  }

  .hero-dots {
    top: auto;
    right: 20px;
    bottom: 250px;
    display: flex;
  }

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

  .filter-bar select {
    max-width: none;
  }

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

  .category-grid,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 28px;
  }

  .rank-card {
    grid-template-columns: 48px 76px minmax(0, 1fr);
  }

  .rank-card img {
    width: 76px;
    height: 106px;
  }

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

  .detail-poster {
    max-width: 220px;
  }
}

@media (max-width: 430px) {
  .movie-grid,
  .related-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .card-content {
    padding: 11px;
  }

  .desc-line {
    display: none;
  }

  .hero h1,
  .detail-info h1 {
    font-size: 40px;
  }
}
