:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-solid: #0f172a;
  --panel-soft: rgba(30, 41, 59, 0.72);
  --line: rgba(148, 163, 184, 0.20);
  --text: #f8fafc;
  --muted: #cbd5e1;
  --weak: #94a3b8;
  --cyan: #22d3ee;
  --blue: #2563eb;
  --pink: #ec4899;
  --amber: #f59e0b;
  --shadow: 0 24px 70px rgba(2, 6, 23, 0.42);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  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.16), transparent 32rem),
    radial-gradient(circle at 80% 8%, rgba(37, 99, 235, 0.20), transparent 28rem),
    linear-gradient(180deg, #020617 0%, #07111f 46%, #020617 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 48px rgba(2, 6, 23, 0.36);
}

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

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  color: #fff;
}

.logo-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 14px 34px rgba(34, 211, 238, 0.24);
}

.logo-text {
  background: linear-gradient(90deg, #67e8f9, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.site-nav a,
.mobile-menu a {
  color: #dbeafe;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.mobile-menu a:hover,
.site-nav a.active,
.mobile-menu a.active {
  color: white;
  background: rgba(34, 211, 238, 0.13);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  color: white;
  background: rgba(15, 23, 42, 0.72);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  border-radius: 99px;
}

.mobile-menu {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.95);
}

.mobile-menu.is-open {
  display: grid;
  gap: 6px;
}

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

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: scale(1.02);
  transition: opacity 0.75s ease, transform 1.05s ease;
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) brightness(0.62);
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.95) 0%, rgba(2, 6, 23, 0.68) 43%, rgba(2, 6, 23, 0.22) 100%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.22), rgba(2, 6, 23, 0.96));
}

.hero-content {
  position: relative;
  z-index: 5;
  display: grid;
  align-content: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 720px;
  margin: 0 auto;
  padding: 96px 0 92px;
}

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

.eyebrow,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 999px;
  background: rgba(8, 47, 73, 0.50);
  color: #a5f3fc;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 6px 12px;
}

.hero h1,
.hero h2,
.page-hero h1,
.detail-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(2.35rem, 6vw, 5.4rem);
  line-height: 1.03;
  letter-spacing: -0.065em;
}

.hero-desc,
.page-hero p,
.detail-lead {
  max-width: 740px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.24rem);
}

.hero-tags,
.tag-list,
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.hero-tags {
  margin: 28px 0;
}

.tag,
.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.72);
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 750;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  color: white;
  box-shadow: 0 20px 46px rgba(37, 99, 235, 0.26);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 22px 56px rgba(34, 211, 238, 0.32);
}

.btn-ghost {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
}

.btn-ghost:hover {
  border-color: rgba(34, 211, 238, 0.48);
  background: rgba(8, 47, 73, 0.54);
  transform: translateY(-2px);
}

.hero-dots {
  position: absolute;
  z-index: 8;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 42px;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.64);
  cursor: pointer;
  transition: width 0.24s ease, background 0.24s ease;
}

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

main {
  position: relative;
}

.section {
  padding: 70px 0;
}

.section-head {
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--weak);
}

.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 {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.92));
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.25);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(34, 211, 238, 0.40);
  box-shadow: 0 24px 70px rgba(8, 145, 178, 0.17);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.64);
}

.poster-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.movie-card:hover .poster-link img {
  transform: scale(1.055);
  filter: saturate(1.12);
}

.card-score {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.82);
  color: #fde68a;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.34);
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  color: white;
  font-size: 1.06rem;
  line-height: 1.35;
}

.card-title a:hover {
  color: #67e8f9;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--weak);
  font-size: 0.85rem;
}

.card-desc {
  display: -webkit-box;
  min-height: 4.7em;
  margin: 0 0 14px;
  overflow: hidden;
  color: #cbd5e1;
  font-size: 0.91rem;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.card-link {
  display: inline-flex;
  align-items: center;
  color: #67e8f9;
  font-weight: 900;
}

.card-link:hover {
  color: white;
}

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

.category-card {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(8, 47, 73, 0.88), rgba(30, 41, 59, 0.85));
  box-shadow: var(--shadow);
}

.category-card::before {
  position: absolute;
  inset: -30% -10% auto auto;
  width: 220px;
  height: 220px;
  content: "";
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.18);
  filter: blur(4px);
}

.category-card-inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  padding: 28px;
}

.category-card h2,
.category-card h3 {
  margin: 0;
  font-size: 1.55rem;
}

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

.mini-list {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mini-list a {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.44);
  color: #e0f2fe;
}

.mini-list a:hover {
  background: rgba(34, 211, 238, 0.14);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 68px 86px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
}

.rank-index {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(37, 99, 235, 0.22));
  color: #a5f3fc;
  font-weight: 950;
}

.rank-thumb {
  width: 86px;
  height: 116px;
  overflow: hidden;
  border-radius: 14px;
  background: rgba(30, 41, 59, 0.64);
}

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

.rank-info h3 {
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.rank-info p {
  margin: 0;
  color: var(--weak);
}

.rank-score {
  color: #fde68a;
  font-size: 1.35rem;
  font-weight: 950;
}

.page-hero {
  padding: 76px 0 36px;
}

.page-hero-panel {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(8, 47, 73, 0.78), rgba(15, 23, 42, 0.88)),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.26), transparent 28rem);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 58px);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  color: #a5f3fc;
  font-size: 0.92rem;
  font-weight: 750;
}

.breadcrumb a:hover {
  color: white;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1fr 160px 160px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
}

.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 16px;
  outline: 0;
  background: rgba(2, 6, 23, 0.64);
  color: white;
  padding: 0 14px;
}

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

.detail-hero {
  padding: 54px 0 26px;
}

.watch-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(320px, 0.72fr);
  gap: 28px;
  align-items: stretch;
}

.player-frame {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 30px;
  background: black;
  box-shadow: var(--shadow);
}

.player-frame video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  background: black;
  cursor: pointer;
}

.play-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.66));
  color: white;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-icon {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 22px 60px rgba(37, 99, 235, 0.34);
  font-size: 2.05rem;
  transform: translateZ(0);
  transition: transform 0.25s ease;
}

.play-overlay:hover .play-icon {
  transform: scale(1.08);
}

.detail-copy {
  display: grid;
  align-content: center;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(8, 47, 73, 0.64));
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  font-size: clamp(2rem, 4vw, 3.9rem);
}

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

.article-panel,
.side-panel {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 20px 54px rgba(2, 6, 23, 0.25);
  padding: clamp(22px, 4vw, 34px);
}

.article-panel h2,
.side-panel h2 {
  margin: 0 0 12px;
}

.article-panel p,
.side-panel p {
  color: var(--muted);
}

.info-list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted);
}

.info-list strong {
  color: white;
}

.site-footer {
  margin-top: 72px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(2, 6, 23, 0.72);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 32px 0;
  color: var(--weak);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

.empty-state {
  display: none;
  padding: 28px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--muted);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

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

  .watch-shell,
  .detail-content {
    grid-template-columns: 1fr;
  }
}

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

  .nav-toggle {
    display: inline-block;
  }

  .hero,
  .hero-content {
    min-height: 650px;
  }

  .hero-dots {
    right: 24px;
    bottom: 26px;
  }

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

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

  .rank-row {
    grid-template-columns: 44px 72px 1fr;
  }

  .rank-score {
    grid-column: 3;
    justify-self: start;
    font-size: 1rem;
  }

  .rank-thumb {
    width: 72px;
    height: 98px;
  }
}

@media (max-width: 560px) {
  .nav-wrap,
  .container,
  .hero-content,
  .mobile-menu {
    width: min(100% - 22px, 1180px);
  }

  .logo {
    font-size: 1.08rem;
  }

  .logo-mark {
    width: 34px;
    height: 34px;
  }

  .hero,
  .hero-content {
    min-height: 590px;
  }

  .hero h1,
  .hero h2,
  .page-hero h1 {
    letter-spacing: -0.045em;
  }

  .section {
    padding: 48px 0;
  }

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

  .card-desc {
    min-height: auto;
  }

  .player-frame,
  .player-frame video {
    min-height: 235px;
    border-radius: 22px;
  }

  .play-icon {
    width: 70px;
    height: 70px;
  }

  .footer-inner {
    display: grid;
  }
}
