:root {
  --bg: #0a0e1a; --bg-2: #131826; --card: #1a2033; --card-hover: #232b45;
  --text: #e8ecf5; --muted: #8892a8;
  --accent: #ff3d68; --accent-2: #4dffb8; --yellow: #ffd83d;
  --border: #2a3148;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { background: var(--bg); color: var(--text); font-family: 'Space Grotesk', system-ui, sans-serif; min-height: 100vh; }
body {
  background:
    radial-gradient(ellipse at top left, rgba(255,61,104,0.08), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(77,255,184,0.06), transparent 50%),
    var(--bg);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

header { position: sticky; top: 0; z-index: 100; background: rgba(10,14,26,0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav { max-width: 1400px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; gap: 24px; }
.logo { font-family: 'Bungee', cursive; font-size: 22px; letter-spacing: -0.5px; }
.logo .a { color: var(--accent); }
.logo .b { color: var(--accent-2); }
.nav-links { display: flex; gap: 18px; margin-left: auto; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.search { flex: 1; max-width: 500px; position: relative; }
.search input { width: 100%; padding: 12px 16px 12px 44px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-family: inherit; font-size: 15px; transition: border-color 0.2s; }
.search input:focus { outline: none; border-color: var(--accent); }
.search::before { content: '🔍'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 16px; }

.hero { max-width: 1400px; margin: 32px auto 16px; padding: 0 24px; }
.hero h1 { font-family: 'Bungee', cursive; font-size: clamp(28px, 5vw, 52px); line-height: 1.05; letter-spacing: -1px; }
.hero h1 .accent { color: var(--accent); }
.hero p { color: var(--muted); margin-top: 8px; font-size: 16px; }
.stats { color: var(--accent-2); font-size: 14px; margin-top: 12px; font-weight: 500; }

.ad-slot { max-width: 1400px; margin: 24px auto; padding: 0 24px; }
.ad-box { background: var(--card); border: 1px dashed var(--border); border-radius: 12px; padding: 20px; text-align: center; color: var(--muted); font-size: 13px; min-height: 90px; display: flex; align-items: center; justify-content: center; }

.cats { max-width: 1400px; margin: 16px auto; padding: 0 24px; display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex-shrink: 0; padding: 10px 18px; background: var(--card); border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.2s; color: var(--text); }
.cat:hover { background: var(--card-hover); }
.cat.active { background: var(--accent); border-color: var(--accent); color: white; }

.grid { max-width: 1400px; margin: 24px auto 80px; padding: 0 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.game-card { background: var(--card); border-radius: 12px; overflow: hidden; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; border: 1px solid var(--border); }
.game-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(255,61,104,0.2); border-color: var(--accent); }
.game-thumb { width: 100%; aspect-ratio: 4/3; background: var(--bg-2); background-size: cover; background-position: center; position: relative; }
.game-thumb::after { content: '▶'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 40px; color: white; opacity: 0; background: rgba(255,61,104,0.7); transition: opacity 0.2s; }
.game-card:hover .game-thumb::after { opacity: 1; }
.game-info { padding: 10px 12px; }
.game-name { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game-cat { font-size: 11px; color: var(--muted); margin-top: 2px; text-transform: uppercase; letter-spacing: 0.5px; }

.loading { grid-column: 1/-1; text-align: center; padding: 60px 20px; color: var(--muted); }
.spinner { display: inline-block; width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; margin-bottom: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

.player { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.95); flex-direction: column; }
.player.active { display: flex; }
.player-bar { padding: 12px 24px; display: flex; align-items: center; gap: 16px; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.player-title { font-weight: 500; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-close { background: var(--accent); color: white; border: none; padding: 8px 16px; border-radius: 8px; cursor: pointer; font-family: inherit; font-weight: 500; }
.player-fullscreen { background: var(--card); color: var(--text); border: 1px solid var(--border); padding: 8px 16px; border-radius: 8px; cursor: pointer; font-family: inherit; }
.player-frame { flex: 1; width: 100%; border: none; background: black; }

/* Article pages (privacy, about, contact) */
.article { max-width: 800px; margin: 40px auto 80px; padding: 0 24px; }
.article h1 { font-family: 'Bungee', cursive; font-size: clamp(28px, 5vw, 44px); line-height: 1.1; letter-spacing: -1px; margin-bottom: 8px; }
.article .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.article h2 { font-family: 'Bungee', cursive; font-size: 22px; margin-top: 36px; margin-bottom: 12px; color: var(--accent-2); letter-spacing: -0.3px; }
.article h3 { font-size: 18px; font-weight: 700; margin-top: 24px; margin-bottom: 8px; }
.article p { line-height: 1.7; margin-bottom: 14px; color: #c8cfde; }
.article ul { margin-bottom: 14px; padding-left: 24px; color: #c8cfde; line-height: 1.7; }
.article li { margin-bottom: 6px; }
.article a { color: var(--accent-2); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.article a:hover { border-bottom-color: var(--accent-2); }
.article strong { color: var(--text); }
.contact-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-top: 24px; }
.contact-email { font-family: 'Space Grotesk', monospace; font-size: 18px; color: var(--accent); font-weight: 700; word-break: break-all; }

footer { border-top: 1px solid var(--border); padding: 32px 24px; text-align: center; color: var(--muted); font-size: 13px; }
footer a { color: var(--accent-2); }
footer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .nav { flex-wrap: wrap; gap: 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .nav-links { margin-left: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .game-name { font-size: 13px; }
  .player-fullscreen { display: none; }
}
