:root {
  --space-dark: #0f172a;
  --space-blue: #1e293b;
  --star-white: #f1f5f9;
  --nebula-pink: #f97316;
  --comet-cyan: #64748b;
  --g21-accent-text: #ea580c;
  --g21-font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sun-gold: #fbbf24;
  --planet-purple: #475569;
  --ink-muted: #94a3b8;
  --line-soft: #334155;
  --shadow-card: none;
  --shadow-lift: 0 4px 12px rgba(0,0,0,0.3);
  --g21-radius: 0;
  --g21-radius-sm: 0;
  --g21-header-h: 56px;
  --g21-border: 1px solid #334155;
  --transition-fast: 0.15s ease;
  --g21-star-full: #fbbf24;
  --g21-star-glow: rgba(251, 191, 36, 0.3);
  --g21-star-empty: #475569;
  --g21-star-track: #1e293b;
  --g21-star-border: #334155;
}

*, *::before, *::after { box-sizing: border-box; }

html { width: 100%; overflow-x: hidden; scroll-behavior: smooth; }

body,
.g21-body {
  background: var(--space-dark);
  color: var(--star-white);
  font-family: var(--g21-font);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  line-height: 1.55;
  padding-top: var(--g21-header-h);
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* 锚定广告：贴导航下沿；若已有首屏 AD_UNIT 位则不再抬高 body，避免空白条 */
body.g21-body:has(.anchorAdContent):not(:has(.g21-ad-slot--top)) {
  padding-top: calc(var(--g21-header-h) + 94px);
}

body.g21-body:has(.anchorAdContent):not(:has(.g21-ad-slot--top)) .anchorAdContent {
  position: fixed !important;
  top: var(--g21-header-h) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  z-index: 9999 !important;
}

body.g21-body:has(.g21-ad-slot--top) .anchorAdContent {
  display: none !important;
}

/* 详情全屏 Banner：顶到视口上沿，导航叠在头图上，消除 body 顶内边距造成的米色间隙 */
body.g21-body:has(.g21-detail-banner) {
  padding-top: 0 !important;
}

body.g21-body:has(.g21-detail-banner) .anchorAdContent {
  display: none !important;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

h1, h2, h3, h4 {
  font-family: var(--g21-font);
  font-weight: 800;
  margin-top: 0;
  letter-spacing: -0.02em;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0; margin: 0; }

/* 页面内容区宽度（勿用 container：与广告模板类名冲突） */
.g21-page-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 游戏简介：最多 2 行 + 省略号（TEMPLATE_SPEC §5.1） */
.brief-comment-game {
  margin: 0;
  padding: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--ink-muted);
}

.brief-comment-game__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  overflow-wrap: break-word;
}

.brief-comment-game__text p,
.brief-comment-game__text div,
.brief-comment-game__text li {
  display: inline;
  margin: 0;
  padding: 0;
}

.brief-comment-game__text br {
  display: none;
}

.brief-comment-game__text a {
  color: inherit;
  text-decoration: none;
  pointer-events: none;
}

.article-list .special-card-content,
.article-list .carousel-card-content {
  padding: 12px 14px 16px;
}

/* 游戏列表标题：单行超出省略（见 TEMPLATE_SPEC §5.1.2 / §7.1） */
.article-list .game-title,
.article-list .card-title,
.g21-feature-lead .game-title,
.g21-feature-strip .game-title,
.special-card .game-title,
.special-card-content .game-title,
.game-card .card-title,
.carousel-card .game-title,
.g21-film-card .game-title,
.g21-mosaic-card .game-title,
.g21-poster-card .game-title,
.g21-scroll-body .game-title,
.g21-scroll-body h3 {
  display: block;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.special-card-content,
.carousel-card-content,
.card-content,
.g21-feature-lead-copy,
.g21-feature-strip-copy,
.g21-scroll-body {
  min-width: 0;
}

.module-description {
  margin: 0 0 1.25rem;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 58ch;
}

/* ── Ads & legal ── */
.g21-ad-slot {
  padding-top: 16px;
  padding-bottom: 16px;
  overflow: hidden;
  background: transparent;
}

.g21-ad-slot--top {
  padding-top: 8px;
  padding-bottom: 8px;
}

.g21-ad-slot--top.g21-page-wrap {
  padding-left: 16px;
  padding-right: 16px;
}

.g21-ad-slot iframe,
.g21-ad-slot ins,
.g21-ad-slot > div {
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.g21-legal-ad {
  padding-top: 20px;
}

.g21-page-wrap > * + .legal-container { margin-top: 24px; }

.g21-page-wrap > .legal-container:first-child {
  margin-top: 20px;
}

.legal-container {
  padding: 28px 24px;
  margin-bottom: 48px;
  background: var(--space-blue);
  border: var(--g21-border);
  border-radius: var(--g21-radius);
  box-shadow: var(--shadow-card);
  line-height: 1.7;
}

.legal-container h1,
.legal-container h2 { color: var(--nebula-pink); }

.legal-container h1 {
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
  line-height: 1.25;
  margin-bottom: 0.65rem;
}

.legal-container h2 {
  font-size: 1.15rem;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

/* ── Header（fixed 贴顶，避免 sticky + 锚定广告顶出空白） ── */
.g21-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10001;
  background: var(--space-blue);
  border-bottom: var(--g21-border);
  margin: 0;
}

.g21-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: auto;
  min-height: var(--g21-header-h);
  max-height: none;
}

.g21-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  max-width: none;
}

.g21-logo .logo-text {
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
  line-height: 1.2;
}

.logo-text {
  font-family: var(--g21-font);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--star-white);
}

.logo-img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.g21-nav-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  min-width: 0;
  flex-wrap: nowrap;
}

.g21-nav-bar .nav-link,
.g21-nav-bar .nav-more-toggle {
  white-space: nowrap;
  flex: 0 0 auto;
}

.g21-nav-bar .nav-item--primary.is-overflow-hidden {
  display: none;
}

.g21-nav-bar .nav-more {
  position: relative;
  flex: 0 0 auto;
}

.g21-nav-bar .nav-more-toggle {
  cursor: pointer;
  border: none;
  font: inherit;
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.g21-nav-bar .nav-more-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  padding: 8px;
  background: #fff;
  border: 3px solid #1a1625;
  border-radius: 12px;
  box-shadow: 6px 6px 0 #1a1625;
  z-index: 1200;
}

.g21-nav-bar .nav-more.active .nav-more-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.g21-nav-bar .nav-more-menu .nav-link {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
}

.g21-nav-bar .nav-more-menu .nav-link:hover {
  background: #fef08a;
}

.g21-nav-bar .nav-link {
  padding: 8px 10px;
  font-weight: 600;
  font-size: 0.82rem;
  border-radius: var(--g21-radius-sm);
  border: 2px solid transparent;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.g21-nav-bar .nav-link:hover {
  background: #fef08a;
  border-color: var(--line-soft);
}

.g21-nav-bar .nav-link.active {
  background: rgba(249, 115, 22, 0.15);
  color: var(--nebula-pink);
  border-color: var(--nebula-pink);
}

/* 覆盖 navigation.css 的下划线，避免顶栏错位 */
.g21-nav-bar .nav-link::after,
.g21-nav-bar .nav-more-toggle::after {
  display: none !important;
}

.g21-header-cta {
  flex-shrink: 0;
  padding: 10px 18px;
  font-weight: 700;
  font-size: 0.88rem;
  background: var(--nebula-pink);
  color: #fff;
  border: var(--g21-border);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--line-soft);
  transition: transform var(--transition-fast);
}

.g21-header-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--line-soft);
}

/* Mobile nav */
.g21-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--space-blue);
  border-top: var(--g21-border);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0));
  justify-content: space-around;
  gap: 4px;
}

.g21-mobile-bar .mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 12px;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--g21-radius-sm);
  border: 2px solid transparent;
  color: var(--ink-muted);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.g21-mobile-bar .mobile-nav-item.active {
  background: var(--nebula-pink);
  border-color: var(--nebula-pink);
  color: #0f172a;
}

.g21-mob-icon { font-size: 1.1rem; line-height: 1; }

@media (max-width: 768px) {
  :root {
  --space-dark: #0f172a;
  --space-blue: #1e293b;
  --star-white: #f1f5f9;
  --nebula-pink: #f97316;
  --comet-cyan: #64748b;
  --g21-accent-text: #ea580c;
  --g21-font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --sun-gold: #fbbf24;
  --planet-purple: #475569;
  --ink-muted: #94a3b8;
  --line-soft: #334155;
  --shadow-card: none;
  --shadow-lift: 0 4px 12px rgba(0,0,0,0.3);
  --g21-radius: 0;
  --g21-radius-sm: 0;
  --g21-header-h: 56px;
  --g21-border: 1px solid #334155;
  --transition-fast: 0.15s ease;
  --g21-star-full: #fbbf24;
  --g21-star-glow: rgba(251, 191, 36, 0.3);
  --g21-star-empty: #475569;
  --g21-star-track: #1e293b;
  --g21-star-border: #334155;
}

  .g21-nav-bar,
  .g21-header-cta {
    display: none !important;
  }

  .g21-mobile-bar {
    display: flex;
  }

  body.g21-body,
  body:has(.g21-mobile-bar) {
    padding-bottom: calc(var(--g21-mobile-nav-h, 72px) + env(safe-area-inset-bottom, 0));
  }

  .g21-site-header {
    height: auto;
  }

  .g21-header-inner {
    height: auto;
    min-height: var(--g21-header-h);
    max-height: none;
    padding: 6px 12px;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
  }

  .g21-logo .logo-img {
    height: 32px;
    width: auto;
    flex-shrink: 0;
  }

  .g21-logo .logo-text {
    font-size: 0.95rem;
    line-height: 1.15;
    display: block;
  }

  .g21-ad-slot,
  .g21-ad-slot--top {
    padding-top: 4px;
    padding-bottom: 4px;
  }

  .g21-ad-slot--top.g21-page-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }

  .g21-ad-slot--top + .g21-spotlight,
  .g21-ad-slot--top + .daily-special,
  .g21-ad-slot--top + .g21-pick-section {
    padding-top: 12px;
  }

  .g21-spotlight {
    padding-top: 16px;
    padding-bottom: 24px;
  }

  .g21-pick-section {
    padding-top: 12px;
  }

  .g21-ad-slot--top + .g21-spotlight + .daily-special,
  .g21-ad-slot--top + .g21-spotlight + .g21-pick-section {
    padding-top: 16px;
  }
}

@media (min-width: 769px) {
  .g21-logo {
    flex: 0 1 auto;
    max-width: min(40vw, 280px);
  }
}

/* ── Hero split（工业首页见 .g21-hero-industrial） ── */
.g21-hero-split {
  padding: 28px 0 40px;
}

.g21-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.g21-hero-eyebrow {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--g21-accent-text);
}

.g21-hero-split .hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 12px;
}

.g21-hero-split .hero-subtitle {
  font-size: 1.05rem;
  color: var(--ink-muted);
  margin-bottom: 20px;
  max-width: 42ch;
}

.g21-hero-search {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin-bottom: 14px;
}

.g21-hero-search .form-input {
  flex: 1;
  padding: 12px 16px;
  border: var(--g21-border);
  border-radius: var(--g21-radius-sm);
  background: #fff;
  font: inherit;
  font-size: 0.95rem;
  outline: none;
}

.g21-hero-search .form-input:focus {
  box-shadow: 0 0 0 3px var(--sun-gold);
}

.hero-cta,
.g21-btn-play {
  padding: 12px 22px;
  font-family: var(--g21-font);
  font-weight: 700;
  font-size: 0.9rem;
  background: var(--nebula-pink);
  color: #0f172a;
  border: var(--g21-border);
  border-radius: var(--g21-radius-sm);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.hero-cta:hover,
.g21-btn-play:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lift);
}

.g21-hero-browse {
  display: inline-block;
  font-weight: 700;
  color: var(--g21-accent-text);
  border-bottom: 2px solid currentColor;
}

.g21-hero-aside {
  background: #fff;
  border: var(--g21-border);
  border-radius: var(--g21-radius);
  padding: 20px;
  box-shadow: var(--shadow-card);
}

.g21-aside-label {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.g21-quick-cats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.g21-quick-cat {
  display: block;
  padding: 12px 14px;
  font-weight: 600;
  background: var(--space-dark);
  border: 2px solid var(--line-soft);
  border-radius: var(--g21-radius-sm);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

.g21-quick-cat:hover {
  background: #fef08a;
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .g21-hero-grid { grid-template-columns: 1fr; }
  .g21-hero-aside { order: -1; }
  .g21-quick-cats {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .g21-quick-cat { flex: 1 1 calc(50% - 4px); }
}

/* ── Section headers ── */
.g21-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.g21-section-head h2 {
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  margin: 0;
}

.module-link-more {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--nebula-pink);
  white-space: nowrap;
}

.g21-badge {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 10px;
  font-size: 0.65rem;
  font-family: var(--g21-font);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--sun-gold);
  border: 2px solid var(--line-soft);
  border-radius: 4px;
  vertical-align: middle;
}

/* ── Featured：左主卡横图 + 右双横条（非 g16 三列叠图） ── */
.g21-cat-wall {
  content-visibility: auto;
  contain-intrinsic-size: auto 280px;
}

.daily-special:not(.g21-spotlight):not(.g21-pick-section) {
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
}

.g21-spotlight {
  padding: 32px 0 44px;
}

.g21-feature-stage {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 34%);
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  min-height: clamp(300px, 34vw, 380px);
  max-height: 400px;
}

.g21-feature-lead {
  grid-row: 1 / -1;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 0;
  background: #fff;
  border: var(--g21-border);
  border-radius: var(--g21-radius);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  transition: transform var(--transition-fast);
}

.g21-feature-lead:hover {
  transform: translate(-3px, -3px);
}

.g21-feature-lead-media {
  flex: 0 0 58%;
  min-width: 0;
  border-right: var(--g21-border);
  background: #e7e5e4;
  overflow: hidden;
  aspect-ratio: 7 / 4;
}

.g21-feature-lead-media img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
}

.g21-feature-lead-copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 22px;
  background: #fef08a;
  min-width: 0;
}

.g21-feature-kicker {
  margin: 0 0 8px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--g21-accent-text);
}

.g21-feature-lead .game-title {
  margin: 0 0 10px;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.2;
}

.g21-feature-strip {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  min-height: 0;
  background: #fff;
  border: var(--g21-border);
  border-radius: var(--g21-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-fast);
}

.g21-feature-strip:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-lift);
}

.g21-feature-strip-thumb {
  flex: 0 0 42%;
  max-width: 140px;
  border-right: var(--g21-border);
  background: #e7e5e4;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.g21-feature-strip-thumb img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  display: block;
}

.g21-feature-strip-copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 14px;
  min-width: 0;
}

.g21-feature-strip:nth-of-type(2) .g21-feature-strip-copy { background: #ecfdf5; }
.g21-feature-strip:nth-of-type(3) .g21-feature-strip-copy { background: #fce7f3; }

.g21-feature-strip .game-title {
  margin: 0 0 6px;
  font-size: 0.88rem;
  line-height: 1.25;
}

.g21-feature-lead .game-star,
.g21-feature-strip .game-star {
  margin: 0;
}

@media (max-width: 768px) {
  .g21-feature-stage {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: none;
    gap: 12px;
  }

  .g21-feature-lead {
    flex-direction: column;
    min-height: 0;
  }

  .g21-feature-lead-media {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 10;
    border-right: none;
    border-bottom: var(--g21-border);
  }

  .g21-feature-lead-copy {
    padding: 14px 16px;
  }

  .g21-feature-strip-thumb {
    flex: 0 0 36%;
    max-width: 120px;
  }
}

/* ── Poster grid (module 1) ── */
.g21-pick-section {
  padding: 16px 0 40px;
  background: #fff;
  border-top: var(--g21-border);
  border-bottom: var(--g21-border);
}

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

.g21-poster-card {
  display: flex;
  flex-direction: column;
  background: var(--space-dark);
  border: var(--g21-border);
  border-radius: var(--g21-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-fast);
}

.g21-poster-card:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-lift);
}

.g21-poster-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: var(--g21-border);
  background: #e7e5e4;
}

.g21-poster-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.g21-poster-card .special-card-content {
  padding: 12px 14px 16px;
  min-width: 0;
}

.g21-poster-card .game-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  line-height: 1.25;
}

/* ── Mosaic grid (even modules) ── */
.g21-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.g21-mosaic-card {
  display: flex;
  flex-direction: column;
  border: var(--g21-border);
  border-radius: var(--g21-radius);
  background: #fff;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-fast);
}

.g21-mosaic-card:hover { transform: rotate(-0.5deg) translate(-2px, -2px); }

.g21-mosaic-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: var(--g21-border);
}

.g21-mosaic-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g21-mosaic-card .special-card-content {
  padding: 12px 14px 16px;
}

.g21-mosaic-card:nth-child(3n+2) {
  margin-top: 12px;
}

/* ── Filmstrip carousel (odd modules) ── */
.g21-filmstrip {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: stretch;
  padding: 20px;
  background: var(--star-white);
  border: var(--g21-border);
  border-radius: var(--g21-radius);
  box-shadow: var(--shadow-card);
}

.g21-filmstrip .carousel-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 0;
}

.g21-filmstrip .carousel-container::-webkit-scrollbar { display: none; }

.g21-film-card {
  flex: 0 0 min(280px, 78vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #fff8ef;
  border: var(--g21-border);
  border-radius: var(--g21-radius-sm);
  overflow: hidden;
}

.g21-film-thumb {
  aspect-ratio: 16 / 10;
  border-bottom: var(--g21-border);
  overflow: hidden;
}

.g21-film-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g21-film-card .carousel-card-content {
  padding: 12px;
}

.g21-film-btn {
  align-self: center;
  width: 44px;
  height: 44px;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  background: var(--sun-gold);
  border: var(--g21-border);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--line-soft);
}

.g21-film-btn:hover { background: #fef08a; }

/* ── Category wall ── */
.g21-cat-wall {
  padding: 48px 0 56px;
}

.g21-cat-wall-title {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.g21-cat-wall-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.g21-cat-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 1.05rem;
  background: #fff;
  border: var(--g21-border);
  border-radius: var(--g21-radius);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.g21-cat-block:hover {
  transform: translate(-3px, -3px);
  box-shadow: var(--shadow-lift);
  background: #fef08a;
}

.g21-cat-block:nth-child(odd) { background: #ecfdf5; }
.g21-cat-block:nth-child(3n) { background: #fce7f3; }

.g21-cat-block-arrow {
  font-size: 1.2rem;
  opacity: 0.5;
}

/* ── Tags chips ── */
.g21-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 4px 0;
}

.g21-tag-chip {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  background: #ecfdf5;
  border: 2px solid var(--line-soft);
  border-radius: 4px;
  color: var(--g21-accent-text);
}

/* ── star_html ── */
.game-star,
.game-star .star-rating,
.star-rating {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 2px;
  padding: 3px 8px;
  font-size: 0.8rem;
  line-height: 1;
  background: var(--g21-star-track);
  border: 2px solid var(--g21-star-border);
  border-radius: 6px;
}

.game-star .star-icon,
.game-star .star-full,
.game-star .star-empty,
.game-star .star-half,
.game-star .fa,
.game-star .fas,
.game-star .far,
.game-star i,
.star-rating i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  font-style: normal;
  font-size: 0.95em;
}

.game-star .star-icon::before,
.game-star .star-full::before,
.game-star .fa-star::before,
.star-rating .star-full::before {
  content: "★";
  color: var(--g21-star-full);
}

.game-star .star-half::before,
.star-rating .star-half::before {
  content: "★";
  color: var(--g21-star-full);
  opacity: 0.5;
}

.game-star .star-empty::before,
.game-star .fa-star-o::before,
.game-star .far.fa-star::before,
.star-rating .star-empty::before {
  content: "☆";
  color: var(--g21-star-empty);
}

.g21-feature-lead .game-star,
.g21-feature-strip .game-star,
.g21-poster-card .game-star,
.g21-mosaic-card .game-star,
.g21-film-card .game-star,
.g21-game-card .card-meta > .game-star,
.g21-scroll-body .game-star {
  display: inline-flex;
  width: auto;
  margin: 0 0 6px;
  align-self: flex-start;
}

.game-star.game-star--detail-hero {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}

.game-star.game-star--detail-hero .detail-rating-visual,
.game-star.game-star--detail-hero .star-rating {
  display: inline-flex;
  gap: 4px;
  padding: 0;
  background: none;
  border: none;
  font-size: 1.25rem;
}

.game-star.game-star--detail-hero .star-empty::before,
.game-star.game-star--detail-hero .fa-star-o::before {
  color: rgba(255, 255, 255, 0.55);
}

.game-star.game-star--detail-hero .star-full::before,
.game-star.game-star--detail-hero .fa-star::before {
  color: var(--sun-gold);
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
}

/* ── Image placeholder ── */
.g21-img-ph { object-fit: cover; background: #263548; }

.g21-img-ph.is-loading {
  background: #e7e5e4;
}

.g21-img-ph.is-error { opacity: 0.35; }

/* ── Detail: cinema banner ── */
.g21-detail-banner {
  position: relative;
  min-height: 320px;
  max-height: 52vh;
  overflow: hidden;
  border-bottom: var(--g21-border);
  margin-top: 0;
  flex-shrink: 0;
}

.g21-banner-img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.g21-banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26, 22, 37, 0.97) 0%,
    rgba(26, 22, 37, 0.82) 38%,
    rgba(26, 22, 37, 0.35) 62%,
    transparent 100%
  );
}

.g21-banner-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-bottom: 32px;
  color: #fff;
  z-index: 1;
}

.g21-banner-crumb .breadcrumb-item a,
.g21-banner-crumb .breadcrumb-item span {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
}

.g21-banner-content h1,
.g21-banner-content #game-title {
  color: #fff;
  font-size: clamp(1.2rem, 2.6vw, 1.85rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 10px;
  max-width: 22em;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.95),
    0 2px 14px rgba(0, 0, 0, 0.65);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.g21-banner-tags { margin-bottom: 16px; }

.g21-tag-pill {
  display: inline-block;
  margin: 0 6px 6px 0;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  color: #fff;
}

.g21-banner-play {
  background: var(--nebula-pink);
  color: #fff;
}

.g21-detail-main {
  padding-top: 32px;
}

.g21-detail-main > .g21-ad-slot {
  margin-bottom: 24px;
}

.g21-detail-main + .g21-page-wrap.g21-ad-slot {
  padding-top: 20px;
  padding-bottom: 20px;
}

.g21-detail-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

.g21-detail-article .detail-split-block {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px dashed var(--line-soft);
}

.g21-detail-article .detail-split-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.g21-detail-article h2 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--nebula-pink);
}

.rich-content { line-height: 1.7; color: var(--ink-muted); }
.rich-content img { max-width: 100%; height: auto; border-radius: var(--g21-radius-sm); }

.g21-detail-article .rich-content > *:last-child {
  margin-bottom: 0;
}

.g21-aside-card {
  position: sticky;
  top: calc(var(--g21-header-h) + 16px);
  padding: 24px;
  background: var(--space-blue);
  color: var(--star-white);
  border: var(--g21-border);
  border-radius: var(--g21-radius);
  box-shadow: var(--shadow-card);
}

.g21-aside-label {
  margin: 0 0 12px;
  font-weight: 800;
  font-family: var(--g21-font);
}

.g21-aside-card .g21-btn-play,
.g21-aside-play {
  width: 100%;
  background: var(--nebula-pink);
  color: #0f172a;
  border-color: var(--nebula-pink);
}

.g21-aside-card .g21-btn-play:hover,
.g21-aside-play:hover {
  background: #ea580c;
  color: #0f172a;
}

.g21-aside-hint {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* Related scroll strip */
.g21-related-strip {
  padding: 24px 0 40px;
  background: transparent;
  border-top: var(--g21-border);
}

.g21-scroll-shelf {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}

.g21-scroll-nav {
  display: none;
}

.g21-scroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  scrollbar-width: auto;
  scrollbar-color: var(--nebula-pink) var(--space-blue);
  -webkit-overflow-scrolling: touch;
}

.g21-scroll-row::-webkit-scrollbar {
  height: 10px;
}

.g21-scroll-row::-webkit-scrollbar-track {
  background: var(--space-blue);
  border: 1px solid var(--line-soft);
}

.g21-scroll-row::-webkit-scrollbar-thumb {
  background: var(--nebula-pink);
  border: 1px solid var(--line-soft);
  min-width: 64px;
}

.g21-scroll-row::-webkit-scrollbar-thumb:hover {
  background: #ea580c;
}

@media (min-width: 769px) {
  .g21-scroll-shelf {
    grid-template-columns: 44px 1fr 44px;
    gap: 10px;
  }

  .g21-scroll-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 44px;
    height: 44px;
    padding: 0;
    flex-shrink: 0;
    font-size: 1.75rem;
    line-height: 1;
    font-weight: 700;
    background: var(--space-blue);
    color: var(--star-white);
    border: var(--g21-border);
    border-radius: var(--g21-radius-sm);
    box-shadow: 3px 3px 0 var(--line-soft);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
  }

  .g21-scroll-nav:hover:not(:disabled) {
    background: var(--nebula-pink);
    color: #0f172a;
    transform: translate(-1px, -1px);
  }

  .g21-scroll-nav:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
  }

  .g21-scroll-row {
    padding-bottom: 16px;
  }

  .g21-scroll-row::-webkit-scrollbar {
    height: 12px;
  }
}

@media (max-width: 768px) {
  .g21-scroll-row {
    padding-bottom: 10px;
    scrollbar-width: thin;
  }

  .g21-scroll-row::-webkit-scrollbar {
    height: 8px;
  }
}

.g21-scroll-card {
  flex: 0 0 200px;
  scroll-snap-align: start;
  border: var(--g21-border);
  border-radius: var(--g21-radius-sm);
  background: var(--space-dark);
  overflow: hidden;
  box-shadow: 3px 3px 0 var(--line-soft);
}

.g21-scroll-thumb {
  aspect-ratio: 16 / 10;
  border-bottom: var(--g21-border);
  overflow: hidden;
}

.g21-scroll-thumb img { width: 100%; height: 100%; object-fit: cover; }

.g21-scroll-body {
  padding: 10px 12px 14px;
}

.g21-scroll-body h3 {
  margin: 0 0 4px;
  font-size: 0.85rem;
  font-family: var(--g21-font);
  font-weight: 700;
  line-height: 1.25;
}

/* ── Tags page: sidebar layout ── */
.g21-tags-page {
  padding-top: 8px;
}

.g21-tags-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: start;
  padding-top: 24px;
  padding-bottom: 48px;
}

.g21-sidebar-panel {
  padding: 18px;
  background: var(--space-blue);
  color: var(--star-white);
  border: var(--g21-border);
  border-radius: var(--g21-radius);
  box-shadow: var(--shadow-card);
}

.g21-sidebar-title {
  margin: 0 0 12px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.g21-category-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.g21-category-link {
  display: block;
  padding: 10px 12px;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--g21-radius-sm);
  border: 2px solid transparent;
}

.g21-category-link:hover { background: #fef08a; }

.g21-category-link.active {
  background: rgba(249, 115, 22, 0.15);
  color: var(--nebula-pink);
  border-color: var(--nebula-pink);
}

.g21-view-panel {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.g21-view-btn {
  flex: 1;
  padding: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  background: var(--space-dark);
  color: var(--star-white);
  border: var(--g21-border);
  border-radius: var(--g21-radius-sm);
  cursor: pointer;
}

.g21-view-btn.is-active {
  background: var(--sun-gold);
}

.g21-tags-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.g21-tags-header h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 6px;
}

.tag-h2 {
  font-family: var(--g21-font);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin: 0;
}

.g21-filter-toggle {
  display: none;
  padding: 10px 16px;
  font-weight: 700;
  background: var(--sun-gold);
  border: var(--g21-border);
  border-radius: var(--g21-radius-sm);
  cursor: pointer;
}

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

.g21-game-card {
  display: flex;
  flex-direction: column;
  background: var(--space-blue);
  color: var(--star-white);
  border: var(--g21-border);
  border-radius: var(--g21-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-fast);
}

.g21-game-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-lift);
}

.g21-card-cover {
  aspect-ratio: 16 / 10;
  border-bottom: var(--g21-border);
  overflow: hidden;
}

.g21-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g21-game-card .card-content {
  padding: 12px 14px 16px;
}

.g21-game-card .card-title {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-family: var(--g21-font);
  font-weight: 700;
  color: var(--star-white);
}

/* List view */
.games-grid.list-view,
.g21-games-grid.list-view {
  grid-template-columns: 1fr !important;
}

.games-grid.list-view .g21-game-card,
.g21-games-grid.list-view .g21-game-card {
  flex-direction: row;
  align-items: stretch;
}

.games-grid.list-view .g21-card-cover,
.g21-games-grid.list-view .g21-card-cover {
  flex: 0 0 38%;
  max-width: 38%;
  aspect-ratio: 16 / 10;
  border-bottom: none;
  border-right: var(--g21-border);
}

.games-grid.list-view .card-content,
.g21-games-grid.list-view .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 18px;
}

.tags-box > * + .tags-layout,
.g21-tags-page > .g21-page-wrap.tags-layout {
  margin-top: 0;
}

.tags-layout:not(:last-child) {
  padding-bottom: 24px;
}

.pagination-container {
  margin-top: 28px;
  padding-top: 8px;
}

/* ── Empty state ── */
.g21-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--space-blue);
  color: var(--star-white);
  border: var(--g21-border);
  border-radius: var(--g21-radius);
  box-shadow: var(--shadow-card);
}

.g21-empty--inline {
  grid-column: 1 / -1;
}

.g21-empty-icon {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--nebula-pink);
}

.game-empty-title {
  font-family: var(--g21-font);
  font-size: 1.35rem;
  margin-bottom: 8px;
}

/* ── Footer ── */
.g21-footer {
  margin-top: auto;
  background: var(--star-white);
  color: #fff;
  border-top: var(--g21-border);
}

.g21-footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  padding: 36px 20px 28px;
}

.g21-footer-name {
  display: block;
  font-family: var(--g21-font);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.g21-footer-brand p {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  max-width: 40ch;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social-link {
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  transition: background var(--transition-fast);
}

.footer-social-link:hover { background: var(--nebula-pink); }

.g21-footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-content: flex-start;
}

.g21-footer-nav a {
  font-weight: 600;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.9);
}

.g21-footer-nav a:hover { color: var(--sun-gold); }

.g21-footer-copy {
  padding: 14px 20px;
  border-top: 2px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.g21-footer-copy p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

/* Back to top — override ads.css .back-to-top (gradient / ::before / duplicate fixed) */
body.g21-body .back-to-top:not(#backToTop) {
  display: none !important;
}

.back-to-top.g21-back-top,
.g21-back-top {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 900;
  width: 48px;
  height: 48px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nebula-pink);
  color: #0f172a;
  border: var(--g21-border);
  border-radius: 50%;
  box-shadow: var(--shadow-lift);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  backdrop-filter: none;
  font-size: 0;
}

.back-to-top.g21-back-top::before,
.g21-back-top::before {
  display: none;
}

.back-to-top.g21-back-top.show,
.g21-back-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top.g21-back-top:not(.show),
.g21-back-top:not(.show) {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
}

@media (min-width: 769px) {
  .back-to-top.g21-back-top,
  .g21-back-top { bottom: 24px; }
}

/* ── Game modal ── */
.g21-game-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(26, 22, 37, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}

.g21-game-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.g21-modal-panel {
  position: relative;
  width: min(960px, 100%);
  height: min(80vh, 640px);
  background: #000;
  border: var(--g21-border);
  border-radius: var(--g21-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}

.g21-modal-panel iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.g21-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 8px 14px;
  font-weight: 700;
  background: #fff;
  border: var(--g21-border);
  border-radius: var(--g21-radius-sm);
  cursor: pointer;
}

/* Breadcrumbs (non-banner) */
.breadcrumb-nav { margin: 0 0 16px; }

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.breadcrumb-item a {
  color: var(--comet-cyan);
  font-weight: 600;
  font-size: 0.85rem;
}

/* Daily section spacing */
.daily-special {
  padding: 36px 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .g21-poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g21-mosaic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g21-mosaic-card:nth-child(3n+2) { margin-top: 0; }
  .g21-games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g21-cat-wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .g21-detail-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .g21-aside-card { position: static; }

  /* 导航可能高于 --g21-header-h（换行站点名），头图仍从顶开始由导航遮盖 */
  .g21-detail-banner {
    min-height: min(52vh, 360px);
  }

  .g21-banner-content h1,
  .g21-banner-content #game-title {
    font-size: clamp(1.05rem, 4.2vw, 1.28rem);
    -webkit-line-clamp: 3;
  }

  .legal-container {
    padding: 20px 16px;
  }

  .legal-container h1 {
    font-size: clamp(1.2rem, 4.8vw, 1.45rem);
    line-height: 1.2;
    margin-bottom: 0.5rem;
  }

  .g21-detail-main {
    padding-top: 20px;
  }

  .g21-detail-main > .g21-ad-slot {
    margin-bottom: 16px;
  }

  .g21-detail-aside {
    margin-top: 0;
  }

  .g21-detail-main + .g21-page-wrap.g21-ad-slot {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .g21-page-wrap.g21-ad-slot + .g21-related-strip {
    margin-top: 4px;
  }
  .g21-tags-layout {
    grid-template-columns: 1fr;
  }
  .g21-tags-sidebar {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(26, 22, 37, 0.5);
    padding: 16px;
    align-items: flex-start;
  }
  .g21-tags-layout.g21-sidebar-open .g21-tags-sidebar {
    display: flex;
    flex-direction: column;
  }
  .g21-tags-sidebar .g21-sidebar-panel {
    width: min(320px, 100%);
    max-height: 70vh;
    overflow-y: auto;
  }
  .g21-filter-toggle { display: block; }
  .g21-poster-grid,
  .g21-mosaic-grid,
  .g21-games-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .g21-poster-thumb,
  .g21-mosaic-media,
  .g21-card-cover,
  .g21-film-thumb {
    aspect-ratio: 16 / 10;
  }
  .games-grid.list-view .g21-card-cover,
  .g21-games-grid.list-view .g21-card-cover {
    max-width: none;
    width: 100%;
    flex: 0 0 auto;
    border-right: none;
    border-bottom: var(--g21-border);
  }
  .games-grid.list-view .g21-game-card,
  .g21-games-grid.list-view .g21-game-card {
    flex-direction: column;
  }
  .g21-footer-inner { grid-template-columns: 1fr; }
  .g21-filmstrip {
    grid-template-columns: 1fr;
    padding: 14px;
  }
  .g21-film-btn { display: none; }
}

/* === g21 Industrial slate theme === */
.g21-body { background: var(--space-dark); }
.g21-site-header { background: #0f172a; border-bottom: 2px solid var(--nebula-pink); }
.g21-logo .logo-text { font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.9rem; }
.g21-nav-bar .nav-link { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.g21-nav-bar .nav-link.active { color: var(--nebula-pink); }
.g21-header-cta { background: var(--nebula-pink); color: #0f172a; border-radius: 0; font-weight: 700; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; }
.g21-hero-industrial {
  padding: 36px 0 40px;
  border-bottom: var(--g21-border);
  background: var(--space-dark);
}

.g21-hero-industrial .g21-page-wrap {
  display: flex;
  justify-content: center;
}

.g21-hero-industrial .g21-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  width: 100%;
  max-width: 960px;
  margin-inline: auto;
  padding: 0;
  background: transparent;
  border-bottom: none;
}

.g21-hero-code {
  font-family: ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--nebula-pink);
  letter-spacing: 0.1em;
  margin: 0 0 8px;
}

.g21-hero-industrial .hero-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--star-white);
  line-height: 1.15;
  margin-bottom: 12px;
}

.g21-hero-industrial .hero-subtitle {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-muted);
  max-width: 42ch;
  margin: 0;
}

.g21-hero-industrial .hero-subtitle p {
  margin: 0 0 0.75em;
}

.g21-hero-industrial .hero-subtitle p:last-child {
  margin-bottom: 0;
}

.g21-hero-industrial .g21-hero-search {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: none;
  width: 100%;
  margin-bottom: 0;
}

.g21-search-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.g21-hero-industrial .g21-hero-search .form-input {
  background: #1e293b;
  border: var(--g21-border);
  color: var(--star-white);
  padding: 10px 12px;
  border-radius: 0;
}

.g21-hero-industrial .g21-hero-search .form-input:focus {
  box-shadow: 0 0 0 2px var(--nebula-pink);
  outline: none;
}

.g21-hero-industrial .g21-hero-search .hero-cta {
  width: 100%;
}

.g21-hero-industrial .g21-stat-bar {
  display: flex;
  gap: 0;
  margin-top: 16px;
  border: var(--g21-border);
  background: var(--space-blue);
}

.g21-hero-industrial .g21-stat {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-right: var(--g21-border);
  color: var(--star-white);
  background: transparent;
}

.g21-hero-industrial .g21-stat:last-child {
  border-right: none;
}
.g21-timeline { display: flex; flex-direction: column; gap: 0; border: var(--g21-border); }
.g21-timeline-item { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: var(--g21-border); background: var(--space-blue); transition: background var(--transition-fast); }
.g21-timeline-item:last-child { border-bottom: none; }
.g21-timeline-item:hover { background: #263548; }
.g21-timeline-num { font-family: ui-monospace, monospace; font-size: 1.2rem; color: var(--nebula-pink); font-weight: 700; min-width: 36px; }
.g21-timeline-thumb { width: 120px; flex-shrink: 0; aspect-ratio: 16/10; overflow: hidden; border: var(--g21-border); }
.g21-timeline-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g21-timeline-body { min-width: 0; flex: 1; }
.g21-minimal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border: var(--g21-border);
}
.g21-game-cell {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--space-blue);
  border: var(--g21-border);
}
.g21-game-cell .g21-card-hit {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.g21-game-cell .special-card-content,
.g21-game-cell .carousel-card-content {
  padding: 12px 14px 10px;
}
.g21-game-cell .brief-comment-game {
  flex: 0 0 auto;
  min-width: 0;
  padding: 0 14px 16px;
}
.g21-minimal-card { background: var(--space-blue); }
.g21-minimal-thumb { aspect-ratio: 16/10; overflow: hidden; }
.g21-minimal-thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%); transition: filter var(--transition-fast); }
.g21-minimal-card:hover .g21-minimal-thumb img { filter: none; }
.g21-compact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.g21-compact-card { border: var(--g21-border); }
.g21-compact-thumb { aspect-ratio: 16/10; overflow: hidden; }
.g21-compact-card .brief-comment-game,
.g21-film-card .brief-comment-game {
  padding: 0 12px 16px;
}
.g21-pick-section {
  background: transparent;
  border-top: var(--g21-border);
  border-bottom: var(--g21-border);
  content-visibility: visible;
  contain-intrinsic-size: none;
}
.g21-filmstrip {
  background: var(--space-blue);
  box-shadow: none;
}
.g21-film-card {
  background: var(--space-blue);
  color: var(--star-white);
}
.g21-film-card .carousel-card-content {
  padding: 12px 12px 6px;
}
.g21-tag-chip {
  background: rgba(249, 115, 22, 0.12);
  border-color: var(--line-soft);
  color: var(--nebula-pink);
}
.g21-cat-section {
  padding: 40px 0 48px;
  border-top: var(--g21-border);
  content-visibility: visible;
  contain-intrinsic-size: none;
}

.g21-cat-title {
  margin: 0 0 20px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--star-white);
}

.g21-cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.g21-cat-tag {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--space-blue);
  border: var(--g21-border);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--star-white);
  transition: border-color var(--transition-fast), color var(--transition-fast), background var(--transition-fast);
}

.g21-cat-tag:hover {
  border-color: var(--nebula-pink);
  color: var(--nebula-pink);
  background: #263548;
}

@media (max-width: 768px) {
  .g21-cat-section {
    padding: 32px 0 40px;
  }

  .g21-cat-list {
    gap: 8px;
  }

  .g21-cat-tag {
    padding: 8px 14px;
    font-size: 0.72rem;
  }
}
.g21-tag-chip { font-size: 0.68rem; color: var(--nebula-pink); text-transform: uppercase; }
.g21-badge { color: var(--nebula-pink); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; margin-right: 8px; }
.g21-footer {
  margin-top: 0;
  background: #0a0f1a;
  border-top: 2px solid var(--nebula-pink);
}

/* 分类 / 详情：分页与广告位适配深色底，避免白横条 */
.g21-body .pagination-container .pagination-link {
  background: var(--space-blue);
  color: var(--star-white);
  border: 2px solid var(--line-soft);
  box-shadow: none;
}

.g21-body .pagination-container .pagination-link:hover {
  background: #263548;
}

.g21-body .pagination-container .pagination-list .active .pagination-link,
.g21-body .pagination-container .pagination-link.active {
  background: var(--nebula-pink);
  color: #0f172a;
}

.g21-body .g21-ad-slot iframe,
.g21-body .g21-ad-slot ins,
.g21-body .g21-ad-slot > div {
  background: transparent !important;
}

.g21-scroll-body h3,
.g21-scroll-body .game-title {
  color: var(--star-white);
}
@media (max-width: 768px) {
  .g21-hero-industrial .g21-hero-split {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }

  .g21-hero-industrial .g21-hero-left,
  .g21-hero-industrial .hero-subtitle {
    margin-inline: auto;
  }

  .g21-hero-industrial .g21-hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .g21-hero-industrial .g21-hero-search,
  .g21-hero-industrial .g21-stat-bar {
    width: 100%;
    max-width: 360px;
  }
  .g21-minimal-grid, .g21-compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g21-timeline-item { flex-wrap: wrap; }
}.g18-neon-card .game-title, .g18-dense-card .game-title, .g18-row-card .game-title,
.g20-orbit-card .game-title, .g20-soft-card .game-title, .g20-masonry-card .game-title,
.g21-timeline-item .game-title, .g21-minimal-card .game-title, .g21-compact-card .game-title,
.g22-stack-card .game-title, .g22-overlay-card .game-title, .g22-tide-card .game-title,
.g23-bento-cell .game-title, .g23-swiss-card .game-title, .g23-lined-card .game-title {
  display: block; max-width: 100%; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
