:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: #0f172a;
  --panel-soft: #111c33;
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-strong: #cbd5e1;
  --primary: #0ea5e9;
  --primary-strong: #0284c7;
  --accent: #f59e0b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 8% 4%, rgba(14, 165, 233, 0.16), transparent 30rem),
    radial-gradient(circle at 90% 10%, rgba(245, 158, 11, 0.10), transparent 28rem),
    var(--bg);
  color: var(--text);
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

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

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

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.28);
}

.brand-name {
  font-size: 1.45rem;
  background: linear-gradient(90deg, #38bdf8, #0284c7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted-strong);
  font-size: 0.95rem;
}

.nav-link {
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #38bdf8;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.88);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #fff;
}

.mobile-menu {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.98);
}

.mobile-menu.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted-strong);
  background: rgba(30, 41, 59, 0.62);
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  background: #0f172a;
}

.hero-track,
.hero-slide {
  min-height: 70vh;
}

.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-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.26)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent 52%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 70vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 320px;
  align-items: center;
  gap: 52px;
  padding-block: 82px;
}

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

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.88);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.eyebrow {
  background: rgba(14, 165, 233, 0.14);
  color: #7dd3fc;
  border: 1px solid rgba(125, 211, 252, 0.22);
}

.hero h1 {
  margin: 20px 0 18px;
  font-size: clamp(2.6rem, 6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero p {
  max-width: 700px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.18rem;
  line-height: 1.8;
}

.hero-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-tags span,
.tag-cloud a {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.42);
}

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

.primary-btn,
.ghost-btn,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 16px 38px rgba(14, 165, 233, 0.28);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover {
  transform: translateY(-2px);
}

.ghost-btn {
  color: #e0f2fe;
  border: 1px solid rgba(125, 211, 252, 0.26);
  background: rgba(15, 23, 42, 0.54);
}

.hero-card {
  position: relative;
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 22px;
}

.hero-card strong,
.hero-card span {
  display: block;
}

.hero-card strong {
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.hero-card span {
  color: var(--muted);
}

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

.hero-dots button {
  width: 32px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 54px;
  background: #38bdf8;
}

.section {
  padding-block: 58px;
}

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

.section-head h2,
.sub-hero h1,
.content-card h2,
.player-card h2,
.info-card h2 {
  margin: 12px 0 10px;
  color: #fff;
  letter-spacing: -0.03em;
}

.section-head h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.section-head p,
.sub-hero p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.section-link {
  color: #e0f2fe;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.22);
}

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

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

.category-card {
  position: relative;
  min-height: 190px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(245, 158, 11, 0.08)),
    rgba(15, 23, 42, 0.82);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.category-card span {
  color: rgba(125, 211, 252, 0.72);
  font-weight: 800;
}

.category-card h3,
.category-card h2 {
  margin: 14px 0 12px;
  font-size: 1.45rem;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 14px;
  padding: 18px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.16);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 15px;
  outline: none;
  color: #fff;
  background: rgba(2, 6, 23, 0.78);
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(56, 189, 248, 0.62);
}

.filter-empty {
  display: none;
  padding: 18px;
  border-radius: 18px;
  color: var(--muted-strong);
  background: rgba(15, 23, 42, 0.68);
}

.filter-empty.is-visible {
  display: block;
}

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

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

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

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

.movie-card {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.movie-card.is-hidden {
  display: none;
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 20px;
  background: #0f172a;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

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

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

.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.88), transparent 56%);
  opacity: 0.92;
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(14, 165, 233, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.movie-card:hover .play-dot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.category-pill,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
}

.category-pill {
  left: 12px;
  bottom: 12px;
  padding: 7px 10px;
  color: #fff;
  font-size: 0.75rem;
  background: rgba(14, 165, 233, 0.88);
}

.rank-badge {
  left: 12px;
  top: 12px;
  min-width: 42px;
  height: 32px;
  padding-inline: 10px;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, var(--accent));
}

.movie-body h3 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 1rem;
  line-height: 1.45;
}

.movie-body h3 a:hover {
  color: #38bdf8;
}

.movie-meta,
.movie-desc,
.card-tags,
.movie-foot {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.movie-desc {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 8px;
  line-height: 1.65;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  color: #fde68a;
}

.card-tags {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 8px;
  line-height: 1.55;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.sub-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 74px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 15%, rgba(14, 165, 233, 0.2), transparent 26rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.92));
}

.sub-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.detail-hero {
  min-height: 620px;
  padding: 0;
  background-image: var(--cover);
  background-position: center;
  background-size: cover;
}

.detail-hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98), rgba(15, 23, 42, 0.84), rgba(2, 6, 23, 0.42)),
    linear-gradient(0deg, rgba(2, 6, 23, 0.98), transparent 62%);
  backdrop-filter: blur(3px);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: grid;
  align-content: center;
  gap: 28px;
  padding-block: 78px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.94rem;
}

.breadcrumb a:hover {
  color: #38bdf8;
}

.detail-heading {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-heading > img {
  width: 240px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.detail-heading h1 {
  max-width: 860px;
  margin: 20px 0 18px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.detail-heading p {
  max-width: 780px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
  line-height: 1.8;
}

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

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  color: #e0f2fe;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.8fr);
  gap: 24px;
  margin-top: -70px;
  position: relative;
  z-index: 3;
}

.player-card,
.info-card,
.content-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.9);
  box-shadow: var(--shadow);
}

.player-card,
.info-card {
  padding: 20px;
}

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

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

.play-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 0;
  color: #fff;
  background:
    linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.2)),
    rgba(0, 0, 0, 0.12);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 800;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-symbol {
  width: 78px;
  height: 78px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  box-shadow: 0 18px 44px rgba(14, 165, 233, 0.38);
}

.video-player.is-playing .play-layer {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.info-card dl {
  display: grid;
  gap: 12px;
  margin: 0 0 20px;
}

.info-card dl div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.info-card dt {
  color: var(--muted);
}

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

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

.content-card {
  padding: 28px;
}

.content-card p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.95;
  font-size: 1.02rem;
}

.site-footer {
  margin-top: 58px;
  padding: 54px 0 26px;
  color: var(--muted);
  background: rgba(15, 23, 42, 0.92);
  border-top: 1px solid var(--line);
}

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

.footer-brand {
  margin-bottom: 14px;
  color: #fff;
  font-size: 1.2rem;
}

.site-footer h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 1.05rem;
}

.site-footer p {
  max-width: 520px;
  margin: 0;
  line-height: 1.8;
}

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

.footer-links a:hover {
  color: #38bdf8;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

@media (max-width: 1100px) {
  .nav-links {
    gap: 14px;
    font-size: 0.9rem;
  }

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

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

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

  .menu-button {
    display: block;
  }

  .hero-content {
    grid-template-columns: 1fr;
    padding-block: 70px 96px;
  }

  .hero-card {
    display: none;
  }

  .filter-panel {
    grid-template-columns: 1fr;
  }

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

  .section-head {
    display: grid;
  }

  .detail-heading,
  .detail-layout,
  .content-section,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .detail-heading > img {
    width: 190px;
  }

  .detail-layout {
    margin-top: -42px;
  }
}

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

  .brand-name {
    font-size: 1.18rem;
  }

  .hero h1,
  .detail-heading h1,
  .sub-hero h1 {
    font-size: 2.35rem;
  }

  .hero p,
  .detail-heading p {
    font-size: 1rem;
  }

  .category-grid,
  .category-grid.large,
  .movie-grid,
  .compact-grid,
  .rank-grid,
  .rank-list {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .movie-body h3 {
    font-size: 0.94rem;
  }

  .movie-desc,
  .card-tags {
    display: none;
  }

  .detail-heading > img {
    width: 154px;
  }

  .content-card,
  .player-card,
  .info-card {
    padding: 18px;
  }
}
