
:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-solid: #0f172a;
  --muted: #94a3b8;
  --text: #f8fafc;
  --line: rgba(148, 163, 184, 0.18);
  --sky: #38bdf8;
  --sky-strong: #0284c7;
  --rose: #fb7185;
  --amber: #f59e0b;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(14, 165, 233, 0.24), transparent 32rem),
    radial-gradient(circle at 85% 12%, rgba(244, 63, 94, 0.18), transparent 28rem),
    linear-gradient(135deg, #020617 0%, #0f172a 48%, #111827 100%);
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

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

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sky), var(--sky-strong));
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.34);
}

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

.nav-link,
.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #cbd5e1;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active,
.nav-drop:hover .nav-drop-btn {
  color: white;
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(14, 165, 233, 0.14);
}

.nav-drop {
  position: relative;
}

.drop-panel {
  position: absolute;
  right: 0;
  top: 48px;
  width: 220px;
  padding: 12px;
  display: none;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
  box-shadow: var(--shadow);
}

.drop-panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: #dbeafe;
}

.drop-panel a:hover {
  background: rgba(56, 189, 248, 0.12);
}

.nav-drop:hover .drop-panel {
  display: block;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: white;
  background: rgba(15, 23, 42, 0.84);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.1), rgba(2, 6, 23, 1));
  pointer-events: none;
}

.hero-shell {
  position: relative;
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 52px;
}

.hero-track {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88), rgba(2, 6, 23, 0.76));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 390px;
  gap: 44px;
  align-items: center;
  padding: 54px;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.55), rgba(2, 6, 23, 0.92)),
    var(--hero-image) center / cover;
  filter: saturate(1.2);
  transform: scale(1.06);
  opacity: 0.72;
}

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

.hero-copy,
.hero-poster {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--sky);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.hero-text {
  max-width: 690px;
  margin: 24px 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.9;
}

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

.hero-tags span,
.detail-tags span,
.card-meta span,
.tag-cloud span {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.18);
  background: rgba(14, 165, 233, 0.12);
  color: #bae6fd;
  font-size: 12px;
}

.hero-actions,
.detail-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn,
.card-actions a,
.quick-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 800;
}

.btn-primary,
.card-actions a,
.quick-search button {
  color: white;
  background: linear-gradient(135deg, var(--sky), var(--sky-strong));
  box-shadow: 0 16px 36px rgba(14, 165, 233, 0.26);
}

.btn-soft {
  border: 1px solid rgba(125, 211, 252, 0.22);
  background: rgba(15, 23, 42, 0.62);
  color: #dbeafe;
}

.hero-poster {
  display: block;
  border-radius: 30px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.hero-poster img,
.poster-wrap img,
.detail-poster img,
.tile-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dots {
  position: absolute;
  left: 56px;
  bottom: 74px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-dots button {
  width: 38px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  background: rgba(226, 232, 240, 0.28);
  cursor: pointer;
}

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

.panel,
.movie-card,
.category-tile,
.player-panel,
.detail-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.quick-search {
  width: min(1000px, calc(100% - 32px));
  margin: -54px auto 34px;
  position: relative;
  z-index: 10;
  padding: 18px;
  backdrop-filter: blur(18px);
}

.quick-search form,
.tool-row {
  display: flex;
  gap: 12px;
}

.quick-search input,
.movie-search,
.filter-type {
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.72);
  color: white;
  outline: none;
}

.quick-search input,
.movie-search {
  flex: 1;
  padding: 0 18px;
}

.filter-type {
  padding: 0 14px;
}

.section-wrap,
.page-shell,
.detail-shell {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

.section-wrap,
.page-shell {
  padding: 42px 0;
}

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

.section-head h1,
.section-head h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.04em;
}

.section-head p,
.category-intro {
  color: #cbd5e1;
  line-height: 1.8;
}

.section-more {
  color: var(--sky);
  font-weight: 800;
}

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

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

.category-tile {
  display: block;
  padding: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-tile:hover,
.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.4);
}

.tile-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  height: 120px;
  overflow: hidden;
  border-radius: 18px;
}

.category-tile strong {
  display: block;
  margin: 14px 0 4px;
  font-size: 18px;
}

.category-tile span,
.movie-card p {
  color: var(--muted);
}

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

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

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

.movie-card {
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.poster-wrap {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.poster-wrap img {
  transition: transform 0.35s ease;
}

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

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 55%;
  background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.92));
}

.rank-num {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--amber), var(--rose));
  color: white;
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

.card-body p {
  min-height: 48px;
  margin: 0 0 14px;
  line-height: 1.7;
  font-size: 14px;
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-actions a {
  min-height: 36px;
  padding: 0 14px;
  font-size: 13px;
}

.card-actions span {
  color: #fbbf24;
  font-weight: 900;
}

.page-title {
  padding-top: 30px;
}

.filter-tools {
  align-items: center;
  padding-top: 30px;
}

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

.crumbs {
  padding: 24px 0 18px;
  color: #cbd5e1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crumbs a {
  color: var(--sky);
}

.detail-hero {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  padding: 28px;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.84)),
    radial-gradient(circle at 80% 10%, rgba(56, 189, 248, 0.2), transparent 24rem);
}

.detail-poster {
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.detail-info h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 760px;
  color: #dbeafe;
  line-height: 1.9;
  font-size: 17px;
}

.player-panel {
  margin: 28px 0;
  padding: 16px;
  background: #020617;
}

.player-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: black;
}

.movie-video {
  width: 100%;
  height: 100%;
  display: block;
  background: black;
}

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.15), rgba(2, 6, 23, 0.74));
}

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

.play-gate {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: white;
  background: linear-gradient(135deg, var(--sky), var(--sky-strong));
  cursor: pointer;
  font-size: 32px;
  box-shadow: 0 22px 56px rgba(14, 165, 233, 0.4);
}

.detail-content {
  padding: 28px;
  line-height: 1.9;
}

.detail-content h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.detail-content p {
  color: #dbeafe;
}

.tag-cloud {
  margin-top: 20px;
}

.site-footer {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.68);
}

.footer-inner {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  color: #cbd5e1;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
  max-width: 640px;
}

.footer-links a {
  color: #bae6fd;
}

@media (max-width: 1040px) {
  .hero-slide,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

  .category-grid,
  .category-grid.wide,
  .movie-grid,
  .listing-grid,
  .rank-grid,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-shell {
    height: 64px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .main-nav {
    position: fixed;
    top: 64px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.98);
  }

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

  .nav-drop,
  .drop-panel {
    width: 100%;
  }

  .drop-panel {
    position: static;
    display: block;
    box-shadow: none;
    margin-top: 4px;
  }

  .hero {
    min-height: auto;
  }

  .hero-shell {
    padding: 28px 0 34px;
  }

  .hero-track {
    min-height: 620px;
  }

  .hero-slide {
    padding: 30px 22px;
  }

  .hero-dots {
    left: 28px;
    bottom: 46px;
  }

  .quick-search {
    margin-top: 0;
  }

  .quick-search form,
  .tool-row,
  .section-head,
  .footer-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-type {
    width: 100%;
  }

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

  .detail-hero {
    padding: 18px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}
