:root {
  color-scheme: light;
  --bg: #f8fafc;
  --paper: #ffffff;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --slate: #0f172a;
  --slate-soft: #1e293b;
  --radius: 18px;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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 10px 30px rgba(2, 6, 23, 0.25);
}

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

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: var(--brand);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.35);
}

.brand-text {
  display: grid;
  gap: 2px;
}

.brand-text strong {
  font-size: 22px;
  letter-spacing: 0.03em;
}

.brand-text small {
  color: #94a3b8;
  font-size: 12px;
}

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

.nav-link {
  color: #cbd5e1;
  font-weight: 650;
  transition: color 0.2s ease, transform 0.2s ease;
}

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

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #ffffff;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  padding: 12px 24px 22px;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  background: #1e293b;
}

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

.mobile-link {
  color: #e2e8f0;
  font-weight: 650;
  padding: 8px 0;
}

.hero-carousel {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  color: #ffffff;
  background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.4), transparent 30%), linear-gradient(135deg, #020617 0%, #1e3a8a 50%, #0f172a 100%);
}

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

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

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: blur(2px) saturate(1.12);
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.68) 52%, rgba(15, 23, 42, 0.36) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 52px;
  min-height: 620px;
  padding: 72px 0;
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #93c5fd;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-intro h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hero-desc {
  max-width: 720px;
  margin: 24px 0 0;
  color: #cbd5e1;
  font-size: 19px;
}

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

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

.hero-tags span,
.detail-tags span,
.tag-row span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e0f2fe;
  padding: 6px 11px;
  font-size: 13px;
  font-weight: 700;
}

.detail-tags span,
.tag-row span {
  background: #eff6ff;
  color: #1d4ed8;
}

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

.primary-button,
.ghost-button,
.text-button,
.section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
  min-width: 142px;
  padding: 13px 22px;
  color: #ffffff;
  background: var(--brand);
  box-shadow: 0 18px 30px rgba(37, 99, 235, 0.35);
}

.primary-button:hover,
.section-link:hover,
.text-button:hover {
  transform: translateY(-2px);
}

.ghost-button {
  min-width: 142px;
  padding: 13px 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.hero-poster {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.5);
}

.hero-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.hero-poster span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  border-radius: 999px;
  padding: 9px 16px;
  color: #ffffff;
  background: rgba(37, 99, 235, 0.9);
  font-weight: 800;
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

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

.feature-strip,
.movie-section,
.category-section,
.rank-section,
.top-rank-cards {
  padding: 70px 0;
}

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

.feature-grid article,
.movie-card,
.category-card,
.category-overview-card,
.detail-card,
.search-panel,
.sitemap-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.feature-grid article {
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-grid article:hover,
.movie-card:hover,
.category-card:hover,
.category-overview-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.feature-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 16px;
  color: #1d4ed8;
  background: #dbeafe;
  font-weight: 900;
}

.feature-icon.green {
  color: #047857;
  background: #d1fae5;
}

.feature-icon.amber {
  color: #b45309;
  background: #fef3c7;
}

.feature-icon.red {
  color: #be123c;
  background: #ffe4e6;
}

.feature-grid h2,
.movie-card h2,
.movie-card h3,
.category-card h2,
.category-overview-card h2,
.detail-card h2,
.sitemap-block h2 {
  margin: 0;
  color: #0f172a;
}

.feature-grid p,
.section-head p,
.movie-card p,
.category-card p,
.category-overview-card p,
.page-hero p,
.detail-card p,
.sitemap-block span {
  color: var(--muted);
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.1;
}

.section-head p {
  margin: 8px 0 0;
}

.section-head.light h2,
.section-head.light p {
  color: #ffffff;
}

.section-link,
.text-button {
  color: var(--brand);
  font-weight: 850;
}

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

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

.movie-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #e2e8f0;
}

.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-badge,
.poster-year,
.poster-play {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.poster-badge {
  top: 10px;
  left: 10px;
  max-width: calc(100% - 20px);
  padding: 4px 9px;
  background: rgba(37, 99, 235, 0.92);
}

.poster-year {
  right: 10px;
  bottom: 10px;
  padding: 4px 9px;
  background: rgba(15, 23, 42, 0.72);
}

.poster-play {
  top: 50%;
  left: 50%;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  background: rgba(37, 99, 235, 0.88);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

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

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

.movie-card h2,
.movie-card h3 {
  display: -webkit-box;
  min-height: 46px;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.42;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card:hover h2,
.movie-card:hover h3 {
  color: var(--brand);
}

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 9px 0 12px;
  overflow: hidden;
  font-size: 13px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #64748b;
  font-size: 12px;
}

.tag-row {
  margin-top: 11px;
}

.tag-row span {
  padding: 4px 8px;
  font-size: 11px;
}

.category-section,
.rank-section {
  background: #f1f5f9;
}

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

.category-card {
  overflow: hidden;
}

.category-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.category-card div {
  padding: 18px;
}

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

.category-card p {
  margin: 9px 0 0;
  font-size: 14px;
}

.rank-section {
  color: #ffffff;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
}

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

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

.rank-row {
  display: grid;
  grid-template-columns: auto 54px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.14);
}

.rank-row img {
  width: 54px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-num {
  color: #93c5fd;
  font-size: 20px;
  font-weight: 900;
}

.rank-title {
  color: #ffffff;
  font-weight: 850;
}

.rank-info {
  color: #cbd5e1;
  font-size: 13px;
}

.page-hero,
.detail-hero {
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.36), transparent 32%), linear-gradient(135deg, #0f172a 0%, #1e293b 52%, #020617 100%);
}

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

.page-hero h1 {
  max-width: 900px;
}

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

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: #bfdbfe;
  font-size: 14px;
}

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

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

.category-overview-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  overflow: hidden;
}

.category-cover img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.category-overview-card div {
  padding: 24px;
}

.category-overview-card ul {
  padding: 0;
  margin: 18px 0;
  list-style: none;
}

.category-overview-card li + li {
  margin-top: 8px;
}

.category-overview-card li a:hover,
.sitemap-block a:hover {
  color: var(--brand);
}

.list-tools {
  padding: 34px 0 22px;
}

.sticky-tools {
  position: sticky;
  top: 76px;
  z-index: 20;
}

.search-panel {
  padding: 18px;
}

.search-panel input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  padding: 14px 16px;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.pill {
  border: 0;
  border-radius: 999px;
  color: #475569;
  background: #f1f5f9;
  padding: 8px 14px;
  font-weight: 750;
  cursor: pointer;
}

.pill.active,
.pill:hover {
  color: #ffffff;
  background: var(--brand);
}

.empty-state {
  display: none;
  margin: 30px 0 70px;
  text-align: center;
  color: var(--muted);
}

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

.detail-hero .container {
  padding: 46px 0 58px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  align-items: center;
}

.detail-poster {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.48);
}

.detail-poster img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.detail-intro .lead {
  max-width: 820px;
  margin: 20px 0 0;
  color: #dbeafe;
  font-size: 20px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.detail-meta-grid div {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
}

.detail-meta-grid strong {
  display: block;
  overflow: hidden;
  color: #ffffff;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-meta-grid span {
  color: #bfdbfe;
  font-size: 12px;
}

.player-section {
  padding: 52px 0 24px;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #020617;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
}

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

.player-cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 0;
  color: #ffffff;
  background: #020617;
  cursor: pointer;
}

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

.player-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  filter: blur(1px) saturate(1.1);
}

.play-circle {
  position: relative;
  z-index: 2;
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.92);
  box-shadow: 0 18px 48px rgba(37, 99, 235, 0.35);
  font-size: 30px;
}

.player-cover strong {
  position: absolute;
  z-index: 2;
  left: 28px;
  bottom: 26px;
  right: 28px;
  font-size: 24px;
  text-align: left;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.detail-content {
  display: grid;
  gap: 24px;
  padding-bottom: 70px;
}

.detail-card {
  padding: 28px;
}

.detail-card h2 {
  margin-bottom: 16px;
  font-size: 26px;
}

.detail-card p {
  margin: 0;
  font-size: 17px;
}

.detail-card p + p {
  margin-top: 12px;
}

.review-card {
  border-left: 5px solid var(--brand);
  background: linear-gradient(90deg, #eff6ff, #ffffff);
}

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

.rank-list-wrap {
  padding-bottom: 70px;
}

.rank-page .rank-row {
  background: #ffffff;
  border-color: var(--line);
}

.rank-page .rank-title {
  color: var(--ink);
}

.rank-page .rank-info {
  color: var(--muted);
}

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

.sitemap-block {
  padding: 22px;
}

.sitemap-block h2 {
  margin-bottom: 14px;
  font-size: 20px;
}

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

.sitemap-block li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
  padding: 50px 0;
}

.footer-brand {
  color: #ffffff;
  font-size: 22px;
}

.footer-grid p {
  max-width: 520px;
  color: #94a3b8;
}

.footer-grid h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: 18px;
}

.footer-grid a:not(.footer-brand) {
  display: block;
  margin-top: 9px;
  color: #cbd5e1;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding: 18px 0;
  color: #94a3b8;
}

.footer-bottom button {
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  padding: 8px 13px;
  cursor: pointer;
}

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

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

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

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

  .menu-button {
    display: block;
  }

  .hero-content,
  .detail-grid,
  .category-overview-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-content {
    min-height: 720px;
    gap: 28px;
    padding: 48px 0 72px;
  }

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

  .category-overview-grid,
  .sitemap-grid,
  .compact-rank {
    grid-template-columns: 1fr;
  }

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

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

  .brand-text strong {
    font-size: 18px;
  }

  .brand-text small {
    display: none;
  }

  .hero-carousel,
  .hero-content {
    min-height: 680px;
  }

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

  .hero-desc,
  .detail-intro .lead {
    font-size: 16px;
  }

  .feature-grid,
  .movie-grid,
  .large-grid,
  .related-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

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

  .movie-card h2,
  .movie-card h3 {
    font-size: 14px;
  }

  .rank-row {
    grid-template-columns: auto 48px 1fr;
  }

  .rank-info {
    display: none;
  }

  .player-cover strong {
    font-size: 18px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}
