:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --dark: #0f172a;
  --dark-2: #1e293b;
  --cyan: #06b6d4;
  --blue: #2563eb;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
  --shadow-soft: 0 14px 40px rgba(15, 23, 42, 0.10);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #f8fafc 100%);
}

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

img,
video {
  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: 50;
  color: #ffffff;
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.24);
}

.nav-bar {
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.35);
}

.brand-text {
  font-size: 20px;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

.nav-link-muted {
  color: rgba(255, 255, 255, 0.72);
}

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

.nav-search input,
.hero-search input,
.filter-search input {
  border: 1px solid rgba(148, 163, 184, 0.32);
  outline: none;
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--ink);
  background: #ffffff;
  min-width: 220px;
}

.nav-search input {
  color: #ffffff;
  background: rgba(51, 65, 85, 0.9);
}

.nav-search button,
.filter-search button {
  border: 0;
  border-radius: 999px;
  padding: 10px 15px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.mobile-toggle {
  display: none;
  margin-left: auto;
  border: 0;
  color: #ffffff;
  border-radius: 12px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  min-height: 70vh;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

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

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

.hero-shade {
  background:
    radial-gradient(circle at 72% 24%, rgba(14, 165, 233, 0.34), transparent 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.70) 46%, rgba(0, 0, 0, 0.18) 100%);
}

.hero-content {
  position: relative;
  min-height: 70vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 48px;
  padding: 72px 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.eyebrow.dark {
  color: #0891b2;
  background: rgba(6, 182, 212, 0.10);
}

.hero h1 {
  margin: 0 0 20px;
  max-width: 780px;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.hero-summary {
  margin: 0 0 18px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.7;
}

.hero-meta {
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.72);
}

.hero-actions,
.pager-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.28);
}

.btn-ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.hero-panel,
.ranking-box,
.prose-card,
.info-card,
.filter-panel {
  border: 1px solid rgba(226, 232, 240, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  padding: 18px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(18px);
}

.hero-panel > strong {
  display: block;
  margin-bottom: 14px;
  color: #ffffff;
}

.stats-strip {
  color: #ffffff;
  background: linear-gradient(180deg, #0f172a, #1e293b);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 36px 0;
  text-align: center;
}

.stats-grid strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.stats-grid span {
  display: block;
  margin-top: 8px;
  color: #94a3b8;
  font-size: 14px;
}

.section {
  padding: 74px 0;
}

.section-soft {
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}

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

.section-heading.compact {
  align-items: center;
  margin-bottom: 22px;
}

.section-heading h2,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-heading p,
.page-hero p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.text-link {
  color: #0891b2;
  font-weight: 800;
}

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

.category-tile,
.category-card-large {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border-radius: var(--radius);
  padding: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #334155);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-card-large:hover,
.movie-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.category-tile img,
.category-card-large img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.30;
}

.category-tile::after,
.category-card-large::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.40), rgba(14, 165, 233, 0.45));
}

.category-tile span,
.category-tile strong,
.category-card-large h2,
.category-card-large p,
.category-card-large .eyebrow {
  position: relative;
  z-index: 1;
}

.category-tile span {
  display: block;
  font-size: 22px;
  font-weight: 900;
}

.category-tile strong {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.78);
}

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

.category-card-large {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.category-card-large h2 {
  font-size: 34px;
}

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card.horizontal {
  display: grid;
  grid-template-columns: 150px 1fr;
}

.movie-card.small .movie-card-body p {
  display: none;
}

.poster-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.22), rgba(37, 99, 235, 0.18)),
    linear-gradient(180deg, #1e293b, #0f172a);
}

.movie-card.horizontal .poster-frame {
  aspect-ratio: auto;
  min-height: 100%;
}

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

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

.image-missing {
  opacity: 0;
}

.poster-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

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

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  color: #0891b2;
  font-size: 12px;
  font-weight: 800;
}

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

.movie-card p {
  margin: 0 0 14px;
  min-height: 48px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list span {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  color: #475569;
  font-size: 12px;
  background: #f1f5f9;
}

.tag-list.large span {
  padding: 7px 12px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.12);
}

.compact-card {
  display: grid;
  grid-template-columns: auto 58px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateX(3px);
}

.compact-card img {
  width: 58px;
  height: 76px;
  border-radius: 12px;
  object-fit: cover;
  background: #0f172a;
}

.compact-card strong {
  display: block;
  color: inherit;
  line-height: 1.35;
}

.compact-card small {
  display: block;
  margin-top: 5px;
  color: #94a3b8;
  line-height: 1.45;
}

.compact-rank {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.split-layout,
.ranking-layout,
.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

.ranking-layout {
  grid-template-columns: 360px minmax(0, 1fr);
}

.ranking-box {
  padding: 22px;
}

.sticky-box {
  position: sticky;
  top: 90px;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background:
    radial-gradient(circle at 80% 10%, rgba(6, 182, 212, 0.32), transparent 28%),
    linear-gradient(135deg, #0f172a, #1e293b);
}

.page-hero.small .container,
.page-hero.category .container {
  padding: 72px 0;
}

.page-hero h1 {
  font-size: clamp(42px, 6vw, 70px);
}

.page-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
}

.page-hero.category {
  background:
    radial-gradient(circle at 78% 18%, rgba(6, 182, 212, 0.38), transparent 28%),
    linear-gradient(135deg, #0f172a, #334155);
}

.filter-panel {
  margin-bottom: 28px;
  padding: 18px;
}

.filter-search {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.filter-search input {
  flex: 1;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
}

.filter-row span {
  min-width: 46px;
  color: var(--muted);
  font-weight: 800;
}

.filter-row button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: #334155;
  background: #ffffff;
}

.filter-row button.active,
.filter-row button:hover {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.filter-empty,
.noscript-note {
  padding: 18px;
  border-radius: 18px;
  color: #475569;
  background: #f1f5f9;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  color: #0891b2;
  font-weight: 800;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background: #020617;
}

.detail-backdrop,
.detail-backdrop img,
.detail-backdrop div {
  position: absolute;
  inset: 0;
}

.detail-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  filter: blur(6px);
  transform: scale(1.06);
}

.detail-backdrop div {
  background:
    radial-gradient(circle at 70% 20%, rgba(6, 182, 212, 0.28), transparent 24%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.82));
}

.detail-grid {
  position: relative;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
  padding: 62px 0;
}

.detail-poster {
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 70px);
}

.lead {
  margin: 0 0 22px;
  max-width: 820px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 20px;
  line-height: 1.75;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-meta span {
  border-radius: 999px;
  padding: 8px 12px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.12);
}

.player-section {
  background: #0f172a;
}

.player-section .section-heading h2 {
  color: #ffffff;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 28px;
  aspect-ratio: 16 / 9;
  background: #020617;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

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

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 0;
  color: #ffffff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(6, 182, 212, 0.30), transparent 28%),
    rgba(2, 6, 23, 0.58);
}

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

.play-dot {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 28px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.4);
}

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

.player-overlay small {
  color: rgba(255, 255, 255, 0.72);
}

.article-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.prose-card,
.info-card {
  padding: 28px;
}

.prose-card h2,
.info-card h2 {
  margin: 0 0 14px;
  font-size: 26px;
}

.prose-card p {
  margin: 0 0 24px;
  color: #334155;
  font-size: 17px;
  line-height: 2;
}

.info-card dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  margin: 0 0 24px;
}

.info-card dt {
  color: var(--muted);
  font-weight: 800;
}

.info-card dd {
  margin: 0;
}

.info-card a {
  color: #0891b2;
  font-weight: 800;
}

.pager-links a {
  border-radius: 999px;
  padding: 10px 14px;
  color: #0f172a;
  background: #f1f5f9;
}

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

.hero-search {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  max-width: 680px;
}

.hero-search input {
  flex: 1;
  min-width: 0;
}

.site-footer {
  color: #cbd5e1;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1fr;
  gap: 32px;
  padding: 54px 0 32px;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: #ffffff;
}

.footer-grid p {
  color: #94a3b8;
  line-height: 1.8;
}

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

.footer-grid a:hover {
  color: #67e8f9;
}

.footer-brand {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  color: #94a3b8;
}

[data-search-card].is-hidden {
  display: none !important;
}

.accent-cyan,
.accent-blue,
.accent-violet,
.accent-pink,
.accent-amber,
.accent-emerald,
.accent-red,
.accent-indigo,
.accent-sky,
.accent-orange {
  background: linear-gradient(135deg, #0f172a, #334155);
}

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

  .hero-content,
  .split-layout,
  .ranking-layout,
  .article-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    display: none;
  }

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

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

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

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

  .nav-bar {
    flex-wrap: wrap;
    padding: 12px 0;
  }

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

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    width: 100%;
  }

  .hero,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    padding: 84px 0;
  }

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

  .section {
    padding: 52px 0;
  }

  .section-heading,
  .footer-bottom,
  .filter-search,
  .hero-search {
    align-items: stretch;
    flex-direction: column;
  }

  .movie-grid,
  .movie-grid.two-col,
  .related-grid,
  .category-grid,
  .category-large-grid {
    grid-template-columns: 1fr;
  }

  .movie-card.horizontal {
    grid-template-columns: 120px 1fr;
  }

  .detail-grid {
    padding: 42px 0;
  }

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

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