:root {
  --af-bg: #f4f4f6;
  --af-surface: #ffffff;
  --af-surface-2: #ececf1;
  --af-border: #dcdce4;
  --af-text: #212121;
  --af-muted: #6b6b76;
  --af-accent: #6a4da5;
  --af-accent-hover: #53398a;
  --gog-nav: #262626;
}
body.dark-mode {
  --af-bg: #16161a;
  --af-surface: #212128;
  --af-surface-2: #2b2b35;
  --af-border: #363644;
  --af-text: #f1f1f5;
  --af-muted: #9d9dad;
  --af-accent: #9b7bf7;
  --af-accent-hover: #b39afc;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--af-bg); color: var(--af-text); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; font-size: 14.5px; line-height: 1.55; }
a { color: var(--af-accent); text-decoration: none; }
a:hover { color: var(--af-accent-hover); }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1260px; margin: 0 auto; padding: 0 16px; }
#navbar { position: sticky; top: 0; z-index: 100; background: var(--gog-nav); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.32); }
#navbar .nav-inner { display: flex; align-items: center; gap: 16px; min-height: 54px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
#logo img { height: 34px; width: auto; }
#search-bar { display: flex; flex: 1; min-width: 200px; max-width: 440px; background: #181818; border: 1px solid #3c3c3c; border-radius: 3px; overflow: hidden; }
#search-bar input { flex: 1; background: transparent; border: 0; color: #f5f5f5; padding: 8px 12px; font-size: 13.5px; outline: none; }
#search-bar button { background: #6a4da5; color: #fff; border: 0; padding: 0 14px; font-weight: 700; cursor: pointer; font-size: 13px; }
#search-bar button:hover { background: #7f5ec0; }
.gog-nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.gog-nav-links a, .gog-theme-btn { color: #e4e4e7; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 3px; text-decoration: none; background: transparent; border: 0; cursor: pointer; }
.gog-nav-links a:hover, .gog-theme-btn:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }
.gog-nav-links a.gog-rss { color: #f59e0b; }
.gog-genre-strip { background: var(--af-surface); border-bottom: 1px solid var(--af-border); }
.gog-genre-strip .container { display: flex; gap: 6px; overflow-x: auto; padding-top: 7px; padding-bottom: 7px; align-items: center; }
.gog-genre-strip a { font-size: 12.5px; font-weight: 600; color: var(--af-muted); padding: 4px 10px; border-radius: 3px; white-space: nowrap; }
.gog-genre-strip a:hover { background: var(--af-surface-2); color: var(--af-accent); text-decoration: none; }
.gog-main { padding-top: 22px; padding-bottom: 48px; }
.gog-top-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--af-border); padding-bottom: 12px; }
.gog-top-controls h1 { margin: 0; font-size: 21px; font-weight: 600; color: var(--af-text); }
.gog-actions-right { display: flex; align-items: center; gap: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 35px; padding: 0 14px; font-size: 13px; font-weight: 600; color: #333; background: linear-gradient(to bottom, #e4e4e8, #cfd0d6); border: 0; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,0.2), 0 1px 2px rgba(0,0,0,0.18); cursor: pointer; text-decoration: none !important; }
.btn:hover { filter: brightness(1.04); color: #111; }
.btn.blue { background: linear-gradient(to bottom, #7b5cb8, #6a4da5); color: #fff !important; }
.btn.green { background: linear-gradient(to bottom, #34b35a, #289448); color: #fff !important; }
.view-changer { display: inline-flex; gap: 4px; }
.view-changer button { min-width: 36px; padding: 0 10px; }
.view-changer button.is-active { background: #6a4da5; color: #fff; }