/* Base */
body {
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background-color: #0d1117;
      color: #e6edf3;
      min-height: 100vh;
    }

    .accordion {
      --bs-accordion-bg: #0d1117;
      --bs-accordion-color: #e6edf3;
      --bs-accordion-border-color: #30363d;
      --bs-accordion-btn-bg: #161b22;
      --bs-accordion-btn-color: #f0f6fc;
      --bs-accordion-btn-border-color: #30363d;
      --bs-accordion-btn-focus-box-shadow: 0 0 0 0.25rem rgba(88, 166, 255, 0.25);
      --bs-accordion-active-bg: #0d1117;
      --bs-accordion-active-color: #ffffff;
      --bs-accordion-active-border-color: #30363d;
      --bs-accordion-body-bg: #0d1117;
    }

    .accordion-item {
      background-color: #161b22 !important;
      border: 1px solid #30363d !important;
      border-radius: 0.75rem !important;
      overflow: hidden;
      margin-bottom: 0.75rem;
    }

    .accordion-button {
      background-color: #161b22 !important;
      color: #f0f6fc !important;
      border: 0 !important;
      box-shadow: none !important;
      font-weight: 600;
    }

    .accordion-button:not(.collapsed) {
      background-color: #0d1117 !important;
      color: #ffffff !important;
      box-shadow: none !important;
    }

    .accordion-button::after {
      filter: brightness(1.4);
    }

    .accordion-body {
      background-color: #0d1117 !important;
      color: #c9d1d9 !important;
      border-top: 1px solid #30363d;
      line-height: 1.7;
    }

    .sidebar-card {
      background-color: #161b22;
      border: 1px solid #30363d;
      border-radius: 0.5rem;
      overflow: hidden;
      margin-bottom: 1.5rem;
    }

    .sidebar-header {
      background-color: #0d1117;
      padding: 0.75rem 1rem;
      border-bottom: 1px solid #30363d;
      font-weight: 600;
      font-size: 0.95rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .sidebar-item {
      padding: 0.625rem 1rem;
      border-bottom: 1px solid #30363d;
      display: flex;
      align-items: center;
      gap: 0.75rem;
      color: inherit;
      text-decoration: none;
      transition: background-color 0.2s;
    }

    .sidebar-item:hover {
      background-color: #1c2128;
    }

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

    html, body {
  overflow-x: hidden;           /* kill side-scroll */
  width: 100%;
}

body {
  padding-top: 72px;
}

#liveBtnFilter.active,
#todayBtnFilter.active {
  background: #0d6efd !important;
  color: white !important;
}
.text-center {
  margin-top: 3rem;
}
img {
  max-width: 100%;
  height: auto;
  display: block;               /* remove bottom gap */
}

#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
}

.navbar {
  position: static !important;
  z-index: 1030;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.navbar-nav .dropdown-menu {
  z-index: 1060;
}

.item-logo img, .match-card img {
  max-width: 100%;
  object-fit: contain;
}

.card-body, .card {
  overflow: hidden;             /* contain overflowing content */
}

/* Fix potential ad or long text overflow */
.text-nowrap {
  white-space: normal !important;
  word-break: break-word;
}

    .item-logo img {
      width: 32px;
      height: 32px;
      object-fit: contain;
      border-radius: 4px;
    }

    .search-box {
      background-color: #161b22;
      border: 1px solid #30363d;
      border-radius: 0.375rem;
      padding: 1rem;
      margin-bottom: 1.5rem;
    }

    .feature-box {
      background: linear-gradient(135deg, #1a1a2e, #16213e);
      border: 1px solid #30363d;
      border-radius: 0.5rem;
      padding: 1rem;
      margin-bottom: 1rem;
      text-decoration: none;
      color: inherit;
      display: block;
      transition: all 0.2s ease;
    }

    .feature-box:hover {
      border-color: #58a6ff;
      transform: translateY(-3px);
    }

    .feature-icon {
      font-size: 1.6rem;
      color: #ff6b35;
      margin-bottom: 0.5rem;
    }

    .card {
      background-color: #161b22;
      border-color: #30363d;
    }

    .card-header {
      background-color: #0d1117;
      border-bottom: 1px solid #30363d;
    }

    #matchView .card-body {
      min-height: 300px; /* prevent collapse when empty */
    }

    /* Mobile bottom nav tweaks */
    .mobile-nav-link {
      flex: 1;
      text-align: center;
      padding: 0.5rem 0;
      color: #8b949e;
      transition: color 0.2s;
    }

    .mobile-nav-link.active,
    .mobile-nav-link:hover {
      color: #58a6ff;
    }

    .mobile-nav-link small {
      display: block;
      font-size: 0.75rem;
      margin-top: 0.25rem;
    }

.hidden-view {
  visibility: hidden;
  height: 0;
  overflow: hidden;
}

.visible-view {
  visibility: visible;
  height: auto;
}

/* Streak / Points */
.streak,
#totalPointsDisplay {
  background: #ff4757;
  padding: 6px 14px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}

/* Match Cards */
.match-card {
  border: 1px solid #333;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.match-header {
  font-weight: bold;
  font-size: 0.9rem;
  color: #ff9500;
}

.prediction-percent {
  font-size: 0.8rem;
  color: #aaa;
}

.prediction-bar {
  height: 10px;
  border-radius: 5px;
  margin-top: 3px;
}

.hot-match {
  border-left: 4px solid #ff4757 !important;
}

.countdown {
  font-family: monospace;
  color: #ff9500;
  font-size: 0.9rem;
}

/* Layout */
.container-fluid { width: 100%; }

/* CHANGE THIS: Only apply flex-row to desktop */
@media (min-width: 768px) {
  .navbar-nav {
    display: flex;
    flex-direction: row;
    gap: 20px;
    position: relative; /* Context for absolute children */
  }

  /* Force dropdown to float over content instead of pushing navbar */
  .navbar-nav .dropdown-menu {
    position: absolute !important;
    top: 100%;
    left: 0;
    margin-top: 10px; /* Space from the toggle */
  }
}

/* Navbar Brand */
.navbar-brand img {
  width: 35px;
  height: 35px;
}

/* Active Sport Indicator */
.nav-link.active {
  position: relative;
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background-color: #0d6efd;
  border-radius: 2px;
}

.mobile-sports-bar .nav-link.active::after {
  bottom: 0;
}

/* About Page */
.about-container {
  max-width: 1000px;
  margin: 50px auto;
  padding: 0 20px;
  font-family: Arial, sans-serif;
  color: white;
}

.about-header {
  text-align: center;
  margin-bottom: 40px;
}

.about-header h1 {
  font-size: 36px;
  color: #ff9800;
}

.about-section {
  margin-bottom: 40px;
  line-height: 1.7;
}

.about-section h2 {
  font-size: 24px;
  margin-bottom: 15px;
  color: #ff9800;
}

.download-buttons {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.download-buttons img,
.download-badges img {
  width: 150px;
  transition: transform 0.3s;
}

.download-buttons img:hover {
  transform: scale(1.05);
}

p, li{color:white}
/* Footer */
.footer {
  background-color: #0d1117;
  color: #f1f1f1;
  font-family: Arial, sans-serif;
  padding: 40px 20px 20px;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 30px;
}

.footer-about {
  flex: 2;
  min-width: 250px;
}

.footer-about h3,
.footer-links h3,
.footer-social h3 {
  font-size: 18px;
  margin-bottom: 15px;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.6;
}

.footer-links {
  flex: 1;
  min-width: 150px;
}

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

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  text-decoration: none;
  color: #f1f1f1;
  font-size: 14px;
}

.footer-links ul li a:hover {
  color: #ffc107;
}

.footer-social {
  flex: 1;
  min-width: 150px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons i:hover {
  transform: scale(1.2);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  font-size: 14px;
  margin-top: 20px;
  color: #ccc;
}
#backBtn{
    display: flex;
    align-items: center;
}

/* AdSense display placement: separated from match controls and responsive. */
.adsense-placement {
  clear: both;
  margin: 2rem 0;
  min-height: 100px;
  overflow: hidden;
  text-align: center;
}

.adsense-label {
  display: block;
  margin-bottom: 0.5rem;
  color: #8b949e;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 767.98px) {
  .adsense-placement {
    margin: 1.5rem 0;
    min-height: 50px;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    gap: 25px;
  }

  .download-badges img {
    width: 100px;
  }
}

@media (max-width: 767.98px) {
  .navbar-brand img {
    width: 32px;
    height: 32px;
  }

  .streak,
  .text-warning {
    font-size: 0.8rem;
    min-width: 30px;
    text-align: center;
  }

  .btn.btn-sm {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
  }

  .mobile-sports-bar .nav-link {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.8rem;
  }

  .mobile-sports-bar .material-symbols-outlined {
    font-size: 1.25rem;
  }
}

@media (max-width: 700px) {
  .about-header h1 { font-size: 28px; }
  .download-buttons img { width: 120px; }
}

@media (max-width: 500px) {
  .about-container { margin: 30px 10px; }
  .about-section h2 { font-size: 20px; }
  .footer-about p,
  .footer-links ul li a {
    font-size: 13px;
  }
}
