/* Reset & Base */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; color: #111; background: #0f172a; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:root {
  --bg: #0f172a; /* slate-900 */
  --card: #111827; /* gray-900 */
  --muted: #94a3b8; /* slate-400 */
  --primary: #22d3ee; /* cyan-400 */
  --primary-deep: #0891b2; /* cyan-700 */
  --accent: #f59e0b; /* amber-500 */
  --surface: #0b1220;
  --radius: 14px;
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.header-content { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { width: 36px; height: 36px; }
.logo-text { font-weight: 800; font-size: 20px; color: white; letter-spacing: 0.5px; }

.main-nav .nav-list { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; }
.main-nav a { color: #cbd5e1; font-weight: 600; }
.main-nav a:hover { color: white; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.search-container { display: flex; align-items: center; background: var(--surface); border: 1px solid rgba(255,255,255,0.08); border-radius: 9999px; padding: 6px 8px; }
.search-input { background: transparent; border: none; outline: none; color: white; padding: 6px 8px; width: 180px; }
.search-btn { background: var(--primary); border: none; border-radius: 9999px; padding: 6px 10px; cursor: pointer; }

.language-selector select { background: var(--surface); color: white; border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; padding: 6px 10px; }

.ad-banner-top { width: 100%; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }

.hero { background: radial-gradient(1200px 600px at 20% -10%, rgba(34, 211, 238, 0.2), transparent), radial-gradient(900px 400px at 80% -10%, rgba(245, 158, 11, 0.12), transparent); padding: 40px 0 16px; }
.hero-title { color: white; font-size: 32px; font-weight: 900; margin: 0 0 8px; }
.hero-description { color: var(--muted); margin: 0 0 14px; max-width: 720px; }
.hero-stats { display: flex; gap: 12px; flex-wrap: wrap; }
.stat { color: white; background: rgba(255,255,255,0.06); padding: 6px 10px; border-radius: 9999px; border: 1px solid rgba(255,255,255,0.08); font-weight: 700; }

.section-title { color: white; font-size: 22px; margin: 22px 0 12px; font-weight: 800; }

.games-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.game-card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,0.06); cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.game-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,0.4); }
.game-thumbnail { position: relative; aspect-ratio: 16/9; background: #0b1220; }
.play-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0.35)); opacity: 0; transition: opacity 0.2s ease; }
.game-card:hover .play-overlay { opacity: 1; }
.play-button { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: white; color: #111; font-weight: 900; box-shadow: 0 10px 25px rgba(0,0,0,0.35); }
.game-info { padding: 12px; }
.game-title { color: white; margin: 0 0 6px; font-size: 16px; font-weight: 800; }
.game-description { color: var(--muted); margin: 0 0 10px; }
.game-meta { display: flex; align-items: center; gap: 10px; color: #cbd5e1; font-weight: 600; }

.coming-soon .placeholder { width: 100%; height: 100%; display: grid; place-items: center; color: #94a3b8; background: repeating-linear-gradient(45deg, #0b1220, #0b1220 10px, #0f172a 10px, #0f172a 20px); aspect-ratio: 16/9; }

.categories-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.category-card { background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.06); padding: 16px; border-radius: var(--radius); transition: transform 0.15s ease, border-color 0.15s ease; }
.category-card:hover { transform: translateY(-1px); border-color: rgba(34,211,238,0.4); }
.category-icon { font-size: 24px; }
.category-card h3 { color: white; margin: 8px 0 6px; }
.category-card p { color: var(--muted); margin: 0; }

.sidebar-ad { margin: 20px 0; }
.desktop-only { display: none; }

.footer { border-top: 1px solid rgba(255,255,255,0.06); background: rgba(15,23,42,0.6); margin-top: 24px; }
.footer-content { display: grid; grid-template-columns: 1fr; gap: 16px; padding: 16px 0; }
.footer-section h4 { color: white; margin: 0 0 8px; }
.footer-section p, .footer-section ul { color: var(--muted); margin: 0; padding: 0; list-style: none; }
.footer-section li { margin: 6px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding: 10px 0; color: #94a3b8; }

/* Responsive */
@media (min-width: 768px) {
  .games-grid { grid-template-columns: repeat(3, 1fr); }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .games-grid { grid-template-columns: repeat(4, 1fr); }
  .categories-grid { grid-template-columns: repeat(6, 1fr); }
  .desktop-only { display: block; }
}