:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-panel: #111827;
  --bg-card: rgba(15, 23, 42, 0.86);
  --text: #e5e7eb;
  --text-muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.18);
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --violet: #8b5cf6;
  --orange: #f59e0b;
  --shadow: 0 24px 80px rgba(2, 6, 23, 0.45);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.14), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.12), transparent 32%),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

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

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

img.image-missing {
  opacity: 0;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 23, 42, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 38px rgba(2, 6, 23, 0.3);
}

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

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #00111f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.28);
}

.brand-text,
.footer-brand {
  font-size: 22px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex: 1;
}

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

.nav-link {
  padding: 9px 12px;
  border-radius: 999px;
  color: #cbd5e1;
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: white;
  background: rgba(34, 211, 238, 0.12);
  transform: translateY(-1px);
}

.nav-link-soft {
  color: #8be9f6;
}

.nav-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 300px;
}

.nav-search input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  border: 1px solid var(--line);
  color: white;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  outline: none;
  padding: 11px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.nav-search button,
.button,
.play-overlay {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.nav-search button {
  padding: 10px 16px;
  color: #00111f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.86);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: white;
  border-radius: 2px;
}

.hero-slider,
.page-hero,
.detail-hero {
  width: min(1280px, calc(100% - 32px));
  margin: 26px auto 0;
}

.hero-slider {
  position: relative;
  min-height: 640px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0f172a;
}

.hero-stage,
.hero-slide {
  min-height: 640px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.55fr);
  gap: 30px;
  align-items: center;
  padding: clamp(28px, 5vw, 72px);
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.hero-bg,
.detail-backdrop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(12px) saturate(1.2);
  transform: scale(1.08);
  opacity: 0.42;
}

.hero-shade,
.detail-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.76) 52%, rgba(15, 23, 42, 0.25) 100%),
    radial-gradient(circle at 72% 25%, rgba(34, 211, 238, 0.22), transparent 34%);
}

.hero-content,
.hero-poster,
.detail-layout {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.hero-content h1,
.hero-content h2,
.page-hero h1,
.detail-info h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-content p,
.page-hero p,
.detail-one-line {
  max-width: 720px;
  margin: 22px 0 0;
  color: #cbd5e1;
  font-size: clamp(16px, 2vw, 20px);
}

.hero-tags,
.detail-meta,
.rank-meta,
.movie-meta-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

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

.hero-tags span,
.detail-meta span,
.movie-meta-line span,
.detail-tags span {
  border: 1px solid rgba(34, 211, 238, 0.28);
  color: #dbeafe;
  background: rgba(8, 145, 178, 0.15);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 13px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary {
  color: #00111f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 36px rgba(34, 211, 238, 0.26);
}

.button-ghost {
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.62);
}

.hero-poster {
  justify-self: end;
  width: min(360px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 30px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 32px 70px rgba(2, 6, 23, 0.48);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.hero-poster span {
  display: block;
  padding: 16px;
  text-align: center;
  color: var(--cyan);
  font-weight: 900;
}

.hero-dots {
  position: absolute;
  z-index: 5;
  left: clamp(28px, 5vw, 72px);
  bottom: 34px;
  display: flex;
  gap: 10px;
}

.hero-dot {
  width: 42px;
  height: 6px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.hero-dot.is-active {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

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

.section-tight {
  padding-top: 42px;
}

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

.section-head h2,
.content-panel h2,
.site-footer h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.1;
}

.section-head p {
  margin: 10px 0 0;
  max-width: 740px;
  color: var(--text-muted);
}

.section-link {
  color: var(--cyan);
  font-weight: 800;
}

.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.chip:hover {
  color: white;
  border-color: rgba(34, 211, 238, 0.55);
  transform: translateY(-2px);
}

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

.movie-grid-compact {
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 18px 52px rgba(2, 6, 23, 0.2);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(34, 211, 238, 0.46);
  box-shadow: 0 26px 68px rgba(2, 6, 23, 0.38);
}

.poster {
  position: relative;
  display: block;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(59, 130, 246, 0.1));
}

.poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  transition: transform 0.35s ease, opacity 0.2s ease;
}

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

.poster-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.86) 100%);
}

.poster-year,
.poster-play {
  position: absolute;
  z-index: 2;
}

.poster-year {
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: white;
  background: rgba(2, 6, 23, 0.72);
  font-size: 12px;
  font-weight: 800;
}

.poster-play {
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #00111f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 28px rgba(34, 211, 238, 0.28);
}

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

.movie-meta-line {
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
}

.movie-meta-line span {
  padding: 4px 8px;
  font-size: 12px;
}

.movie-card h3 {
  margin: 0 0 8px;
  min-height: 52px;
  font-size: 17px;
  line-height: 1.45;
}

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

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

.movie-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #94a3b8;
  font-size: 12px;
}

.movie-card-foot a {
  color: var(--cyan);
  white-space: nowrap;
}

.category-grid,
.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.category-card,
.category-overview-card,
.content-panel,
.filter-panel,
.rank-row {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.76);
  box-shadow: 0 18px 55px rgba(2, 6, 23, 0.2);
}

.category-card a,
.category-overview-card a {
  display: block;
  height: 100%;
  padding: 22px;
}

.category-card h3,
.category-overview-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-card p,
.category-overview-card p {
  margin: 0;
  color: var(--text-muted);
}

.category-count {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--cyan);
  font-weight: 900;
}

.category-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.category-mini-links a {
  padding: 6px 10px;
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(14, 165, 233, 0.1);
  font-size: 12px;
}

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

.category-overview-top span {
  color: var(--cyan);
  font-weight: 900;
}

.category-overview-top strong {
  font-size: 24px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: clamp(32px, 6vw, 72px);
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.15), transparent 34%),
    linear-gradient(110deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.82));
  box-shadow: var(--shadow);
}

.compact-hero h1 {
  font-size: clamp(38px, 6vw, 72px);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 26px;
  padding: 18px;
}

.filter-panel label span {
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.filter-selects {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-selects label {
  min-width: 150px;
}

.filter-result {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 10px 16px;
  border-radius: 18px;
  color: var(--cyan);
  background: rgba(8, 145, 178, 0.12);
}

.detail-hero {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.detail-backdrop {
  position: absolute;
  inset: 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  padding: clamp(28px, 5vw, 72px);
}

.detail-poster {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(2, 6, 23, 0.5);
}

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

.detail-poster span {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #00111f;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  color: #bae6fd;
  font-size: 14px;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.video-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: black;
  box-shadow: var(--shadow);
}

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

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: white;
  background: radial-gradient(circle, rgba(2, 6, 23, 0.18) 0%, rgba(2, 6, 23, 0.42) 65%);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.play-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  padding-left: 6px;
  border-radius: 50%;
  color: #00111f;
  font-size: 36px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 50px rgba(34, 211, 238, 0.38);
}

.play-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-text {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.content-panel {
  padding: 26px;
}

.content-panel h2 {
  margin-bottom: 16px;
  font-size: 28px;
}

.content-panel p {
  margin: 0;
  color: #cbd5e1;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 88px 62px minmax(0, 1fr) 110px;
  gap: 18px;
  align-items: center;
  padding: 14px;
}

.rank-cover {
  overflow: hidden;
  border-radius: 16px;
  background: rgba(34, 211, 238, 0.08);
}

.rank-cover img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.rank-number {
  color: var(--cyan);
  font-size: 28px;
  font-weight: 900;
  text-align: center;
}

.rank-info h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.rank-info p {
  margin: 0 0 10px;
  color: var(--text-muted);
}

.rank-meta span {
  color: #cbd5e1;
  font-size: 13px;
}

.rank-score {
  text-align: center;
}

.rank-score strong {
  display: block;
  color: var(--orange);
  font-size: 30px;
  line-height: 1;
}

.rank-score span {
  color: var(--text-muted);
  font-size: 12px;
}

.site-footer {
  width: min(1280px, calc(100% - 32px));
  margin: 74px auto 0;
  padding: 34px 0 28px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
}

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

.site-footer h2 {
  margin-bottom: 12px;
  color: white;
  font-size: 18px;
}

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

.footer-links-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 14px;
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-panel {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 78px;
    display: none;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow);
  }

  .nav-panel.is-open {
    display: grid;
  }

  .nav-links,
  .nav-search {
    width: 100%;
  }

  .nav-search {
    min-width: 0;
  }

  .hero-slide {
    grid-template-columns: 1fr;
  }

  .hero-poster {
    display: none;
  }

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

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

  .detail-poster {
    width: min(320px, 100%);
  }

  .detail-text,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .navbar,
  .section,
  .hero-slider,
  .page-hero,
  .detail-hero,
  .site-footer {
    width: min(100% - 20px, 1280px);
  }

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

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

  .hero-slide,
  .detail-layout {
    padding: 24px;
  }

  .hero-content h1,
  .hero-content h2,
  .detail-info h1 {
    font-size: 42px;
  }

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

  .movie-grid,
  .movie-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

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

  .movie-card h3 {
    min-height: 44px;
    font-size: 15px;
  }

  .movie-card p {
    font-size: 13px;
  }

  .rank-row {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .rank-cover,
  .rank-score {
    display: none;
  }

  .rank-number {
    font-size: 24px;
  }

  .footer-links-wide {
    grid-template-columns: 1fr;
  }
}
