/* 游戏库 PC */

.games-lead {
  margin: 0 0 8px;
  font-size: 14px;
  color: #8b9298;
  line-height: 1.5;
}

.page-games-main {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.games-filter-panel {
  background: var(--store-card, rgba(23, 35, 52, 0.92));
  border: 1px solid var(--store-border, rgba(102, 192, 244, 0.22));
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.games-filter-row-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #8b9298;
  text-transform: uppercase;
  margin-bottom: 8px;
}

#initialBar.initial-bar {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  gap: 8px;
}

#initialBar .initial-chip {
  height: 34px;
  min-width: 40px;
  border-radius: 4px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(35, 49, 68, 0.75);
  color: #c8d4df;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

#initialBar .initial-chip:hover {
  border-color: rgba(102, 192, 244, 0.45);
  transform: translateY(-2px);
}

#initialBar .initial-chip.active {
  background: rgba(102, 192, 244, 0.22);
  border-color: var(--store-accent, #66c0f4);
  color: #fff;
}

.games-tools-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.games-tools-row .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
}

.games-tools-row .field-label {
  font-size: 11px;
  color: #8b9298;
  font-weight: 600;
}

body.steam-store .games-tools-row select {
  height: 42px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-width: 160px;
}

.games-tools-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
  align-items: flex-end;
}

body.steam-store .games-tools-actions button {
  height: 42px;
  min-width: 100px;
  border-radius: 4px;
  font-weight: 600;
}

body.steam-store #resetBtn {
  background: rgba(139, 146, 152, 0.28);
}

body.steam-store #randomPlayBtn {
  background: linear-gradient(180deg, #4a90c5, #2e5f8c);
}

#gamesFilterHint {
  font-size: 12px;
  color: #a8d8f2;
  min-height: 18px;
  padding: 8px 12px;
  background: rgba(102, 192, 244, 0.08);
  border-radius: 4px;
  border: 1px solid rgba(102, 192, 244, 0.15);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

#gamesFilterHint.is-active {
  color: #d8f0ff;
  background: rgba(102, 192, 244, 0.14);
  border-color: rgba(102, 192, 244, 0.35);
}

.games-filter-panel.has-active-filters {
  border-color: rgba(102, 192, 244, 0.32);
}

.page-games-main .meta {
  margin-bottom: 0;
  padding: 0 4px;
}

#grid.game-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

#grid.game-card-grid .card.game-card {
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(36, 52, 71, 0.9), rgba(22, 32, 45, 0.85));
  min-height: 0;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

#grid.game-card-grid .card.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(102, 192, 244, 0.45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

#grid.game-card-grid .game-card-thumb {
  position: relative;
  height: var(--fj2me-game-thumb-px, 96px);
  background: #0d131c;
  display: flex;
  align-items: center;
  justify-content: center;
}

#grid.game-card-grid .game-card-thumb img.icon {
  width: var(--fj2me-game-thumb-px, 96px);
  height: var(--fj2me-game-thumb-px, 96px);
  object-fit: cover;
  border: none;
  border-radius: 0;
  flex-shrink: 0;
}

#grid.game-card-grid .game-card-thumb .icon-fallback {
  width: var(--fj2me-game-thumb-px, 96px);
  height: var(--fj2me-game-thumb-px, 96px);
  border-radius: 0;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.35);
}

#grid.game-card-grid a.game-card,
#grid.game-card-grid a.game-card .name,
#grid.game-card-grid a.game-card .heat {
  text-decoration: none;
}

#grid.game-card-grid .game-card-body {
  padding: 12px 14px 14px;
}

#grid.game-card-grid .name {
  font-size: 14px;
  font-weight: 700;
  color: #ecf4fc;
  max-height: none;
}

#grid.game-card-grid .heat {
  font-size: 12px;
  color: #8f98a0;
}

.pager.store-pager {
  padding: 18px 0 12px;
}

@media (max-width: 1024px) {
  #grid.game-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
