:root {
  --red: #dc2626;
  --red-dark: #b91c1c;
  --orange: #f97316;
  --yellow: #facc15;
  --ink: #111827;
  --muted: #6b7280;
  --soft: #f8fafc;
  --line: #e5e7eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

body {
  background: #f6f7fb;
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

img {
  background: #111827;
  object-fit: cover;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
}

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

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

.brand-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #ffffff;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.28);
}

.brand-text strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  background: linear-gradient(90deg, var(--red), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-weight: 650;
}

.desktop-nav a,
.mobile-nav a {
  color: #374151;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover,
.mobile-nav a.active {
  color: var(--red);
}

.mobile-menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--ink);
  background: #f3f4f6;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
}

.mobile-nav-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 0 18px;
}

.mobile-nav.open {
  display: block;
}

.hero {
  position: relative;
  height: 590px;
  overflow: hidden;
  background: #111827;
}

.hero-stage,
.hero-slide {
  position: absolute;
  inset: 0;
}

.hero-slide {
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.9s ease, transform 1.2s ease;
}

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

.hero-slide img,
.detail-backdrop img {
  width: 100%;
  height: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  height: 100%;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 82px;
  color: #ffffff;
}

.hero-kicker,
.section-kicker {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: #facc15;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-content h1 {
  max-width: 780px;
  margin-top: 16px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.08;
  font-weight: 850;
}

.hero-content p {
  max-width: 720px;
  margin-top: 20px;
  color: #e5e7eb;
  font-size: 19px;
  line-height: 1.75;
}

.hero-meta,
.meta-row,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero-meta {
  margin-top: 20px;
}

.hero-meta span,
.meta-row span,
.detail-meta span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: inherit;
  font-size: 14px;
}

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

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

.primary-button {
  min-height: 48px;
  padding: 0 30px;
  color: #ffffff;
  background: var(--red);
}

.primary-button:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
}

.ghost-button {
  min-height: 48px;
  padding: 0 28px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

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

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  transition: width 0.2s ease, background 0.2s ease;
}

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

.section-block {
  padding: 58px 0;
}

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

.section-title-row h2 {
  margin-top: 7px;
  color: var(--ink);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 850;
}

.section-link {
  min-height: 40px;
  padding: 0 18px;
  color: var(--red);
  background: #fee2e2;
}

.section-link:hover {
  color: #ffffff;
  background: var(--red);
}

.light-title h2,
.light-title .section-kicker,
.light-link {
  color: #ffffff;
}

.light-link {
  background: rgba(255, 255, 255, 0.12);
}

.poster-grid {
  display: grid;
  gap: 22px;
}

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

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

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

.poster-card,
.wide-card,
.compact-card,
.category-overview-card,
.rank-row,
.text-card,
.side-card,
.player-card {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.poster-link {
  display: block;
}

.poster-image {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.poster-image img,
.poster-card img,
.wide-poster img,
.compact-poster img,
.rank-poster img,
.category-cover img,
.detail-poster img {
  width: 100%;
  height: 100%;
  transition: transform 0.45s ease;
}

.poster-card:hover img,
.wide-card:hover img,
.compact-card:hover img,
.rank-row:hover img,
.category-overview-card:hover img {
  transform: scale(1.06);
}

.play-mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--red);
  font-size: 28px;
  opacity: 0;
  background: rgba(0, 0, 0, 0.32);
  transition: opacity 0.2s ease;
}

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

.poster-link strong {
  display: -webkit-box;
  overflow: hidden;
  min-height: 44px;
  margin-top: 12px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.poster-link span:last-child {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  min-width: 34px;
  height: 34px;
  place-items: center;
  color: #ffffff;
  border-radius: 999px;
  background: var(--red);
  font-weight: 850;
}

.category-band {
  padding: 38px;
  border-radius: 32px;
  background: linear-gradient(135deg, #fff1f2, #ffedd5);
}

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

.category-tile {
  display: grid;
  min-height: 118px;
  align-content: center;
  gap: 10px;
  padding: 22px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.category-tile strong {
  color: var(--ink);
  font-size: 18px;
}

.category-tile span {
  color: var(--muted);
  font-size: 14px;
}

.wide-list {
  display: grid;
  gap: 18px;
}

.wide-card {
  display: grid;
  grid-template-columns: 290px 1fr;
  overflow: hidden;
}

.wide-poster {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.wide-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}

.wide-body h3,
.compact-card h3,
.rank-info h2,
.category-overview-card h2 {
  font-size: 22px;
  font-weight: 850;
  line-height: 1.35;
}

.wide-body p,
.compact-card p,
.rank-info p,
.category-overview-card p,
.text-card p {
  color: #4b5563;
  line-height: 1.8;
}

.wide-body p {
  margin-top: 10px;
}

.meta-row {
  color: #4b5563;
  margin-bottom: 12px;
}

.meta-row span {
  background: #f3f4f6;
}

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

.tag-list span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #4b5563;
  background: #f3f4f6;
  font-size: 13px;
}

.small-tags {
  margin-top: 14px;
}

.dark-band {
  background: linear-gradient(135deg, #1f2937, #7f1d1d);
}

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

.compact-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  overflow: hidden;
  padding: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

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

.compact-card p,
.compact-card span {
  color: #d1d5db;
}

.compact-poster {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
}

.page-hero {
  padding: 82px 0;
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(249, 115, 22, 0.75), transparent 36%), linear-gradient(135deg, #111827, #7f1d1d);
}

.page-hero h1 {
  margin-top: 12px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 850;
}

.page-hero p {
  max-width: 760px;
  margin-top: 18px;
  color: #e5e7eb;
  font-size: 18px;
  line-height: 1.8;
}

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

.category-overview-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  overflow: hidden;
  padding: 18px;
}

.category-cover {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 16px;
}

.mini-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.mini-link-list a {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--red);
  background: #fee2e2;
  font-size: 13px;
}

.filter-panel {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.9fr auto;
  align-items: end;
  gap: 16px;
  margin-bottom: 28px;
  padding: 18px;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.filter-panel label {
  display: grid;
  gap: 8px;
  color: #4b5563;
  font-weight: 700;
}

.filter-panel input,
.filter-panel select {
  height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--ink);
  background: #f9fafb;
}

.filter-count {
  display: grid;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 0 16px;
  color: var(--red);
  background: #fee2e2;
  font-weight: 850;
}

.region-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.region-chips button {
  padding: 8px 13px;
  border-radius: 999px;
  color: #4b5563;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.region-chips button:hover,
.region-chips button.active {
  color: #ffffff;
  background: var(--red);
}

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

.rank-row {
  display: grid;
  grid-template-columns: 70px 98px 1fr 120px;
  align-items: center;
  gap: 18px;
  padding: 16px;
}

.rank-number {
  color: var(--red);
  font-size: 30px;
  font-weight: 900;
  text-align: center;
}

.rank-poster {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 14px;
}

.rank-score {
  display: grid;
  justify-items: center;
  gap: 4px;
  color: var(--red);
}

.rank-score strong {
  font-size: 28px;
  font-weight: 900;
}

.rank-score span {
  color: var(--muted);
  font-size: 13px;
}

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

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

.detail-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, #111827 0%, rgba(17, 24, 39, 0.72) 48%, rgba(17, 24, 39, 0.9) 100%);
}

.detail-hero-content {
  position: relative;
  z-index: 2;
  padding: 42px 0 68px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  color: #d1d5db;
  font-size: 14px;
}

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

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

.detail-poster {
  overflow: hidden;
  aspect-ratio: 2 / 3;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.detail-main h1 {
  margin-top: 10px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  font-weight: 900;
}

.detail-one-line {
  max-width: 820px;
  margin-top: 18px;
  color: #e5e7eb;
  font-size: 19px;
  line-height: 1.75;
}

.detail-meta {
  margin-top: 20px;
}

.detail-tags {
  margin: 20px 0 26px;
}

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

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

.content-main-column,
.side-column {
  display: grid;
  gap: 22px;
}

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

.player-card video {
  width: 100%;
  height: 100%;
  background: #000000;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  color: #ffffff;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.38), rgba(0, 0, 0, 0.42));
  text-align: center;
}

.player-overlay span {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border-radius: 999px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.92);
  font-size: 30px;
  box-shadow: var(--shadow);
}

.player-card.playing .player-overlay {
  display: none;
}

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

.text-card h2,
.side-card h2 {
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 850;
}

.side-card dl {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px 14px;
}

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

.side-card dd {
  color: var(--ink);
  font-weight: 700;
}

.site-footer {
  padding: 48px 0;
  color: #d1d5db;
  background: #111827;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.1fr;
  gap: 34px;
}

.footer-brand {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.site-footer h3 {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}

.site-footer p {
  max-width: 520px;
  line-height: 1.8;
}

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

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

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

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

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

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

  .mobile-menu-button {
    display: inline-grid;
    place-items: center;
  }

  .hero {
    height: 540px;
  }

  .hero-content {
    padding-bottom: 74px;
  }

  .section-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .six-column,
  .five-column,
  .four-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

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

  .rank-score {
    grid-column: 3;
    justify-items: start;
  }
}

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

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

  .brand-text small {
    display: none;
  }

  .hero-content p,
  .page-hero p,
  .detail-one-line {
    font-size: 16px;
  }

  .six-column,
  .five-column,
  .four-column,
  .poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .category-band {
    padding: 22px;
  }

  .compact-card {
    grid-template-columns: 96px 1fr;
  }

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