/* GameHub - pqkldjd.com | AdSense-Compliant Stylesheet */
:root {
  --gh-bg: #0b0b14;
  --gh-bg-alt: #111122;
  --gh-card: #16162a;
  --gh-card-hover: #1e1e3a;
  --gh-text: #eeeef5;
  --gh-text-secondary: #9898b0;
  --gh-text-muted: #5e5e78;
  --gh-accent: #7c3aed;
  --gh-accent-light: #a78bfa;
  --gh-glow: rgba(124, 58, 237, 0.35);
  --gh-gradient: linear-gradient(135deg, #7c3aed, #2563eb);
  --gh-border: rgba(255, 255, 255, 0.06);
  --gh-radius: 12px;
  --gh-radius-lg: 16px;
  --gh-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--gh-font); background: var(--gh-bg); color: var(--gh-text); line-height: 1.6; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ===== Header ===== */
.gh-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 11, 20, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gh-border);
}
.gh-header-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 2rem;
  height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}
.gh-logo-link { display: flex; align-items: center; gap: 0.6rem; }
.gh-logo-img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.gh-logo-text {
  font-size: 1.3rem; font-weight: 800;
  background: var(--gh-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.gh-nav { display: flex; gap: 0.25rem; }
.gh-nav-link {
  padding: 0.45rem 0.85rem; border-radius: 8px;
  font-size: 0.875rem; font-weight: 500; color: var(--gh-text-secondary); transition: 0.2s;
}
.gh-nav-link:hover, .gh-nav-active { color: var(--gh-text); background: rgba(124, 58, 237, 0.15); }
.gh-search-box form {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.06); border: 1px solid var(--gh-border); border-radius: 10px; overflow: hidden;
}
.gh-search-box input {
  background: none; border: none; color: var(--gh-text);
  padding: 0.5rem 0.8rem; font-size: 0.85rem; width: 200px; outline: none;
}
.gh-search-box input::placeholder { color: var(--gh-text-muted); }
.gh-search-box button { background: none; border: none; color: var(--gh-text-muted); padding: 0.5rem 0.7rem; cursor: pointer; font-size: 0.9rem; }
.gh-menu-toggle { display: none; background: none; border: none; color: var(--gh-text); font-size: 1.4rem; cursor: pointer; }

/* ===== Main ===== */
.gh-main { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }

/* ===== Hero ===== */
.gh-hero {
  position: relative; margin: 2rem 0; border-radius: var(--gh-radius-lg);
  overflow: hidden; aspect-ratio: 21/9; max-height: 400px;
}
.gh-hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s; }
.gh-hero-slide.gh-active { opacity: 1; }
.gh-hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.gh-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,11,20,0.95), rgba(11,11,20,0.2) 60%, transparent); }
.gh-hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem; z-index: 2; }
.gh-hero-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 0.4rem; }
.gh-hero-desc { color: var(--gh-text-secondary); font-size: 0.9rem; max-width: 560px; margin-bottom: 1rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gh-hero-dots { position: absolute; bottom: 1rem; right: 1.5rem; display: flex; gap: 0.4rem; z-index: 3; }
.gh-hero-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: 0.2s; }
.gh-hero-dots span.gh-active { background: var(--gh-accent); box-shadow: 0 0 6px var(--gh-glow); }
.gh-btn-play {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.6rem 1.4rem; background: var(--gh-gradient); color: #fff;
  border-radius: 10px; font-weight: 600; font-size: 0.9rem; transition: 0.2s;
}
.gh-btn-play:hover { transform: translateY(-2px); box-shadow: 0 4px 16px var(--gh-glow); }

/* ===== Sections ===== */
.gh-section { padding: 2rem 0; }
.gh-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.gh-section-title {
  font-size: 1.35rem; font-weight: 700; padding-left: 0.8rem; position: relative;
}
.gh-section-title::before {
  content: ''; position: absolute; left: 0; top: 0.15em; bottom: 0.15em;
  width: 4px; border-radius: 2px; background: var(--gh-gradient);
}
.gh-section-link { font-size: 0.85rem; color: var(--gh-accent-light); font-weight: 500; }

/* ===== Category Grid ===== */
.gh-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.gh-cat-card {
  background: var(--gh-card); border: 1px solid var(--gh-border); border-radius: var(--gh-radius);
  padding: 1.4rem 1rem; text-align: center; transition: 0.25s;
}
.gh-cat-card:hover { transform: translateY(-4px); border-color: rgba(124,58,237,0.3); box-shadow: 0 0 24px var(--gh-glow); }
.gh-cat-icon { font-size: 2rem; margin-bottom: 0.5rem; display: block; }
.gh-cat-name { font-size: 0.85rem; font-weight: 600; }
.gh-cat-count { font-size: 0.72rem; color: var(--gh-text-muted); margin-top: 0.15rem; }

/* ===== Game Cards ===== */
.gh-game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.2rem; }
.gh-card {
  background: var(--gh-card); border: 1px solid var(--gh-border); border-radius: var(--gh-radius);
  overflow: hidden; transition: 0.25s;
}
.gh-card:hover { transform: translateY(-5px) scale(1.02); border-color: rgba(124,58,237,0.3); box-shadow: 0 0 24px var(--gh-glow); }
.gh-card-link { display: flex; flex-direction: column; }
.gh-card-cover { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.gh-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.gh-card:hover .gh-card-cover img { transform: scale(1.08); }
.gh-card-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.5);
  display: flex; align-items: center; justify-content: center; opacity: 0; transition: 0.25s;
}
.gh-card:hover .gh-card-overlay { opacity: 1; }
.gh-play-btn {
  width: 44px; height: 44px; border-radius: 50%; background: var(--gh-gradient);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  box-shadow: 0 4px 16px var(--gh-glow);
}
.gh-card-info { padding: 0.8rem; flex: 1; display: flex; flex-direction: column; gap: 0.3rem; }
.gh-card-title { font-size: 0.88rem; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gh-card-cat { font-size: 0.7rem; color: var(--gh-accent-light); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

/* Horizontal scroll row */
.gh-game-row { display: flex; gap: 1rem; overflow-x: auto; padding-bottom: 0.5rem; scroll-snap-type: x mandatory; }
.gh-card-sm {
  min-width: 140px; max-width: 140px; scroll-snap-align: start; flex-shrink: 0;
  background: var(--gh-card); border: 1px solid var(--gh-border); border-radius: var(--gh-radius); overflow: hidden; transition: 0.2s;
}
.gh-card-sm:hover { border-color: rgba(124,58,237,0.3); }
.gh-card-sm img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.gh-card-sm-title { display: block; padding: 0.5rem; font-size: 0.78rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ===== Category Chips ===== */
.gh-chips { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.gh-chip {
  padding: 0.45rem 1rem; border-radius: 20px; font-size: 0.82rem; font-weight: 500;
  background: rgba(255,255,255,0.05); border: 1px solid var(--gh-border);
  color: var(--gh-text-secondary); transition: 0.2s;
}
.gh-chip:hover, .gh-chip-active { background: var(--gh-gradient); border-color: transparent; color: #fff; }

/* ===== Game Detail Page ===== */
.gh-game-page { padding-top: 1.5rem; padding-bottom: 3rem; }
.gh-breadcrumb { font-size: 0.82rem; color: var(--gh-text-muted); margin-bottom: 1rem; }
.gh-breadcrumb a { color: var(--gh-accent-light); }
.gh-breadcrumb a:hover { text-decoration: underline; }
.gh-game-top { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 1.5rem; }
.gh-game-thumb { width: 72px; height: 72px; border-radius: var(--gh-radius); object-fit: cover; }
.gh-game-name { font-size: 1.5rem; font-weight: 800; }
.gh-game-badges { display: flex; gap: 0.5rem; margin-top: 0.3rem; }
.gh-badge { font-size: 0.72rem; padding: 0.2rem 0.6rem; background: rgba(124,58,237,0.15); border-radius: 6px; color: var(--gh-accent-light); font-weight: 500; }
.gh-player-wrap { position: relative; border-radius: var(--gh-radius-lg); overflow: hidden; background: #000; margin-bottom: 2rem; box-shadow: 0 4px 24px rgba(0,0,0,0.5); }
.gh-player-aspect { position: relative; width: 100%; padding-top: 62.5%; }
.gh-player-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }
.gh-player-btns { position: absolute; top: 0.7rem; right: 0.7rem; display: flex; gap: 0.4rem; z-index: 5; }
.gh-player-btns button {
  width: 34px; height: 34px; border-radius: 8px; background: rgba(0,0,0,0.7);
  border: 1px solid rgba(255,255,255,0.1); color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem; transition: 0.2s;
}
.gh-player-btns button:hover { background: var(--gh-accent); }
.gh-player-wrap.gh-fs, .gh-player-wrap:fullscreen, .gh-player-wrap:-webkit-full-screen, .gh-player-wrap:-moz-full-screen, .gh-player-wrap:-ms-fullscreen { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 9999; border-radius: 0; margin: 0; background: #000; }
.gh-player-wrap.gh-fs .gh-player-aspect, .gh-player-wrap:fullscreen .gh-player-aspect, .gh-player-wrap:-webkit-full-screen .gh-player-aspect, .gh-player-wrap:-moz-full-screen .gh-player-aspect, .gh-player-wrap:-ms-fullscreen .gh-player-aspect { padding-top: 0; height: 100%; width: 100%; }
.gh-player-wrap:fullscreen .gh-player-btns, .gh-player-wrap:-webkit-full-screen .gh-player-btns { z-index: 10000; }
iframe:fullscreen, iframe:-webkit-full-screen, iframe:-moz-full-screen, iframe:-ms-fullscreen { width: 100vw !important; height: 100vh !important; border: none; position: fixed; top: 0; left: 0; }
.gh-desc-box { background: var(--gh-card); border: 1px solid var(--gh-border); border-radius: var(--gh-radius-lg); padding: 1.8rem; margin-bottom: 2rem; }
.gh-desc-box h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.8rem; }
.gh-desc-box p { color: var(--gh-text-secondary); font-size: 0.92rem; line-height: 1.7; }
.gh-tag-list { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 1rem; }
.gh-tag-list span { padding: 0.25rem 0.65rem; background: rgba(124,58,237,0.1); border: 1px solid rgba(124,58,237,0.2); border-radius: 8px; font-size: 0.78rem; color: var(--gh-accent-light); }

/* Tips / How to Play box */
.gh-tips-box { background: var(--gh-card); border: 1px solid var(--gh-border); border-radius: var(--gh-radius-lg); padding: 1.8rem; margin-bottom: 2rem; }
.gh-tips-box h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.gh-tips-box ol { padding-left: 1.5rem; list-style: decimal; }
.gh-tips-box li { color: var(--gh-text-secondary); font-size: 0.9rem; line-height: 1.7; margin-bottom: 0.6rem; }
.gh-meta-row { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.gh-meta-item { font-size: 0.82rem; color: var(--gh-text-muted); }
.gh-meta-item strong { color: var(--gh-text-secondary); }

/* ===== Search ===== */
.gh-search-page { padding-top: 2rem; padding-bottom: 3rem; }
.gh-search-big { position: relative; max-width: 600px; margin-bottom: 2rem; }
.gh-search-big input {
  width: 100%; padding: 0.85rem 1rem 0.85rem 2.8rem;
  background: var(--gh-card); border: 1px solid var(--gh-border); border-radius: var(--gh-radius);
  color: var(--gh-text); font-size: 1rem; outline: none; transition: 0.2s;
}
.gh-search-big input:focus { border-color: var(--gh-accent); box-shadow: 0 0 0 3px var(--gh-glow); }
.gh-search-icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--gh-text-muted); pointer-events: none; }
.gh-result-info { color: var(--gh-text-muted); font-size: 0.88rem; margin-bottom: 1rem; }
.gh-no-result { text-align: center; padding: 4rem 2rem; color: var(--gh-text-muted); }
.gh-no-result-icon { font-size: 3rem; margin-bottom: 1rem; }

/* ===== Content Pages ===== */
.gh-content { max-width: 800px; padding: 2.5rem 0; }
.gh-content h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 1.5rem; }
.gh-content h2 { font-size: 1.2rem; font-weight: 700; margin: 1.5rem 0 0.8rem; }
.gh-content p, .gh-content li { color: var(--gh-text-secondary); font-size: 0.92rem; line-height: 1.8; margin-bottom: 0.8rem; }
.gh-content ul, .gh-content ol { padding-left: 1.5rem; }
.gh-content ul { list-style: disc; }
.gh-content ol { list-style: decimal; }
.gh-content a { color: var(--gh-accent-light); }
.gh-content a:hover { text-decoration: underline; }
.gh-faq-item { margin-bottom: 1.5rem; }
.gh-faq-q { font-size: 1.05rem; font-weight: 600; color: var(--gh-text); margin-bottom: 0.4rem; }
.gh-faq-a { color: var(--gh-text-secondary); font-size: 0.92rem; line-height: 1.7; }

/* ===== 404 ===== */
.gh-404 { text-align: center; padding: 5rem 0; }
.gh-404-code { font-size: 5rem; font-weight: 800; background: var(--gh-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 1rem; }

/* ===== Footer ===== */
.gh-footer { background: var(--gh-bg-alt); border-top: 1px solid var(--gh-border); margin-top: 3rem; }
.gh-footer-grid { max-width: 1400px; margin: 0 auto; padding: 2.5rem 2rem; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.gh-footer-logo { font-size: 1.2rem; font-weight: 800; background: var(--gh-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.5rem; }
.gh-footer-desc { color: var(--gh-text-muted); font-size: 0.82rem; line-height: 1.6; }
.gh-footer-heading { font-size: 0.85rem; font-weight: 600; margin-bottom: 0.8rem; color: var(--gh-text); }
.gh-footer-list li { margin-bottom: 0.4rem; }
.gh-footer-list a { font-size: 0.82rem; color: var(--gh-text-muted); transition: 0.2s; }
.gh-footer-list a:hover { color: var(--gh-accent-light); }
.gh-footer-bottom { border-top: 1px solid var(--gh-border); padding: 1rem 2rem; text-align: center; }
.gh-footer-bottom p { font-size: 0.78rem; color: var(--gh-text-muted); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .gh-footer-grid { grid-template-columns: 1fr 1fr; }
  .gh-game-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
}
@media (max-width: 700px) {
  .gh-header-inner { padding: 0 1rem; }
  .gh-nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--gh-bg-alt); flex-direction: column; padding: 1rem; border-bottom: 1px solid var(--gh-border); }
  .gh-nav.gh-nav-open { display: flex; }
  .gh-search-box { display: none; }
  .gh-menu-toggle { display: block; }
  .gh-main { padding: 0 1rem; }
  .gh-hero { aspect-ratio: 16/9; margin: 1rem 0; }
  .gh-hero-title { font-size: 1.2rem; }
  .gh-game-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .gh-card-info { padding: 0.6rem; }
  .gh-card-title { font-size: 0.8rem; }
  .gh-cat-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 0.7rem; }
  .gh-footer-grid { grid-template-columns: 1fr; padding: 1.5rem 1rem; }
  .gh-game-top { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .gh-game-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
}