:root {
  --bg: #020617;
  --bg-soft: #0f172a;
  --panel: rgba(15, 23, 42, 0.84);
  --panel-strong: #111827;
  --text: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.22);
  --accent: #38bdf8;
  --accent-strong: #0284c7;
  --accent-soft: rgba(56, 189, 248, 0.16);
  --gold: #f59e0b;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

body.site-body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.20), transparent 34rem),
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.18), transparent 38rem),
    linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

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

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

.header-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  color: #00111a;
  background: linear-gradient(135deg, #38bdf8, #e0f2fe);
  box-shadow: 0 14px 34px rgba(56, 189, 248, 0.35);
}

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

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

.brand-text small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.nav-link {
  color: #cbd5e1;
  font-size: 15px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #ffffff;
  transform: translateY(-1px);
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search input,
.filter-box input,
.search-hero-box input {
  width: 240px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.filter-box input:focus,
.search-hero-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.header-search button,
.small-button,
.primary-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.header-search button,
.primary-button {
  color: #00111a;
  background: linear-gradient(135deg, #e0f2fe, #38bdf8);
  padding: 12px 18px;
}

.ghost-button {
  color: #e0f2fe;
  border: 1px solid rgba(224, 242, 254, 0.38);
  background: rgba(15, 23, 42, 0.55);
  padding: 12px 18px;
}

.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #00111a;
  background: #e0f2fe;
  padding: 10px 16px;
}

.header-search button:hover,
.small-button:hover,
.primary-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

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

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #ffffff;
}

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

.mobile-panel.is-open {
  display: block;
}

.mobile-panel-inner {
  display: grid;
  gap: 12px;
  padding: 18px 0;
}

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

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

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

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.08);
}

.hero-shade,
.detail-bg-shade,
.category-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.70) 38%, rgba(2, 6, 23, 0.26) 100%),
    linear-gradient(0deg, #020617 0%, transparent 54%);
}

.hero-content {
  position: absolute;
  left: 50%;
  bottom: 72px;
  transform: translateX(-50%);
  max-width: 1180px;
}

.hero-kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: #e0f2fe;
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.18);
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-content h1,
.page-hero h1,
.detail-info h1,
.category-hero h1 {
  margin: 18px 0 14px;
  max-width: 760px;
  font-size: clamp(36px, 7vw, 72px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.hero-content p,
.page-hero p,
.category-hero p,
.detail-one-line {
  max-width: 720px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.8;
}

.hero-tags,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.hero-tags span,
.tag-row span {
  border-radius: 999px;
  color: #dbeafe;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.64);
  padding: 6px 10px;
  font-size: 12px;
}

.tag-row-large span {
  font-size: 13px;
  padding: 8px 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #ffffff;
  background: rgba(2, 6, 23, 0.46);
  backdrop-filter: blur(12px);
  font-size: 36px;
  line-height: 1;
}

.hero-prev {
  left: 20px;
}

.hero-next {
  right: 20px;
}

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

.hero-dot {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 32px;
  background: #ffffff;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: -30px;
  position: relative;
  z-index: 6;
}

.stats-strip div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.88);
  box-shadow: var(--shadow);
}

.stats-strip strong {
  display: block;
  color: #e0f2fe;
  font-size: 28px;
  line-height: 1;
}

.stats-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.content-section {
  padding: 56px 0 0;
}

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

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.section-link {
  color: #7dd3fc;
  font-weight: 800;
}

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.58));
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.48);
  box-shadow: 0 26px 80px rgba(14, 165, 233, 0.16);
}

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

.movie-card-large .movie-poster {
  aspect-ratio: 16 / 10;
}

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

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

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

.play-chip {
  right: 12px;
  bottom: 12px;
  color: #00111a;
  background: #e0f2fe;
  padding: 7px 10px;
}

.rank-badge {
  top: 12px;
  left: 12px;
  color: #111827;
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  padding: 7px 10px;
}

.movie-card-body {
  padding: 16px;
}

.movie-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 800;
}

.movie-card h3,
.ranking-body h2 {
  margin: 10px 0 8px;
  color: #ffffff;
  font-weight: 900;
  line-height: 1.35;
}

.movie-card h3 {
  font-size: 18px;
}

.movie-card p,
.ranking-body p,
.category-tile small,
.category-summary-card p,
.site-footer p {
  color: var(--muted);
  line-height: 1.7;
}

.movie-card p {
  min-height: 50px;
  font-size: 14px;
}

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

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

.category-tile,
.category-summary-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(14, 165, 233, 0.12));
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-tile:hover,
.category-summary-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.45);
}

.category-tile {
  display: grid;
  gap: 8px;
  padding: 20px;
}

.category-tile strong,
.category-summary-card strong {
  color: #ffffff;
  font-size: 20px;
}

.category-tile span,
.category-summary-card span {
  color: #7dd3fc;
  font-weight: 800;
}

.category-summary-card {
  padding: 20px;
}

.category-preview-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.category-preview-images img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.subpage-main {
  padding-bottom: 70px;
}

.page-hero,
.compact-hero {
  padding: 70px 0 20px;
}

.compact-hero h1 {
  font-size: clamp(40px, 6vw, 66px);
}

.filter-box,
.search-hero-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.72);
}

.filter-box input,
.search-hero-box input {
  width: min(520px, 100%);
}

.filter-box span,
.search-hero-box span {
  color: #bae6fd;
  font-weight: 800;
}

.sticky-filter {
  position: sticky;
  top: 88px;
  z-index: 30;
  backdrop-filter: blur(16px);
}

.category-hero,
.detail-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #020617;
}

.category-hero > img,
.detail-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.08);
}

.category-hero-content,
.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 96px 0 64px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 28px;
  color: #cbd5e1;
  font-size: 14px;
}

.breadcrumb a {
  color: #7dd3fc;
}

.detail-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  max-width: 740px;
  margin: 24px 0;
}

.detail-meta div {
  border: 1px solid rgba(148, 163, 184, 0.20);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.62);
  padding: 14px;
}

.detail-meta dt {
  color: var(--muted);
  font-size: 12px;
}

.detail-meta dd {
  margin: 5px 0 0;
  color: #ffffff;
  font-weight: 800;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 28px;
  background: #000000;
  box-shadow: var(--shadow);
}

.movie-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 0;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.72));
  cursor: pointer;
}

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

.play-circle {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #00111a;
  background: #e0f2fe;
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.42);
  font-size: 30px;
}

.player-overlay strong {
  font-size: 24px;
}

.player-overlay small {
  color: #cbd5e1;
}

.detail-article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.72);
  padding: 28px;
}

.detail-article h2 {
  margin: 0 0 14px;
  font-size: 24px;
  font-weight: 900;
}

.detail-article h2 + p {
  margin-bottom: 24px;
}

.detail-article p {
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.95;
}

.ranking-list {
  display: grid;
  gap: 16px;
}

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

.ranking-cover img {
  width: 110px;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.ranking-number {
  color: #e0f2fe;
  font-size: 30px;
  font-weight: 950;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}

.site-footer h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.site-footer a {
  display: block;
  margin: 8px 0;
  color: #bae6fd;
}

[data-filter-list].is-empty::after {
  content: "没有找到匹配影片";
  grid-column: 1 / -1;
  color: var(--muted);
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 20px;
  padding: 40px;
}

.movie-card.is-hidden,
.ranking-item.is-hidden {
  display: none;
}

@media (max-width: 980px) {
  .desktop-nav,
  .header-search {
    display: none;
  }

  .mobile-toggle {
    display: block;
    margin-left: auto;
  }

  .hero-slider {
    min-height: 620px;
  }

  .stats-strip,
  .movie-grid.four-cols,
  .movie-grid.three-cols,
  .category-grid,
  .category-grid-large,
  .footer-grid,
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ranking-item {
    grid-template-columns: 88px 50px 1fr;
  }

  .ranking-item .small-button {
    grid-column: 3;
    width: fit-content;
  }
}

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

  .brand-text small {
    display: none;
  }

  .hero-content {
    bottom: 64px;
  }

  .hero-arrow {
    display: none;
  }

  .stats-strip,
  .movie-grid.four-cols,
  .movie-grid.three-cols,
  .category-grid,
  .category-grid-large,
  .footer-grid,
  .detail-grid,
  .detail-meta,
  .ranking-item {
    grid-template-columns: 1fr;
  }

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

  .section-heading,
  .filter-box,
  .search-hero-box {
    align-items: start;
    flex-direction: column;
  }

  .detail-poster {
    max-width: 260px;
  }

  .ranking-cover img {
    width: 100%;
  }

  .ranking-number {
    font-size: 24px;
  }
}
