:root {
  color-scheme: dark;
  --bg: #020617;
  --bg-soft: #0f172a;
  --bg-card: rgba(15, 23, 42, 0.72);
  --bg-card-strong: rgba(15, 23, 42, 0.92);
  --line: rgba(148, 163, 184, 0.18);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #cbd5e1;
  --cyan: #22d3ee;
  --cyan-deep: #0891b2;
  --yellow: #eab308;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(34, 211, 238, 0.14), transparent 26rem),
    radial-gradient(circle at 90% 12%, rgba(59, 130, 246, 0.16), transparent 24rem),
    linear-gradient(135deg, #020617 0%, #0f172a 44%, #020617 100%);
}

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

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

button,
input {
  font: inherit;
}

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

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

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

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

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #001118;
  font-weight: 900;
  background: linear-gradient(135deg, #67e8f9, #22d3ee 46%, #2563eb);
  box-shadow: 0 0 36px rgba(34, 211, 238, 0.34);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.brand-text strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

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

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

.nav-link {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted-2);
  font-size: 14px;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: white;
  background: rgba(15, 23, 42, 0.88);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.78);
  color: white;
  cursor: pointer;
}

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

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.96);
}

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

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted-2);
  background: rgba(2, 6, 23, 0.42);
}

.hero {
  position: relative;
  margin-bottom: 42px;
}

.hero-stage {
  position: relative;
  height: min(72vh, 720px);
  min-height: 520px;
  overflow: hidden;
  background: #020617;
}

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

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

.hero-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.94) 0%, rgba(2, 6, 23, 0.62) 45%, rgba(2, 6, 23, 0.18) 100%),
    linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.28) 52%, rgba(2, 6, 23, 0.08) 100%);
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 680px;
  padding-top: 36px;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.hero-kicker span,
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 6px 12px;
  border: 1px solid rgba(34, 211, 238, 0.32);
  border-radius: 999px;
  color: #a5f3fc;
  background: rgba(8, 145, 178, 0.18);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 74px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero p {
  max-width: 640px;
  margin: 0;
  color: var(--muted-2);
  font-size: clamp(15px, 2vw, 19px);
  line-height: 1.82;
}

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

.primary-btn,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.primary-btn {
  color: #001118;
  background: linear-gradient(135deg, #67e8f9, #22d3ee 52%, #38bdf8);
  box-shadow: 0 18px 40px rgba(34, 211, 238, 0.28);
}

.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  background: rgba(15, 23, 42, 0.58);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: white;
  background: rgba(2, 6, 23, 0.62);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-arrow:hover {
  background: rgba(8, 145, 178, 0.78);
}

.hero-prev {
  left: 22px;
}

.hero-next {
  right: 22px;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

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

.hero-thumbs {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: -62px;
}

.hero-thumb {
  min-height: 118px;
  display: grid;
  align-items: end;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

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

.hero-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.12));
}

.hero-thumb span {
  position: relative;
  z-index: 2;
  padding: 14px;
  font-weight: 800;
}

.hero-thumb:hover img {
  opacity: 1;
  transform: scale(1.06);
}

.page-section {
  padding: 34px 0;
}

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

.section-heading h2 {
  margin: 12px 0 8px;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

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

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

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

.movie-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-card);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card:hover {
  border-color: rgba(34, 211, 238, 0.44);
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-4px);
}

.poster-link {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a, #111827);
}

.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.06);
  filter: saturate(1.1);
}

.poster-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.02) 42%, rgba(2, 6, 23, 0.86) 100%);
}

.type-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.type-badge {
  right: 10px;
  padding: 5px 9px;
  color: #cffafe;
  background: rgba(8, 145, 178, 0.82);
}

.rank-badge {
  left: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #eab308);
}

.play-dot {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  color: white;
  background: rgba(2, 6, 23, 0.58);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

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

.movie-info {
  padding: 14px;
}

.movie-info h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.4;
}

.movie-info h2 a:hover {
  color: var(--cyan);
}

.movie-meta {
  margin: 7px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.movie-desc {
  display: -webkit-box;
  min-height: 42px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.movie-tags,
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.movie-tags span,
.tag-cloud span {
  padding: 5px 8px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  color: #bae6fd;
  background: rgba(15, 23, 42, 0.82);
  font-size: 11px;
}

.compact .movie-desc {
  display: none;
}

.compact .movie-info {
  padding: 12px;
}

.search-panel {
  position: sticky;
  top: 86px;
  z-index: 35;
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(18px);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.78);
}

.search-box span {
  color: var(--cyan);
  font-size: 20px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: white;
  background: transparent;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-row button {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--muted-2);
  background: rgba(15, 23, 42, 0.76);
  cursor: pointer;
}

.filter-row button.active,
.filter-row button:hover {
  color: #001118;
  border-color: transparent;
  background: var(--cyan);
}

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

.category-card {
  position: relative;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 211, 238, 0.16), transparent 14rem),
    rgba(15, 23, 42, 0.74);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

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

.category-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #001118;
  font-weight: 900;
  background: linear-gradient(135deg, #67e8f9, #2563eb);
}

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

.category-card em {
  color: var(--muted-2);
  font-style: normal;
  line-height: 1.7;
}

.category-samples {
  display: grid;
  gap: 7px;
  margin-top: auto;
}

.category-samples a {
  color: var(--muted);
  font-size: 13px;
}

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

.sub-hero {
  padding: 82px 0 54px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 22% 0%, rgba(34, 211, 238, 0.16), transparent 26rem),
    linear-gradient(135deg, rgba(15, 23, 42, 0.84), rgba(2, 6, 23, 0.94));
}

.sub-hero h1 {
  margin: 14px 0;
  font-size: clamp(38px, 6vw, 70px);
  letter-spacing: -0.06em;
}

.sub-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted-2);
  font-size: 18px;
  line-height: 1.8;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}

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

.detail-hero {
  position: relative;
  padding: 42px 0 28px;
  overflow: hidden;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.28;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.2);
  transform: scale(1.08);
}

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.68), #020617 92%);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(320px, 0.9fr);
  gap: 26px;
  align-items: start;
}

.detail-player-card,
.detail-side,
.text-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg-card-strong);
  box-shadow: var(--shadow);
}

.detail-player-card {
  overflow: hidden;
}

.player-shell {
  position: relative;
  background: black;
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: white;
  background: rgba(2, 6, 23, 0.34);
  cursor: pointer;
}

.player-overlay.hidden {
  display: none;
}

.big-play {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #001118;
  background: var(--cyan);
  box-shadow: 0 0 52px rgba(34, 211, 238, 0.38);
}

.detail-side {
  padding: 24px;
}

.detail-side h1 {
  margin: 18px 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-one-line {
  color: var(--muted-2);
  line-height: 1.8;
}

.detail-meta,
.score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0;
}

.detail-meta span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.36);
  font-size: 13px;
}

.score-row {
  align-items: center;
}

.score-row strong {
  color: var(--yellow);
  font-size: 32px;
}

.score-row span {
  color: var(--muted);
}

.detail-tags {
  margin-top: 12px;
}

.detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.text-card {
  padding: 24px;
}

.text-card h2 {
  margin: 0 0 14px;
  font-size: 24px;
}

.text-card p {
  margin: 0;
  color: var(--muted-2);
  line-height: 2;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 1fr;
  gap: 34px;
  padding: 42px 0;
}

.footer-brand {
  margin-bottom: 16px;
}

.site-footer p {
  max-width: 460px;
  color: var(--muted);
  line-height: 1.8;
}

.site-footer h2 {
  margin: 0 0 16px;
  font-size: 18px;
}

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

.footer-links a {
  color: var(--muted-2);
}

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

.footer-bottom {
  padding: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
}

.movie-card.hidden {
  display: none;
}

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

  .menu-toggle {
    display: block;
  }

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

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

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

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

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

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

  .brand-text em {
    display: none;
  }

  .hero-stage {
    height: 78vh;
    min-height: 560px;
  }

  .hero-copy {
    padding-top: 90px;
  }

  .hero-arrow {
    display: none;
  }

  .hero-thumbs {
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .hero-thumb {
    min-height: 92px;
  }

  .section-heading {
    display: block;
  }

  .section-link {
    display: inline-flex;
    margin-top: 12px;
  }

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

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

  .search-panel {
    position: static;
  }

  .sub-hero {
    padding: 58px 0 38px;
  }

  .detail-side {
    padding: 18px;
  }

  .movie-info {
    padding: 12px;
  }

  .movie-info h2 {
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .movie-grid,
  .mini-grid,
  .full-grid {
    grid-template-columns: 1fr 1fr;
  }

  .movie-tags {
    display: none;
  }
}
