@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg-primary: #0d0a1a;
  --bg-secondary: #16102a;
  --bg-card: #1e1833;
  --bg-card-hover: #2a2244;
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-gradient: var(--accent-primary);
  --accent-cyan: #00e5ff;
  --text-primary: #ffffff;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --border-color: #2a2244;
  --card-radius: 16px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --shadow-glow: 0 0 0 2px var(--accent-primary);
}

/* Dark Mode Theme */
[data-theme="dark"] {
  --nav-bg: linear-gradient(135deg, rgba(30, 24, 51, 0.95), rgba(22, 16, 42, 0.95));
  --nav-border: var(--border-color);
  --section-bg: #1e1833;
  --section-border: var(--border-color);
  --card-bg: var(--bg-card);
  --card-border: transparent;
  --card-info-bg: transparent;
  --search-bg: var(--bg-secondary);
  --search-border: var(--border-color);
  --icon-color: var(--accent-primary);
  --footer-bg: var(--bg-secondary);
}

/* Light Mode Theme (Default) */
:root {
  --nav-bg: rgba(13, 10, 26, 0.3);
  --nav-border: rgba(255, 255, 255, 0.15);
  --section-bg: rgba(255, 255, 255, 0.15);
  --section-border: rgba(255, 255, 255, 0.25);
  --card-bg: rgba(255, 255, 255, 0.18);
  --card-border: rgba(255, 255, 255, 0.25);
  --card-info-bg: rgba(255, 255, 255, 0.12);
  --search-bg: rgba(22, 16, 42, 0.5);
  --search-border: rgba(255, 255, 255, 0.15);
  --icon-color: #00e5ff;
  --footer-bg: rgba(0, 0, 0, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-image: url('/images/background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  font-family: 'Montserrat', sans-serif;
  color: var(--text-primary);
  line-height: 1.8;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  transition: background 0.3s ease;
}

[data-theme="dark"] body {
  background-image: none;
  background-color: var(--bg-primary);
}

img {
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: auto;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.15), rgba(167, 139, 250, 0.25));
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}


.theme-toggle:hover {
  transform: scale(1.15);
  border-color: transparent;
  box-shadow: 0 0 25px rgba(0, 229, 255, 0.5), 0 0 50px rgba(167, 139, 250, 0.3);
}

.theme-toggle:active {
  transform: scale(0.95);
}

.theme-toggle i {
  font-size: 20px;
  position: relative;
  z-index: 1;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle:hover i {
  transform: rotate(20deg) scale(1.1);
}

.theme-toggle .fa-sun {
  color: #fcd34d;
  text-shadow: 0 0 15px rgba(252, 211, 77, 0.8), 0 0 30px rgba(251, 191, 36, 0.4);
  filter: drop-shadow(0 0 3px rgba(251, 191, 36, 0.6));
}

.theme-toggle .fa-moon {
  color: #e0d4fc;
  text-shadow: 0 0 15px rgba(224, 212, 252, 0.8), 0 0 30px rgba(167, 139, 250, 0.4);
  filter: drop-shadow(0 0 3px rgba(167, 139, 250, 0.6));
}

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

/* ===== NAVIGATION ===== */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--nav-border);
  z-index: 10000;
  display: flex;
  align-items: center;
  padding: 0 16px;
  transition: background 0.3s ease, border 0.3s ease;
}

.nav-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-logo img {
  height: 70px;
  width: auto;
  border-radius: 12px;
}

.nav-logo-text {
  font-size: 36px;
  font-weight: 800;
  color: white;
}

.nav-categories {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.nav-categories::-webkit-scrollbar {
  display: none;
}

.nav-category {
  padding: 8px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.nav-category:hover,
.nav-category.active {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: white;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-search {
  position: relative;
  width: 360px;
  flex-shrink: 0;
}

.nav-search::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(176, 124, 245, 0.4), rgba(255, 255, 255, 0.3));
  background-size: 300% 300%;
  border-radius: 16px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
  animation: gradient-shift 4s ease infinite paused;
}

[data-theme="dark"] .nav-search::before {
  background: linear-gradient(135deg, #6366f1, #00e5ff, #a78bfa, #6366f1);
  background-size: 300% 300%;
}

.nav-search:focus-within::before {
  opacity: 1;
  animation-play-state: running;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.nav-search input {
  width: 100%;
  padding: 14px 90px 14px 48px;
  background: rgba(255, 255, 255, 0.15);
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 15px;
  font-family: inherit;
  font-weight: 400;
  letter-spacing: 0.2px;
  outline: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .nav-search input {
  background: linear-gradient(135deg, rgba(13, 10, 26, 0.85), rgba(22, 16, 42, 0.85));
  border: 2px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
  transition: color 0.3s ease;
}

.nav-search input:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .nav-search input:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: linear-gradient(135deg, rgba(13, 10, 26, 0.9), rgba(22, 16, 42, 0.9));
  box-shadow: 0 6px 28px rgba(99, 102, 241, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-search input:hover::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.nav-search input:focus {
  border-color: rgba(176, 124, 245, 0.3);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 8px 32px rgba(176, 124, 245, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .nav-search input:focus {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(13, 10, 26, 0.95), rgba(22, 16, 42, 0.95));
  box-shadow: 0 8px 32px rgba(0, 229, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-search > i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 2;
}

.nav-search:hover > i {
  color: rgba(255, 255, 255, 0.7);
}

.nav-search:focus-within > i {
  transform: translateY(-50%) scale(1.2);
  animation: icon-glow 4s ease infinite;
}

[data-theme="dark"] .nav-search:focus-within > i {
  animation: icon-glow 4s ease infinite;
}

.nav-search .search-shortcut {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.4);
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.nav-search input:focus ~ .search-shortcut,
.nav-search input:not(:placeholder-shown) ~ .search-shortcut {
  opacity: 0;
}

.nav-search .search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.nav-search .search-clear:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}

.nav-search input:not(:placeholder-shown) ~ .search-clear {
  display: flex;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  padding-top: 110px;
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HERO SECTION ===== */
.hero-section {
  padding: 20px 0 40px;
}

.hero-featured {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.hero-main {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  cursor: pointer;
  transition: var(--transition-normal);
}

.hero-main:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-glow);
}

.hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-main-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 24px 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.9));
}

.hero-main-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-main-play {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--accent-gradient);
  border-radius: 30px;
  color: white;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition-fast);
}

.hero-main-play:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-glow);
}

.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-side-game {
  position: relative;
  border-radius: var(--card-radius);
  overflow: hidden;
  flex: 1;
  cursor: pointer;
  transition: var(--transition-normal);
}

.hero-side-game:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-glow);
}

.hero-side-game img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-side-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
}

.hero-side-title {
  font-size: 16px;
  font-weight: 600;
}

/* ===== SECTION HEADERS ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-top: 20px;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-title i {
  font-size: 20px;
  transition: all 0.3s ease;
  animation: icon-glow 4s ease infinite;
}

@keyframes icon-glow {
  0%, 100% {
    color: #818cf8;
    filter: drop-shadow(0 0 8px rgba(129, 140, 248, 0.8)) drop-shadow(0 0 16px rgba(129, 140, 248, 0.5));
  }
  33% {
    color: #00f5ff;
    filter: drop-shadow(0 0 8px rgba(0, 245, 255, 0.8)) drop-shadow(0 0 16px rgba(0, 245, 255, 0.5));
  }
  66% {
    color: #c084fc;
    filter: drop-shadow(0 0 8px rgba(192, 132, 252, 0.8)) drop-shadow(0 0 16px rgba(192, 132, 252, 0.5));
  }
}

[data-theme="dark"] .section-title i {
  animation: icon-glow 4s ease infinite;
}

.section-view-all {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
}

.section-view-all:hover {
  gap: 10px;
}

/* ===== GAME GRID ===== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.game-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .game-card {
  background: linear-gradient(145deg, rgba(30, 24, 51, 0.8), rgba(22, 16, 42, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: transparent;
  animation: card-glow 4s ease infinite;
}

@keyframes card-glow {
  0%, 100% {
    box-shadow: 0 0 0 3px #818cf8, 0 8px 32px rgba(129, 140, 248, 0.3);
  }
  33% {
    box-shadow: 0 0 0 3px #00f5ff, 0 8px 32px rgba(0, 245, 255, 0.3);
  }
  66% {
    box-shadow: 0 0 0 3px #c084fc, 0 8px 32px rgba(192, 132, 252, 0.3);
  }
}

.game-card:hover .game-card-image::after {
  opacity: 1;
}

.game-card-image {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}

.game-card-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 1;
  pointer-events: none;
}

[data-theme="dark"] .game-card-image::before {
  background: linear-gradient(180deg, transparent 40%, rgba(13, 10, 26, 0.4) 100%);
}

.game-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 229, 255, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
  pointer-events: none;
}

.game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card-play {
  display: none;
}

.game-card-info {
  padding: 16px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
}

.game-card:hover .game-card-info {
  background: rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .game-card-info {
  background: linear-gradient(180deg, rgba(13, 10, 26, 0.85) 0%, rgba(22, 16, 42, 0.95) 100%);
}

[data-theme="dark"] .game-card:hover .game-card-info {
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.1) 0%, rgba(22, 16, 42, 0.95) 100%);
}

.game-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: capitalize;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}


.game-card-category {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== HORIZONTAL SCROLL SECTION ===== */
.games-scroll-container {
  position: relative;
  margin-bottom: 40px;
}

.games-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0;
  scroll-snap-type: x mandatory;
}

.games-scroll::-webkit-scrollbar {
  display: none;
}

.games-scroll .game-card {
  flex: 0 0 180px;
  scroll-snap-align: start;
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
  color: var(--text-primary);
}

.scroll-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.scroll-btn.left {
  left: -22px;
}

.scroll-btn.right {
  right: -22px;
}

/* ===== RECENTLY PLAYED & RANDOM SECTION ===== */
.special-section {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px);
  border-radius: var(--card-radius);
  padding: 24px;
  margin-bottom: 40px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.3s ease, border 0.3s ease;
}

[data-theme="dark"] .special-section {
  background: #161224;
  border: 1px solid var(--section-border);
}

.special-section .section-header {
  padding-top: 0;
}

.special-games-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.special-games-grid .game-card {
  background: rgba(255, 255, 255, 0.18);
}

[data-theme="dark"] .special-games-grid .game-card {
  background: linear-gradient(145deg, rgba(30, 24, 51, 0.9), rgba(22, 16, 42, 0.95));
}

/* ===== ALL GAMES SECTION ===== */
.all-games-section {
  padding: 24px;
  margin-bottom: 40px;
}

.all-games-section .section-header {
  padding-top: 0;
}

#games {
  padding-bottom: 20px;
}

/* Style for inline ads in grid */
#games ins.adsbygoogle {
  grid-column: 1 / -1;
  display: block;
  margin: 20px 0;
}

/* ===== SEARCH RESULTS ===== */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-top: 8px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
}

.search-results.active {
  display: block;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.search-result-item:hover {
  background: var(--bg-card-hover);
}

.search-result-item img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
}

.search-result-item span {
  font-size: 14px;
  font-weight: 500;
  text-transform: capitalize;
}

/* ===== BOTTOM STICKY AD ===== */
.bottom-ad-container {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 728px;
  height: 90px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.3));
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: none;
  padding: 5px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .bottom-ad-container {
  background: linear-gradient(135deg, rgba(30, 24, 51, 0.95), rgba(22, 16, 42, 0.95));
}
@media (max-width: 750px) {
  .bottom-ad-container { display: none; }
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--footer-bg);
  backdrop-filter: blur(15px);
  border-top: 1px solid var(--nav-border);
  padding: 40px 0;
  margin-top: 60px;
  transition: background 0.3s ease;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo img {
  height: 40px;
  border-radius: 8px;
}

.footer-logo span {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fast);
  cursor: pointer;
}

.footer-link:hover {
  color: #00e5ff;
}

.footer-copyright {
  color: #ffffff;
  font-size: 13px;
}

/* ===== AD CONTAINERS ===== */
.top-sticky-ad {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 728px;
  height: 90px;
  z-index: 99999;
  background-color: transparent;
  pointer-events: none;
}

.top-sticky-ad ins {
  width: 728px;
  height: 90px;
  border-radius: 0 !important;
  pointer-events: auto;
}

.bottom-right-ad {
  position: fixed;
  bottom: 0;
  right: 0;
  width: 336px;
  height: 280px;
  z-index: 10001;
  background-color: rgba(0, 0, 0, 0.1);
}

.ad-banner {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
  .hero-featured {
    grid-template-columns: 1fr;
  }
  
  .hero-sidebar {
    flex-direction: row;
  }
  
  .hero-side-game {
    aspect-ratio: 16/9;
  }
  
  .nav-categories {
    display: none;
  }
}

@media (max-width: 768px) {
  .main-nav {
    height: 60px;
    padding: 0 16px;
  }
  
  .nav-logo-text {
    display: none;
  }
  
  .nav-search {
    width: 100%;
    max-width: 200px;
  }
  
  .main-content {
    padding-top: 80px;
  }
  
  .container {
    padding: 0 16px;
  }
  
  .hero-sidebar {
    flex-direction: column;
  }
  
  .special-games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .game-card-info {
    padding: 10px;
  }
  
  .game-card-title {
    font-size: 13px;
  }
  
  .section-title {
    font-size: 20px;
  }
  
  .top-sticky-ad {
    width: 320px;
    height: 50px;
  }
  
  .top-sticky-ad ins {
    width: 320px;
    height: 50px;
  }
  
  .scroll-btn {
    display: none;
  }
}

@media (max-width: 480px) {
  .special-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-main-title {
    font-size: 20px;
  }
  
  .hero-main-play {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== LOADING ANIMATION ===== */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.loading {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

/* ===== CATEGORY FILTER SECTION ===== */
.category-filter {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.category-btn {
  padding: 10px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 25px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: inherit;
}

.category-btn:hover,
.category-btn.active {
  background: var(--accent-gradient);
  border-color: transparent;
  color: white;
}

.category-btn i {
  margin-right: 6px;
}

/* ===== GAME CONTAINER (for game pages) ===== */
.game-container {
  width: 100%;
  max-width: 1000px;
  height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
  z-index: 9999;
  margin: 0 auto;
}

iframe.game-frame {
  width: 100%;
  height: 100%;
  border: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

iframe {
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.more-games-section {
  margin: 40px auto;
  text-align: center;
  color: white;
  max-width: 1000px;
}

.more-games-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
}

.more-games-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.more-games-grid a {
  text-decoration: none;
  color: white;
  width: 150px;
  transition: transform 0.2s;
}

.more-games-grid a:hover {
  transform: scale(1.05);
}

.more-games-grid img {
  width: 100%;
  border-radius: 8px;
  height: auto;
  display: block;
}

.more-games-grid p {
  margin-top: 8px;
  font-size: 16px;
}

.seo-hidden-content {
  width: 100%;
  padding: 20px;
  font-size: 0.55rem;
  line-height: 1.4;
  color: var(--text-muted);
  opacity: 0.3;
}
.seo-hidden-content h1,
.seo-hidden-content h2 {
  font-size: 0.6rem;
  font-weight: 400;
  color: var(--text-muted);
  margin: 8px 0 4px;
}
.seo-hidden-content p {
  margin: 0 0 6px;
}

.ctrld-banner {
  max-width: 1200px;
  margin: 100px auto -32px;
  padding: 0 20px;
}

.ctrld-inner {
  position: relative;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: rgba(13, 10, 26, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 24px 36px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background 0.3s ease, border 0.3s ease;
}

[data-theme="dark"] .ctrld-inner {
  background: #161224;
  border: 1px solid var(--border-color);
}

.ctrld-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.12), rgba(0, 229, 255, 0.08), transparent);
  animation: ctrld-shimmer 5s ease-in-out infinite;
  pointer-events: none;
}

[data-theme="dark"] .ctrld-shimmer {
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.08), rgba(0, 229, 255, 0.06), transparent);
}

@keyframes ctrld-shimmer {
  0% { left: -60%; }
  100% { left: 160%; }
}

.ctrld-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
}

.ctrld-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
}

.ctrld-icon i {
  color: #00e5ff;
  animation: none;
}

.ctrld-body {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ctrld-keys {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctrld-kbd {
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 6px 18px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(99, 102, 241, 0.5);
  color: #fff;
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-transform: uppercase;
}

[data-theme="dark"] .ctrld-kbd {
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.25), rgba(30, 24, 51, 0.8));
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.ctrld-plus {
  font-family: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  color: #00e5ff;
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.6);
}

.ctrld-text {
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.4;
}

[data-theme="dark"] .ctrld-text {
  color: var(--text-secondary);
}

@media (max-width: 640px) {
  .ctrld-banner {
    margin-top: 80px;
  }
  .ctrld-inner {
    padding: 24px;
  }
  .ctrld-content {
    flex-direction: column;
    text-align: center;
  }
  .ctrld-body {
    flex-direction: column;
    gap: 12px;
  }
  .ctrld-kbd {
    font-size: 1.4rem;
    padding: 6px 16px;
  }
  .ctrld-text {
    font-size: 0.95rem;
  }
}
