:root {
  --color-bg: #f9fafb;
  --color-panel: #ffffff;
  --color-text: #111827;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-red: #dc2626;
  --color-red-dark: #7f1d1d;
  --color-orange: #ea580c;
  --color-amber: #f59e0b;
  --color-teal: #0f766e;
  --shadow-soft: 0 12px 34px rgba(15, 23, 42, 0.10);
  --shadow-strong: 0 22px 54px rgba(15, 23, 42, 0.18);
  --radius-lg: 18px;
  --radius-xl: 24px;
  --container: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: min(100% - 32px, var(--container));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: white;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-red), var(--color-orange));
  box-shadow: 0 12px 26px rgba(220, 38, 38, 0.26);
}

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

.brand-copy strong {
  font-size: 20px;
  letter-spacing: 0.02em;
}

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

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.desktop-nav::-webkit-scrollbar {
  display: none;
}

.nav-link,
.mobile-nav-link {
  border-radius: 12px;
  color: #374151;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link {
  padding: 10px 14px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-nav-link:hover,
.mobile-nav-link.is-active {
  background: var(--color-red);
  color: white;
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.20);
}

.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.mobile-toggle span {
  width: 20px;
  height: 2px;
  background: #374151;
  border-radius: 99px;
}

.mobile-nav {
  display: none;
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 0 0 18px;
  gap: 8px;
  flex-direction: column;
}

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

.mobile-nav-link {
  padding: 12px 14px;
}

.hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: linear-gradient(135deg, #7f1d1d, #9a3412, #92400e);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 18px 18px, rgba(255, 255, 255, 0.28) 0 2px, transparent 2px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.10), transparent 45%);
  background-size: 60px 60px, cover;
  pointer-events: none;
}

.hero-slides {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 100px max(24px, calc((100vw - var(--container)) / 2)) 110px;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.hero-content {
  width: min(720px, 62vw);
  color: white;
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  color: #fde68a;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  max-width: 760px;
}

.hero h1 span {
  display: block;
  color: #fcd34d;
}

.hero-summary {
  max-width: 660px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.90);
  font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags {
  margin-top: 22px;
}

.hero-tags span,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.tag-row span {
  background: #f3f4f6;
  color: #4b5563;
}

.large-tags span {
  min-height: 32px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--color-red), var(--color-orange));
  box-shadow: 0 14px 30px rgba(220, 38, 38, 0.26);
}

.btn-ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
  background: white;
  color: var(--color-red-dark);
}

.btn-light {
  color: var(--color-orange);
  background: white;
  box-shadow: 0 14px 30px rgba(120, 53, 15, 0.20);
}

.hero-side-panel {
  position: absolute;
  right: max(24px, calc((100vw - var(--container)) / 2));
  top: 50%;
  z-index: 4;
  width: min(390px, 31vw);
  transform: translateY(-50%);
  color: white;
}

.hot-entry-card {
  padding: 24px;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
}

.hot-entry-card span {
  color: #fcd34d;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.hot-entry-card h2 {
  margin: 10px 0 8px;
  font-size: 24px;
  line-height: 1.2;
}

.hot-entry-card p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
}

.hot-entry-card a {
  display: inline-flex;
  color: #fef3c7;
  font-weight: 900;
}

.hero-mini-ranking {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.hero-dots {
  position: absolute;
  left: max(24px, calc((100vw - var(--container)) / 2));
  bottom: 44px;
  z-index: 5;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 34px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.40);
}

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

.content-section {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 64px 0;
}

.surface-white {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - var(--container)) / 2));
  padding-right: max(16px, calc((100vw - var(--container)) / 2));
  background: white;
}

.surface-dark {
  width: 100%;
  max-width: none;
  padding-left: max(16px, calc((100vw - var(--container)) / 2));
  padding-right: max(16px, calc((100vw - var(--container)) / 2));
  background: linear-gradient(135deg, #134e4a, #0f766e, #155e75);
  color: white;
}

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

.section-heading h2 {
  margin: 0 0 6px;
  color: inherit;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
}

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

.surface-dark .section-heading p {
  color: rgba(255, 255, 255, 0.78);
}

.section-more {
  color: var(--color-red);
  font-weight: 900;
}

.surface-dark .section-more {
  color: #fcd34d;
}

.card-grid,
.featured-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.movie-card {
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.95);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
  transform: translateY(-6px);
  border-color: rgba(248, 113, 113, 0.38);
  box-shadow: var(--shadow-soft);
}

.movie-poster {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(252, 211, 77, 0.35), transparent 34%),
    linear-gradient(135deg, #991b1b, #ea580c 48%, #92400e);
}

.movie-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.poster-fallback-title {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 5px 10px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-red), var(--color-amber));
  box-shadow: 0 10px 20px rgba(127, 29, 29, 0.26);
}

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

.movie-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
}

.movie-card-meta a {
  color: var(--color-red);
}

.movie-card h3 {
  display: -webkit-box;
  min-height: 52px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--color-text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card h3 a:hover {
  color: var(--color-red);
}

.movie-card p {
  display: -webkit-box;
  min-height: 44px;
  margin: 0 0 12px;
  overflow: hidden;
  color: var(--color-muted);
  font-size: 14px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.movie-card-compact .movie-card-body {
  padding: 13px;
}

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

.category-index-band {
  padding-top: 48px;
  padding-bottom: 48px;
}

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

.category-chip {
  display: flex;
  min-height: 116px;
  padding: 20px;
  border-radius: var(--radius-lg);
  color: white;
  flex-direction: column;
  justify-content: flex-end;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.25), transparent 38%),
    linear-gradient(135deg, #b91c1c, #ea580c);
  box-shadow: var(--shadow-soft);
  transition: transform 0.22s ease;
}

.category-chip:hover {
  transform: translateY(-4px);
}

.category-chip strong {
  font-size: 20px;
}

.category-chip span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
}

.category-preview {
  padding: 26px 0 6px;
}

.callout-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 46px max(24px, calc((100vw - var(--container)) / 2));
  color: white;
  background: linear-gradient(135deg, #d97706, #ea580c, #b91c1c);
}

.callout-band h2 {
  margin: 0 0 8px;
  font-size: clamp(26px, 3vw, 38px);
}

.callout-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.page-hero {
  position: relative;
  min-height: 320px;
  padding: 76px max(24px, calc((100vw - var(--container)) / 2));
  color: white;
  background:
    radial-gradient(circle at 84% 20%, rgba(252, 211, 77, 0.30), transparent 34%),
    linear-gradient(135deg, #7f1d1d, #9a3412, #92400e);
}

.compact-hero {
  min-height: 260px;
}

.page-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
}

.page-hero p:not(.eyebrow) {
  max-width: 790px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
}

.category-hero {
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(135deg, #991b1b, #c2410c, #0f766e);
}

.ranking-hero {
  background:
    radial-gradient(circle at 78% 22%, rgba(252, 211, 77, 0.35), transparent 30%),
    linear-gradient(135deg, #0f172a, #7f1d1d, #ea580c);
}

.search-hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(45, 212, 191, 0.35), transparent 32%),
    linear-gradient(135deg, #0f172a, #155e75, #7f1d1d);
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: white;
  box-shadow: var(--shadow-soft);
}

.category-cover {
  display: flex;
  align-items: flex-end;
  min-height: 260px;
  padding: 22px;
  color: white;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.30), transparent 34%),
    linear-gradient(135deg, #b91c1c, #ea580c);
}

.category-cover span {
  font-size: 22px;
  font-weight: 900;
}

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

.category-overview-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.category-overview-card p {
  margin: 0 0 12px;
  color: var(--color-muted);
}

.category-overview-card strong {
  color: var(--color-red);
}

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

.category-overview-card li a:hover {
  color: var(--color-red);
}

.filter-panel,
.search-panel {
  display: grid;
  gap: 16px;
  margin-bottom: 30px;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.filter-panel {
  grid-template-columns: 1.7fr 1fr 1fr auto;
  align-items: end;
}

.filter-panel.slim {
  grid-template-columns: 1.5fr 1fr auto;
}

.filter-panel label,
.search-panel label {
  display: grid;
  gap: 7px;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
}

.filter-panel input,
.filter-panel select,
.search-panel input,
.search-panel select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 0 12px;
  outline: none;
  background: white;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-panel input:focus,
.search-panel select:focus {
  border-color: var(--color-red);
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.10);
}

.filter-panel output,
.search-panel output {
  color: var(--color-red);
  font-weight: 900;
}

.search-panel {
  grid-template-columns: 1.4fr 1fr;
  align-items: end;
}

.search-controls {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
}

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

.rank-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(229, 231, 235, 0.88);
  border-radius: 16px;
  background: white;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.rank-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.hero-mini-ranking .rank-row,
.dark-rank-list .rank-row {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.13);
  color: white;
  backdrop-filter: blur(12px);
}

.rank-number {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: white;
  font-weight: 900;
  background: linear-gradient(135deg, var(--color-red), var(--color-orange));
}

.rank-info {
  min-width: 0;
}

.rank-info strong,
.rank-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.hero-mini-ranking .rank-info small,
.dark-rank-list .rank-info small {
  color: rgba(255, 255, 255, 0.72);
}

.rank-score {
  color: var(--color-red);
  font-size: 18px;
  font-weight: 900;
}

.hero-mini-ranking .rank-score,
.dark-rank-list .rank-score {
  color: #fcd34d;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  color: white;
  background: #111827;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
}

.detail-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.20);
}

.detail-hero-inner {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, var(--container));
  min-height: 560px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 68px 0;
}

.detail-poster {
  border-radius: var(--radius-xl);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.detail-copy h1 {
  font-size: clamp(38px, 5vw, 68px);
}

.detail-copy > p:not(.eyebrow) {
  max-width: 820px;
  margin: 20px 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

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

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

.detail-meta-grid span {
  display: grid;
  gap: 2px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
}

.detail-meta-grid strong {
  color: #fde68a;
  font-size: 12px;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 26px;
  align-items: start;
}

.detail-main,
.detail-sidebar {
  display: grid;
  gap: 22px;
}

.player-card,
.text-panel,
.side-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: white;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.07);
}

.player-card {
  overflow: hidden;
}

.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  background: black;
}

.player-shell video {
  width: 100%;
  height: 100%;
  background: black;
}

.player-start {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  border: 0;
  color: white;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.58), rgba(0, 0, 0, 0.58));
}

.player-start strong {
  font-size: 22px;
}

.player-start small {
  color: rgba(255, 255, 255, 0.78);
}

.play-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  position: relative;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.24);
}

.play-icon::after {
  content: "";
  position: absolute;
  left: 31px;
  top: 23px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 23px solid var(--color-red);
}

.player-card.is-playing .player-start {
  display: none;
}

.player-status {
  margin: 0;
  padding: 14px 18px;
  color: var(--color-muted);
  font-size: 14px;
}

.text-panel,
.side-card {
  padding: 24px;
}

.text-panel h2,
.side-card h2 {
  margin: 0 0 14px;
  font-size: 22px;
}

.text-panel p {
  margin: 0;
  color: #374151;
  font-size: 17px;
}

.side-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}

.side-card dl div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f3f4f6;
}

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

.side-card dd {
  margin: 0;
}

.mini-rank-list .rank-row {
  grid-template-columns: 42px minmax(0, 1fr);
}

.mini-rank-list .rank-score {
  display: none;
}

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

.sitemap-block {
  padding: 24px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  background: white;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.sitemap-block h2 {
  margin: 0 0 14px;
}

.sitemap-block ul {
  columns: 2;
  margin: 0;
  padding-left: 18px;
}

.sitemap-block li {
  break-inside: avoid;
  margin-bottom: 6px;
}

.sitemap-block a:hover {
  color: var(--color-red);
}

.narrow-content {
  max-width: 900px;
}

.site-footer {
  color: #d1d5db;
  background: #111827;
}

.footer-inner {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 46px 0 26px;
}

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

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

.footer-grid p {
  margin: 0;
  color: #9ca3af;
}

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

.footer-grid a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid #374151;
  color: #9ca3af;
  font-size: 14px;
}

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

.empty-state {
  grid-column: 1 / -1;
  padding: 44px;
  border: 1px dashed #d1d5db;
  border-radius: var(--radius-xl);
  background: white;
  color: var(--color-muted);
  text-align: center;
}

@media (max-width: 1180px) {
  .desktop-nav {
    max-width: 680px;
  }

  .hero-side-panel {
    width: 340px;
  }

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

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

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

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

  .hero {
    min-height: 760px;
  }

  .hero-slide {
    align-items: flex-start;
    padding-top: 86px;
  }

  .hero-content {
    width: 100%;
  }

  .hero-side-panel {
    left: 24px;
    right: 24px;
    top: auto;
    bottom: 92px;
    width: auto;
    transform: none;
  }

  .hero-dots {
    bottom: 34px;
  }

  .category-chip-grid,
  .grid-6,
  .grid-5,
  .featured-grid,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-overview-grid,
  .detail-layout,
  .sitemap-layout {
    grid-template-columns: 1fr;
  }

  .detail-hero-inner {
    grid-template-columns: 240px minmax(0, 1fr);
  }

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

  .filter-panel,
  .filter-panel.slim,
  .search-panel,
  .search-controls {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .header-inner {
    height: 64px;
  }

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

  .hero {
    min-height: 820px;
  }

  .hero-slide {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero-side-panel {
    left: 18px;
    right: 18px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero-summary {
    font-size: 16px;
  }

  .content-section,
  .surface-white,
  .surface-dark {
    padding-top: 42px;
    padding-bottom: 42px;
  }

  .section-heading,
  .callout-band,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .category-chip-grid,
  .grid-6,
  .grid-5,
  .featured-grid,
  .grid-4 {
    grid-template-columns: 1fr;
  }

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

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

  .detail-hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

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

  .sitemap-block ul {
    columns: 1;
  }

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