:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.72);
  --line: rgba(148, 163, 184, 0.18);
  --line-bright: rgba(16, 185, 129, 0.42);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --emerald: #34d399;
  --emerald-deep: #10b981;
  --teal: #2dd4bf;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
  --radius: 18px;
}

* {
  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.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.12), transparent 30rem),
    linear-gradient(135deg, #020617 0%, #0f172a 52%, #020617 100%);
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.78));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  backdrop-filter: blur(16px);
}

.nav-shell {
  max-width: 1280px;
  height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  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-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald-deep), var(--teal));
  color: white;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.35);
}

.brand-name {
  font-size: 20px;
  background: linear-gradient(90deg, var(--emerald), var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #d1d5db;
  font-size: 15px;
  white-space: nowrap;
}

.desktop-nav a,
.mobile-nav a,
.footer-links a,
.text-link {
  transition: color 0.22s ease;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--emerald);
}

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

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #d1d5db;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 12px 24px 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.94);
}

.mobile-nav.is-open {
  display: grid;
  gap: 12px;
}

main {
  padding-top: 64px;
}

.hero-section {
  position: relative;
  min-height: 600px;
  overflow: hidden;
}

.hero-bg,
.hero-bg img,
.hero-gradient {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-gradient {
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(15, 23, 42, 0.84) 48%, rgba(15, 23, 42, 0.2) 100%),
    linear-gradient(0deg, rgba(2, 6, 23, 0.78), transparent 42%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  min-height: 600px;
  margin: 0 auto;
  padding: 72px 24px;
  display: flex;
  align-items: center;
}

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

.hero-kicker,
.eyebrow {
  margin: 0 0 14px;
  color: var(--emerald);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.hero-text {
  max-width: 660px;
  margin: 0 0 24px;
  color: #d1d5db;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-tags,
.detail-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags span,
.detail-tags span,
.tag-row span {
  padding: 5px 11px;
  border: 1px solid rgba(16, 185, 129, 0.34);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  color: #a7f3d0;
  font-size: 13px;
}

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

.primary-button,
.ghost-button,
.soft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.primary-button {
  background: linear-gradient(90deg, var(--emerald-deep), var(--teal));
  color: white;
  box-shadow: 0 16px 34px rgba(16, 185, 129, 0.32);
}

.ghost-button {
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.58);
  color: #e2e8f0;
}

.soft-button {
  background: rgba(16, 185, 129, 0.88);
  color: white;
}

.primary-button:hover,
.ghost-button:hover,
.soft-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 40px rgba(16, 185, 129, 0.26);
}

.content-section,
.page-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 24px;
}

.no-padding-top {
  padding-top: 24px;
}

.alt-section {
  max-width: none;
  background: rgba(15, 23, 42, 0.28);
  border-block: 1px solid rgba(148, 163, 184, 0.08);
}

.alt-section > * {
  max-width: 1280px;
  margin-inline: auto;
}

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

.section-head h2,
.page-hero h1,
.detail-copy h1,
.article-panel h2,
.category-overview-head h2 {
  margin: 0;
  color: white;
  line-height: 1.16;
}

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

.text-link {
  color: var(--emerald);
  font-weight: 800;
}

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

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

.movie-card {
  min-width: 0;
}

.card-link {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.28);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card-link:hover {
  transform: translateY(-6px);
  border-color: var(--line-bright);
  box-shadow: 0 24px 50px rgba(16, 185, 129, 0.12);
}

.poster-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(15, 23, 42, 0.96));
}

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

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

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

.tag-row {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
}

.tag-row span {
  font-size: 12px;
  padding: 4px 9px;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  min-width: 38px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--emerald-deep), var(--teal));
  color: white;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.36);
}

.card-body {
  padding: 18px;
}

.card-body h2 {
  margin: 0 0 8px;
  color: white;
  font-size: 18px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.22s ease;
}

.card-link:hover .card-body h2 {
  color: var(--emerald);
}

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

.meta-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #94a3b8;
  font-size: 13px;
}

.meta-row {
  justify-content: space-between;
}

.feature-carousel {
  position: relative;
}

.feature-stage {
  position: relative;
  height: 420px;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: var(--shadow);
}

.feature-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.feature-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.feature-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 42px;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.94), rgba(2, 6, 23, 0.18));
}

.feature-overlay h3 {
  max-width: 760px;
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 42px);
}

.feature-overlay p {
  max-width: 760px;
  margin: 0 0 18px;
  color: #cbd5e1;
}

.carousel-btn,
.scroll-actions button {
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.86);
  color: white;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  transition: background 0.22s ease, transform 0.22s ease;
}

.carousel-btn:hover,
.scroll-actions button:hover {
  background: rgba(16, 185, 129, 0.84);
  transform: translateY(-1px);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.carousel-btn:hover {
  transform: translateY(-50%) scale(1.04);
}

.carousel-btn.prev {
  left: 18px;
}

.carousel-btn.next {
  right: 18px;
}

.dot-row {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 18px;
}

.dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #475569;
  cursor: pointer;
  transition: width 0.22s ease, background 0.22s ease;
}

.dot.is-active {
  width: 34px;
  background: var(--emerald-deep);
}

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

.category-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.68);
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.24);
}

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  transition: transform 0.5s ease, opacity 0.25s ease;
}

.category-card:hover img {
  opacity: 0.62;
  transform: scale(1.08);
}

.category-card div {
  position: absolute;
  inset: auto 0 0;
  padding: 24px;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.16));
}

.category-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-card p {
  margin: 0;
  color: #cbd5e1;
  font-size: 14px;
}

.horizontal-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 310px);
  gap: 22px;
  overflow-x: auto;
  padding-bottom: 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--emerald-deep) rgba(15, 23, 42, 0.55);
}

.horizontal-rail .movie-card {
  scroll-snap-align: start;
}

.scroll-actions {
  display: flex;
  gap: 10px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.62);
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
}

.rank-num {
  color: var(--emerald);
  font-size: 20px;
  font-weight: 900;
}

.rank-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

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

.page-shell {
  padding-top: 96px;
}

.page-hero {
  margin-bottom: 32px;
  padding: 48px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.2), transparent 22rem),
    rgba(15, 23, 42, 0.62);
  box-shadow: var(--shadow);
}

.page-hero.slim {
  padding: 42px;
}

.page-hero h1 {
  margin-bottom: 12px;
  font-size: clamp(34px, 6vw, 58px);
}

.page-hero p:not(.eyebrow) {
  max-width: 820px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: #94a3b8;
  font-size: 14px;
}

.breadcrumb a {
  color: #a7f3d0;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 220px 180px;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.62);
}

.search-field,
.select-field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-field input,
.select-field select {
  width: 100%;
  height: 46px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  outline: 0;
  background: rgba(2, 6, 23, 0.58);
  color: white;
  padding: 0 16px;
}

.search-field input:focus,
.select-field select:focus {
  border-color: rgba(16, 185, 129, 0.58);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.category-overview-card {
  margin-bottom: 32px;
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.55);
}

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

.category-overview-head p:not(.eyebrow) {
  max-width: 720px;
  margin: 10px 0 0;
  color: #cbd5e1;
}

.detail-shell {
  max-width: 1180px;
}

.player-section {
  margin-bottom: 28px;
}

.player-frame {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: black;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: black;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  background:
    radial-gradient(circle, rgba(16, 185, 129, 0.16), rgba(2, 6, 23, 0.38) 34%, rgba(2, 6, 23, 0.72)),
    transparent;
  color: white;
  cursor: pointer;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.play-ring {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  padding-left: 5px;
  background: linear-gradient(135deg, var(--emerald-deep), var(--teal));
  box-shadow: 0 24px 60px rgba(16, 185, 129, 0.36);
  font-size: 36px;
  transition: transform 0.22s ease;
}

.player-cover:hover .play-ring {
  transform: scale(1.08);
}

.detail-panel {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  margin-bottom: 28px;
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.58);
}

.detail-cover {
  overflow: hidden;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.72);
}

.detail-cover img {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.detail-copy h1 {
  margin-bottom: 16px;
  font-size: clamp(32px, 5vw, 52px);
}

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

.detail-meta span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.1);
}

.detail-tags {
  margin-bottom: 18px;
}

.lead-text {
  max-width: 820px;
  margin: 0;
  color: #d1d5db;
  font-size: 18px;
}

.article-panel {
  margin-bottom: 48px;
  padding: 30px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.58);
}

.article-panel h2 {
  margin: 0 0 12px;
  font-size: 26px;
}

.article-panel p {
  margin: 0 0 26px;
  color: #cbd5e1;
  font-size: 17px;
  line-height: 1.9;
}

.article-panel p:last-child {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.72);
}

.footer-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px 30px;
}

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

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

.footer-shell p,
.footer-links a {
  color: var(--muted);
}

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

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

.footer-bottom {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  color: #64748b;
  text-align: center;
  font-size: 14px;
}

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

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

  .nav-toggle {
    display: block;
  }

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

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

  .search-field {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    padding: 0 16px;
  }

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

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

  .hero-content {
    padding: 56px 18px;
  }

  .hero-gradient {
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.86) 56%, rgba(2, 6, 23, 0.28) 100%);
  }

  .content-section,
  .page-shell {
    padding-inline: 16px;
  }

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

  .section-head,
  .category-overview-head,
  .detail-panel,
  .footer-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .movie-grid,
  .compact-grid,
  .related-grid,
  .category-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

  .poster-wrap {
    height: 230px;
  }

  .feature-stage {
    height: 360px;
    border-radius: 22px;
  }

  .feature-overlay {
    padding: 26px;
  }

  .carousel-btn {
    display: none;
  }

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

  .search-field {
    grid-column: auto;
  }

  .page-hero,
  .page-hero.slim,
  .detail-panel,
  .article-panel,
  .category-overview-card {
    padding: 22px;
    border-radius: 20px;
  }

  .detail-cover img {
    height: 310px;
  }

  .play-ring {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }

  .rank-row {
    grid-template-columns: 42px 1fr;
  }

  .rank-meta {
    display: none;
  }
}
