.elementor-kit-6{--e-global-color-primary:#A8D0E6;--e-global-color-secondary:#F9ECE4;--e-global-color-text:#001F33;--e-global-color-accent:#FF4C27;--e-global-color-8351b25:#F2F2F2;--e-global-color-464236d:#333333;--e-global-color-ff74464:#FFFFFF;--e-global-typography-primary-font-family:"Roboto";--e-global-typography-primary-font-weight:700;--e-global-typography-secondary-font-family:"Open Sans";--e-global-typography-secondary-font-weight:600;--e-global-typography-text-font-family:"Roboto";--e-global-typography-text-font-weight:400;--e-global-typography-accent-font-family:"Nunito";--e-global-typography-accent-font-weight:600;}.elementor-kit-6 button,.elementor-kit-6 input[type="button"],.elementor-kit-6 input[type="submit"],.elementor-kit-6 .elementor-button{background-color:var( --e-global-color-primary );font-family:var( --e-global-typography-primary-font-family ), Sans-serif;font-weight:var( --e-global-typography-primary-font-weight );color:var( --e-global-color-text );}.elementor-kit-6 button:hover,.elementor-kit-6 button:focus,.elementor-kit-6 input[type="button"]:hover,.elementor-kit-6 input[type="button"]:focus,.elementor-kit-6 input[type="submit"]:hover,.elementor-kit-6 input[type="submit"]:focus,.elementor-kit-6 .elementor-button:hover,.elementor-kit-6 .elementor-button:focus{background-color:#70F3FF;}.elementor-kit-6 e-page-transition{background-color:#FFBC7D;}.site-header{background-color:var( --e-global-color-8351b25 );}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1140px;}.e-con{--container-max-width:1140px;}.elementor-widget:not(:last-child){margin-block-end:20px;}.elementor-element{--widgets-spacing:20px 20px;--widgets-spacing-row:20px;--widgets-spacing-column:20px;}{}h1.entry-title{display:var(--page-title-display);}@media(max-width:1024px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:680px;}.e-con{--container-max-width:680px;}}/* Start custom CSS *//* Prevent content overlap */
body {
  padding-bottom: 80px !important; /* Match footer height */
}

/* 🧼 Hide sticky footer during modal display */
body.modal-open .global-footer,
body.modal-open [class*="global-footer"].elementor-sticky {
  display: none !important;
}

/* 🔲 Modal Container */
.game-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

/* 📦 Modal Content */
.modal-content {
  position: relative;
  width: 95vw;
  max-width: 1000px;
  height: 90vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

/* 🎮 Game Iframe */
.modal-content iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ❌ Close Button */
.game-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 2rem;
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 4px 12px;
  border-radius: 50%;
}

/* 🔄 Loader Styles */
.game-loader {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  z-index: 100;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.game-loader .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top-color: #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.game-trigger {
  text-align: center;      /* center any inline‐level children */
}

/* ===== Badge System ===== */

/* Thumbnail Context */
.game-thumbnail {
  display: inline-block;   /* shrink‐wrap to its contents (the image) */
  position: relative;      /* keep badges absolutely positioned wrt this box */
}

.game-thumbnail img.game-thumb-fixed {
  display: block;          /* so it can center inside its inline‐block parent */
  /* margin: 0 auto; */    /* no longer needed once the container itself is centered */
}

#games-list .game-thumb-fixed,
#predictions-list .game-thumb-fixed {
  border-radius: 7px;
  display: block;
}

/* Base Badge Styles */
.metadata-badge {
  position: absolute;
  z-index: 10;
  font-size: 0.7rem;
  padding: 0 10px;         /* Remove vertical padding for equal height */
  border-radius: 4px;
  font-weight: 500;
  background: #2980b9;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  line-height: 1;
  pointer-events: none;
  height: 26px;            /* Fixed height for all badges */
  min-width: 60px;         /* Ensures enough width for text */
  box-sizing: border-box;  /* Ensures padding doesn't increase height */
}

/* Ad-Free Badge */
.ad-free {
  bottom: 8px;
  right: 5px;
  top: auto;        /* Remove or override any 'top' */
  background: #27ae60 !important;
}

.video-wrapper .metadata-badge.ad-free.video-ad-free {
  bottom: 48px !important;
  right: 10px !important;
  top: auto !important;
}

/* Install Required Badge */
.install-required {
  bottom: 8px;
  left: 5px;
  top: auto;        /* Remove or override any 'top' */
  background: #2980b9;
}

/* Badge Image */
.metadata-badge img {
  height: 18px;            /* Slightly less than 26px to fit inside badge */
  width: auto;
  display: block;
}

/* Game Title Styles */
.game-title {
  font-family: 'Roboto', sans-serif;
  text-align: center;
  font-weight: 700; /* Bold */
  font-size: 1.32rem;
  margin: 12px 0 0;
  padding: 0 10px;
}

.featured-second-line {
  font-family: 'Roboto', sans-serif;
  text-align: center;
  font-size: 0.95rem;           /* smaller than title */
  font-style: italic;           /* italics */
  font-weight: 400;             /* lighter than bold */
  color: #2980b9;
  margin: 2px 0 0;
  padding: 0 10px;
  line-height: 1.3;
}

/* Hide unwanted categories ONLY in #games-list */
#games-list a.filter-category-list[data-filter=".uncategorized"],
#games-list a.filter-category-list[data-filter=".as-sport"],
#games-list a.filter-category-list[data-filter=".as-laugh"],
#games-list a.filter-category-list[data-filter=".as-learn"],
#games-list a.filter-category-list[data-filter=".as-predict-for-points"],
#games-list a.filter-category-list[data-filter=".as-bet-for-cash"] {
  display: none !important;
}

.listing-hidden {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dynamic-listing:not(.listing-hidden) {
  opacity: 1;
}

.video-safe-container {
  min-height: 275px;
  height: 275px;
  width: 100%;
  position: relative;
}

.video-safe-container iframe,
.video-safe-container wistia-player {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 7px; /* or whatever radius you want */
  overflow: hidden;
  background: #000; /* optional: helps on load/fallback */  
}

/* Mobile Optimization */
@media (max-width: 767px) {
  .metadata-badge {
    font-size: 0.6rem;
    min-width: 48px;
    height: 22px;
    padding: 0 8px;
  }
  .metadata-badge img {
    height: 14px;
  }
  .ad-free {
    top: auto;
    bottom: 8px;
    right: 5px;
    left: auto;
  }
  .video-wrapper .metadata-badge.ad-free.video-ad-free {
    bottom: 48px !important;
    right: 10px !important;
    top: auto !important;
  }
  
  .install-required {
    top: auto;
    bottom: 8px;
    left: 5px;
    right: auto;
  }
  .game-title {
    font-size: 1.1rem;
    margin: 0px 0 0;
  }
}

.img-timestamp-style {
  text-align: center;
  font-size: 1em;
  color: #333;
  margin-top: 5px;
}

/* 1) Position the leaderboard wrapper to cover the entire modal-content */
.leaderboard-wrapper {
  position: absolute;
  top: 0; 
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  /* Ensure it sits above any iframe below */
  z-index: 1;
  overflow: hidden;
  display: none; /* PHP sets it to `display:block;` only when live_share=1 */
}

/* 2) Heading at the top of the leaderboard */
.leaderboard-wrapper h2 {
  margin: 16px;
  font-size: 1.25rem;
  text-align: center;
}

/* 3) Scrollable container under the heading */
.leaderboard-table-container {
  position: absolute;
  top: 56px;        /* adjust to be just below <h2> */
  left: 16px;
  right: 16px;
  bottom: 16px;     /* leave a little padding at the bottom */
  overflow-y: auto;
  overflow-x: auto;
}

/* 4) Table formatting */
#leaderboardTable {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;  /* prevent columns from collapsing too narrow */
}

#leaderboardTable th,
#leaderboardTable td {
  padding: 10px 8px;
  border: 1px solid #ddd;
  font-size: 0.9rem;
  text-align: center;
}

/* 5) Sticky header row */
#leaderboardTable thead th {
  position: sticky;
  top: 0;                    /* sticks at the top of .leaderboard-table-container */
  background-color: #f5f5f5; /* same bg so the rows scroll under */
  z-index: 2;
}

/* 6) Alternate row shading & hover */
#leaderboardTable tbody tr:nth-child(even) {
  background-color: #fafafa;
}
#leaderboardTable tbody tr:hover {
  background-color: #eef7ff;
}

/* 7) Small‐screen adjustments */
@media (max-width: 480px) {
  /* 7a) Let the table shrink below 480px and distribute columns evenly */
  #leaderboardTable {
    min-width: auto;       /* undo the desktop’s 480px minimum */
    table-layout: fixed;   /* divide available width equally among columns */
  }

  /* 7b) Further reduce padding/font and truncate overflow */
  #leaderboardTable th,
  #leaderboardTable td {
    padding: 6px 4px;           /* tighter than 8px/4px */
    font-size: 0.75rem;         /* smaller text on mobile */
    text-overflow: ellipsis;    /* show “…” if text is too long */
    word-wrap: break-word;
    white-space: normal;
    
  }

  /* 7c) (Optional) Reduce header row line‐height for extra space */
  #leaderboardTable thead tr {
    line-height: 1.2;
  }
}

.game-loader .msg {
  font-size: 2rem; /* You can adjust this value as needed */
  font-weight: bold;
  margin-top: 20px; /* Adds some space below the spinner */
}

/* ───────────────────────────────────────── */
/* ACTION BUTTON (static, below thumbnail)  */
/* ───────────────────────────────────────── */
/* ACTION BUTTON — centered & 50% smaller    */
/* ───────────────────────────────────────── */
.action-btn {
  position: static !important;
  display: block;
  clear: both;
  text-align: center;
  /* half the previous max width (was 400px) */
  width: 55%;         

  /* center it */
  margin: 0.65em auto;
}

.action-btn img {
  width: 100%;         /* fill the shrunken container */
  height: auto;
  cursor: pointer;
}

@media (max-width: 767px) {
  .action-btn {
    width: 75%;       
    max-width: 175px; 
    margin: 0.4em auto;/* tighten the vertical spacing */
  }
}/* End custom CSS */