:root {
  --space-dark: #f0fdf4;
  --space-blue: #ffffff;
  --star-white: #14532d;
  --nebula-pink: #059669;
  --comet-cyan: #64748b;
  --g19-accent-text: #047857;
  --g19-font: Georgia, 'Times New Roman', Times, serif;
  --sun-gold: #10b981;
  --planet-purple: #475569;
  --ink-muted: #4b6358;
  --line-soft: #bbf7d0;
  --g19-hover-bg: #dcfce7;
  --g19-surface-alt: #ecfdf5;
  --g19-surface-muted: #f0fdf4;
  --g19-ink-deep: #14532d;
  --shadow-card: 0 1px 3px rgba(20, 83, 45, 0.08);
  --shadow-lift: 0 8px 24px rgba(20, 83, 45, 0.12);
  --g19-radius: 4px;
  --g19-radius-sm: 2px;
  --g19-header-h: 72px;
  --g19-mobile-nav-h: 72px;
  --g19-border: 1px solid var(--line-soft);
  --transition-fast: 0.2s ease;
  --g19-star-full: #059669;
  --g19-star-glow: rgba(5, 150, 105, 0.22);
  --g19-star-empty: #86efac;
  --g19-star-track: #dcfce7;
  --g19-star-border: transparent;
}

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

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

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

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

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

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

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

body.g19-body:has(.g19-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(--g19-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：与广告模板类名冲突） */
.g19-page-wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.brief-comment-game {
  margin: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

/* 游戏列表标题：单行超出省略（见 TEMPLATE_SPEC §5.1.2 / §7.1） */
.article-list .game-title,
.article-list .card-title,
.g19-feature-lead .game-title,
.g19-feature-strip .game-title,
.g19-spot-tile .game-title,
.special-card .game-title,
.special-card-content .game-title,
.game-card .card-title,
.carousel-card .game-title,
.g19-film-card .game-title,
.g19-mosaic-card .game-title,
.g19-poster-card .game-title,
.g19-scroll-body .game-title,
.g19-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,
.g19-feature-lead-copy,
.g19-feature-strip-copy,
.g19-spot-tile-body,
.g19-scroll-body {
  min-width: 0;
}

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

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

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

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

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

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

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

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

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

.legal-container {
  padding: 28px 24px;
  margin-bottom: 48px;
  background: var(--space-blue);
  border: var(--g19-border);
  border-radius: var(--g19-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 + 锚定广告顶出空白） ── */
.g19-site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 10001;
  background: var(--space-blue);
  border-bottom: var(--g19-border);
  margin: 0;
}

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

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

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

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

.logo-img { height: 40px; width: auto; display: block; }

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

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

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

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

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

.g19-nav-bar .nav-more-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  padding: 8px;
  background: #fff;
  border: 2px solid var(--g19-ink-deep);
  border-radius: 12px;
  box-shadow: 4px 4px 0 rgba(20, 83, 45, 0.18);
  z-index: 1200;
}

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

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

.g19-nav-bar .nav-more-menu .nav-link:hover {
  background: var(--g19-hover-bg);
}

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

.g19-nav-bar .nav-link:hover {
  background: var(--g19-hover-bg);
  border-color: var(--line-soft);
}

.g19-nav-bar .nav-link.active {
  background: var(--nebula-pink);
  color: #fff;
  border-color: var(--nebula-pink);
}

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

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

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

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

.g19-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(--g19-radius-sm);
  border: 2px solid transparent;
}

.g19-mobile-bar .mobile-nav-item.active {
  background: var(--g19-hover-bg);
  border-color: var(--nebula-pink);
  color: var(--g19-accent-text);
}

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

@media (max-width: 768px) {
  :root {
  --space-dark: #f0fdf4;
  --space-blue: #ffffff;
  --star-white: #14532d;
  --nebula-pink: #059669;
  --comet-cyan: #64748b;
  --g19-accent-text: #047857;
  --g19-font: Georgia, 'Times New Roman', Times, serif;
  --sun-gold: #10b981;
  --planet-purple: #475569;
  --ink-muted: #4b6358;
  --line-soft: #bbf7d0;
  --g19-hover-bg: #dcfce7;
  --g19-surface-alt: #ecfdf5;
  --g19-surface-muted: #f0fdf4;
  --g19-ink-deep: #14532d;
  --shadow-card: 0 1px 3px rgba(20, 83, 45, 0.08);
  --shadow-lift: 0 8px 24px rgba(20, 83, 45, 0.12);
  --g19-radius: 4px;
  --g19-radius-sm: 2px;
  --g19-header-h: 72px;
  --g19-mobile-nav-h: 72px;
  --g19-border: 1px solid var(--line-soft);
  --transition-fast: 0.2s ease;
  --g19-star-full: #059669;
  --g19-star-glow: rgba(5, 150, 105, 0.22);
  --g19-star-empty: #86efac;
  --g19-star-track: #dcfce7;
  --g19-star-border: transparent;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ── Hero split ── */
.g19-hero-split {
  padding: 28px 0 40px;
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 45%, #dcfce7 100%);
  border-bottom: var(--g19-border);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.g19-quick-cat:hover {
  background: var(--g19-hover-bg);
  transform: translateX(4px);
}

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

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

.g19-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;
}

.g19-spotlight .g19-section-head h2 {
  padding-left: 14px;
  border-left: 4px solid var(--nebula-pink);
}

.module-link-more:hover {
  color: var(--g19-accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.g19-badge {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 10px;
  font-size: 0.65rem;
  font-family: system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--g19-hover-bg);
  border: 2px solid var(--line-soft);
  border-radius: 4px;
  vertical-align: middle;
  color: var(--g19-accent-text);
}

/* ── Featured：左主卡横图 + 右双横条（非 g16 三列叠图） ── */
.g19-pick-section,
.daily-special:not(.g19-spotlight),
.g19-cat-wall {
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

.g19-spotlight {
  padding: 36px 0 48px;
  background: linear-gradient(180deg, var(--g19-surface-alt) 0%, var(--space-dark) 55%, transparent 100%);
  border-bottom: var(--g19-border);
}

.g19-spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.g19-spot-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: var(--g19-border);
  border-radius: var(--g19-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.g19-spot-tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.g19-spot-tile-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--g19-surface-alt);
}

.g19-spot-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.g19-spot-tile-body {
  padding: 14px 16px 16px;
  background: #fff;
}

.g19-spot-tile .game-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  line-height: 1.25;
}

.g19-spot-tile .game-star {
  display: inline-flex;
  margin: 0;
}

.g19-spot-tile--hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}

.g19-spot-tile--hero:hover {
  transform: translateY(-2px);
}

.g19-spot-tile--hero .g19-spot-tile-media {
  aspect-ratio: 16 / 9;
  min-height: 220px;
}

.g19-spot-tile--hero .g19-spot-tile-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 28px;
  background: var(--g19-surface-alt);
  border-left: var(--g19-border);
}

.g19-spot-tile--hero .game-title {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  margin-bottom: 12px;
}

.g19-spot-tag {
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 3px 10px;
  font-family: system-ui, sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--nebula-pink);
}

@media (max-width: 768px) {
  .g19-spotlight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .g19-spot-tile-body {
    padding: 10px 12px 12px;
  }

  .g19-spot-tile .game-title {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }

  .g19-spot-tile--hero {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

  .g19-spot-tile--hero .g19-spot-tile-media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .g19-spot-tile--hero .g19-spot-tile-body {
    border-left: none;
    border-top: var(--g19-border);
    padding: 14px 16px;
  }

  .g19-spot-tile--hero .game-title {
    font-size: 1rem;
    margin-bottom: 8px;
  }
}

.g19-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;
}

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

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

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

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

.g19-feature-lead-copy {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 22px;
  background: var(--g19-hover-bg);
  min-width: 0;
}

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

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

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

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

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

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

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

.g19-feature-strip:nth-of-type(2) .g19-feature-strip-copy { background: #ecfdf5; }
.g19-feature-strip:nth-of-type(3) .g19-feature-strip-copy { background: var(--g19-surface-muted); }

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

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

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

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

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

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

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

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

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

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

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

.g19-poster-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: var(--g19-border);
  background: var(--g19-surface-alt);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.g19-film-btn:hover { background: var(--g19-hover-bg); }

/* ── Browse by genre (index) ── */
.g19-cat-columns {
  padding: 48px 0 64px;
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}

.g19-cat-title {
  margin: 0 0 24px;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  padding-left: 14px;
  border-left: 4px solid var(--nebula-pink);
}

.g19-cat-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.g19-cat-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-family: system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  background: #fff;
  border: var(--g19-border);
  border-radius: var(--g19-radius);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.g19-cat-link:nth-child(odd) {
  background: var(--g19-surface-muted);
}

.g19-cat-link:hover {
  transform: translateY(-2px);
  background: var(--g19-hover-bg);
  border-color: var(--nebula-pink);
  box-shadow: var(--shadow-lift);
}

.g19-cat-name {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.g19-cat-arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 0.85rem;
  color: var(--nebula-pink);
  background: var(--g19-hover-bg);
  border-radius: 50%;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.g19-cat-link:hover .g19-cat-arrow {
  background: var(--nebula-pink);
  color: #fff;
  transform: translateX(2px);
}

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

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

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

.g19-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(--g19-border);
  border-radius: var(--g19-radius);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

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

.g19-cat-block:nth-child(odd) { background: #ecfdf5; }
.g19-cat-block:nth-child(3n) { background: var(--g19-surface-muted); }

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

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

.g19-tag-chip {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  background: var(--g19-hover-bg);
  border: 2px solid var(--line-soft);
  border-radius: 4px;
  color: var(--g19-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(--g19-star-track);
  border: 2px solid var(--g19-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(--g19-star-full);
}

.game-star .star-half::before,
.star-rating .star-half::before {
  content: "★";
  color: var(--g19-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(--g19-star-empty);
}

.g19-feature-lead .game-star,
.g19-feature-strip .game-star,
.g19-spot-tile .game-star,
.g19-poster-card .game-star,
.g19-mosaic-card .game-star,
.g19-film-card .game-star,
.g19-game-card .card-meta > .game-star,
.g19-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 ── */
.g19-img-ph { object-fit: cover; background: var(--g19-surface-alt); }

.g19-img-ph.is-loading {
  background: var(--g19-surface-alt);
}

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

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

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

.g19-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%
  );
}

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

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

.g19-banner-content h1,
.g19-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;
}

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

.g19-banner-tags .g19-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;
}

.g19-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 16px;
}

.g19-detail-tags .g19-tag-pill {
  display: inline-block;
  margin: 0;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: system-ui, sans-serif;
  background: var(--g19-hover-bg);
  border: 2px solid var(--line-soft);
  border-radius: 999px;
  color: var(--g19-accent-text);
}

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

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

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

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

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

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

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

.g19-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(--g19-radius-sm); }

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

.g19-aside-card {
  position: sticky;
  top: calc(var(--g19-header-h) + 16px);
  padding: 24px;
  background: #fff;
  border: var(--g19-border);
  border-radius: var(--g19-radius);
  box-shadow: var(--shadow-card);
}

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

.g19-aside-play { width: 100%; }

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

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

.g19-scroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

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

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

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

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

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

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

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

.g19-sidebar-panel {
  padding: 18px;
  background: #fff;
  border: var(--g19-border);
  border-radius: var(--g19-radius);
  box-shadow: var(--shadow-card);
}

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

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

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

.g19-category-link:hover { background: var(--g19-hover-bg); }

.g19-category-link.active {
  background: var(--nebula-pink);
  color: #fff;
  border-color: var(--nebula-pink);
}

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

.g19-view-btn {
  flex: 1;
  padding: 8px;
  font-weight: 700;
  font-size: 0.8rem;
  background: #fff;
  border: var(--g19-border);
  border-radius: var(--g19-radius-sm);
  cursor: pointer;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.tags-box > * + .tags-layout,
.g19-tags-page > .g19-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 ── */
.g19-empty {
  text-align: center;
  padding: 48px 24px;
  background: #fff;
  border: var(--g19-border);
  border-radius: var(--g19-radius);
  box-shadow: var(--shadow-card);
}

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

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

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

/* ── Footer ── */
.g19-footer {
  margin-top: auto;
  background: var(--g19-ink-deep);
  color: var(--space-dark);
  border-top: none;
}

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

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

.g19-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); }

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

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

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

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

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

/* Back to top */
.g19-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(--sun-gold);
  color: var(--star-white);
  border: var(--g19-border);
  border-radius: 50%;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

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

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

/* ── Game modal ── */
.g19-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;
}

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

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

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

.g19-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 8px 14px;
  font-weight: 700;
  background: #fff;
  border: var(--g19-border);
  border-radius: var(--g19-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) {
  .g19-poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g19-mosaic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g19-mosaic-card:nth-child(3n+2) { margin-top: 0; }
  .g19-games-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g19-cat-wall-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

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

  .g19-banner-content h1,
  .g19-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;
  }

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

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

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

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

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

/* === g19 Editorial magazine theme === */
body, .g19-body { font-family: var(--g19-font); }
h1, h2, h3, .g19-body h1, .g19-body h2, .g19-body h3 { font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; }
.g19-site-header { background: var(--space-blue); border-bottom: var(--g19-border); }
.g19-logo .logo-text { font-family: Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: 0.02em; }
.g19-nav-bar .nav-link { font-family: system-ui, sans-serif; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; }
.g19-header-cta { background: var(--g19-ink-deep); color: #fff; border-radius: 0; font-family: system-ui, sans-serif; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }
.g19-hero-editorial { padding: 32px 0 28px; border-bottom: var(--g19-border); background: linear-gradient(180deg, #fff 0%, var(--g19-surface-muted) 100%); }
.g19-hero-editorial .g19-page-wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
.g19-hero-kicker { font-family: system-ui, sans-serif; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--nebula-pink); margin: 0 0 8px; }
.g19-hero-editorial .hero-title { font-size: clamp(1.75rem, 4.2vw, 2.6rem); font-weight: 300; line-height: 1.15; max-width: min(960px, 100%); margin-inline: auto; }
.g19-lead { font-size: 1rem; line-height: 1.55; color: var(--ink-muted); max-width: min(960px, 100%); margin: 10px auto 0; }
.g19-hero-rule { width: 64px; height: 3px; background: var(--nebula-pink); margin: 16px auto; }
.g19-hero-search { display: flex; gap: 0; width: 100%; max-width: 420px; margin: 8px auto 0; }
.g19-hero-search .form-input { flex: 1; border: var(--g19-border); border-right: none; padding: 12px 14px; background: #fff; font-family: system-ui, sans-serif; }
.g19-hero-search .hero-cta { border-radius: 0; background: var(--nebula-pink); color: #fff; padding: 12px 20px; }

.g19-hlist { display: flex; flex-direction: column; gap: 0; border-top: var(--g19-border); }

@media (min-width: 769px) {
  .g19-hcard {
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding: 20px 0;
    border-bottom: var(--g19-border);
    background: transparent;
    align-items: stretch;
    transition: background var(--transition-fast);
  }

  .g19-hcard .special-card-content {
    padding: 4px 0 4px 4px;
  }

  .g19-hcard:hover { background: var(--g19-hover-bg); }

  .g19-hcard-thumb {
    width: 200px;
    max-width: 38%;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--g19-surface-alt);
    align-self: stretch;
  }

  .g19-hcard-thumb img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    display: block;
  }
}

.g19-col-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.g19-col-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: var(--g19-border);
  border-radius: var(--g19-radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast);
}
.g19-col-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.g19-col-card .special-card-content { padding: 12px 14px 16px; }
.g19-col-thumb { aspect-ratio: 16/10; overflow: hidden; }
.g19-col-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g19-tag-chip { font-family: system-ui, sans-serif; font-size: 0.72rem; color: var(--nebula-pink); }
.g19-badge { font-family: system-ui, sans-serif; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--nebula-pink); margin-right: 10px; }
.g19-footer { background: var(--g19-ink-deep); color: var(--space-dark); border-top: none; }
.g19-footer a { color: #a7f3d0; }
@media (max-width: 768px) {
  .g19-col-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g19-cat-columns { padding: 32px 0 48px; }
  .g19-cat-two-col { grid-template-columns: 1fr; gap: 10px; }

  .g19-hlist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    border-top: none;
  }

  .g19-hcard {
    flex-direction: column;
    gap: 0;
    padding: 0;
    border: var(--g19-border);
    border-radius: var(--g19-radius);
    background: #fff;
    box-shadow: var(--shadow-card);
    overflow: hidden;
    align-items: stretch;
  }

  .g19-hcard:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lift);
    background: #fff;
  }

  .g19-hcard-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--g19-surface-alt);
    border-bottom: var(--g19-border);
  }

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

  .g19-hcard .special-card-content {
    padding: 10px 12px 12px;
  }

  .g19-hcard .game-title {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }

  .g19-hcard .brief-comment-game {
    font-size: 0.78rem;
    -webkit-line-clamp: 2;
  }
}

.g19-detail-page { padding-top: 20px; padding-bottom: 56px; }
body.g19-body:has(.g19-detail-page) { padding-top: var(--g19-header-h) !important; }
.g19-detail-hero { display: grid; grid-template-columns: minmax(240px, 40%) 1fr; gap: 32px; align-items: start; margin-bottom: 40px; padding-bottom: 32px; border-bottom: var(--g19-border); }
.g19-cover-wrap { border: var(--g19-border); }
.g19-cover-wrap img { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; display: block; }
.g19-btn-play { background: var(--g19-ink-deep); color: #fff; border: none; padding: 12px 24px; font-family: system-ui, sans-serif; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.g19-related-list { border-top: var(--g19-border); }
.g19-game-modal { display: none; position: fixed; inset: 0; z-index: 3000; background: rgba(28,25,23,0.9); align-items: center; justify-content: center; }
.g19-game-modal.is-open { display: flex; }
.g19-modal-panel { width: 92%; height: 88%; max-width: 1100px; background: #fff; border: var(--g19-border); position: relative; display: flex; flex-direction: column; }
.g19-modal-panel iframe { flex: 1; width: 100%; border: none; }
.g19-modal-close { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--g19-ink-deep); color: #fff; border: none; padding: 8px 14px; cursor: pointer; }
.g19-spot-tile .game-title, .g19-neon-card .game-title { display: block; max-width: 100%; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 768px) { .g19-detail-hero { grid-template-columns: 1fr; } }.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;
}
