:root {
  --bg: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #2563eb;
  --brand-2: #06b6d4;
  --brand-3: #14b8a6;
  --orange: #f97316;
  --red: #ef4444;
  --card: #ffffff;
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}

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

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

.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, #2563eb, #06b6d4, #14b8a6);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.25);
}

.nav-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.logo-text {
  font-size: 22px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-nav a {
  padding: 9px 13px;
  border-radius: 999px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
}

.mobile-toggle {
  display: none;
  border: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  font-size: 24px;
}

.hero {
  position: relative;
  height: min(78vh, 720px);
  min-height: 560px;
  overflow: hidden;
  background: #0f172a;
}

.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-slide > img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.05);
}

.hero-overlay,
.detail-backdrop span {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 35%, rgba(6, 182, 212, 0.22), transparent 38%),
    linear-gradient(90deg, rgba(2, 6, 23, 0.92), rgba(15, 23, 42, 0.62) 48%, rgba(15, 23, 42, 0.25)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.9), transparent 44%);
}

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

.hero-copy {
  width: min(680px, 100%);
  color: #ffffff;
}

.hero-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #ef4444);
  font-size: 14px;
  font-weight: 700;
}

.eyebrow {
  color: #2563eb;
  background: #dbeafe;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero p,
.page-hero p,
.detail-copy p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 22px);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  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(90deg, #f97316, #ef4444);
  box-shadow: 0 15px 35px rgba(239, 68, 68, 0.32);
}

.btn-glass {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

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

.hero-dot {
  width: 44px;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

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

.hero-search {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 5;
  width: min(820px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.hero-search input,
.hero-search button,
.toolbar input,
.toolbar select,
.search-panel input,
.search-panel button {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  font: inherit;
}

.hero-search input,
.toolbar input,
.toolbar select,
.search-panel input {
  width: 100%;
  padding: 0 16px;
  color: var(--ink);
  background: #ffffff;
  outline: none;
}

.hero-search button,
.search-panel button {
  padding: 0 24px;
  color: #ffffff;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  font-weight: 800;
  cursor: pointer;
}

.intro-panel {
  position: relative;
  margin-top: -42px;
  z-index: 8;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 32px;
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.intro-panel h2,
.section-heading h2,
.content-card h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.18;
}

.intro-panel p {
  margin: 12px 0 0;
  color: var(--muted);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.stats-strip div {
  padding: 18px 12px;
  border-radius: 18px;
  text-align: center;
  background: #f1f5f9;
}

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

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

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

.soft-section {
  background: linear-gradient(135deg, #eff6ff, #ecfeff);
}

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

.section-more {
  color: #2563eb;
  font-weight: 800;
}

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

.category-tile,
.category-cover {
  position: relative;
  min-height: 180px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  border-radius: 24px;
  color: #ffffff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover,
.category-cover:hover,
.movie-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.18);
}

.category-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
}

.from-blue-600.to-cyan-500 { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.from-orange-600.to-red-500 { background: linear-gradient(135deg, #ea580c, #ef4444); }
.from-red-600.to-orange-500 { background: linear-gradient(135deg, #dc2626, #f97316); }
.from-indigo-600.to-blue-500 { background: linear-gradient(135deg, #4f46e5, #3b82f6); }
.from-slate-700.to-slate-900 { background: linear-gradient(135deg, #334155, #0f172a); }
.from-yellow-500.to-orange-500 { background: linear-gradient(135deg, #eab308, #f97316); }
.from-green-600.to-teal-500 { background: linear-gradient(135deg, #16a34a, #14b8a6); }
.from-pink-600.to-purple-500 { background: linear-gradient(135deg, #db2777, #a855f7); }
.from-purple-600.to-pink-500 { background: linear-gradient(135deg, #9333ea, #ec4899); }
.from-cyan-600.to-teal-500 { background: linear-gradient(135deg, #0891b2, #14b8a6); }

.category-tile::after,
.category-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.38), transparent 40%);
}

.category-tile > *,
.category-cover > * {
  position: relative;
  z-index: 2;
}

.category-count {
  align-self: flex-start;
  margin-bottom: auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: 800;
}

.category-tile strong,
.category-cover strong {
  font-size: 24px;
  line-height: 1.2;
}

.category-tile em,
.category-tile small {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-style: normal;
}

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

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

.movie-card {
  overflow: hidden;
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: linear-gradient(135deg, #dbeafe, #cffafe);
}

.movie-card-compact .poster-frame {
  aspect-ratio: 16 / 22;
}

.poster-frame img,
.rank-thumb img,
.detail-poster img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

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

.poster-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.72), transparent 55%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .poster-mask {
  opacity: 1;
}

.play-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(249, 115, 22, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, #facc15, #f97316);
  font-size: 13px;
}

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

.movie-meta-line,
.detail-meta,
.mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.movie-meta-line span,
.detail-meta span,
.mini-stats span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #f1f5f9;
}

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

.movie-card h3 a:hover,
.rank-info h2 a:hover,
.sample-links a:hover,
.sitemap-links a:hover {
  color: #2563eb;
}

.movie-card p,
.rank-info p,
.category-overview-body p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

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

.tag-row span {
  padding: 3px 8px;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  font-size: 12px;
}

.page-shell {
  min-height: 60vh;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0;
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a, #1e293b);
}

.small-hero {
  background:
    radial-gradient(circle at 80% 25%, rgba(6, 182, 212, 0.25), transparent 34%),
    linear-gradient(135deg, #0f172a, #1e293b);
}

.category-hero .category-bg {
  opacity: 0.92;
}

.category-hero .container {
  position: relative;
  z-index: 1;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.breadcrumbs a:hover {
  color: #ffffff;
}

.toolbar {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 14px;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.toolbar input,
.toolbar select {
  border: 1px solid var(--line);
}

.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.category-overview-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  overflow: hidden;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.category-overview-body {
  padding: 24px;
}

.category-overview-body h2 {
  margin: 0 0 8px;
  font-size: 26px;
}

.sample-links {
  display: grid;
  gap: 7px;
  margin-top: 16px;
}

.sample-links a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px dashed var(--line);
  color: #334155;
}

.sample-links span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sample-links em {
  flex: none;
  color: var(--muted);
  font-style: normal;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 60px 96px 1fr 120px;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.rank-number {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #ef4444);
  font-weight: 900;
}

.rank-thumb {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: #e2e8f0;
}

.rank-info h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.heat-score {
  text-align: center;
  color: #ef4444;
}

.heat-score strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.heat-score span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.search-panel input {
  border: 1px solid var(--line);
}

.search-summary {
  margin: 24px 0;
  color: var(--muted);
  font-weight: 700;
}

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

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

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

.detail-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 34px;
  align-items: center;
  min-height: 620px;
  padding-top: 54px;
  padding-bottom: 54px;
}

.detail-poster {
  overflow: hidden;
  border-radius: 28px;
  aspect-ratio: 2 / 3;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  background: #1e293b;
}

.detail-one-line {
  margin-bottom: 18px !important;
}

.detail-meta span {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.14);
}

.detail-tags span {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.detail-copy .btn {
  margin-top: 24px;
}

.player-card {
  overflow: hidden;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

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

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

.player-start {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, #f97316, #ef4444);
  box-shadow: 0 18px 45px rgba(239, 68, 68, 0.35);
  font: inherit;
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.player-start span {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

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

.player-note {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 20px;
  color: rgba(255, 255, 255, 0.82);
  background: #111827;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.content-card {
  padding: 30px;
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.content-card h2 {
  margin-bottom: 16px;
  font-size: 28px;
}

.content-card p {
  margin: 0 0 14px;
  color: #334155;
}

.sitemap-page {
  display: grid;
  gap: 24px;
}

.sitemap-year {
  padding: 24px;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.sitemap-year h2 {
  margin: 0 0 16px;
  color: #2563eb;
}

.sitemap-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 16px;
}

.sitemap-links a {
  display: grid;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--line);
}

.sitemap-links span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sitemap-links em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}

.footer-logo {
  color: #ffffff;
  font-size: 24px;
}

.site-footer p {
  color: #94a3b8;
}

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

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a:hover {
  color: #38bdf8;
}

.copyright {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #94a3b8;
  font-size: 14px;
}

.is-filter-hidden {
  display: none !important;
}

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

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

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

  .category-cover {
    min-height: 160px;
  }
}

@media (max-width: 820px) {
  .mobile-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, #2563eb, #0891b2);
    box-shadow: var(--shadow);
  }

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

  .hero {
    min-height: 620px;
  }

  .hero-content {
    align-items: flex-start;
    padding-top: 92px;
  }

  .hero-search,
  .search-panel,
  .toolbar,
  .intro-panel,
  .detail-hero-grid,
  .detail-content-grid,
  .footer-grid,
  .rank-row {
    grid-template-columns: 1fr;
  }

  .stats-strip,
  .category-grid,
  .movie-grid,
  .movie-grid-compact,
  .category-overview-grid,
  .sitemap-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .detail-hero-grid {
    min-height: auto;
  }

  .detail-poster {
    width: min(260px, 80vw);
  }

  .rank-row {
    align-items: start;
  }

  .heat-score {
    text-align: left;
  }
}

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

  .logo-text {
    font-size: 18px;
  }

  .hero h1,
  .page-hero h1,
  .detail-copy h1 {
    font-size: 38px;
  }

  .stats-strip,
  .category-grid,
  .movie-grid,
  .movie-grid-compact,
  .sitemap-links {
    grid-template-columns: 1fr;
  }

  .intro-panel,
  .content-card {
    padding: 22px;
  }

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