:root {
  --bg: #0b0b0b;
  --card: #121212;
  --neon: #00ffcc;
  --accent: #ffd700;
}


body {
  margin: 0;
  background: var(--bg);
  color: #fff;
  font-family: system-ui, Arial, sans-serif;
}

a { text-decoration: none; color: inherit; }

header {
  background: #081a3a;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 26px;
  color: var(--accent);
  font-weight: 800;
}

nav a {
  margin: 0 10px;
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
  gap: 16px;
  padding: 20px;
}

.card {
  background: var(--card);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s;
}

.card:hover { transform: translateY(-4px); }

.card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
}

.card h3 {
  padding: 10px;
  font-size: 14px;
}

.btn-load {
  display: block;
  margin: 30px auto;
  padding: 14px 36px;
  border-radius: 40px;
  border: none;
  background: linear-gradient(90deg,#00ffcc,#ff00ff);
  font-size: 16px;
  cursor: pointer;
}

iframe {
  width: 100%;
  height: 520px;
  border-radius: 14px;
}

/* ===== GAME HERO CENTER FIX ===== */

.game-hero {
  text-align: center;
  padding: 30px 15px 20px;
}

.game-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #ffffff;
}

.game-card-hero {
  max-width: 720px;
  margin: 0 auto;
  background: radial-gradient(circle at top, #1a1a1a, #0b0b0b);
  border-radius: 22px;
  padding: 20px;
}

.game-card-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.play-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 14px 60px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  border-radius: 999px;
  background: linear-gradient(90deg,#8f4bff,#ff4fd8);
  box-shadow: 0 0 25px rgba(143,75,255,.45);
  transition: transform .2s ease;
}

.play-btn:hover {
  transform: scale(1.05);
}

/* Mobile tuning */
@media (max-width: 768px) {
  .game-title {
    font-size: 24px;
  }
  .game-card-hero {
    padding: 14px;
  }
}

/* ===== GAME FRAME CENTER FIX ===== */

.game-frame-wrapper {
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 15px;
}

.game-frame-wrapper iframe {
  width: 100%;
  height: 520px;
  border-radius: 18px;
  display: block;
  background: #000;
}

/* Mobile */
@media (max-width: 768px) {
  .game-frame-wrapper iframe {
    height: 70vh;
  }
}

/* ===== GAME CONTENT WIDTH MATCH ===== */

.game-content {
  max-width: 1100px;
  margin: 0 auto 40px;
  padding: 0 15px;
}

.game-content h2 {
  margin-top: 28px;
  margin-bottom: 12px;
}

.game-content p {
  line-height: 1.7;
  color: #ddd;
}
.game-title {
  margin-top: 25px;
  margin-bottom: 10px;
}

/* ===== STICKY HEADER ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #081a3a;
  box-shadow: 0 2px 10px rgba(0,0,0,.4);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* NAV BUTTONS */
.nav-left {
  display: flex;
  gap: 6px;
}

.nav-btn {
  padding: 8px 14px;
  border-radius: 20px;
  background: rgba(255,255,255,.08);
  font-size: 14px;
  transition: background .2s;
}

.nav-btn:hover {
  background: rgba(255,255,255,.18);
}

/* LOGO */
.logo {
  font-size: 18px;
  font-weight: 800;
  color: #ffd700;
  white-space: nowrap;
}

/* SEARCH */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input {
  padding: 8px 14px;
  border-radius: 20px;
  border: none;
  outline: none;
  background: #0f2555;
  color: #fff;
  width: 180px;
}

/* MOBILE MENU */
.menu-toggle {
  display: none;
  font-size: 22px;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .nav-left {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: #081a3a;
    padding: 10px;
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .nav-left.active {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .search-input {
    width: 140px;
  }
}

/* ===== NAV ICONS ===== */

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-btn .icon {
  font-size: 16px;
  line-height: 1;
}

/* ===== SEARCH ICON ===== */

.search-box {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  opacity: 0.8;
  pointer-events: none;
}

.search-input {
  padding-left: 32px; /* space for icon */
}


.game-actions {
  margin: 12px auto 20px;
  text-align: center;
  font-size: 14px;
}

.game-actions button,
.game-actions a {
  background: none;
  border: none;
  color: #fff;
  margin: 0 6px;
  cursor: pointer;
}

.game-actions button:hover,
.game-actions a:hover {
  text-decoration: underline;
}






/* ================= GAME ACTION BUTTONS ================= */

.game-actions {
  max-width: 1100px;
  margin: 12px auto 24px;
  padding: 8px 12px;

  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

/* Base button style */
.ga-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  padding: 10px 16px;
  border-radius: 999px;
  border: none;

  font-size: 14px;
  font-weight: 600;

  color: #fff;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);

  cursor: pointer;
  transition: all .2s ease;
}

/* Hover / active */
.ga-btn:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-1px);
}

.ga-btn:active {
  transform: scale(0.96);
}

/* Like / Dislike accents */
.ga-btn.like {
  background: rgba(0, 200, 140, 0.18);
}

.ga-btn.dislike {
  background: rgba(255, 80, 80, 0.18);
}

/* Share buttons */
.ga-btn.share {
  background: rgba(120,120,255,0.18);
  text-decoration: none;
}

/* Mobile optimization */
@media (max-width: 768px) {
  .ga-btn {
    padding: 9px 14px;
    font-size: 13px;
  }
}

.game-content { outline: 1px dashed red; }


/* ================= GAME ACTIONS BAR ================= */

.game-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(90deg, #0b1025, #121a3a);
  border-radius: 14px;
  max-width: 1200px;
  margin: 20px auto;
}

/* Common pill style */
.game-actions button,
.game-actions a,
.game-actions .stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: #1e274f;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, opacity .15s ease;
}

/* Hover */
.game-actions button:hover,
.game-actions a:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

/* Play count pill */
.game-actions .stat {
  background: #1e274f;
  cursor: default;
}

/* Like */
.game-actions button:nth-of-type(2) {
  background: #3cae47;
}

/* Dislike */
.game-actions button:nth-of-type(3) {
  background: #2c325a;
}

/* Facebook */
.game-actions a[href*="facebook"] {
  background: #3b5cff;
}

/* X (Twitter) */
.game-actions a[href*="twitter"] {
  background: #000;
}

/* WhatsApp */
.game-actions a[href*="wa.me"] {
  background: #4bc857;
}

/* Mobile */
@media (max-width: 768px) {
  .game-actions {
    justify-content: center;
  }
}


.footer-seo-text {
  max-width: 1200px;
  margin: 40px auto 20px;
  padding: 0 15px;
  color: #bdbdbd;
  font-size: 14px;
  line-height: 1.7;
}

.footer-seo-text strong {
  color: #ffffff;
}

.logo img {
  height: 52px;
  width: auto;
  display: block;
}



/* ===============================
   RELATED CATEGORIES – FINAL UI
=============================== */

.related-categories {
  margin: 36px 0;
}

.related-categories h2 {
  font-size: 22px;
  margin-bottom: 14px;
  color: #fff;
}

.category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-links a {
  padding: 8px 16px;
  background: linear-gradient(135deg, #1f2a44, #263a63);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.category-links a:hover {
  background: linear-gradient(135deg, #2f80ed, #56ccf2);
  transform: translateY(-1px);
}

/* Mobile friendly */
@media (max-width: 600px) {
  .category-links a {
    font-size: 13px;
    padding: 7px 14px;
  }
}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}



.game-thumb {
  transition: opacity 0.2s ease;
}

.card:hover .game-thumb {
  opacity: 0.95;
}




h1.home-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin: 25px 0 35px;
  letter-spacing: 0.5px;
}



.thumb-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.thumb-container img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 10px;
  text-align: center;
}

.thumb-overlay span {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
}

.thumb-container:hover img {
  transform: scale(1.05);
}

.thumb-container:hover .thumb-overlay {
  opacity: 1;
}







.game-frame {
  position: relative;
  max-width: 1000px;
  margin: 40px auto;
  border-radius: 20px;
  overflow: hidden;
  background: #111;
}

.game-overlay {
  position: relative;
  cursor: pointer;
}

.game-poster {
  width: 100%;
  display: block;
  border-radius: 20px;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  background: linear-gradient(90deg, #7ee8fa, #a347ff);
  color: white;
  border: none;
  padding: 18px 40px;
  font-size: 20px;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s ease;
}

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 0 40px rgba(163, 71, 255, 0.8);
}



.play-btn {
  white-space: nowrap;     /* prevent line break */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;                /* space between icon and text */
  padding: 14px 28px;
  font-size: 18px;
}


