:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: #111827;
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --line: rgba(148, 163, 184, 0.18);
  --primary: #10b981;
  --primary-strong: #059669;
  --cyan: #22d3ee;
  --orange: #fb923c;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.42);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(16, 185, 129, 0.14), transparent 32rem),
    linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

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

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

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

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: white;
  box-shadow: 0 12px 36px rgba(16, 185, 129, 0.28);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--soft);
  font-weight: 700;
}

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

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.84);
  color: white;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 999px;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  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-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-layer {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 44%, rgba(2, 6, 23, 0.28) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.2) 44%, rgba(2, 6, 23, 0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 620px;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 720px;
  padding-top: 36px;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.hero-copy p {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--soft);
  font-size: clamp(17px, 2vw, 21px);
}

.hero-tags,
.detail-meta,
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
}

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

.hero-tags span,
.detail-meta span,
.meta-line span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.66);
  padding: 5px 12px;
  font-size: 13px;
}

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

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

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

.btn.primary {
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: white;
  box-shadow: 0 16px 42px rgba(16, 185, 129, 0.28);
}

.btn.ghost {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.74);
  color: var(--soft);
}

.btn.text {
  color: var(--primary);
}

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

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

.hero-dots button.active {
  background: var(--primary);
}

.section-block {
  padding: 54px 0;
}

.intro-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: -48px;
  position: relative;
  z-index: 5;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  padding: 30px;
}

.intro-strip h2,
.section-heading h2,
.page-hero h1,
.detail-panel h1,
.detail-panel h2 {
  margin: 0;
  letter-spacing: -0.035em;
}

.intro-strip p,
.page-hero p,
.category-overview-head p,
.detail-panel p {
  color: var(--soft);
}

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

.section-heading h2 {
  font-size: clamp(28px, 4vw, 42px);
}

.section-heading > a,
.category-overview-head > a {
  color: var(--primary);
  font-weight: 800;
}

.compact-heading {
  align-items: center;
}

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

.category-tile {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--bg-soft);
  box-shadow: 0 16px 50px rgba(2, 6, 23, 0.32);
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.category-tile:hover img {
  transform: scale(1.12);
}

.tile-layer,
.poster-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.2));
}

.tile-title,
.tile-desc {
  position: absolute;
  left: 18px;
  right: 18px;
}

.tile-title {
  bottom: 44px;
  font-size: 20px;
  font-weight: 900;
}

.tile-desc {
  bottom: 18px;
  color: var(--soft);
  font-size: 13px;
}

.search-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.64);
  padding: 18px;
}

.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 999px;
  outline: none;
  background: rgba(2, 6, 23, 0.58);
  color: var(--text);
  padding: 0 54px 0 20px;
}

.search-box input:focus {
  border-color: rgba(16, 185, 129, 0.72);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
}

.search-box span {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 22px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chips button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.88);
  color: var(--soft);
  cursor: pointer;
  padding: 9px 16px;
  transition: background 0.2s ease, color 0.2s ease;
}

.filter-chips button:hover,
.filter-chips button.active {
  background: rgba(16, 185, 129, 0.18);
  color: var(--primary);
}

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.92);
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(16, 185, 129, 0.46);
  box-shadow: 0 26px 70px rgba(2, 6, 23, 0.48);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #020617;
}

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

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

.poster-shade {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
  opacity: 1;
}

.poster-play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.meta-line {
  gap: 8px;
  margin-bottom: 10px;
}

.meta-line span {
  padding: 3px 9px;
  font-size: 12px;
}

.movie-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: var(--primary);
}

.movie-card p {
  display: -webkit-box;
  min-height: 48px;
  margin: 10px 0 14px;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.tag-row span {
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.large-tags span {
  font-size: 14px;
  padding: 6px 12px;
}

.split-section {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 26px;
}

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

.list-card {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.82);
  padding: 10px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.list-card:hover {
  transform: translateX(4px);
  border-color: rgba(16, 185, 129, 0.45);
  background: rgba(30, 41, 59, 0.82);
}

.list-thumb {
  flex: 0 0 118px;
  width: 118px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 12px;
  background: #020617;
}

.list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.list-info {
  min-width: 0;
}

.list-title,
.list-desc,
.list-meta {
  display: block;
}

.list-title {
  color: white;
  font-weight: 850;
  line-height: 1.35;
}

.rank-num {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  font-size: 13px;
}

.list-desc {
  margin-top: 4px;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-meta {
  margin-top: 5px;
  color: var(--primary);
  font-size: 12px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

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

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

.sub-page {
  padding-top: 28px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(16, 185, 129, 0.16), transparent 52%),
    rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
  padding: 52px;
}

.page-hero h1 {
  max-width: 820px;
  font-size: clamp(34px, 6vw, 60px);
  line-height: 1.08;
}

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

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

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

.category-overview-grid {
  display: grid;
  gap: 22px;
  padding: 48px 0;
}

.category-overview-card,
.detail-panel,
.aside-card,
.player-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 60px rgba(2, 6, 23, 0.32);
  backdrop-filter: blur(14px);
}

.category-overview-card {
  padding: 24px;
}

.category-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.category-overview-head h2 {
  margin: 0;
  font-size: 30px;
}

.category-preview-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

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

.category-top {
  align-items: stretch;
}

.category-cover-panel {
  position: relative;
  display: grid;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.88);
}

.category-cover-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.58;
}

.category-cover-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.28));
}

.category-cover-panel div {
  position: relative;
  z-index: 2;
  align-self: end;
  padding: 34px;
}

.category-cover-panel p {
  margin: 0 0 10px;
  color: var(--primary);
  font-weight: 800;
}

.category-cover-panel h2 {
  margin: 0 0 22px;
  font-size: 38px;
}

.detail-shell {
  padding-bottom: 58px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 28px;
}

.detail-main {
  display: grid;
  gap: 20px;
}

.player-card {
  padding: 12px;
}

.player-box {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: black;
  aspect-ratio: 16 / 9;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

.player-box video {
  width: 100%;
  height: 100%;
  background: black;
  object-fit: contain;
}

.play-cover {
  position: absolute;
  inset: 0;
  display: grid;
  border: 0;
  place-items: center;
  background:
    radial-gradient(circle, rgba(16, 185, 129, 0.14), transparent 18rem),
    rgba(2, 6, 23, 0.26);
  color: white;
  cursor: pointer;
}

.play-cover.hidden {
  display: none;
}

.play-cover span {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 20px 60px rgba(16, 185, 129, 0.38);
  font-size: 34px;
  text-indent: 5px;
}

.detail-panel {
  padding: 28px;
}

.detail-panel h1 {
  font-size: clamp(30px, 4.8vw, 48px);
  line-height: 1.12;
}

.detail-panel h2 {
  margin-bottom: 14px;
  font-size: 26px;
}

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

.lead-text {
  font-size: 18px;
}

.detail-aside {
  display: grid;
  align-content: start;
  gap: 18px;
}

.aside-card {
  padding: 20px;
}

.poster-aside {
  display: grid;
  gap: 16px;
}

.poster-aside img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
}

.aside-card h2 {
  margin: 0 0 16px;
  font-size: 22px;
}

.related-list .list-thumb {
  flex-basis: 96px;
  width: 96px;
}

.full-ranking {
  grid-template-columns: repeat(2, 1fr);
}

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

.site-footer {
  border-top: 1px solid var(--line);
  background: #020617;
  color: var(--muted);
  padding: 48px 0 22px;
}

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

.site-footer h2,
.site-footer h3 {
  margin: 0 0 14px;
  color: white;
}

.site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.site-footer a:hover {
  color: var(--primary);
}

.footer-bottom {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  text-align: center;
  font-size: 14px;
}

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

@media (max-width: 1040px) {
  .category-grid,
  .movie-grid,
  .featured-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .full-ranking,
  .category-preview-list {
    grid-template-columns: 1fr;
  }
}

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

  .nav-shell {
    min-height: 64px;
  }

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

  .menu-toggle {
    display: block;
  }

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

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

  .nav-link {
    padding: 12px;
    border-radius: 12px;
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(16, 185, 129, 0.12);
  }

  .hero-carousel,
  .hero-content {
    min-height: 560px;
  }

  .hero-layer {
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.98), rgba(2, 6, 23, 0.55));
  }

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

  .intro-strip,
  .section-heading,
  .category-overview-head {
    display: grid;
  }

  .intro-strip,
  .page-hero,
  .detail-panel {
    padding: 24px;
    border-radius: 22px;
  }

  .section-block {
    padding: 36px 0;
  }

  .category-grid,
  .movie-grid,
  .featured-grid,
  .mini-grid,
  .category-movie-grid,
  .detail-aside {
    grid-template-columns: 1fr;
  }

  .list-card {
    align-items: flex-start;
  }

  .list-thumb {
    flex-basis: 108px;
    width: 108px;
  }

  .category-cover-panel {
    min-height: 320px;
  }

  .play-cover span {
    width: 68px;
    height: 68px;
    font-size: 28px;
  }
}
