/* ==========================================================================
   QUIZZONIFY.ONLINE - Exact UI Replica CSS with Modern Dark/Light Gaming Theme
   ========================================================================== */

:root {
  --primary-color: #009cff;
  --primary-hover: #007cff;
  --accent-yellow: #fec501;
  --accent-red: #ff4757;
  --accent-green: #2ed573;
  --bg-page: #dff3ff;
  --bg-card: #ffffff;
  --text-dark: #333333;
  --text-muted: #666666;
  --text-light: #ffffff;
  --border-color: #e1e1e1;
  --card-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  --card-hover-shadow: 0 8px 20px rgba(0, 156, 255, 0.25);
  --header-height: 55px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

/* Dark mode auto support or toggle */
body.dark-theme {
  --bg-page: #0f172a;
  --bg-card: #1e293b;
  --text-dark: #f1f5f9;
  --text-muted: #94a3b8;
  --border-color: #334155;
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  color: var(--text-dark);
  background-color: var(--bg-page);
  line-height: 1.4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  border: 0;
}

input, button {
  font-family: inherit;
  outline: none;
  border: none;
}

button {
  cursor: pointer;
}

.clear {
  clear: both;
}

.container-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 10px;
}

.container-header-wrapper {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 15px;
}

/* ==========================================================================
   HEADER & NAVBAR (9BOB STYLE)
   ========================================================================== */

.header {
  width: 100%;
  height: var(--header-height);
  background: #009cff;
  background: linear-gradient(135deg, #009cff 0%, #0080ff 100%);
  border-bottom: 1px solid #0077e6;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.top {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Logo */
.top_logo {
  display: flex;
  align-items: center;
}

.top_logo a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo-badge {
  font-family: 'Arial Black', Impact, sans-serif;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #ffffff;
  text-shadow: 2px 2px 0px #0056b3, -1px -1px 0 #0056b3, 1px -1px 0 #0056b3, -1px 1px 0 #0056b3;
  display: flex;
  align-items: center;
}

.logo-badge span.net {
  color: var(--accent-yellow);
  text-shadow: 2px 2px 0px #b38600;
}

.logo-icon {
  width: 34px;
  height: 34px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  color: #009cff;
  font-size: 18px;
}

/* Top Nav Links */
.top_nav {
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.top_nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
}

.top_nav li {
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.top_nav li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 100%;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;

  transition: background-color 0.2s ease, color 0.2s ease;
}

.top_nav li a:hover,
.top_nav li.active a {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.nav-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Top Search Bar */
.top_search {
  display: flex;
  align-items: center;
}

.top_search_input {
  position: relative;
  width: 220px;
  height: 34px;
}

.top_search_input form {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 17px;
  padding: 2px 4px 2px 14px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

.top_search_input input[type="text"] {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 13px;
  color: #333333;
}

.top_search_input input[type="text"]::placeholder {
  color: #999999;
}

.top_search_input button {
  width: 28px;
  height: 28px;
  background: #0080ff;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
  flex-shrink: 0;
}

.top_search_input button:hover {
  background: #0056b3;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: transparent;
  color: #ffffff;
  font-size: 22px;
  padding: 5px;
}

/* ==========================================================================
   CATEGORY NAVIGATION BAR
   ========================================================================== */

.category-bar-wrapper {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.category-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 15px;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.category-bar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #f0f4f8;
  color: #475569;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
}

.cat-btn:hover {
  background: #e2e8f0;
  color: var(--primary-color);
}

.cat-btn.active {
  background: var(--primary-color);
  color: #ffffff;
  border-color: var(--primary-color);
  box-shadow: 0 2px 6px rgba(0, 156, 255, 0.3);
}

.cat-icon {
  font-size: 14px;
}

/* ==========================================================================
   MAIN CONTENT & GAME GRID (9BOB FORMAT)
   ========================================================================== */

.main-layout {
  flex: 1;
  padding: 15px 0 30px 0;
}

/* Header / Banner Ad Slot */
.slot-header {
  width: 100%;
  max-width: 970px;
  min-height: 90px;
  margin: 0 auto 15px auto;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.ad-label {
  position: absolute;
  top: 2px;
  right: 6px;
  font-size: 9px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  pointer-events: none;
}

.ad-placeholder-text {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  text-align: center;
}

/* Main Container Grid */
.main-container {
  width: 100%;
  text-align: center;
  font-size: 0px;
  margin: 0 auto;
  min-height: 400px;
}

/* Game Card (.thumb) matching 9bob.net */
.main-container .thumb {
  width: 160px;
  height: 120px;
  aspect-ratio: 4 / 3;
  margin: 6px;
  display: inline-block;
  vertical-align: top;
  background: #ffffff;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
  cursor: pointer;
}

.main-container .thumb:hover {
  z-index: 99;
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 156, 255, 0.35);
}

.main-container .thumb a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.main-container .thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #ffffff;
  transition: border-color 0.2s ease;
}

.main-container .thumb a:hover img {
  border-color: #009cff;
}

/* Game Title Overlay on Hover */
.main-container .thumb .post-name {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 32px;
  line-height: 32px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: none;
  padding: 0 6px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-yellow);
  background-color: rgba(0, 0, 0, 0.82);
  text-align: center;
  box-sizing: border-box;
}

.main-container .thumb a:hover .post-name {
  display: block;
}

/* Badges on Card */
.card-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  pointer-events: none;
}

.badge-hot {
  background: linear-gradient(135deg, #ff4757, #ff6b81);
}

.badge-new {
  background: linear-gradient(135deg, #2ed573, #1e90ff);
}

.badge-cid {
  background: linear-gradient(135deg, #009cff, #fec501) !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
  padding: 3px 8px !important;
  z-index: 10 !important;
}

/* CID Parameter Highlighted Game Card (1st Position Glow Effect) */
.main-container .thumb.highlighted-cid-game {
  border: 3px solid #009cff !important;
  border-radius: var(--radius-sm) !important;
  z-index: 25 !important;
  position: relative !important;
  animation: cidGlowPulse 2s infinite ease-in-out !important;
}

@keyframes cidGlowPulse {
  0%, 100% {
    border-color: #009cff;
    box-shadow: 0 0 14px rgba(0, 156, 255, 0.8), 0 0 24px rgba(254, 197, 1, 0.5);
    transform: scale(1.04);
  }
  50% {
    border-color: #fec501;
    box-shadow: 0 0 22px rgba(254, 197, 1, 0.9), 0 0 32px rgba(0, 156, 255, 0.7);
    transform: scale(1.07);
  }
}

/* In-Feed Ad Card in Grid */
.main-container .thumb.ad-thumb {
  background: #f8fafc;
  border: 2px dashed #009cff;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
}

.main-container .thumb.ad-thumb:hover {
  transform: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.ad-badge {
  background: #009cff;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 6px;
}

/* ==========================================================================
   GAME DETAIL PAGE & PLAYER (9BOB FORMAT)
   ========================================================================== */

.content-play-wrapper {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  gap: 15px;
  padding: 0 15px;
}

.content-play {
  flex: 1;
  min-width: 0;
}

/* Ad Slot Styles (Transparent Background, Only Centered Label) */
.slot-header,
.slot-left-top,
.slot-mid,
.slot-right-top,
.slot-right-bottom {
  width: 100%;
  margin: 12px auto;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  display: block;
  position: relative;
  text-align: center;
  padding: 0 !important;
  clear: both;
}

.ad-label {
  display: inline-block !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #949eac !important;
  text-transform: uppercase !important;
  letter-spacing: 1.2px !important;
  text-align: center !important;
  margin: 0 auto 8px auto !important;
  padding: 2px 10px !important;
  border-radius: 4px !important;
  position: relative !important;
  z-index: 100 !important;
  line-height: 1.4 !important;
}

/* Responsive GPT Ad Containers (No Cut-off, Clean Auto-Height) */
.gtm-ad-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 16px auto !important;
  padding-top: 6px !important;
  text-align: center !important;
  clear: both !important;
  display: block !important;
  position: relative !important;
}

.gtm-ad-container,
.ad-slot {
  width: 100%;
  min-height: 50px;
  height: auto;
  display: block;
  margin: 0 auto;
  text-align: center;
  overflow: visible !important;
  position: relative;
  background: transparent;
  border: none;
  z-index: 1;
}

/* Ensure GPT Iframes center properly and never get constrained or clipped */
.gtm-ad-container iframe,
.ad-slot iframe {
  margin: 0 auto !important;
  display: block !important;
  max-width: 100% !important;
}

/* Common Box Container (Clean Light Theme) */
.common-box {
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.common-box-game {
  background: #ffffff;
  color: var(--text-dark);
  border-color: var(--border-color);
}

/* Box Header */
.box-header {
  height: 48px;
  padding: 0 15px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  text-transform: capitalize;
}

.game-name {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.opt_btn {
  display: flex;
  align-items: center;
  gap: 10px;
}

.opt-action-btn {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.opt-action-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.opt-action-btn.active-fav {
  background: #dc2626;
  border-color: #ef4444;
  color: #ffffff;
}

.opt-action-btn.active-like {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
}

/* Game Iframe Container */
.game-container {
  position: relative;
  width: 100%;
  background: #000000;
  aspect-ratio: 16 / 9;
  max-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.game-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.game-loading-spinner {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #9ca3af;
  font-size: 14px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: #009cff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Game Intro & Description */
.game-intro-box {
  padding: 20px;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 15px;
}

.game-intro-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-description-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 15px;
}

.game-instructions-box {
  background: #f8fafc;
  border-left: 4px solid var(--primary-color);
  padding: 12px 15px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-bottom: 15px;
}

.game-instructions-box h4 {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.game-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-chip {
  background: #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  transition: background 0.2s;
}

.tag-chip:hover {
  background: var(--primary-color);
  color: #ffffff;
}

/* Ad Slot Mid */
.slot-mid {
  width: 100%;
  min-height: 90px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Similar Games Section */
.similar-games-header {
  font-size: 16px;
  font-weight: 700;
  padding: 12px 15px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  color: #1e293b;
}

.similar-games-grid {
  padding: 15px;
  text-align: center;
  font-size: 0;
}

/* Sidebar Box */
.box-sidebar {
  width: 300px;
  flex-shrink: 0;
}

.slot-right-top,
.slot-right-bottom {
  width: 100%;
  min-height: 250px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.sidebar-title {
  font-size: 15px;
  font-weight: 700;
  padding: 12px 15px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  color: #1e293b;
}

.sidebar-game-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s;
}

.sidebar-game-item:hover {
  background: #f8fafc;
}

.sidebar-game-img {
  width: 72px;
  height: 54px;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
}

.sidebar-game-info {
  flex: 1;
  min-width: 0;
}

.sidebar-game-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-game-cat {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

/* ==========================================================================
   FOOTER (9BOB STYLE)
   ========================================================================== */

.footer {
  border-top: 1px solid #e1e1e1;
  background-color: #ffffff;
  clear: both;
  margin-top: 40px;
  padding: 30px 0 20px 0;
  font-size: 12px;
  color: #666666;
}

.footer-description {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  text-align: center;
}

.footer-description h1 {
  font-size: 18px;
  font-weight: 700;
  color: #333333;
  margin-bottom: 10px;
}

.footer-description p {
  line-height: 1.6;
  margin-bottom: 12px;
  color: #666666;
}

.footer-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eeeeee;
}

.footer-meta a {
  color: #009cff;
  font-size: 12px;
  font-weight: 600;
}

.footer-meta a:hover {
  text-decoration: underline;
}

/* Back to Top Floating Button */
.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  background: var(--primary-color);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 156, 255, 0.4);
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */

@media (max-width: 1024px) {
  .content-play-wrapper {
    flex-direction: column;
  }
  
  .box-sidebar {
    width: 100%;
  }

  .slot-right-top,
  .slot-right-bottom {
    min-height: 120px;
  }
}

@media (max-width: 768px) {
  .main-layout {
    padding: 2px 0 !important;
  }

  .container-wrapper,
  .content-play-wrapper,
  .category-bar-wrapper {
    padding-left: 2px !important;
    padding-right: 2px !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .category-bar {
    padding: 4px 2px !important;
  }

  .main-container {
    padding: 2px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    width: 100% !important;
    margin: 0 !important;
  }

  .main-container .thumb {
    flex: 1 1 calc(33.333% - 4px) !important;
    max-width: calc(33.333% - 4px) !important;
    width: calc(33.333% - 4px) !important;
    min-width: 0 !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    margin: 0 !important;
  }

  .main-container .thumb img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: contain !important;
    background: #0f172a !important;
    border-radius: 6px !important;
  }

  .header .top {
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  .top_nav {
    display: none;
  }

  .top_nav.mobile-active {
    display: flex;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: #0080ff;
    flex-direction: column;
    height: auto;
    padding: 10px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }

  .top_nav.mobile-active ul {
    flex-direction: column;
    width: 100%;
  }

  .top_nav.mobile-active li {
    width: 100%;
    height: 40px;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .top_search_input {
    width: 150px;
  }

  .box-header {
    flex-direction: column;
    height: auto;
    padding: 10px 12px !important;
    gap: 8px;
    align-items: flex-start !important;
    width: 100%;
  }

  .opt_btn {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
  }

  .opt_btn .opt-action-btn {
    white-space: nowrap !important;
    font-size: 11px !important;
    padding: 5px 8px !important;
    margin: 0 !important;
  }

  .more-about {
    padding: 10px 4px;
  }

  .game-intro {
    padding: 4px 2px;
  }

  /* Similar Games 3 cards per row on mobile */
  .similar-games {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
    gap: 4px !important;
    padding: 4px 2px !important;
    width: 100% !important;
  }

  .similar-games .post {
    flex: 1 1 calc(33.333% - 4px) !important;
    max-width: calc(33.333% - 4px) !important;
    width: calc(33.333% - 4px) !important;
    min-width: 0 !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    margin: 0 !important;
  }

  .similar-games .post a {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
  }

  .similar-games .post img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: contain !important;
    background: #0f172a !important;
    border-radius: 6px !important;
  }
}

@media (max-width: 480px) {
  .main-layout {
    padding: 2px 0 !important;
  }

  .container-wrapper,
  .content-play-wrapper,
  .category-bar-wrapper {
    padding-left: 2px !important;
    padding-right: 2px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .main-container,
  .similar-games {
    padding: 2px !important;
    gap: 4px !important;
  }

  .main-container .thumb,
  .similar-games .post {
    flex: 1 1 calc(33.333% - 4px) !important;
    max-width: calc(33.333% - 4px) !important;
    width: calc(33.333% - 4px) !important;
    min-width: 0 !important;
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
    margin: 0 !important;
  }

  .main-container .thumb img,
  .similar-games .post img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: 4 / 3 !important;
    object-fit: contain !important;
    background: #0f172a !important;
    border-radius: 6px !important;
  }

  .logo-badge {
    font-size: 18px;
  }

  .top_search_input {
    width: 120px;
  }
}

/* ==========================================================================
   EXACT 9BOB DETAIL PAGE STYLES (.game-intro, .post, .video-container, .more-about)
   ========================================================================== */

.game-intro {
  padding: 6px 12px;
  background: #fafafa;
  border-top: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0;
  white-space: nowrap;
  overflow: hidden;
  height: 138px;
  box-sizing: border-box;
}

.game-intro .post {
  width: 125px;
  height: 125px;
  margin: 0 4px;
  display: inline-block;
  vertical-align: top;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.similar-games .post {
  width: 125px;
  height: 125px;
  margin: 5px;
  display: inline-block;
  vertical-align: top;
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.game-intro .post:hover,
.similar-games .post:hover {
  transform: scale(1.06);
  z-index: 10;
  box-shadow: 0 6px 15px rgba(0, 156, 255, 0.4);
}

.game-intro .post a,
.similar-games .post a {
  display: block;
  width: 100%;
  height: 100%;
}

.game-intro .post img,
.similar-games .post img {
  width: 140px;
  height: 105px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
}

.game-intro .post .post-name,
.similar-games .post .post-name {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 28px;
  line-height: 28px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-yellow);
  background-color: rgba(0, 0, 0, 0.85);
  text-align: center;
  padding: 0 4px;
  display: none;
}

.game-intro .post a:hover .post-name,
.similar-games .post a:hover .post-name {
  display: block;
}

/* Video Walkthrough Box (Light Theme) */
.video-container {
  display: flex;
  min-height: 380px;
  background: #ffffff;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  overflow: hidden;
}

.box-left {
  width: 280px;
  background: #f8fafc;
  border-right: 1px solid #e2e8f0;
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #009cff #f8fafc;
}

.box-right {
  flex: 1;
  min-height: 380px;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.side-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-list li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.side-list li a:hover {
  background: #e2e8f0;
  color: #009cff;
}

.side-list li a img {
  width: 64px;
  height: 48px;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  object-fit: cover;
}

.side-list li a span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* More About / Description List */
.more-about {
  padding: 20px;
  background: #ffffff;
}

.more-about-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.more-about-list li {
  font-size: 13px;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.more-about-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.more-about-list b {
  display: inline-block;
  min-width: 150px;
  font-weight: 700;
  color: #0f172a;
  vertical-align: top;
}

.more-about-list p {
  margin-top: 4px;
  color: #475569;
}

@media (max-width: 768px) {
  .video-container {
    flex-direction: column;
  }
  .box-left {
    width: 100%;
    max-height: 200px;
  }
  .more-about-list b {
    display: block;
    margin-bottom: 4px;
  }
}

/* ==========================================================================
   OPTIMIZED SHIMMER SKELETON LOADERS & PLAYER SPINNER
   ========================================================================== */

@keyframes shimmerAnimation {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-box {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%) !important;
  background-size: 200% 100% !important;
  animation: shimmerAnimation 1.5s infinite linear !important;
  border-radius: 8px !important;
  border: none !important;
}

.game-loading-spinner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  z-index: 50;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  transition: opacity 0.3s ease;
}

.game-loading-spinner.fade-out {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 42px;
  height: 42px;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #009cff;
  border-radius: 50%;
  animation: spin 0.8s infinite linear;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   FULL SCREEN PAGE LOADER OVERLAY
   ========================================================================== */
.full-page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #dff3ff;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.full-page-loader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.loader-logo {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: #009cff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.loader-logo i {
  font-size: 36px;
  color: #0080ff;
  animation: pulseLogo 1.2s infinite ease-in-out alternate;
}

.loader-logo .net {
  color: #fec501;
}

.loader-spinner {
  width: 48px;
  height: 48px;
  border: 5px solid rgba(0, 156, 255, 0.2);
  border-top-color: #009cff;
  border-right-color: #fec501;
  border-radius: 50%;
  animation: spinLoader 0.8s infinite linear;
}

.loader-text {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.5px;
}

@keyframes spinLoader {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseLogo {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.12);
  }
}

