/* =========================
   GLOBAL BASE
========================= */
body{
  margin:0;
  background:#081a33;
  color:#ffffff;
  font-family:Arial, sans-serif;
}

a{ color:inherit; }

.container{
  max-width:1200px;
  margin:0 auto;
  padding:20px;
}

h1,h2,h3{
  color:#ffffff;
}

/* =========================
   HEADER + NAV
========================= */
.header{
  background:#041225;
  padding:14px 20px;
}

.nav-container{
  max-width:1200px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.nav-left{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

.nav-left a{
  color:#ffffff;
  text-decoration:none;
  font-size:14px;
  white-space:nowrap;
}

.nav-left a:hover{
  color:#9bbcff;
}

.nav-center .logo{
  color:#ff3b3b;
  font-size:22px;
  font-weight:bold;
  white-space:nowrap;
}

.nav-right{
  display:flex;
}

/* SEARCH */
.search-form{
  display:flex;
  align-items:center;
  background:#0d2347;
  border-radius:30px;
  padding:4px;
}

.search-form input{
  background:transparent;
  border:none;
  outline:none;
  color:#ffffff;
  padding:6px 12px;
  width:170px;
  font-size:14px;
}

.search-form button{
  background:#6a00ff;
  border:none;
  color:#ffffff;
  padding:6px 14px;
  border-radius:20px;
  cursor:pointer;
}

/* =========================
   GAME GRID (ALL PAGES)
========================= */
.game-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill, minmax(180px,1fr));
  gap:20px;
}

.card{
  text-align:center;
}

.card img{
  width:100%;
  height:140px;
  object-fit:cover;
  border-radius:6px;
  display:block;
}

.card h3{
  font-size:13px;
  line-height:1.4;
  margin-top:8px;
}

/* =========================
   GAME PAGE
========================= */
.game-page{
  text-align:left;
}

.game-container{
  width:100%;
  max-width:1100px;
  margin:15px auto;
  background:#000;
  border-radius:12px;
  overflow:hidden;
}

/* ASPECT RATIO */
.game-ratio{
  position:relative;
  width:100%;
  aspect-ratio:16 / 9;
  background:#000;
}

.game-ratio iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}

/* GAME TOOLBAR */
.game-toolbar{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  margin:20px 0;
}

.fullscreen-btn,
.like-btn,
.dislike-btn,
.share{
  background:#1b2f5a;
  color:#ffffff;
  border:none;
  padding:9px 16px;
  border-radius:22px;
  cursor:pointer;
  font-size:14px;
  text-decoration:none;
  white-space:nowrap;
}

.fullscreen-btn:hover{ background:#5200cc; }
.like-btn:hover{ background:#2d8f2d; }
.dislike-btn:hover{ background:#b53030; }

.share.fb{ background:#1877f2; }
.share.x{ background:#000; }
.share.wa{ background:#25d366; }

/* =========================
   GAME INFORMATION TEXT
========================= */
.game-description,
.game-description p,
.game-page p,
.game-page h2,
.game-page h3{
  text-align:left;
}

.game-categories{
  margin:10px 0 15px;
  font-size:14px;
}

.game-categories a{
  color:#9bbcff;
  margin-right:8px;
  text-decoration:none;
}

.game-categories a:hover{
  text-decoration:underline;
}

/* =========================
   AD CONTAINER – FINAL FIX
========================= */

.ad,
.ad-top,
.ad-middle,
.ad-bottom{
  width:100%;
  max-width:1100px;
  margin:15px auto;        /* reduced vertical gap */
  padding:8px 0;           /* minimal padding */
  background:#222;
  text-align:center;
  border-radius:8px;
}

/* When AdSense loads, it expands naturally */
.ad ins{
  display:block;
}

/* Remove forced height */
.ad{
  min-height:auto !important;
}


/* =========================
   SEO CONTENT (HOMEPAGE)
========================= */
.seo-content{
  max-width:900px;
  margin:40px auto 30px;
  padding:15px;
  line-height:1.8;
  color:#e6e6e6;
  text-align:left;
}

.seo-content h2{
  font-size:22px;
  margin-top:30px;
}

/* =========================
   FOOTER
========================= */
.footer{
  background:#041225;
  padding:15px;
  text-align:center;
}

.footer a{
  color:#ffffff;
  text-decoration:none;
  font-weight:500;
  margin:0 6px;
}

.footer a:hover{
  color:#9bbcff;
  text-decoration:underline;
}

/* =========================
   MOBILE FIXES
========================= */
@media(max-width:768px){

  .container{
    padding:12px;
  }

  .nav-container{
    flex-direction:column;
    align-items:center;
    gap:12px;
  }

  .nav-left{
    justify-content:center;
  }

  .search-form{
    width:100%;
    max-width:320px;
  }

  .search-form input{
    width:100%;
  }

  .game-grid{
    grid-template-columns:repeat(2,1fr);
    gap:12px;
  }

  .card img{
    height:120px;
  }

  .game-ratio{
    aspect-ratio:4 / 3;
  }

  .seo-content{
    padding:10px;
    font-size:14px;
  }
}

/* IFRAME CENTER – FINAL */
.game-container{
  display:flex;
  justify-content:center;
  align-items:center;
}

.game-ratio{
  width:100%;
}

.game-ratio iframe{
  width:100%;
  height:100%;
  display:block;
}


/* Mobile fix */
@media(max-width:768px){
  .game-container{
    justify-content:center;
  }
}




/* LOAD MORE – FINAL FIX */
#loadMoreBtn{
  display:block;
  margin:15px auto 20px;   /* reduced gap */
}


/* Reduce gap between Load More and SEO text */
.seo-content{
  margin-top:20px;
}

/* =========================
   LOAD MORE BUTTON (FINAL)
========================= */
#loadMoreBtn{
  display:block;
  margin:15px auto 20px;
  padding:12px 30px;
  font-size:16px;
  font-weight:600;
  background:#6a00ff;
  color:#ffffff;
  border:none;
  border-radius:30px;
  cursor:pointer;
  transition:all 0.2s ease;
}

#loadMoreBtn:hover{
  background:#5200cc;
  transform:scale(1.03);
}

.category-box{
  text-align:center;
  min-width:120px;
}

/* CATEGORY GRID – FIX */
.category-grid{
  display:flex;
  flex-wrap:wrap;
  gap:15px;
  margin-top:25px;
}

.category-box{
  background:#10244d;
  padding:12px 18px;
  border-radius:10px;
  color:#ffffff;
  text-decoration:none;
  font-weight:600;
  font-size:14px;
  transition:0.2s ease;
}

.category-box:hover{
  background:#16336b;
  transform:translateY(-2px);
}

.logo img {
  display: block;
  max-width: 180px;
  height: auto;
}

.ad {
  min-height: 90px;
  margin: 16px 0;
  text-align: center;
}

@media (min-width: 768px) {
  .ad {
    min-height: 250px;
  }

.ad {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 20px 0;
}

/* Prevent layout shift */
.ad > div {
  min-width: 300px;
  min-height: 90px;
}

/* Desktop sizes */
@media (min-width: 768px) {
  .ad > div {
    min-width: 728px;
    min-height: 90px;
  }


/* GAME IFRAME – CLS FIX */
.game-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.game-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.ad-center {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 20px 0;
}

/* Mobile safe */
@media (max-width: 768px) {
  .ad-center ins {
    width: 320px !important;
    height: 100px !important;
  }
}

.category-mid-ad {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  margin: 25px 0;
}

/* GAME IFRAME – VISUAL FIX ONLY */
.game-container iframe {
  width: 100%;
  height: 100%;
  background: #000;
}

/* Desktop: reduce black side bars */
@media (min-width: 1024px) {
  .game-container {
    max-width: 1000px;   /* slightly narrower */
  }
}


.game-container {
  width: 100%;
  max-width: 1100px;
  margin: 20px auto;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

/* Let the embed control its own size */
.game-container iframe {
  width: 100%;
  min-height: 600px;   /* IMPORTANT */
  border: 0;
  display: block;
}

@media (max-width: 768px) {
  .game-container iframe {
    min-height: 420px;
  }
}


