:root {
  --color-bg: #f6f8fb;
  --color-surface: #ffffff;
  --color-ink: #111827;
  --color-muted: #64748b;
  --color-line: #e5e7eb;
  --color-primary: #2563eb;
  --color-primary-dark: #1e40af;
  --color-primary-soft: #dbeafe;
  --color-gold: #f59e0b;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.10);
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

button,
input,
select {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  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;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), #60a5fa);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.28);
}

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

.brand-title {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

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

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

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: #334155;
  font-size: 14px;
  font-weight: 700;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.nav-toggle {
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: 12px;
  border: 1px solid var(--color-line);
  background: #ffffff;
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #111827;
}

.mobile-nav {
  display: none;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-nav-link {
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

.mobile-nav-link.is-active {
  color: var(--color-primary);
  background: var(--color-primary-soft);
}

.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 18% 16%, rgba(96, 165, 250, 0.42), transparent 28%), linear-gradient(135deg, #0f172a 0%, #1e3a8a 48%, #2563eb 100%);
}

.hero-shell {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  min-height: 650px;
  margin: 0 auto;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 56px;
  padding: 64px 0 92px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-media {
  position: relative;
  min-height: 450px;
  overflow: hidden;
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.04));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.48));
}

.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 450px;
  object-fit: cover;
}

.hero-copy {
  color: #ffffff;
}

.hero-kicker,
.page-hero span,
.section-heading span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(219, 234, 254, 0.16);
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.03;
  font-weight: 900;
  letter-spacing: -0.06em;
}

.hero-copy p {
  max-width: 680px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.9;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-tags span,
.hero-tags a,
.pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

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

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

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

.button-primary {
  background: #ffffff;
  color: var(--color-primary-dark);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.22);
}

.button-light {
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

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

.hero-dot {
  width: 36px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

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

.section {
  padding: 72px 0;
}

.section-overlap {
  position: relative;
  z-index: 5;
  padding: 0;
  margin-top: -42px;
}

.section-muted {
  background: #eef4ff;
}

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

.stat-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.stat-card strong {
  display: block;
  color: var(--color-primary);
  font-size: 34px;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--color-muted);
  font-weight: 700;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

.section-heading.align-left {
  margin-left: 0;
  text-align: left;
}

.section-heading span {
  background: var(--color-primary-soft);
  color: var(--color-primary-dark);
}

.section-heading h2 {
  margin: 16px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.04em;
}

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

.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-card);
}

.sticky-toolbar {
  position: sticky;
  top: 88px;
  z-index: 20;
}

.search-box,
.filter-box {
  display: grid;
  gap: 8px;
  width: 100%;
}

.search-box span,
.filter-box span {
  color: #334155;
  font-size: 13px;
  font-weight: 800;
}

.search-box input,
.filter-box select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #ffffff;
  color: var(--color-ink);
  outline: none;
  padding: 0 14px;
}

.search-box input:focus,
.filter-box select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

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

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

.movie-card {
  min-width: 0;
}

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

.movie-card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card-link:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: var(--shadow-soft);
}

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

.poster-frame img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.32s ease;
}

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

.poster-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #ffffff;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
  z-index: 1;
}

.poster-gradient {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.76));
}

.quality-badge,
.rank-badge {
  position: absolute;
  z-index: 4;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.96);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.rank-badge {
  left: 12px;
  right: auto;
  background: rgba(245, 158, 11, 0.96);
}

.movie-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.movie-title {
  color: var(--color-ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.movie-meta {
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
}

.movie-desc {
  color: #475569;
  font-size: 14px;
  line-height: 1.65;
}

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

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

.card-action {
  display: inline-flex;
  width: fit-content;
  margin-top: 2px;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 900;
}

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

.category-card a,
.overview-card {
  display: block;
  height: 100%;
  padding: 24px;
  border: 1px solid rgba(191, 219, 254, 0.9);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff, #eff6ff);
  box-shadow: var(--shadow-card);
}

.category-card-kicker,
.overview-card-main span {
  color: var(--color-primary);
  font-size: 13px;
  font-weight: 900;
}

.category-card h2,
.overview-card h2 {
  margin: 14px 0 10px;
  font-size: 24px;
  font-weight: 900;
}

.category-card p,
.overview-card p {
  color: var(--color-muted);
  line-height: 1.75;
}

.category-card strong,
.overview-card strong {
  display: block;
  margin-top: 18px;
  color: var(--color-primary-dark);
}

.category-samples {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.category-samples a {
  padding: 0;
  border: 0;
  box-shadow: none;
  color: #334155;
  background: transparent;
}

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

.overview-card li a {
  color: #334155;
  font-size: 14px;
  font-weight: 700;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 38px;
}

.ranking-list {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.ranking-row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid #eef2f7;
}

.ranking-row:last-child {
  border-bottom: 0;
}

.ranking-row span {
  color: var(--color-primary);
  font-weight: 900;
}

.ranking-row strong {
  font-weight: 800;
}

.ranking-row em {
  color: var(--color-gold);
  font-style: normal;
  font-weight: 900;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--color-primary);
  font-weight: 900;
}

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

.movie-card-compact .movie-card-link {
  display: grid;
  grid-template-columns: 96px 1fr;
  min-height: 142px;
}

.movie-card-compact .poster-frame {
  aspect-ratio: auto;
  min-height: 142px;
}

.movie-card-compact .tag-row {
  display: none;
}

.page-hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 18% 15%, rgba(96, 165, 250, 0.36), transparent 32%), linear-gradient(135deg, #0f172a, #1e3a8a 54%, #2563eb);
  color: #ffffff;
}

.page-hero .container {
  padding: 86px 0;
}

.compact-hero .container {
  padding: 64px 0;
}

.page-hero h1 {
  max-width: 850px;
  margin: 18px 0 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.85;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  filter: blur(4px);
}

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

.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.58));
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  padding: 36px 0 76px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 32px;
  color: #bfdbfe;
  font-size: 14px;
  font-weight: 700;
}

.detail-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: center;
  gap: 42px;
}

.detail-poster {
  border-radius: 24px;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.38);
}

.detail-copy h1 {
  margin: 18px 0 18px;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.06;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.lead {
  max-width: 860px;
  color: #dbeafe;
  font-size: 20px;
  line-height: 1.8;
}

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

.player-section .section-heading span {
  background: rgba(255, 255, 255, 0.12);
  color: #bfdbfe;
}

.player-section .section-heading p {
  color: #cbd5e1;
}

.player-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #020617;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
}

.movie-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #020617;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.18), rgba(15, 23, 42, 0.72));
  color: #ffffff;
  cursor: pointer;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-card.is-playing .play-overlay {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.play-icon {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-primary);
  font-size: 34px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

.play-overlay strong {
  font-size: 20px;
}

.detail-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.content-card {
  padding: 30px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.prose-card h2,
.info-card h2,
.sitemap-panel h2 {
  margin: 0 0 16px;
  font-size: 26px;
  font-weight: 900;
}

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

.prose-card p:last-child {
  margin-bottom: 0;
}

.info-card table {
  width: 100%;
  border-collapse: collapse;
}

.info-card th,
.info-card td {
  padding: 13px 0;
  border-bottom: 1px solid #eef2f7;
  text-align: left;
  vertical-align: top;
}

.info-card th {
  width: 96px;
  color: var(--color-muted);
  font-weight: 800;
}

.info-card td {
  color: #0f172a;
  font-weight: 700;
}

.seo-copy {
  max-width: 900px;
}

.seo-copy h2 {
  margin: 0 0 18px;
  font-size: 32px;
  font-weight: 900;
}

.seo-copy p {
  color: #334155;
  line-height: 1.9;
}

.result-count {
  margin: 0 0 22px;
  color: var(--color-muted);
  font-weight: 800;
}

.sitemap-layout {
  display: grid;
  gap: 28px;
}

.sitemap-panel {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.sitemap-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.sitemap-links.multi-column {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sitemap-links a {
  color: #334155;
  font-weight: 700;
}

.site-footer {
  background: #0f172a;
  color: #cbd5e1;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: 1.5fr 0.75fr 0.75fr;
  gap: 38px;
}

.footer-brand .brand-title {
  color: #ffffff;
}

.footer-about p {
  max-width: 600px;
  margin: 18px 0 0;
  line-height: 1.8;
}

.footer-column h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
}

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

.footer-column a {
  color: #cbd5e1;
}

.footer-column a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
  color: #94a3b8;
  font-size: 14px;
}

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

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

  .hero-shell {
    min-height: auto;
  }

  .hero-slide {
    position: relative;
    gap: 34px;
  }

  .hero-media {
    min-height: 360px;
  }

  .sitemap-links.multi-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .nav-toggle {
    display: flex;
  }

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

  .brand-subtitle {
    display: none;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    padding: 36px 0 74px;
  }

  .hero-media {
    min-height: 300px;
    border-radius: 24px;
  }

  .hero-media img {
    min-height: 300px;
  }

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

  .hero-copy p,
  .page-hero p,
  .lead {
    font-size: 16px;
  }

  .stat-grid,
  .movie-grid,
  .large-grid,
  .category-grid,
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

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

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

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

@media (max-width: 520px) {
  .container,
  .site-header-inner,
  .mobile-nav,
  .footer-inner,
  .footer-bottom p {
    width: min(100% - 22px, 1180px);
  }

  .section {
    padding: 48px 0;
  }

  .stat-grid,
  .movie-grid,
  .large-grid,
  .category-grid,
  .overview-grid,
  .sitemap-links.multi-column {
    grid-template-columns: 1fr;
  }

  .movie-card-compact .movie-card-link {
    grid-template-columns: 88px 1fr;
  }

  .movie-card-compact .poster-frame {
    min-height: 132px;
  }

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