:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: rgba(15, 23, 42, 0.96);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-soft: rgba(34, 211, 238, 0.15);
  --blue: #60a5fa;
  --amber: #facc15;
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 32rem),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.14), transparent 28rem),
    var(--bg);
  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%;
  height: auto;
}

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

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

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 0 24px rgba(34, 211, 238, 0.35);
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 9px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 11px solid #020617;
}

.logo-text {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
}

.mobile-menu-button {
  display: none;
  color: var(--soft);
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.7);
  border-radius: 12px;
  padding: 10px 12px;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 0 18px;
}

.mobile-panel.is-open {
  display: grid;
  gap: 10px;
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 900ms ease, transform 1200ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: linear-gradient(135deg, #0f172a, #164e63 48%, #1e293b);
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, #020617 0%, rgba(2, 6, 23, 0.76) 35%, rgba(2, 6, 23, 0.25) 72%),
    linear-gradient(to right, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.25));
}

.hero-content {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 120px 0 72px;
}

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

.hero-kicker,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(34, 211, 238, 0.32);
  background: var(--cyan-soft);
  color: var(--cyan);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 700;
}

.hero h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.4rem, 7vw, 5.7rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
}

.hero p {
  color: var(--soft);
  font-size: clamp(1rem, 2vw, 1.24rem);
  line-height: 1.8;
  max-width: 700px;
}

.hero-meta,
.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--soft);
  align-items: center;
  margin-top: 20px;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.48);
  background: rgba(30, 41, 59, 0.9);
}

.btn-primary {
  color: #02131a;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  border-color: transparent;
}

.hero-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.45);
}

.hero-control:hover {
  background: rgba(0, 0, 0, 0.7);
}

.hero-control.prev {
  left: 18px;
}

.hero-control.next {
  right: 18px;
}

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

.hero-dot {
  width: 32px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.hero-dot.is-active {
  background: var(--cyan);
}

.section {
  padding: 58px 0;
}

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

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin: 0 0 8px;
}

.section-desc {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.grid {
  display: grid;
  gap: 20px;
}

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

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

.movie-card,
.info-card,
.rank-card,
.category-tile,
.detail-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.58));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
}

.movie-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.42);
  box-shadow: 0 24px 60px rgba(34, 211, 238, 0.12);
}

.poster-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  background: linear-gradient(135deg, #0f172a, #155e75, #1e293b);
  overflow: hidden;
}

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

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

.poster-shade {
  position: absolute;
  inset: auto 0 0 0;
  height: 52%;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.94), transparent);
}

.poster-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
}

.score-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  color: var(--amber);
  font-weight: 900;
  font-size: 0.88rem;
}

.card-body {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.card-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 800;
}

.card-title a:hover {
  color: var(--cyan);
}

.card-desc {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.tag {
  color: var(--soft);
  background: rgba(30, 41, 59, 0.88);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.78rem;
}

.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 210px));
  gap: 12px;
  padding: 16px;
  margin-bottom: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.72);
}

.input,
.select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.68);
  color: var(--text);
  padding: 12px 14px;
  outline: none;
}

.input:focus,
.select:focus {
  border-color: rgba(34, 211, 238, 0.56);
}

.category-tile {
  padding: 22px;
  min-height: 168px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 180ms ease, border-color 180ms ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.42);
}

.category-name {
  font-size: 1.24rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.category-count {
  color: var(--cyan);
  font-weight: 800;
}

.page-hero {
  padding: 64px 0 32px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(96, 165, 250, 0.06) 42%, transparent),
    rgba(2, 6, 23, 0.72);
}

.page-title {
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1.05;
  margin: 12px 0 16px;
}

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

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

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

.rank-card {
  display: grid;
  grid-template-columns: 64px 96px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 12px;
}

.rank-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--cyan);
  text-align: center;
}

.rank-poster {
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #155e75);
}

.rank-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.weight {
  color: var(--amber);
  font-size: 1.2rem;
  font-weight: 900;
  white-space: nowrap;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.85fr);
  gap: 24px;
  align-items: start;
}

.player-shell {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000000;
  aspect-ratio: 16 / 9;
}

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

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  border: 0;
  border-radius: 999px;
  padding: 16px 28px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  color: #02131a;
  font-weight: 900;
  box-shadow: 0 0 36px rgba(34, 211, 238, 0.38);
}

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

.detail-panel {
  padding: 22px;
}

.detail-panel h2,
.detail-panel h3 {
  margin: 0 0 14px;
}

.detail-text {
  color: var(--soft);
  line-height: 1.9;
  margin: 0 0 18px;
}

.side-poster {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #0f172a, #155e75);
}

.side-poster img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.78);
  padding: 44px 0;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 28px;
}

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

.footer-links a:hover {
  color: var(--cyan);
}

.hide-count {
  color: var(--muted);
  margin: 0 0 18px;
}

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

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

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

  .mobile-menu-button {
    display: inline-flex;
  }

  .hero,
  .hero-content {
    min-height: 64vh;
  }

  .hero-control {
    display: none;
  }

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

  .filters {
    grid-template-columns: 1fr;
  }

  .rank-card {
    grid-template-columns: 44px 76px minmax(0, 1fr);
  }

  .rank-card .weight {
    grid-column: 3;
  }
}

@media (max-width: 640px) {
  .card-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .section {
    padding: 38px 0;
  }

  .hero-content {
    padding-bottom: 52px;
  }

  .card-body {
    padding: 12px;
  }
}
