:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0e1a2c;
  --panel: rgba(15, 23, 42, 0.82);
  --panel-strong: #111c30;
  --text: #f8fafc;
  --muted: #aab6ca;
  --line: rgba(148, 163, 184, 0.22);
  --cyan: #22d3ee;
  --blue: #3b82f6;
  --gold: #f59e0b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% 12%, rgba(34, 211, 238, 0.18), transparent 34rem),
    radial-gradient(circle at 86% 10%, rgba(59, 130, 246, 0.24), transparent 28rem),
    linear-gradient(180deg, #08111f 0%, #101827 48%, #08111f 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 17, 31, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

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

.brand strong {
  display: block;
  font-size: 21px;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #60a5fa, #67e8f9);
  -webkit-background-clip: text;
  color: transparent;
}

.brand em {
  display: block;
  margin-top: -3px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #dbeafe;
  font-size: 15px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.main-nav a:hover {
  color: var(--cyan);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 12px;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: #000;
}

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

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

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.62) 44%, rgba(2, 6, 23, 0.16)),
    linear-gradient(0deg, rgba(7, 17, 31, 1) 0%, transparent 45%);
}

.hero-content {
  position: absolute;
  inset: 0;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.14);
  color: #a5f3fc;
  border: 1px solid rgba(34, 211, 238, 0.32);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.hero-content h1 {
  max-width: 760px;
  margin: 18px 0 14px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-content p {
  max-width: 720px;
  margin: 0 0 24px;
  color: #dbeafe;
  font-size: clamp(18px, 2vw, 24px);
}

.hero-meta,
.meta-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
}

.hero-meta span,
.meta-row span,
.detail-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
}

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

.primary-btn,
.ghost-btn,
.more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.ghost-btn,
.more-link {
  color: #dff7ff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.primary-btn:hover,
.ghost-btn:hover,
.more-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(34, 211, 238, 0.18);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: white;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(12px);
  font-size: 36px;
  line-height: 1;
}

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

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

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

.hero-dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.46);
  transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
  width: 36px;
  background: white;
}

.search-band,
.rank-panel {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.search-band h2,
.section-head h2,
.page-title h1,
.rank-copy h2,
.detail-card h1 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.search-band p,
.section-head p,
.page-title p,
.rank-copy p,
.footer-inner p,
.category-card p,
.movie-card p,
.detail-card p {
  color: var(--muted);
}

.search-box {
  min-width: min(420px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 999px;
  padding: 8px 12px 8px 18px;
  background: rgba(2, 6, 23, 0.45);
}

.search-box span {
  color: #a5f3fc;
  font-size: 13px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.section-block,
.page-main,
.category-sections,
.categories-strip {
  padding: 58px 0;
}

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

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4.15;
  overflow: hidden;
  background: #111827;
}

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

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

.poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.7), transparent 52%);
}

.poster b {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.9);
  color: #082f49;
  font-size: 12px;
}

.play-badge {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  background: rgba(255, 255, 255, 0.18);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  backdrop-filter: blur(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

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

.card-body p {
  min-height: 52px;
  margin: 0 0 14px;
  font-size: 14px;
}

.meta-row {
  gap: 6px;
  font-size: 12px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-row span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  color: #bfdbfe;
  font-size: 12px;
}

.rank-panel {
  align-items: stretch;
  margin-top: 22px;
  background:
    linear-gradient(135deg, rgba(14, 165, 233, 0.16), transparent 52%),
    rgba(15, 23, 42, 0.78);
}

.rank-copy {
  flex: 0 0 300px;
  padding: 12px 6px;
}

.rank-copy h2 {
  margin-top: 14px;
  font-size: clamp(30px, 4vw, 48px);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 42px 58px 1fr;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.35);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-item:hover {
  border-color: rgba(34, 211, 238, 0.42);
  transform: translateX(3px);
}

.rank-no {
  color: var(--gold);
  font-weight: 800;
  font-size: 20px;
}

.rank-item img {
  width: 58px;
  height: 78px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-item strong,
.rank-item em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-item em {
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

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

.category-tile,
.category-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.72);
  padding: 20px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

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

.category-tile strong,
.category-card h2 {
  display: block;
  margin: 0 0 8px;
  font-size: 22px;
}

.category-tile span,
.category-card span {
  color: #67e8f9;
}

.category-tile p,
.category-card p {
  margin: 10px 0 0;
  font-size: 14px;
}

.category-preview {
  margin-bottom: 54px;
}

.page-title {
  margin-bottom: 34px;
}

.page-title h1 {
  margin-top: 12px;
  font-size: clamp(36px, 5vw, 58px);
}

.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--muted);
}

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

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -10px 0 24px;
}

.filter-row button {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 14px;
}

.filter-row button.active,
.filter-row button:hover {
  border-color: rgba(34, 211, 238, 0.5);
  color: #a5f3fc;
}

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

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

.mini-links a {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  font-size: 13px;
}

.full-rank {
  margin-top: 30px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 26px;
}

.detail-primary,
.detail-side {
  min-width: 0;
}

.player-shell {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(34, 211, 238, 0.26);
  border-radius: 24px;
  background: #000;
  box-shadow: var(--shadow);
}

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

.player-start {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  color: white;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.35), rgba(2, 6, 23, 0.68));
}

.player-start span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 16px 44px rgba(34, 211, 238, 0.25);
  font-size: 34px;
}

.player-shell.playing .player-start {
  display: none;
}

.detail-card,
.side-box {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.78);
  padding: 24px;
}

.detail-card h1 {
  font-size: clamp(32px, 4vw, 48px);
}

.detail-meta {
  margin: 14px 0 14px;
}

.detail-tags {
  margin-bottom: 22px;
}

.detail-card h2,
.side-box h2 {
  margin: 22px 0 10px;
  font-size: 24px;
}

.detail-card p {
  margin: 0 0 12px;
  font-size: 17px;
}

.detail-poster {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

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

.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.6);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 28px;
}

.footer-logo {
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  color: #cbd5e1;
}

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

[data-card].hidden {
  display: none;
}

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

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

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

  .detail-side {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    align-items: start;
  }
}

@media (max-width: 780px) {
  .nav-wrap {
    height: auto;
    min-height: 68px;
    flex-wrap: wrap;
    padding: 12px 0;
  }

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

  .main-nav {
    width: 100%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 0 6px;
  }

  .main-nav.open {
    display: flex;
  }

  .hero {
    min-height: 620px;
  }

  .hero-content {
    justify-content: flex-end;
    padding-bottom: 88px;
  }

  .hero-arrow {
    display: none;
  }

  .search-band,
  .rank-panel,
  .section-head,
  .split-title,
  .footer-inner {
    flex-direction: column;
    display: flex;
    align-items: stretch;
  }

  .rank-copy {
    flex: auto;
  }

  .rank-list,
  .movie-grid,
  .compact-grid,
  .page-grid,
  .category-grid,
  .large-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-links {
    justify-content: flex-start;
  }

  .detail-side {
    display: block;
  }
}

@media (max-width: 520px) {
  .movie-grid,
  .compact-grid,
  .page-grid,
  .category-grid,
  .large-category-grid,
  .rank-list {
    grid-template-columns: 1fr;
  }

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

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

  .hero-actions {
    width: 100%;
  }

  .primary-btn,
  .ghost-btn,
  .more-link {
    width: 100%;
  }
}
