:root {
  color-scheme: dark;
  --bg: #030712;
  --panel: rgba(17, 24, 39, 0.82);
  --panel-strong: #111827;
  --line: rgba(148, 163, 184, 0.18);
  --muted: #9ca3af;
  --text: #ffffff;
  --blue: #60a5fa;
  --cyan: #22d3ee;
  --green: #34d399;
  --orange: #fb923c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.22), transparent 34rem),
    radial-gradient(circle at 80% 12%, rgba(34, 211, 238, 0.18), transparent 30rem),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(3, 7, 18, 0.94);
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.header-inner,
.mobile-nav,
.footer-grid,
.footer-bottom,
.section,
.hero-inner,
.detail-shell,
.page-hero,
.archive-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(1.08rem, 1vw + 0.9rem, 1.55rem);
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(34, 211, 238, 0.18));
  color: #93c5fd;
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.18);
  font-size: 0.82rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link,
.mobile-link {
  color: #d1d5db;
  font-weight: 650;
  font-size: 0.96rem;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
  color: #60a5fa;
}

.mobile-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.64);
  color: #fff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 18px;
  height: 2px;
  background: #dbeafe;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 0 0 18px;
  flex-direction: column;
  gap: 8px;
}

.mobile-link {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.62);
}

.hero {
  position: relative;
  min-height: 92vh;
  padding: 132px 0 64px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.95), rgba(3, 7, 18, 0.72) 48%, rgba(3, 7, 18, 0.32)),
    var(--hero-image, linear-gradient(135deg, #111827, #172554));
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  transition: background 0.5s ease;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  background: linear-gradient(180deg, transparent, var(--bg));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 52px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 13px;
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.28);
  font-weight: 700;
  font-size: 0.92rem;
}

.hero h1,
.page-hero h1,
.detail-title {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.07em;
  font-weight: 900;
}

.gradient-text {
  background: linear-gradient(90deg, #fff, #93c5fd 45%, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-desc,
.page-hero p,
.detail-lead {
  margin: 22px 0 0;
  max-width: 740px;
  color: #cbd5e1;
  font-size: clamp(1.02rem, 1vw + 0.8rem, 1.32rem);
  line-height: 1.85;
}

.hero-actions,
.section-actions,
.detail-actions,
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.76);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.45);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.btn-primary {
  border: 0;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
}

.btn-soft {
  color: #dbeafe;
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(96, 165, 250, 0.24);
}

.hero-panel {
  border-radius: 30px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(15, 23, 42, 0.52));
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-poster {
  position: relative;
  min-height: 470px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(29, 78, 216, 0.65), rgba(8, 145, 178, 0.38)),
    var(--hero-image, linear-gradient(135deg, #111827, #172554));
  background-size: cover;
  background-position: center;
}

.hero-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(3, 7, 18, 0.92));
}

.hero-poster-content {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 24px;
}

.hero-poster-content h2 {
  margin: 12px 0 8px;
  font-size: clamp(1.7rem, 2vw, 2.45rem);
  line-height: 1.1;
}

.hero-poster-content p {
  color: #d1d5db;
  line-height: 1.75;
  margin: 0;
}

.hero-slides {
  position: relative;
  min-height: 260px;
}

.hero-slide {
  display: none;
}

.hero-slide.active {
  display: block;
  animation: fadeUp 0.55s ease both;
}

.hero-dots {
  display: flex;
  gap: 9px;
  margin-top: 24px;
}

.hero-dot {
  width: 34px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
  padding: 0;
}

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

.section,
.archive-shell {
  padding: 44px 0;
}

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

.section-kicker {
  margin: 0 0 8px;
  color: #60a5fa;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.section h2,
.archive-shell h2,
.detail-section h2,
.category-card h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.4vw, 2.45rem);
  letter-spacing: -0.04em;
  line-height: 1.12;
}

.section-intro {
  margin: 10px 0 0;
  color: #9ca3af;
  line-height: 1.8;
  max-width: 760px;
}

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

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

.movie-card,
.category-card,
.rank-card,
.detail-card,
.info-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.86), rgba(17, 24, 39, 0.55));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

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

.movie-card:hover {
  transform: translateY(-7px);
  border-color: rgba(96, 165, 250, 0.38);
  box-shadow: 0 26px 70px rgba(37, 99, 235, 0.18);
}

.poster-link,
.poster-shell {
  display: block;
}

.poster-shell {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    radial-gradient(circle at 30% 20%, rgba(96, 165, 250, 0.45), transparent 35%),
    linear-gradient(145deg, #0f172a, #172554 54%, #083344);
}

.poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.36s ease, opacity 0.36s ease;
}

.poster-glow {
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(3, 7, 18, 0.7));
}

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

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

.movie-meta,
.detail-meta,
.rank-meta {
  margin: 0 0 9px;
  color: #93c5fd;
  font-size: 0.84rem;
  font-weight: 800;
}

.movie-card h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.35;
}

.movie-card h3 a:hover {
  color: #60a5fa;
}

.movie-line {
  min-height: 56px;
  margin: 10px 0 0;
  color: #aeb8c8;
  font-size: 0.92rem;
  line-height: 1.65;
}

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

.tag,
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.14);
  color: #bfdbfe;
  border: 1px solid rgba(96, 165, 250, 0.18);
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-green {
  background: rgba(16, 185, 129, 0.14);
  color: #bbf7d0;
  border-color: rgba(52, 211, 153, 0.22);
}

.badge-orange {
  background: rgba(249, 115, 22, 0.14);
  color: #fed7aa;
  border-color: rgba(251, 146, 60, 0.22);
}

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

.category-card {
  padding: 24px;
  min-height: 180px;
}

.category-card p {
  color: #aeb8c8;
  line-height: 1.75;
  margin: 12px 0 0;
}

.category-card .btn {
  margin-top: 18px;
}

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

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

.rank-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  font-weight: 900;
}

.rank-thumb {
  width: 88px;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(145deg, #111827, #172554);
}

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

.rank-card h3 {
  margin: 0;
  font-size: 1.04rem;
}

.rank-card p {
  margin: 8px 0 0;
  color: #aeb8c8;
  line-height: 1.6;
  font-size: 0.92rem;
}

.page-hero {
  padding: 138px 0 42px;
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px 190px;
  gap: 14px;
  margin: 20px 0 26px;
}

.filter-input,
.filter-select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  padding: 14px 15px;
  outline: none;
}

.filter-input:focus,
.filter-select:focus {
  border-color: rgba(96, 165, 250, 0.56);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
}

.pagination a,
.pagination span {
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.72);
  color: #dbeafe;
  font-weight: 800;
}

.pagination span {
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  color: #fff;
  border: 0;
}

.detail-shell {
  padding: 126px 0 54px;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.detail-poster {
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(145deg, #0f172a, #172554 54%, #083344);
  box-shadow: var(--shadow);
}

.detail-title {
  font-size: clamp(2.2rem, 4.5vw, 4.4rem);
}

.detail-lead {
  font-size: 1.1rem;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.detail-meta-grid div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.detail-meta-grid strong {
  display: block;
  color: #60a5fa;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.player-panel {
  margin-top: 34px;
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(96, 165, 250, 0.24);
  box-shadow: var(--shadow);
}

.player-panel video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.play-overlay {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 92px;
  height: 92px;
  border-radius: 999px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 24px 60px rgba(37, 99, 235, 0.36);
  font-size: 0;
}

.play-overlay::before {
  content: "";
  position: absolute;
  left: 36px;
  top: 28px;
  border-left: 28px solid #fff;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
}

.player-panel.is-playing .play-overlay {
  opacity: 0;
  pointer-events: none;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  margin-top: 34px;
}

.detail-card {
  padding: 24px;
}

.detail-section + .detail-section {
  margin-top: 26px;
}

.detail-section p {
  color: #cbd5e1;
  line-height: 1.95;
  margin: 14px 0 0;
}

.side-list {
  display: grid;
  gap: 12px;
}

.mini-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.mini-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(145deg, #111827, #172554);
}

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

.mini-body strong,
.mini-body em {
  display: block;
}

.mini-body strong {
  line-height: 1.35;
}

.mini-body em {
  margin-top: 6px;
  color: #93c5fd;
  font-size: 0.82rem;
  font-style: normal;
}

.info-panel {
  padding: 22px;
}

.site-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(17, 24, 39, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(170px, 0.5fr) minmax(170px, 0.5fr);
  gap: 28px;
  padding: 42px 0 26px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  color: #9ca3af;
  line-height: 1.75;
}

.footer-grid h3 {
  margin: 0 0 12px;
}

.footer-grid a {
  display: block;
  margin: 7px 0;
}

.footer-grid a:hover {
  color: #60a5fa;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0 28px;
  font-size: 0.88rem;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .hero-panel {
    max-width: 560px;
  }

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

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

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

  .mobile-toggle {
    display: inline-flex;
  }

  .site-header.menu-open .mobile-nav {
    display: flex;
  }

  .hero {
    padding-top: 112px;
  }

  .hero-inner,
  .section-head,
  .footer-bottom {
    display: block;
  }

  .hero-panel {
    margin-top: 34px;
  }

  .hero-poster {
    min-height: 380px;
  }

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

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

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

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

@media (max-width: 480px) {
  .header-inner,
  .mobile-nav,
  .footer-grid,
  .footer-bottom,
  .section,
  .hero-inner,
  .detail-shell,
  .page-hero,
  .archive-shell {
    width: min(100% - 22px, 1180px);
  }

  .hero h1,
  .page-hero h1,
  .detail-title {
    letter-spacing: -0.05em;
  }

  .movie-card-body,
  .detail-card,
  .info-panel {
    padding: 18px;
  }
}
