:root {
  color-scheme: dark;
  --site-bg: #020617;
  --site-card: rgba(15, 23, 42, 0.86);
  --site-card-solid: #0f172a;
  --site-border: rgba(148, 163, 184, 0.18);
  --site-text: #e2e8f0;
  --site-muted: #94a3b8;
  --site-cyan: #22d3ee;
  --site-cyan-strong: #06b6d4;
  --site-yellow: #facc15;
  --site-radius: 1.25rem;
  --site-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 30rem), linear-gradient(180deg, #020617 0%, #0f172a 40%, #020617 100%);
  color: var(--site-text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4.25rem;
  gap: 1.5rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

.site-logo-mark {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  place-items: center;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, #22d3ee, #2563eb 52%, #7c3aed);
  box-shadow: 0 12px 32px rgba(34, 211, 238, 0.26);
  color: white;
  font-weight: 900;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link,
.mobile-nav-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #cbd5e1;
  font-weight: 650;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover {
  background: rgba(34, 211, 238, 0.12);
  color: #67e8f9;
}

.mobile-menu-button {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.92);
  cursor: pointer;
}

.mobile-menu-button span {
  display: block;
  width: 1.15rem;
  height: 2px;
  margin: 0.23rem auto;
  border-radius: 999px;
  background: #e2e8f0;
}

.mobile-nav {
  display: none;
  padding: 0 0 1rem;
}

.mobile-nav.is-open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.mobile-nav-link {
  justify-content: center;
  padding: 0.72rem 0.9rem;
  background: rgba(15, 23, 42, 0.78);
}

.hero-slider {
  position: relative;
  overflow: hidden;
  min-height: 720px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: #020617;
}

.hero-stage {
  position: relative;
  min-height: 620px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.7s ease, transform 1.1s ease;
  pointer-events: none;
}

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

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(0deg, #020617, transparent);
}

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

.hero-copy {
  width: min(720px, 100%);
  padding: 2.25rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.8rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.72), rgba(15, 23, 42, 0.36));
  box-shadow: var(--site-shadow);
  backdrop-filter: blur(18px);
}

.hero-eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
  color: #67e8f9;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-copy h1,
.hero-copy h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.35rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-copy p {
  width: min(620px, 100%);
  margin: 1.25rem 0 0;
  color: #cbd5e1;
  font-size: 1.1rem;
  line-height: 1.85;
}

.hero-tags,
.detail-tags,
.movie-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hero-tags {
  margin-top: 1.2rem;
}

.hero-tags span,
.detail-tags span,
.movie-tags span {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.1);
  color: #a5f3fc;
  font-size: 0.78rem;
  font-weight: 700;
}

.hero-tags span,
.detail-tags span {
  padding: 0.36rem 0.7rem;
}

.movie-tags span {
  padding: 0.2rem 0.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.primary-button,
.secondary-button,
.section-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-button {
  min-height: 3rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  color: white;
  box-shadow: 0 18px 42px rgba(37, 99, 235, 0.34);
}

.secondary-button,
.section-more {
  min-height: 3rem;
  padding: 0.75rem 1.15rem;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.72);
  color: #e2e8f0;
}

.primary-button:hover,
.secondary-button:hover,
.section-more:hover {
  transform: translateY(-2px);
}

.secondary-button:hover,
.section-more:hover {
  border-color: rgba(34, 211, 238, 0.52);
  color: #67e8f9;
}

.hero-controls {
  position: relative;
  z-index: 4;
  margin-top: -5rem;
  padding-bottom: 2.25rem;
}

.hero-dots {
  display: flex;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.hero-dot {
  width: 2.4rem;
  height: 0.35rem;
  border: 0;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.28);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 4rem;
  background: #22d3ee;
}

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
}

.hero-thumb {
  position: relative;
  overflow: hidden;
  min-height: 7rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.1rem;
  background: #0f172a;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}

.hero-thumb img {
  height: 100%;
  min-height: 7rem;
  object-fit: cover;
  opacity: 0.72;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hero-thumb span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.7rem;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent);
  color: white;
  font-weight: 800;
  font-size: 0.88rem;
}

.hero-thumb:hover img {
  opacity: 0.95;
  transform: scale(1.06);
}

.home-search-band {
  padding: 2.5rem 0 0;
}

.search-band-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.5rem;
  background: rgba(15, 23, 42, 0.7);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.search-band-inner h2,
.section-head h2,
.inner-hero h1,
.detail-copy h1,
.player-card h2,
.detail-article h2,
.detail-side h2,
.footer-title,
.category-overview-head h2 {
  margin: 0;
  color: #fff;
  letter-spacing: -0.03em;
}

.search-band-inner h2,
.section-head h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.search-band-inner p,
.section-head p,
.inner-hero p,
.footer-text,
.category-overview-head p {
  margin: 0.65rem 0 0;
  color: var(--site-muted);
  line-height: 1.8;
}

.category-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.category-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
  padding: 0.72rem 1rem;
  background: rgba(34, 211, 238, 0.08);
  color: #cffafe;
  font-weight: 750;
}

.content-section {
  padding: 4rem 0;
}

.slate-section {
  background: rgba(15, 23, 42, 0.46);
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.section-head,
.category-overview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) repeat(3, minmax(160px, 0.7fr));
  gap: 0.85rem;
  margin: 0 0 1.4rem;
  padding: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.72);
}

.filter-panel label {
  display: grid;
  gap: 0.45rem;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 2.9rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 0.9rem;
  background: rgba(2, 6, 23, 0.72);
  color: #e2e8f0;
  outline: none;
  padding: 0 0.9rem;
}

.filter-panel input:focus,
.filter-panel select:focus {
  border-color: rgba(34, 211, 238, 0.62);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.08);
}

.movie-grid,
.ranking-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.1rem;
}

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

.movie-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1.2rem;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 22px 70px rgba(8, 145, 178, 0.18);
}

.movie-poster-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, #0f172a, #111827);
}

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

.movie-card:hover .movie-poster-wrap img {
  transform: scale(1.06);
  opacity: 0.92;
}

.card-rank {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, #facc15, #f97316);
  color: #111827;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(249, 115, 22, 0.28);
}

.movie-card-body {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 700;
}

.movie-card strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.45;
}

.movie-card em {
  min-height: 3.2em;
  color: #94a3b8;
  font-size: 0.86rem;
  font-style: normal;
  line-height: 1.6;
}

.movie-card.compact {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  min-height: auto;
}

.movie-card.compact .movie-poster-wrap {
  height: 128px;
  aspect-ratio: auto;
}

.movie-card.compact .movie-card-body {
  align-content: center;
  padding: 0.85rem;
}

.movie-card.compact .movie-card-body em,
.movie-card.compact .movie-tags {
  display: none;
}

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

.category-card {
  display: grid;
  gap: 0.75rem;
  min-height: 13rem;
  padding: 1.35rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1.25rem;
  background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.13), transparent 55%), rgba(15, 23, 42, 0.82);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-3px);
  border-color: rgba(34, 211, 238, 0.38);
}

.category-card span {
  color: #67e8f9;
  font-weight: 900;
  font-size: 1.25rem;
}

.category-card strong,
.category-card em {
  color: #cbd5e1;
  line-height: 1.7;
  font-style: normal;
  font-weight: 500;
}

.category-card em {
  color: #94a3b8;
  font-size: 0.88rem;
}

.inner-hero {
  padding: 5.25rem 0 3rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  background: radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.16), transparent 32rem), linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.98));
}

.inner-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.08;
}

.inner-hero p {
  width: min(820px, 100%);
  font-size: 1.05rem;
}

.category-overview-list {
  display: grid;
  gap: 1.25rem;
}

.category-overview-card {
  display: grid;
  gap: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1.35rem;
  padding: 1.3rem;
  background: rgba(15, 23, 42, 0.78);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.overview-movie-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.detail-top {
  padding: 3rem 0 2rem;
  background: radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 28rem), #020617;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.25rem;
  color: #94a3b8;
  font-size: 0.92rem;
}

.breadcrumb a {
  color: #67e8f9;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}

.detail-poster {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.5rem;
  background: #0f172a;
  box-shadow: var(--site-shadow);
}

.detail-poster img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.detail-copy h1 {
  font-size: clamp(2rem, 4.6vw, 4.4rem);
  line-height: 1.08;
}

.detail-one-line {
  margin: 1rem 0 0;
  color: #cbd5e1;
  font-size: 1.08rem;
  line-height: 1.85;
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.35rem 0;
}

.detail-meta span {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0.9rem;
  padding: 0.75rem 0.85rem;
  background: rgba(15, 23, 42, 0.72);
  color: #cbd5e1;
}

.player-card {
  overflow: hidden;
  padding: 1.3rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.5rem;
  background: rgba(15, 23, 42, 0.86);
  box-shadow: var(--site-shadow);
}

.player-card h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
}

.video-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 1.1rem;
  background: #000;
}

.movie-video,
.player-cover,
.player-cover img {
  width: 100%;
  height: 100%;
}

.movie-video {
  display: block;
  background: #000;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.24), rgba(2, 6, 23, 0.92));
}

.player-cover.is-hidden {
  display: none;
}

.player-cover img {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0.32;
  filter: blur(1px);
}

.play-button {
  position: relative;
  z-index: 2;
  display: grid;
  width: 5.2rem;
  height: 5.2rem;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  color: white;
  font-size: 2rem;
  box-shadow: 0 24px 64px rgba(37, 99, 235, 0.42);
  cursor: pointer;
}

.detail-text-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 1.2rem;
  align-items: start;
}

.detail-article,
.detail-side {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.78);
  padding: 1.35rem;
}

.detail-article h2,
.detail-side h2 {
  margin: 0 0 0.8rem;
  font-size: 1.35rem;
}

.detail-article p {
  margin: 0 0 1.35rem;
  color: #cbd5e1;
  line-height: 1.9;
  font-size: 1.02rem;
}

.detail-side dl,
.detail-side div {
  display: grid;
  gap: 0.45rem;
}

.detail-side dl {
  margin: 0;
}

.detail-side div {
  grid-template-columns: 5rem minmax(0, 1fr);
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.detail-side dt {
  color: #94a3b8;
}

.detail-side dd {
  margin: 0;
  color: #e2e8f0;
}

.detail-side a {
  color: #67e8f9;
}

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

.site-footer {
  padding: 3rem 0 1.5rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(2, 6, 23, 0.92);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.6fr 0.6fr;
  gap: 2rem;
}

.footer-logo {
  margin-bottom: 1rem;
}

.footer-title {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #67e8f9;
}

.copyright {
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.1);
  color: #64748b;
  font-size: 0.9rem;
}

.filter-empty {
  margin-top: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1rem;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.78);
  color: #cbd5e1;
  text-align: center;
}

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

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

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

  .mobile-menu-button {
    display: block;
  }

  .hero-slider,
  .hero-stage,
  .hero-slide-inner {
    min-height: 620px;
  }

  .hero-copy {
    padding: 1.35rem;
  }

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

  .search-band-inner,
  .filter-panel,
  .detail-layout,
  .detail-text-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .section-head,
  .category-overview-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .site-header-inner {
    min-height: 3.85rem;
  }

  .site-logo {
    font-size: 1rem;
  }

  .site-logo-mark {
    width: 2.1rem;
    height: 2.1rem;
  }

  .hero-slider,
  .hero-stage,
  .hero-slide-inner {
    min-height: 560px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 2.35rem;
  }

  .hero-copy p {
    font-size: 0.98rem;
  }

  .hero-controls {
    margin-top: -3.2rem;
  }

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

  .content-section {
    padding: 2.8rem 0;
  }

  .movie-grid,
  .ranking-grid,
  .category-grid,
  .overview-movie-row,
  .related-grid {
    grid-template-columns: 1fr;
  }

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

  .play-button {
    width: 4rem;
    height: 4rem;
    font-size: 1.5rem;
  }
}
