:root {
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.94);
  --panel-soft: rgba(30, 41, 59, 0.52);
  --line: rgba(148, 163, 184, 0.18);
  --line-strong: rgba(34, 211, 238, 0.34);
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --cyan: #22d3ee;
  --cyan-strong: #06b6d4;
  --blue: #60a5fa;
  --orange: #fb923c;
  --violet: #a78bfa;
  --yellow: #facc15;
  --radius: 22px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(8, 145, 178, 0.17), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.10), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

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

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

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

.logo-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: rgba(34, 211, 238, 0.12);
  border: 1px solid rgba(34, 211, 238, 0.30);
  color: var(--cyan);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.18);
}

.logo-mark::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid currentColor;
  margin-left: 3px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.logo-title {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 800;
  line-height: 1.15;
  background: linear-gradient(90deg, var(--cyan), var(--blue), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
}

.logo-subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

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

.main-nav a {
  transition: color 0.25s ease;
}

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

.mobile-menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
}

.mobile-menu-button span,
.mobile-menu-button::before,
.mobile-menu-button::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
}

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

.mobile-panel a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.10);
  color: #cbd5e1;
  font-weight: 600;
}

.hero {
  position: relative;
  min-height: 74vh;
  overflow: hidden;
  isolation: isolate;
}

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

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

.hero-bg,
.hero-bg-fallback {
  position: absolute;
  inset: 0;
  z-index: -4;
}

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

.hero-bg-fallback {
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.34), rgba(30, 41, 59, 0.78)),
    radial-gradient(circle at 24% 28%, rgba(34, 211, 238, 0.28), transparent 18rem),
    #0f172a;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(to top, #020617 2%, rgba(2, 6, 23, 0.88) 34%, rgba(2, 6, 23, 0.38)),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.16) 56%, rgba(2, 6, 23, 0.64));
}

.hero-content {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
  padding: 132px 0 96px;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--cyan);
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: radial-gradient(circle, var(--cyan) 0 32%, rgba(34, 211, 238, 0.16) 35% 100%);
  box-shadow: 0 0 22px rgba(34, 211, 238, 0.55);
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(34px, 7vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.hero-desc {
  max-width: 680px;
  margin: 0 0 22px;
  color: #cbd5e1;
  font-size: clamp(15px, 1.8vw, 18px);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 18px 0 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  background: rgba(34, 211, 238, 0.13);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
}

.pill.is-muted {
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.56);
  color: #cbd5e1;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

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

.btn-primary {
  background: var(--cyan-strong);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(6, 182, 212, 0.22);
}

.btn-primary:hover {
  background: var(--cyan);
  box-shadow: 0 20px 46px rgba(34, 211, 238, 0.30);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: #e2e8f0;
  backdrop-filter: blur(14px);
}

.btn-ghost:hover {
  border-color: rgba(34, 211, 238, 0.38);
  color: var(--cyan);
}

.play-dot {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid currentColor;
}

.hero-controls {
  position: absolute;
  right: max(18px, calc((100vw - var(--container)) / 2));
  bottom: 34px;
  z-index: 4;
  display: flex;
  gap: 12px;
}

.hero-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.10);
  color: #ffffff;
  backdrop-filter: blur(12px);
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero-arrow:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}

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

.hero-dot {
  width: 10px;
  height: 5px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: width 0.25s ease, background 0.25s ease;
}

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

.section-stack {
  display: grid;
  gap: 64px;
  padding: 54px 0 72px;
}

.section {
  min-width: 0;
}

.section-panel {
  padding: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.72), rgba(30, 41, 59, 0.30));
  box-shadow: var(--shadow);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.section-head h1,
.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 36px);
  line-height: 1.2;
  font-weight: 900;
}

.section-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.section-line {
  flex: 1;
  height: 1px;
  min-width: 70px;
  background: linear-gradient(90deg, rgba(34, 211, 238, 0.36), transparent);
}

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

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

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

.movie-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.24);
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.movie-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.36);
  box-shadow: 0 24px 60px rgba(8, 145, 178, 0.16);
}

.poster-frame {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(8, 145, 178, 0.30), rgba(15, 23, 42, 0.9)),
    radial-gradient(circle at 30% 20%, rgba(34, 211, 238, 0.32), transparent 40%);
}

.poster-frame.is-wide {
  aspect-ratio: 16 / 9;
}

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

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

.poster-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.22), transparent);
  opacity: 0.78;
  transition: opacity 0.25s ease;
}

.movie-card:hover .poster-frame::after {
  opacity: 0.94;
}

.poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  color: rgba(226, 232, 240, 0.86);
  font-weight: 900;
}

.card-play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.90);
  color: #ffffff;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.card-badges {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(2, 6, 23, 0.70);
  color: #e2e8f0;
  font-size: 12px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.badge.hot {
  color: #fde68a;
}

.card-body {
  padding: 16px;
}

.card-title {
  margin: 0 0 8px;
  color: #f8fafc;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 850;
}

.card-desc {
  display: -webkit-box;
  min-height: 43px;
  margin: 0 0 14px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: var(--muted);
  font-size: 14px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted-2);
  font-size: 13px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.72);
  color: #a5f3fc;
  font-size: 12px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 150px 150px auto;
  gap: 12px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.74);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  outline: none;
  background: rgba(2, 6, 23, 0.62);
  color: #e2e8f0;
  padding: 0 14px;
}

.search-panel input:focus,
.search-panel select:focus {
  border-color: rgba(34, 211, 238, 0.62);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.empty-result {
  display: none;
  padding: 26px;
  border: 1px dashed rgba(148, 163, 184, 0.24);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
}

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

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

.category-tile {
  min-height: 170px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.13), transparent 40%),
    rgba(15, 23, 42, 0.76);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

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

.category-tile h2,
.category-tile h3 {
  margin: 0 0 10px;
  font-size: 22px;
}

.category-tile p {
  margin: 0 0 18px;
  color: var(--muted);
}

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

.rank-item {
  display: grid;
  grid-template-columns: 58px 72px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.68);
}

.rank-no {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(34, 211, 238, 0.12);
  color: var(--cyan);
  font-weight: 900;
}

.rank-thumb {
  width: 72px;
  height: 96px;
  overflow: hidden;
  border-radius: 13px;
  background: rgba(30, 41, 59, 0.9);
}

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

.rank-info h2,
.rank-info h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.rank-info p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.rank-score {
  color: var(--yellow);
  font-weight: 900;
}

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

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #cbd5e1;
  font-size: 17px;
}

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

.breadcrumb a {
  color: #a5f3fc;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.82fr);
  gap: 28px;
  padding: 34px 0 72px;
}

.player-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #000000;
  box-shadow: var(--shadow);
}

.player-shell {
  position: relative;
  background: #000000;
  aspect-ratio: 16 / 9;
}

.player-shell video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.22)),
    radial-gradient(circle at center, rgba(34, 211, 238, 0.18), transparent 45%);
}

.player-cover.is-hidden {
  display: none;
}

.big-play {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 0;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.92);
  color: #ffffff;
  box-shadow: 0 0 44px rgba(34, 211, 238, 0.42);
  transition: transform 0.25s ease, background 0.25s ease;
}

.big-play:hover {
  transform: scale(1.06);
  background: var(--cyan);
}

.player-note {
  padding: 14px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  font-size: 14px;
}

.detail-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel-strong);
  overflow: hidden;
}

.detail-poster {
  aspect-ratio: 2 / 3;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.24), rgba(15, 23, 42, 0.9));
}

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

.detail-body {
  padding: 22px;
}

.detail-body h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.12;
  font-weight: 900;
}

.detail-body p {
  color: #cbd5e1;
}

.prose-panel {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.prose-block {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.66);
}

.prose-block h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.prose-block p {
  margin: 0;
  color: #cbd5e1;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: 28px;
  padding: 42px 0;
}

.footer h3 {
  margin: 0 0 14px;
  color: #f8fafc;
}

.footer p,
.footer a {
  color: var(--muted);
  font-size: 14px;
}

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

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

.copyright {
  padding: 18px 0 26px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--muted-2);
  font-size: 13px;
}

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

.image-missing img {
  display: none;
}

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

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

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

  .detail-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .detail-poster {
    min-height: 100%;
  }
}

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

  .mobile-menu-button {
    display: block;
  }

  body.menu-open .mobile-panel {
    display: block;
  }

  .hero {
    min-height: 72vh;
  }

  .hero-content {
    padding: 104px 0 92px;
  }

  .hero-controls {
    right: 16px;
    bottom: 24px;
  }

  .hero-arrow {
    width: 40px;
    height: 40px;
  }

  .hero-dots {
    bottom: 28px;
  }

  .section-stack {
    gap: 42px;
    padding-top: 40px;
  }

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

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

  .rank-item {
    grid-template-columns: 44px 56px minmax(0, 1fr);
  }

  .rank-score {
    grid-column: 3;
  }

  .rank-thumb {
    width: 56px;
    height: 76px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

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

  .card-title {
    font-size: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
