:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-panel: #111827;
  --card: rgba(15, 23, 42, 0.72);
  --card-strong: rgba(15, 23, 42, 0.94);
  --line: rgba(148, 163, 184, 0.16);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-dark: #0891b2;
  --green: #22c55e;
  --orange: #fb923c;
  --blue: #60a5fa;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

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

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

button,
input,
select {
  font: inherit;
}

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

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

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

.brand,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, rgba(34, 211, 238, 0.95), rgba(8, 145, 178, 0.85));
  box-shadow: 0 0 40px rgba(34, 211, 238, 0.25);
  color: white;
  font-size: 18px;
  padding-left: 2px;
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 22px;
  line-height: 1.1;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: rgba(103, 232, 249, 0.78);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #cbd5e1;
  font-weight: 600;
}

.main-nav a,
.mobile-nav a {
  transition: color 0.2s ease, transform 0.2s ease;
}

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

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

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  border-radius: 999px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  padding: 10px 16px 18px;
  background: rgba(2, 6, 23, 0.96);
}

.mobile-nav.open {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mobile-nav a {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.78);
  color: var(--soft);
}

.hero {
  position: relative;
  height: 70vh;
  min-height: 560px;
  overflow: hidden;
  background: var(--bg);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-bg::after,
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
}

.hero-bg::after {
  background: linear-gradient(to top, #020617 0%, rgba(2, 6, 23, 0.82) 36%, rgba(2, 6, 23, 0.28) 100%);
}

.hero-bg::before {
  background: linear-gradient(to right, rgba(2, 6, 23, 0.88), rgba(2, 6, 23, 0.3), rgba(2, 6, 23, 0.58));
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(720px, calc(100% - 32px));
  margin-left: max(16px, calc((100vw - 1180px) / 2));
  padding-top: 30vh;
}

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

.hero-tags a,
.hero-tags span,
.meta-chip,
.tag-row span,
.chip-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: var(--soft);
  backdrop-filter: blur(8px);
  font-size: 13px;
}

.hero-tags a,
.meta-chip.cyan {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.12);
  border-color: rgba(34, 211, 238, 0.28);
}

.hero h1 {
  margin: 24px 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-shadow: 0 14px 50px rgba(0, 0, 0, 0.45);
}

.hero p {
  max-width: 650px;
  margin: 0;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 12px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
}

.btn.primary {
  background: var(--cyan-dark);
  box-shadow: 0 12px 32px rgba(34, 211, 238, 0.32);
}

.btn.primary:hover {
  background: #06b6d4;
}

.btn.secondary {
  background: rgba(15, 23, 42, 0.78);
  border-color: rgba(148, 163, 184, 0.2);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.64);
  color: white;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.hero-arrow.prev {
  left: 22px;
}

.hero-arrow.next {
  right: 22px;
}

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

.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section {
  padding: 72px 0;
}

.section.dark {
  background: linear-gradient(180deg, #020617, #0f172a);
}

.section.slate {
  background: #0f172a;
}

.section.gradient {
  background: linear-gradient(180deg, #0f172a, #020617);
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading.split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2,
.page-hero h1,
.detail-card h1 {
  margin: 8px 0 0;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.eyebrow {
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 900;
}

.eyebrow.orange {
  color: var(--orange);
}

.eyebrow.green {
  color: var(--green);
}

.eyebrow.blue {
  color: var(--blue);
}

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

.search-box input,
.filter-panel input,
.filter-panel select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  outline: none;
  padding: 0 16px;
}

.search-box {
  width: min(320px, 100%);
}

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

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

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

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

.movie-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.56);
  border: 1px solid rgba(148, 163, 184, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(34, 211, 238, 0.26);
  box-shadow: 0 24px 55px rgba(8, 145, 178, 0.14);
}

.poster-link {
  display: block;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0f172a;
}

.movie-card.compact .poster-frame {
  aspect-ratio: 2 / 3;
}

.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

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

.poster-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  padding-left: 4px;
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.movie-card:hover .poster-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.poster-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.74);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.movie-info {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: grid;
  gap: 5px;
}

.movie-info strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
}

.movie-info span,
.movie-card p,
.mini-card small,
.rank-row small,
.rank-page-row small {
  color: var(--muted);
}

.movie-card p {
  min-height: 56px;
  margin: 0;
  padding: 14px 16px 18px;
  line-height: 1.65;
  font-size: 14px;
}

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

.category-tile,
.category-card {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: var(--shadow);
}

.category-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.36;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile:hover img {
  transform: scale(1.08);
  opacity: 0.48;
}

.category-tile span {
  position: absolute;
  inset: auto 18px 18px 18px;
  display: grid;
  gap: 8px;
}

.category-tile strong,
.category-card h2 {
  font-size: 22px;
}

.category-tile small,
.category-card p {
  color: var(--soft);
  line-height: 1.6;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 34px;
  align-items: start;
}

.year-block {
  margin-bottom: 40px;
}

.year-block h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cyan);
  font-size: 24px;
}

.year-block h3 span {
  width: 4px;
  height: 28px;
  border-radius: 999px;
  background: var(--cyan);
}

.rank-panel,
.side-panel,
.detail-card,
.filter-panel {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.76);
  box-shadow: var(--shadow);
}

.rank-panel,
.side-panel,
.detail-card {
  padding: 24px;
}

.compact-heading {
  margin-bottom: 18px;
}

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

.rank-row,
.mini-card,
.rank-page-row {
  display: grid;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  background: rgba(30, 41, 59, 0.55);
  transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover,
.mini-card:hover,
.rank-page-row:hover {
  background: rgba(30, 41, 59, 0.96);
  transform: translateX(4px);
}

.rank-row {
  grid-template-columns: 42px 86px minmax(0, 1fr);
  padding: 10px;
}

.rank-row img {
  width: 86px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
}

.rank-no,
.rank-page-no {
  color: var(--cyan);
  font-weight: 900;
  font-size: 18px;
}

.rank-text,
.rank-page-text,
.mini-card span {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.rank-text strong,
.rank-page-text strong,
.mini-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.mini-card {
  grid-template-columns: 120px minmax(0, 1fr);
  min-height: 86px;
  padding: 10px;
}

.mini-card img {
  width: 120px;
  height: 74px;
  object-fit: cover;
  border-radius: 12px;
}

.page-hero {
  padding: 84px 0 54px;
  background:
    radial-gradient(circle at 15% 12%, rgba(34, 211, 238, 0.18), transparent 30%),
    linear-gradient(180deg, #020617, #0f172a);
}

.page-hero p {
  max-width: 760px;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.8;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

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

.filter-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 220px 220px;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.category-card {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 220px;
  padding: 0;
}

.category-covers {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  height: 100%;
  overflow: hidden;
}

.category-covers img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.category-body {
  padding: 26px;
}

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

.rank-page-row {
  grid-template-columns: 58px 150px minmax(0, 1fr);
  padding: 14px;
}

.rank-page-row img {
  width: 150px;
  height: 90px;
  border-radius: 14px;
  object-fit: cover;
}

.rank-page-row em {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--soft);
  font-style: normal;
  line-height: 1.6;
}

.detail-main {
  padding: 36px 0 72px;
  background: linear-gradient(180deg, #020617, #0f172a 46%, #020617);
}

.detail-breadcrumb {
  margin: 0 0 22px;
}

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

.detail-primary {
  display: grid;
  gap: 22px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 9;
}

.movie-video {
  width: 100%;
  height: 100%;
  background: #000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.62));
  color: white;
  cursor: pointer;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  padding-left: 5px;
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.92);
  box-shadow: 0 0 42px rgba(34, 211, 238, 0.42);
  font-size: 30px;
}

.detail-card h1 {
  margin-bottom: 18px;
}

.meta-row {
  margin-bottom: 14px;
}

.tag-row {
  margin-bottom: 28px;
}

.article-section {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 24px;
}

.article-section h2,
.side-panel h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.article-section p {
  color: var(--soft);
  line-height: 1.95;
  font-size: 16px;
}

.article-section .lead {
  color: #e2e8f0;
  font-size: 18px;
}

.review-box {
  border-radius: 18px;
  background: rgba(30, 41, 59, 0.62);
  padding: 20px;
}

.detail-side {
  display: grid;
  gap: 20px;
  position: sticky;
  top: 98px;
}

.side-cover {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: var(--shadow);
}

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

.side-cover div {
  display: grid;
  gap: 6px;
  padding: 18px;
}

.side-cover strong {
  font-size: 20px;
}

.side-cover span {
  color: var(--muted);
}

.side-list {
  grid-template-columns: 1fr;
}

.side-list .mini-card {
  grid-template-columns: 96px minmax(0, 1fr);
}

.side-list .mini-card img {
  width: 96px;
  height: 64px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #020617;
  padding: 46px 0 24px;
}

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

.footer-logo {
  color: white;
  font-size: 22px;
}

.site-footer p,
.footer-bottom {
  color: var(--muted);
  line-height: 1.75;
}

.site-footer h2 {
  margin: 0 0 14px;
  font-size: 17px;
}

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

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding-top: 20px;
  font-size: 14px;
}

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

  .nav-toggle {
    display: block;
  }

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

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

  .two-column,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-side {
    position: static;
  }
}

@media (max-width: 820px) {
  .hero {
    height: 78vh;
    min-height: 590px;
  }

  .hero-copy {
    padding-top: 22vh;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-arrow {
    display: none;
  }

  .section-heading.split,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .movie-grid.three,
  .movie-grid.four,
  .movie-grid.six,
  .category-grid,
  .category-overview,
  .mini-list,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .category-covers {
    min-height: 150px;
  }

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

  .rank-page-row img {
    width: 96px;
    height: 70px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

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

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .mobile-nav.open,
  .movie-grid.three,
  .movie-grid.four,
  .movie-grid.six,
  .category-grid,
  .category-overview,
  .mini-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 52px 0;
  }

  .mini-card,
  .side-list .mini-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .mini-card img,
  .side-list .mini-card img {
    width: 96px;
    height: 64px;
  }

  .detail-card,
  .side-panel,
  .rank-panel {
    padding: 18px;
  }
}
