/*
Theme Name: GAMES
Theme URI: https://trochoimienphi.online/
Author: Trò Chơi Miễn Phí
Author URI: https://trochoimienphi.online/
Version: 2.0.0
Description: Giao diện Cổng Game Online & Ứng Dụng Hiện Đại, Tốc Độ Cao, Chuẩn Mobile-First.
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,600&display=swap');

/* ==========================================================================
   1. DESIGN TOKENS & CSS VARIABLES
   ========================================================================== */
:root {
  /* Brand & Accent Colors - Royal Blue & Emerald Green */
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-primary-glow: rgba(37, 99, 235, 0.20);
  
  --color-accent: #10b981;
  --color-accent-hover: #059669;
  --color-accent-glow: rgba(16, 185, 129, 0.20);

  --color-success: #10b981;
  --color-star: #f59e0b;
  --color-badge-hot: #ef4444;
  --color-badge-new: #2563eb;

  /* Clean White Light Theme Surfaces */
  --bg-body: #f8fafc;
  --bg-surface-1: #ffffff;
  --bg-surface-2: #f1f5f9;
  --bg-surface-3: #e2e8f0;
  --bg-header: rgba(255, 255, 255, 0.95);
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;

  /* Borders & Dividers */
  --border-subtle: #e2e8f0;
  --border-focus: #2563eb;
  --border-card: #e2e8f0;

  /* Typography Colors - High-contrast readable on white */
  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-inverse: #ffffff;

  /* Layout & Geometry */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --space-section: clamp(2rem, 4vw, 3.5rem);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 15px var(--color-primary-glow);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.2s ease-in-out;
  --container-max: 1280px;
}

/* ==========================================================================
   2. BASE RESET & TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-image: none;
}

body.body-locked {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

:focus-visible {
  outline: 2px solid var(--color-accent) !important;
  outline-offset: 2px;
}

/* Accessibility: Visually Hidden for SEO / Screen Readers */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

/* Layout container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.site-main {
  flex: 1;
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
}

/* ==========================================================================
   3. HEADER & NAVIGATION BAR (GAMING COMMAND DECK)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.99);
  border-color: rgba(226, 232, 240, 0.9);
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

@media (max-width: 991px) {
  .header-inner {
    height: 64px;
    gap: 0.75rem;
  }
}

/* Brand Logo with Gaming Emblem */
.brand-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.brand-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  position: relative;
}

.brand-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.brand-logo-link:hover .brand-logo-mark {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.38);
}

.brand-logo-text {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.5px;
  line-height: 1;
}

.brand-logo a span.brand-accent,
.brand-logo-text span.brand-accent {
  color: var(--color-primary);
}

.brand-status-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #059669;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1.2;
}

@media (max-width: 480px) {
  .brand-status-tag {
    display: none;
  }
  .brand-logo-text {
    font-size: 1.2rem;
  }
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10b981;
  display: inline-block;
  animation: pulse-glow 2s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.6;
  }
}

.brand-logo-picture {
  display: block;
  line-height: 0;
}

.brand-logo img {
  max-height: 42px;
  width: auto;
  object-fit: contain;
}

.drawer-header .brand-logo img {
  max-height: 38px;
}

.site-footer .brand-logo img {
  max-height: 46px;
}

@media (max-width: 640px) {
  .site-header .brand-logo img {
    width: 140px;
    max-height: none;
  }
}

@media (max-width: 360px) {
  .site-header .brand-logo img {
    width: 122px;
  }
}

/* Header Quick Search with Shortcut */
.header-search {
  position: relative;
  flex: 1;
  max-width: 380px;
  min-width: 0;
}

@media (max-width: 991px) {
  .header-search {
    max-width: none;
  }
}

.search-form {
  position: relative;
  width: 100%;
}

.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input {
  width: 100%;
  height: 42px;
  padding: 0 4.8rem 0 2.4rem;
  background-color: var(--bg-surface-2);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-full);
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  transition: var(--transition);
}

@media (max-width: 1099px) {
  .search-input {
    padding-right: 2.6rem;
    font-size: 0.84rem;
  }
}

@media (max-width: 480px) {
  .search-input {
    height: 38px;
    padding-left: 2.1rem;
    padding-right: 2.4rem;
    font-size: 0.8rem;
  }
}

.search-input:focus {
  outline: none;
  background-color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), 0 4px 12px rgba(15, 23, 42, 0.04);
}

.search-icon-left {
  position: absolute;
  left: 0.85rem;
  color: var(--text-muted);
  pointer-events: none;
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

@media (max-width: 480px) {
  .search-icon-left {
    left: 0.75rem;
    font-size: 0.8rem;
  }
}

.search-input:focus ~ .search-icon-left {
  color: var(--color-primary);
}

.search-kbd-hint {
  position: absolute;
  right: 40px;
  display: none;
  align-items: center;
  gap: 2px;
  pointer-events: none;
}

@media (min-width: 1100px) {
  .search-kbd-hint {
    display: inline-flex;
  }
}

.search-kbd-hint kbd {
  font-family: inherit;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.search-submit-btn {
  position: absolute;
  right: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: none;
  background-color: var(--color-primary);
  color: #fff;
  cursor: pointer;
  transition: var(--transition);
}

@media (max-width: 480px) {
  .search-submit-btn {
    width: 28px;
    height: 28px;
    right: 3px;
    font-size: 0.75rem;
  }
}

.search-submit-btn:hover {
  background-color: var(--color-primary-hover);
  transform: scale(1.06);
}

/* Live Search Dropdown */
.live-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: max(100%, 420px);
  max-width: min(480px, 94vw);
  background-color: #ffffff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(15, 23, 42, 0.06);
  padding: 0.85rem;
  display: none;
  z-index: 1100;
  overflow: hidden;
}

@media (max-width: 768px) {
  .live-search-dropdown {
    position: fixed;
    top: 66px;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: none;
    max-height: calc(85vh - 70px);
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.22);
    z-index: 1200;
  }
}

.live-search-filter-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.65rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--border-subtle);
}

.filter-tab-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.4rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-2);
  color: var(--text-secondary);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.filter-tab-pill.is-active, .filter-tab-pill:hover {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.live-search-results {
  max-height: 360px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.live-search-results::-webkit-scrollbar {
  width: 5px;
}

.live-search-results::-webkit-scrollbar-thumb {
  background: var(--border-card);
  border-radius: 4px;
}

.live-search-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.65rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
  border-bottom: 1px solid var(--border-subtle);
}

.live-search-item:last-child {
  border-bottom: none;
}

.live-search-item:hover {
  background-color: var(--bg-surface-2);
  text-decoration: none;
}

.live-search-item:hover .live-search-title {
  color: var(--color-primary);
}

.live-search-item:hover .live-search-arrow {
  color: var(--color-primary);
  transform: translateX(3px);
}

.live-search-thumb {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.live-search-info {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.live-search-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.15rem;
}

.live-search-badge {
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.live-search-badge-game {
  color: var(--color-primary);
}

.live-search-badge-app {
  color: var(--color-accent);
}

.live-search-arrow {
  color: var(--text-muted);
  font-size: 0.75rem;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.live-search-footer {
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.live-search-more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 1.25rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-2);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition);
}

.live-search-more-link:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
}

.live-search-msg-loading {
  padding: 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.live-search-msg-error {
  padding: 1.25rem;
  color: #ef4444;
  text-align: center;
  font-size: 0.88rem;
}

.live-search-msg-empty {
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

#mobile-home-popup {
  position: fixed;
  z-index: 9999;
}

/* Desktop Nav Menu (Pills with Gaming Accents) */
.nav-menu {
  display: none;
}

@media (min-width: 992px) {
  .nav-menu {
    display: flex;
    align-items: center;
  }

  .nav-menu > ul,
  .nav-menu ul.menu {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .nav-menu li {
    margin: 0;
    padding: 0;
  }

  .nav-menu a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
  }

  .nav-menu a:hover {
    color: var(--color-primary);
    background-color: rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
  }

  .nav-menu .current-menu-item > a,
  .nav-menu .current-menu-ancestor > a {
    color: #ffffff !important;
    background-color: var(--color-primary);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    font-weight: 700;
  }

  .nav-menu a i {
    font-size: 0.95rem;
    color: var(--color-primary);
    transition: transform 0.2s ease, color 0.2s ease;
  }

  .nav-menu a:hover i {
    transform: scale(1.15);
  }

  .nav-menu .current-menu-item > a i,
  .nav-menu .current-menu-ancestor > a i {
    color: #ffffff !important;
  }

  /* Specific icon colors */
  .nav-menu a i.fa-fire,
  .nav-menu a i.fa-fire-alt {
    color: #ef4444;
  }

  .nav-menu a i.fa-play,
  .nav-menu a i.fa-trophy {
    color: #f59e0b;
  }

  .nav-menu a i.fa-google-play {
    color: #10b981;
  }
}

/* Header Actions Right (Random Dice + Mobile Toggle) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.btn-dice-random {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 0.9rem;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
  cursor: pointer;
}

.btn-dice-random:hover {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #b45309;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2);
  transform: translateY(-2px);
}

.dice-icon-box {
  color: #f59e0b;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-dice-random:hover .dice-icon-box {
  transform: rotate(180deg) scale(1.15);
}

@media (max-width: 991px) {
  .btn-dice-random .dice-btn-text {
    display: none;
  }
  .btn-dice-random {
    padding: 0.48rem 0.6rem;
    border-radius: var(--radius-full);
  }
}

@media (max-width: 480px) {
  .btn-dice-random {
    display: none;
  }
}

.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background-color: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  font-size: 1.15rem;
  transition: var(--transition);
}

@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu-toggle:hover {
  background-color: var(--bg-surface-2);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* Mobile Offcanvas Drawer (Gamers Portal Deck) */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 320px;
  max-width: 86vw;
  background-color: #ffffff;
  border-right: 1px solid var(--border-subtle);
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  overflow-y: auto;
  box-shadow: 8px 0 32px rgba(15, 23, 42, 0.12);
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.mobile-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.drawer-close-btn:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

/* Gamer Welcome Card inside Drawer */
.drawer-gamer-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(16, 185, 129, 0.06));
  border: 1px solid rgba(37, 99, 235, 0.15);
  border-radius: 12px;
  padding: 0.9rem;
  margin-bottom: 1rem;
}

.gamer-card-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.gamer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.gamer-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.gamer-subtitle {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.drawer-dice-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #b45309;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.drawer-dice-btn:hover {
  background: #fffbeb;
  border-color: #f59e0b;
}

.drawer-section-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin: 1rem 0 0.4rem 0.25rem;
}

.drawer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer-nav li {
  margin: 0;
  padding: 0;
}

.drawer-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
  text-decoration: none;
  transition: var(--transition);
}

.drawer-nav a:hover,
.drawer-nav li.current-menu-item > a {
  background-color: rgba(37, 99, 235, 0.08);
  color: var(--color-primary);
}

.drawer-nav a i {
  color: var(--color-primary);
  width: 20px;
  text-align: center;
}

.drawer-nav a i.fa-fire {
  color: #ef4444;
}

.drawer-nav a i.fa-trophy {
  color: #f59e0b;
}

.drawer-nav a i.fa-google-play {
  color: #10b981;
}

/* Category grid inside drawer */
.drawer-cats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.drawer-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.48rem 0.65rem;
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.drawer-cat-pill:hover {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.25);
  color: var(--color-primary);
}

.drawer-cat-pill i {
  font-size: 0.78rem;
  color: var(--color-primary);
}


/* ==========================================================================
   4. SECTION BLOCKS & CATEGORY CHIPS
   ========================================================================== */
.section-block {
  margin-bottom: var(--space-section);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.35rem;
  gap: 1rem;
}

.section-heading {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.3px;
  line-height: 1.25;
}

.section-title i {
  color: var(--color-primary);
  font-size: 1.2rem;
}

.section-title span.title-highlight {
  color: var(--color-primary);
}

.section-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
}

.section-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  background-color: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}

.section-more-link:hover {
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px var(--color-primary-glow);
  transform: translateX(3px);
}

@media (max-width: 575px) {
  .section-more-link span {
    display: none;
  }
  .section-more-link {
    padding: 0.45rem 0.65rem;
  }
}

/* Sticky Category Chips Bar */
.chips-sentinel {
  height: 1px;
  pointer-events: none;
  margin-top: -1px;
}

.category-chips-wrapper {
  position: sticky;
  top: 68px;
  z-index: 99;
  background-color: var(--bg-header);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.6rem 0;
  margin-bottom: 1.5rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.category-chips-wrapper.is-stuck {
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-md);
}

.category-chips-scroll {
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 16px), transparent);
}

@media (min-width: 992px) {
  .category-chips-scroll {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

.category-chips-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.2rem 0;
}

.category-chips-bar::-webkit-scrollbar {
  display: none;
}

.chip-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}

.chip-item:hover, .chip-item.is-active {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px var(--color-primary-glow);
  transform: translateY(-2px);
}

.chip-item i {
  font-size: 0.88rem;
}

.chip-icon-gold { color: var(--color-star); }
.chip-icon-hot { color: var(--color-badge-hot); }
.chip-icon-star { color: var(--color-star); }

/* ==========================================================================
   5. GAME CARD & GRID LAYOUT
   ========================================================================== */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 1rem;
}

@media (min-width: 640px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.15rem;
  }
}

@media (min-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 1.25rem;
  }
}

.game-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-card);
  transition: var(--transition);
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.game-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--bg-surface-2);
}

.game-card-thumb img, .game-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.game-card:hover .game-card-thumb img,
.game-card:hover .game-card-img {
  transform: scale(1.08);
}

.game-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-xs);
  letter-spacing: 0.5px;
}

.game-card-badge.badge-hot {
  background-color: var(--color-badge-hot);
  color: #fff;
  box-shadow: 0 2px 8px rgba(244, 63, 94, 0.45);
}

.game-card-badge.badge-new {
  background-color: var(--color-badge-new);
  color: #fff;
  box-shadow: 0 2px 8px rgba(6, 182, 212, 0.4);
}

.game-card-badge.badge-views {
  top: auto;
  bottom: 8px;
  right: 8px;
  left: auto;
  background-color: rgba(7, 8, 15, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #f8fafc;
  font-size: 0.65rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  z-index: 2;
}

.game-card-badge.badge-views i {
  color: var(--color-accent);
}

.game-card-badge.badge-rank {
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 2px 6px var(--color-primary-glow);
}

.game-card-info {
  padding: 0.75rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.game-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: var(--transition);
}

.game-card-cat {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card-title a {
  color: inherit;
}

.game-card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.game-card:hover .game-card-title,
.game-card:hover .game-card-title a {
  color: var(--color-primary);
}

/* Horizontal Scroll Carousel (Hot Games) */
.games-carousel-wrap {
  position: relative;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  display: flex;
  gap: 1rem;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-surface-3) transparent;
}

.games-carousel-wrap::-webkit-scrollbar {
  height: 6px;
}

.games-carousel-wrap::-webkit-scrollbar-thumb {
  background-color: var(--bg-surface-3);
  border-radius: var(--radius-full);
}

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

@media (min-width: 768px) {
  .games-carousel-wrap .game-card {
    flex: 0 0 165px;
  }
}

/* Category Grid Tiles (Home Bottom) */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background-color: var(--bg-surface-1);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.category-card:hover {
  background-color: var(--bg-surface-2);
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.category-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.category-card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.category-card-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-card:hover .category-card-name {
  color: var(--color-primary);
}

/* ==========================================================================
   6. SINGLE GAME PLAYER (THEATER & FULLSCREEN)
   ========================================================================== */
.player-container {
  margin-bottom: 2rem;
}

.player-frame-box {
  position: relative;
  width: 100%;
  background-color: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.player-embed-responsive {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 60%; /* Default 16:10 or 16:9 ratio */
  min-height: 420px;
}

@media (max-width: 768px) {
  .player-embed-responsive {
    padding-bottom: 75%;
    min-height: 320px;
  }
}

.player-embed-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Branded loading screen shown above the embedded game during initialization. */
.game-loading-screen {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
  padding: 1.5rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(37, 99, 235, 0.13), transparent 34%),
    radial-gradient(circle at 82% 82%, rgba(16, 185, 129, 0.13), transparent 34%),
    #f8fafc;
  opacity: 1;
  visibility: visible;
}

.game-loading-logo {
  display: block;
  line-height: 0;
}

.game-loading-logo img {
  width: clamp(220px, 38vw, 390px);
  height: auto;
}

.game-loading-spinner {
  width: 38px;
  height: 38px;
  border: 4px solid rgba(37, 99, 235, 0.16);
  border-top-color: var(--color-primary);
  border-right-color: var(--color-accent);
  border-radius: 50%;
  animation: game-loading-spin 0.8s linear infinite;
}

.game-loading-text {
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.player-embed-responsive.is-game-loaded .game-loading-screen {
  animation: game-loader-dismiss 0.4s ease 2s forwards;
  pointer-events: none;
}

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

@keyframes game-loader-dismiss {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@media (max-width: 480px) {
  .game-loading-logo img {
    width: min(76vw, 300px);
  }
}

/* Theater Mode & Fullscreen */
.player-frame-box.is-theater {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1500;
  border-radius: 0;
  background-color: #000;
}

.player-frame-box.is-theater .player-embed-responsive {
  height: calc(100vh - 72px - 64px);
  padding-bottom: 0;
}

/* Ad Pre-roll Overlay */
.player-ad-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(5, 7, 12, 0.94);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.player-ad-header {
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ad-countdown-pill {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-2);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-skip-ad {
  padding: 0.45rem 1.2rem;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: none;
  transition: var(--transition);
}

.btn-skip-ad:hover {
  background-color: var(--color-primary-hover);
  transform: scale(1.05);
}

.ad-content-slot {
  max-width: 100%;
  max-height: 80%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Player Toolbar */
.player-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background-color: var(--bg-surface-1);
  border-top: 1px solid var(--border-subtle);
  gap: 1rem;
}

.player-info-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.player-game-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.player-title-box h1 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.player-author-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.player-author-text span {
  color: var(--color-primary);
}

.player-controls-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.btn-player-action {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-player-action:hover {
  background-color: var(--bg-surface-3);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-player-action.btn-fullscreen {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.btn-player-action.btn-fullscreen:hover {
  background-color: var(--color-primary-hover);
}

.btn-player-action.has-liked {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Content details section */
.game-details-box {
  background-color: var(--bg-surface-1);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border-card);
  margin-bottom: 2.5rem;
}

.game-content-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.game-content-text h2, .game-content-text h3 {
  color: var(--text-main);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.mobile-app-store-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 600;
}

.app-store-btn:hover {
  background-color: var(--bg-surface-3);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.app-store-btn img {
  height: 24px;
  width: auto;
}

/* Tags pill list */
.tags-list-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.tag-pill {
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-2);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition);
}

.tag-pill:hover {
  background-color: var(--color-accent);
  color: var(--text-inverse);
}

/* ==========================================================================
   7. SINGLE APPS & DOWNLOAD INTERSTITIAL
   ========================================================================== */
.two-cols-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .two-cols-layout {
    grid-template-columns: 1fr 340px;
  }
}

.app-hero-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background-color: var(--bg-surface-1);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  margin-bottom: 1.75rem;
}

.app-hero-icon {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: var(--shadow-md);
}

.app-hero-info h1 {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.app-hero-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.badge-free {
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--color-success);
  font-weight: 700;
  font-size: 0.75rem;
}

.star-rating {
  color: var(--color-star);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
}

/* Specs Table */
.app-specs-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background-color: var(--bg-surface-1);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-card);
  overflow: hidden;
  margin: 1.5rem 0;
}

.app-specs-table tr:not(:last-child) td {
  border-bottom: 1px solid var(--border-subtle);
}

.app-specs-table td {
  padding: 0.85rem 1.2rem;
  font-size: 0.9rem;
}

.specs-label {
  color: var(--text-muted);
  width: 35%;
  font-weight: 600;
}

.specs-val {
  color: var(--text-main);
  font-weight: 600;
}

/* CTA Download Button Box */
.app-download-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background-color: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin: 1.75rem 0;
}

.btn-cta-download {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  background-color: var(--color-primary);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 4px 15px var(--color-primary-glow);
  transition: var(--transition);
}

.btn-cta-download:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--color-primary-glow);
}

/* Download Interstitial Buttons */
.download-buttons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 0;
}

@media (min-width: 576px) {
  .download-buttons-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.btn-dl-platform {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
}

.btn-dl-android {
  background-color: #02c076;
  color: #fff;
  box-shadow: 0 4px 14px rgba(2, 192, 118, 0.35);
}

.btn-dl-android:hover {
  background-color: #00d683;
  transform: translateY(-2px);
}

.btn-dl-ios {
  background-color: #2b3648;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-dl-ios:hover {
  background-color: #37445a;
  transform: translateY(-2px);
}

/* Sidebar Styling */
.site-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-widget {
  background-color: var(--bg-surface-1);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.sidebar-widget-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-widget-title i {
  color: var(--color-primary);
}

.sidebar-app-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-app-item:last-child {
  border-bottom: none;
}

.sidebar-app-thumb {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.sidebar-app-info {
  flex: 1;
  overflow: hidden;
}

.sidebar-app-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-app-cat {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==========================================================================
   8. PAGINATION COMPONENT
   ========================================================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.pagination a:hover {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.pagination span.current {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px var(--color-primary-glow);
}

/* ==========================================================================
   9. BREADCRUMBS & ADS PLACEHOLDERS
   ========================================================================== */
.site-breadcrumbs {
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.site-breadcrumbs a {
  color: var(--text-secondary);
}

.site-breadcrumbs a:hover {
  color: var(--color-primary);
}

.ad-banner-slot {
  margin: 1.5rem 0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* ==========================================================================
   10. SITE FOOTER (GAMERS BASE & DISCOVERY HUB)
   ========================================================================== */
.site-footer {
  background-color: #ffffff;
  border-top: 1px solid var(--border-subtle);
  padding-top: 3rem;
  padding-bottom: 2rem;
  margin-top: auto;
}

/* 1. Perks & Trust Strip */
.footer-perks-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-perks-bar {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-perks-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-perk-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1.15rem;
  background-color: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.footer-perk-item:hover {
  border-color: var(--color-primary);
  background-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.08);
}

.perk-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.footer-perk-item:hover .perk-icon-box {
  transform: scale(1.1);
  background-color: var(--color-primary);
  color: #ffffff;
}

.perk-text-box {
  display: flex;
  flex-direction: column;
}

.perk-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.perk-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* 2. Popular Genre Tags Cloud */
.footer-genre-cloud {
  background: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.75rem;
}

.genre-cloud-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.genre-cloud-title i {
  color: #ef4444;
}

.footer-genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.footer-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.8rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-tag-pill i {
  font-size: 0.78rem;
  color: var(--color-primary);
}

.footer-tag-pill:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

.footer-tag-pill:hover i {
  color: #ffffff;
}

.footer-tag-all {
  font-weight: 700;
  color: var(--color-primary);
  background: rgba(37, 99, 235, 0.06);
  border-color: rgba(37, 99, 235, 0.25);
}

/* 3. Main Footer Grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2.5rem;
  }
}

.footer-col-about p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.65;
  margin-top: 0.85rem;
  margin-bottom: 0.75rem;
}

.footer-live-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 20px;
  padding: 0.35rem 0.75rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: #059669;
  margin-bottom: 0.85rem;
}

.footer-col-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.footer-col-title i {
  color: var(--color-primary);
  font-size: 0.95rem;
}

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

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a i {
  font-size: 0.82rem;
  color: var(--text-muted);
  width: 16px;
  text-align: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: var(--color-primary);
  transform: translateX(4px);
}

.footer-links a:hover i {
  color: var(--color-primary);
  transform: scale(1.15);
}

.footer-social-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: var(--transition);
  text-decoration: none;
}

.footer-social-btn:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

/* 4. Footer Bottom Deck */
.footer-bottom-bar {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom-bar {
    flex-direction: row;
  }
}

.footer-copy-text p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin: 0;
}

.footer-subcopy {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  margin-top: 2px !important;
}

.footer-tech-badges {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background-color: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  letter-spacing: 0.4px;
}

.tech-badge i {
  color: var(--color-primary);
  font-size: 0.78rem;
}

/* Floating Back To Top Button */
.btn-back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background-color: #ffffff;
  border: 1.5px solid var(--border-subtle);
  color: var(--color-primary);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  font-size: 1.1rem;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.btn-back-to-top:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
}

/* ==========================================================================
   FONT AWESOME COMPATIBILITY & RENDERING BRIDGE
   ========================================================================== */
.fal, .far {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Pro", "Font Awesome 5 Free", sans-serif !important;
  font-weight: 900 !important;
  display: inline-block;
  font-style: normal;
}

.fas, .fa {
  font-family: "Font Awesome 6 Free", "Font Awesome 5 Pro", "Font Awesome 5 Free", sans-serif !important;
  font-weight: 900 !important;
  display: inline-block;
  font-style: normal;
}

.fab {
  font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", sans-serif !important;
  font-weight: 400 !important;
  display: inline-block;
  font-style: normal;
}

/* Legacy icon aliases for WP menu items & custom fields in database */
.fa-gamepad-alt::before { content: "\f11b" !important; }
.fa-home-alt::before { content: "\f015" !important; }
.fa-trophy-alt::before { content: "\f091" !important; }
.fa-shield-check::before { content: "\f3ed" !important; }
.fa-stars::before { content: "\f005" !important; }
.fa-laptop-mobile::before { content: "\f3cd" !important; }

/* ==========================================================================
   11. HOMEPAGE HERO SHOWCASE & ADVANCED GAMING UI
   ========================================================================== */
.hero-showcase {
  margin-bottom: var(--space-section);
}

.hero-showcase-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 992px) {
  .hero-showcase-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
  }
}

/* Hero Main Slider & Spotlight Card */
.hero-main-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--bg-surface-1);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-lg);
  min-height: 280px;
  aspect-ratio: 16 / 10;
}

@media (min-width: 992px) {
  .hero-main-slider {
    aspect-ratio: auto;
    height: clamp(320px, 42vw, 440px);
  }
}

.hero-main-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1.25rem, 3vw, 2rem);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease-in-out;
  text-decoration: none;
}

.hero-main-card.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

.hero-main-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.65);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-main-card:hover .hero-main-bg {
  transform: scale(1.04);
  filter: brightness(0.75);
}

.hero-main-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 8, 15, 0.95) 0%, rgba(7, 8, 15, 0.4) 50%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
}

.hero-main-content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hero-tag-spotlight {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  width: fit-content;
  box-shadow: 0 4px 14px var(--color-primary-glow);
}

.hero-main-title {
  font-size: clamp(1.3rem, 2.5vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-main-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  font-size: 0.82rem;
  color: #f1f5f9;
}

.hero-meta-cat i {
  color: var(--color-accent);
  margin-right: 0.3rem;
}

.hero-meta-views i {
  color: #93c5fd;
  margin-right: 0.3rem;
}

.hero-meta-badge-free {
  color: #6ee7b7;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.hero-btn-play {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  box-shadow: 0 4px 14px var(--color-primary-glow);
  width: fit-content;
  margin-top: 0.25rem;
  transition: var(--transition);
}

.hero-main-card:hover .hero-btn-play {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 20px var(--color-primary-glow);
}

.hero-slider-dots {
  position: absolute;
  bottom: 12px;
  right: 16px;
  z-index: 4;
  display: flex;
  gap: 6px;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.hero-dot.is-active {
  width: 22px;
  background-color: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent-glow);
}

/* Hero Side Sub Grid (4 items: mobile horizontal scroll, desktop 2x2 grid) */
.hero-side-grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 0.85rem;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.hero-side-grid::-webkit-scrollbar {
  display: none;
}

@media (min-width: 992px) {
  .hero-side-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    height: clamp(320px, 42vw, 440px);
    overflow: visible;
    padding-bottom: 0;
  }
}

.hero-sub-card {
  position: relative;
  flex: 0 0 220px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: var(--transition);
}

@media (min-width: 992px) {
  .hero-sub-card {
    flex: auto;
    height: 100%;
  }
}

.hero-sub-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.hero-sub-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--bg-surface-2);
}

.hero-sub-thumb img, .hero-sub-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hero-sub-card:hover .hero-sub-thumb img,
.hero-sub-card:hover .hero-sub-img {
  transform: scale(1.08);
}

.hero-sub-info {
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  justify-content: center;
}

.hero-sub-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.hero-sub-card:hover .hero-sub-title {
  color: var(--color-primary);
}

.hero-sub-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.hero-sub-cat {
  color: var(--color-primary);
  font-weight: 600;
}

.hero-sub-views i {
  color: var(--color-primary);
  margin-right: 0.2rem;
}

/* Play Overlay Hover Indicator for Game Cards */
.card-play-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.card-play-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 4px 15px var(--color-primary-glow);
  transform: scale(0.6);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.game-card:hover .card-play-overlay,
.hero-sub-card:hover .card-play-overlay {
  opacity: 1;
}

.game-card:hover .card-play-icon,
.hero-sub-card:hover .card-play-icon {
  transform: scale(1);
}

/* Ranking Pills for Leaderboard (#1, #2, #3, ...) */
.rank-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  min-width: 26px;
  height: 26px;
  padding: 0 0.35rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.rank-badge.rank-1 {
  background: linear-gradient(135deg, #ffd700, #ff8c00);
  color: #07080f;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

.rank-badge.rank-2 {
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
  color: #07080f;
}

.rank-badge.rank-3 {
  background: linear-gradient(135deg, #f59e0b, #b45309);
  color: #fff;
}

.rank-badge.rank-default {
  background-color: rgba(7, 8, 15, 0.75);
  backdrop-filter: blur(4px);
  color: var(--text-secondary);
}

/* ==========================================================================
   12. TIẾP TỤC CHƠI (RECENTLY PLAYED COMPONENT)
   ========================================================================== */
.home-recent {
  margin-bottom: var(--space-section);
}

.btn-clear-recent {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  background-color: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-clear-recent:hover {
  background-color: #ef4444;
  color: #fff;
}

.recent-games-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-surface-3) transparent;
}

.recent-card {
  flex: 0 0 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  scroll-snap-align: start;
  transition: var(--transition);
}

.recent-card-thumb {
  width: 96px;
  height: 96px;
  border-radius: var(--radius-md);
  object-fit: cover;
  background-color: var(--bg-surface-2);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.recent-card:hover .recent-card-thumb {
  transform: translateY(-3px) scale(1.04);
  border-color: var(--color-accent);
  box-shadow: 0 6px 18px var(--color-accent-glow);
}

.recent-card-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  width: 100%;
  transition: color 0.2s;
}

.recent-card:hover .recent-card-title {
  color: var(--color-accent);
}

/* ==========================================================================
   13. GAME HOT CAROUSEL CONTROLS
   ========================================================================== */
.carousel-nav-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.carousel-nav-group {
  display: none;
  align-items: center;
  gap: 0.4rem;
}

@media (min-width: 768px) {
  .carousel-nav-group {
    display: flex;
  }
}

.carousel-nav {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.85rem;
}

.carousel-nav:hover:not(:disabled) {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 0 10px var(--color-primary-glow);
}

.carousel-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.games-carousel-wrap {
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
}

/* ==========================================================================
   14. AD BANNER SLOTS (Zero CLS with min-height)
   ========================================================================== */
.ad-banner-slot {
  min-height: 90px;
  margin: 1.75rem 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

.ad-badge-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  align-self: flex-start;
}

.grid-ad-break {
  grid-column: 1 / -1;
  width: 100%;
  margin: 0.5rem 0;
}

/* ==========================================================================
   15. TOP 10 LEADERBOARD & CATEGORY TILES (.home-split)
   ========================================================================== */
.home-split {
  margin-bottom: var(--space-section);
}

.home-split-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 992px) {
  .home-split-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: start;
  }
}

/* Leaderboard #1 Card */
.lb-top1-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface-1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  margin-bottom: 1rem;
  transition: var(--transition);
}

@media (max-width: 575px) {
  .lb-top1-card {
    grid-template-columns: 1fr;
  }
}

.lb-top1-card:hover {
  transform: translateY(-3px);
  border-color: #f59e0b;
  box-shadow: var(--shadow-md);
}

.lb-top1-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--bg-surface-2);
}

.lb-top1-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lb-top1-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
}

.lb-top1-badge-crown {
  font-size: 0.72rem;
  font-weight: 800;
  color: #f59e0b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.lb-top1-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  transition: color 0.2s;
}

.lb-top1-card:hover .lb-top1-title {
  color: var(--color-primary);
}

.lb-top1-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.lb-meta-cat {
  color: var(--color-primary);
  font-weight: 600;
}

.lb-meta-views {
  color: var(--text-secondary);
}

.lb-btn-play {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  width: fit-content;
  margin-top: 0.35rem;
  transition: var(--transition);
}

.lb-top1-card:hover .lb-btn-play {
  background-color: var(--color-primary-hover);
  transform: scale(1.05);
}

/* Leaderboard #2 - #10 Rows */
.lb-rows-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

@media (min-width: 768px) {
  .lb-rows-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
}

.lb-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-1);
  border: 1px solid var(--border-card);
  text-decoration: none;
  position: relative;
  transition: var(--transition);
}

.lb-row:hover {
  background-color: var(--bg-surface-2);
  border-color: var(--color-primary);
  transform: translateX(3px);
}

.lb-row .rank-badge {
  position: static;
  flex-shrink: 0;
}

.lb-row-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--bg-surface-2);
}

.lb-row-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lb-row-info {
  flex: 1;
  min-width: 0;
}

.lb-row-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  transition: color 0.2s;
}

.lb-row:hover .lb-row-title {
  color: var(--color-primary);
}

.lb-row-cat {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.lb-row-views {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.lb-row-views i {
  color: var(--color-primary);
  font-size: 0.65rem;
}

/* Category Tiles (Right Column of Home-Split) */
.category-tiles-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.category-tiles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.cat-tile-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  padding: 1.1rem 0.85rem;
  background-color: var(--bg-surface-1);
  border: 1px solid var(--border-card);
  text-decoration: none;
  min-height: 72px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.cat-tile-item:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.cat-tile-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.12;
  filter: blur(2px);
  transition: opacity 0.3s, transform 0.4s;
}

.cat-tile-item:hover .cat-tile-bg {
  opacity: 0.22;
  transform: scale(1.08);
}

.cat-tile-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.cat-tile-name {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
}

.cat-tile-count {
  font-size: 0.72rem;
  color: var(--color-primary);
  font-weight: 600;
}

.cat-tiles-footer {
  text-align: center;
  margin-top: 0.25rem;
}

.cat-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-primary);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  background-color: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  text-decoration: none;
  transition: var(--transition);
}

.cat-all-link:hover {
  background-color: var(--color-primary);
  color: #fff;
  box-shadow: 0 4px 12px var(--color-primary-glow);
}

.category-card-icon-placeholder {
  color: var(--color-primary);
  font-size: 1.2rem;
}

/* ==========================================================================
   16. LOAD MORE BUTTON
   ========================================================================== */
.load-more-wrap {
  text-align: center;
  margin-top: 2.5rem;
}

.btn-cta-download.is-loading {
  opacity: 0.75;
  pointer-events: none;
}

/* ==========================================================================
   17. MOBILE APPS HIGHLIGHT (Horizontal App Cards)
   ========================================================================== */
.apps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 640px) {
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .apps-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
  }
}

.app-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-1);
  border: 1px solid var(--border-card);
  text-decoration: none;
  transition: var(--transition);
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

.app-card-thumb {
  width: 64px;
  height: 64px;
  border-radius: 22%;
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--bg-surface-2);
  box-shadow: var(--shadow-sm);
}

.app-card-thumb img, .app-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 22%;
}

.app-card-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.app-card-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.app-card:hover .app-card-title {
  color: var(--color-primary);
}

.app-card-title a {
  color: inherit;
  text-decoration: none;
}

.app-card-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.app-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-card-btn-download {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-primary);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background-color: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  transition: var(--transition);
}

.app-card:hover .app-card-btn-download {
  background-color: var(--color-primary);
  color: #fff;
}

/* ==========================================================================
   18. COMPACT TRUST BAR, EXPANDABLE SEO & FAQ DETAILS (.home-about)
   ========================================================================== */
.home-trust-compact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
}

.trust-pill-icon {
  color: var(--color-accent);
  font-size: 0.95rem;
}

.trust-pill-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
}

/* SEO Wrapper & Expandable Body */
.home-seo-wrapper {
  background-color: var(--bg-surface-1);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-card);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-sm);
}

.home-seo-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.seo-header-icon {
  color: var(--color-primary);
  font-size: 1.35rem;
}

.seo-header-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
}

.home-seo-body-wrap {
  position: relative;
  max-height: 160px;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out;
}

.home-seo-body-wrap.is-expanded {
  max-height: 2000px;
}

.home-seo-body-wrap.is-expanded .seo-fade-overlay {
  display: none;
}

.seo-fade-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 90%);
  pointer-events: none;
}

.seo-expand-btn-wrap {
  text-align: center;
  margin-top: 0.75rem;
  margin-bottom: 1.75rem;
}

.btn-toggle-seo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-toggle-seo:hover {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.home-seo-body {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
}

.home-seo-body p {
  margin-bottom: 1rem;
}

.home-seo-body a {
  color: var(--color-primary);
  font-weight: 600;
}

.home-seo-body a:hover {
  text-decoration: underline;
}

/* HTML5 <details> FAQ Accordion */
.home-faq-accordion {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.home-faq-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.home-faq-title i {
  color: var(--color-primary);
}

.home-faq-item {
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-1);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: var(--transition);
}

.home-faq-item[open] {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.home-faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
  list-style: none;
}

.home-faq-summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  color: var(--color-primary);
  font-size: 0.85rem;
  transition: transform 0.3s ease;
}

.home-faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.home-faq-answer {
  padding: 0 1.25rem 1.15rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ==========================================================================
   19. ARCHIVE & CATEGORY PAGES LAYOUT (CLEAN & COMPACT)
   ========================================================================== */
.archive-game-page {
  padding-bottom: 2rem;
}

.archive-breadcrumbs {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.archive-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.archive-count-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
  background-color: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  margin-left: 0.4rem;
  vertical-align: middle;
}

.archive-count-pill.pill-hot {
  color: var(--color-badge-hot);
  background-color: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.2);
}

.archive-count-pill.pill-gold {
  color: var(--color-star);
  background-color: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.2);
}

.archive-filter-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.archive-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.95rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.archive-filter-pill:hover,
.archive-filter-pill.is-active {
  background-color: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px var(--color-primary-glow);
}

.archive-empty-state {
  grid-column: 1 / -1;
  padding: 4rem 1.5rem;
  text-align: center;
  background-color: var(--bg-surface-1);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
}

.archive-empty-state i {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.archive-empty-state p {
  font-size: 0.95rem;
}

.pagination-wrapper {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   20. MOST PLAYED PODIUM & HOT TRENDING BENTO STYLES
   ========================================================================== */

/* Podium Champions Arena (for /games-most-played) */
.podium-section {
  margin-bottom: 2.5rem;
}

.podium-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.podium-badge-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: #d97706;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.podium-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .podium-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr;
    align-items: flex-end;
    gap: 1.25rem;
  }
}

.podium-card {
  position: relative;
  background-color: var(--bg-surface-1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.podium-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.podium-card.rank-gold {
  border: 2px solid #f59e0b;
  order: 1;
}

.podium-card.rank-silver {
  border: 2px solid #94a3b8;
  order: 2;
}

.podium-card.rank-bronze {
  border: 2px solid #b45309;
  order: 3;
}

@media (min-width: 768px) {
  .podium-card.rank-silver {
    order: 1;
  }
  .podium-card.rank-gold {
    order: 2;
    transform: translateY(-8px);
  }
  .podium-card.rank-gold:hover {
    transform: translateY(-14px);
  }
  .podium-card.rank-bronze {
    order: 3;
  }
}

.podium-medal {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: var(--shadow-sm);
}

.podium-medal.medal-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
}

.podium-medal.medal-silver {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  color: #fff;
}

.podium-medal.medal-bronze {
  background: linear-gradient(135deg, #d97706, #92400e);
  color: #fff;
}

.podium-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--bg-surface-2);
}

.podium-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.podium-card:hover .podium-thumb-wrap img {
  transform: scale(1.06);
}

.podium-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.podium-cat {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.podium-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.podium-title a {
  color: inherit;
}

.podium-title a:hover {
  color: var(--color-primary);
}

.podium-views {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.podium-views i {
  color: #f59e0b;
}

.podium-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 0.5rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn-podium-gold {
  background-color: #f59e0b;
  color: #fff;
}

.btn-podium-gold:hover {
  background-color: #d97706;
}

.btn-podium-silver {
  background-color: #64748b;
  color: #fff;
}

.btn-podium-silver:hover {
  background-color: #475569;
}

.btn-podium-bronze {
  background-color: #b45309;
  color: #fff;
}

.btn-podium-bronze:hover {
  background-color: #92400e;
}

.podium-pedestal {
  text-align: center;
  padding: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.pedestal-gold {
  background-color: #fef3c7;
  color: #92400e;
}

.pedestal-silver {
  background-color: #f1f5f9;
  color: #475569;
}

.pedestal-bronze {
  background-color: #ffedd5;
  color: #9a3412;
}

/* Hot Trending Bento Grid (for /games-hot) */
.hot-bento-section {
  margin-bottom: 2rem;
}

.hot-bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .hot-bento-grid {
    grid-template-columns: 1.35fr 1fr;
  }
}

.hot-hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--bg-surface-1);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  text-decoration: none;
  transition: var(--transition);
}

.hot-hero-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-badge-hot);
  box-shadow: var(--shadow-md);
}

.hot-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hot-hero-card:hover .hot-hero-bg {
  transform: scale(1.05);
}

.hot-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.45) 55%, rgba(0, 0, 0, 0.15) 100%);
}

.hot-hero-content {
  position: relative;
  z-index: 2;
  margin-top: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hot-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background-color: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.hot-hero-title {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.hot-hero-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: #cbd5e1;
}

.hot-hero-meta i {
  color: #f87171;
}

.hot-hero-play-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  width: fit-content;
  margin-top: 0.35rem;
  box-shadow: 0 4px 12px var(--color-primary-glow);
}

.hot-side-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hot-side-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem;
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface-1);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  flex: 1;
  transition: var(--transition);
}

.hot-side-item:hover {
  transform: translateY(-3px);
  border-color: var(--color-badge-hot);
  box-shadow: var(--shadow-md);
}

.hot-side-thumb {
  width: 84px;
  height: 84px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--bg-surface-2);
}

.hot-side-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hot-side-item:hover .hot-side-thumb img {
  transform: scale(1.08);
}

.hot-side-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}

.hot-side-badge {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--color-badge-hot);
  text-transform: uppercase;
}

.hot-side-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.hot-side-item:hover .hot-side-title {
  color: var(--color-primary);
}

.hot-side-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hot-side-meta i {
  color: var(--color-badge-hot);
}

/* ==========================================================================
   14. STANDARDIZED TEMPLATE LAYOUTS & COMPONENT UTILITIES
   ========================================================================== */
.page-content-container {
  padding-top: 1.25rem;
  margin-bottom: 2.5rem;
}

.page-narrow-container {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Search results header & empty state */
.search-results-header {
  margin-bottom: 1.5rem;
}

.search-count-badge {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.chips-search-filter {
  margin-bottom: 2rem;
}

.search-empty-box {
  text-align: center;
  padding: 3.5rem 1.5rem;
}

.search-empty-icon {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.search-empty-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.search-empty-desc {
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0 auto 1.5rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.search-empty-btn {
  display: inline-flex;
}

/* Category header & SEO box */
.category-header-row {
  margin-bottom: 1.5rem;
}

.category-count-badge {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.category-seo-box {
  margin-top: 2.5rem;
}

.category-seo-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

/* Single Game Details */
.game-details-heading {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

.mobile-app-store-label {
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  display: block;
}

.player-action-icon-primary {
  color: var(--color-primary);
}

.icon-google-play {
  color: #02c076;
  font-size: 1.3rem;
}

.icon-apple {
  font-size: 1.4rem;
}

.tags-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Single Apps Details */
.app-meta-icon {
  color: var(--color-accent);
  margin-right: 0.25rem;
}

.app-download-cta-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.app-download-cta-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.app-section-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.app-specs-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.section-related-apps {
  margin-top: 2rem;
}

/* Single & Archive Download */
.download-archive-header {
  margin-bottom: 1.5rem;
}

.download-card-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 0.35rem;
}

.download-action-pill {
  font-size: 0.75rem;
  color: var(--color-accent);
  font-weight: 700;
}

.download-badge-safe {
  margin-bottom: 0.4rem;
  display: inline-block;
}

.app-hero-subtext {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
}

.platform-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.platform-btn-info {
  text-align: left;
}

.platform-btn-sub {
  font-size: 0.75rem;
  opacity: 0.85;
}

.platform-btn-main {
  font-size: 1.05rem;
  font-weight: 800;
}

.download-related-section {
  margin-top: 2.5rem;
}

.section-apps-secondary {
  margin-top: 3rem;
}

/* Static Page & Blog Post */
.static-page-box {
  padding: 2rem;
}

.static-page-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.single-post-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.single-post-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Error 404 */
.error-404-container {
  padding: 4.5rem 1.25rem;
  text-align: center;
}

.error-404-code {
  font-size: clamp(4.5rem, 12vw, 6.5rem);
  font-weight: 900;
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: 1rem;
  letter-spacing: -2px;
}

.error-404-title {
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.error-404-desc {
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.error-404-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
  transition: var(--transition);
}

.error-404-btn:hover {
  background-color: var(--color-primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* Sidebar Utilities */
.sidebar-app-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.2rem;
}

.sidebar-rating {
  font-size: 0.72rem;
}

.sidebar-cat-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.sidebar-cat-chevron {
  color: var(--color-primary);
  font-size: 0.8rem;
  margin-right: 0.5rem;
}

.sidebar-cat-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-surface-2);
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-full);
}

/* Home Hero SEO Heading */
.home-hero-header {
  margin-top: 1rem;
  margin-bottom: 1.25rem;
}

.home-hero-title {
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  line-height: 1.35;
}

.home-hero-title i {
  color: var(--color-primary);
  font-size: 0.9em;
}

.home-hero-subtitle {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}
