#sport-events-widget {
  font-family: Arial, sans-serif;
  margin: 20px 0;
}
/* SPORT TABS - Horizontal Scroll */
.sport-tabs {
  display: flex;
  flex-wrap: nowrap;          /* prevent wrapping */
  overflow-x: auto;           /* enable horizontal scroll */
  scrollbar-width: thin;      /* Firefox */
  scrollbar-color: #22c55e #1e293b;
  gap: 10px;
  margin: 0 0 20px 0;
  padding: 6px 0;
  list-style: none;
}

/* Hide scrollbar for WebKit browsers but keep scrolling */
.sport-tabs::-webkit-scrollbar {
  height: 6px;
}
.sport-tabs::-webkit-scrollbar-track {
  background: #1e293b;
  border-radius: 10px;
}
.sport-tabs::-webkit-scrollbar-thumb {
  background: #22c55e;
  border-radius: 10px;
}

/* Individual Tab */
.sport-tab {
  flex: 0 0 auto;             /* prevent shrinking */
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  background: #1e293b;
  color: white;
  border: 1px solid #334155;
  transition: all 0.25s ease;
  position: relative;
  white-space: nowrap;        /* keep text on one line */
}

.sport-tab:hover {
  background: #22c55e;
  color: #000;
  border-color: #22c55e;
  transform: translateY(-2px);
}

.sport-tab.active {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #fff;
  border-color: #22c55e;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.4);
}

.sport-tab.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: #22c55e;
  border-radius: 2px;
}


.sport-panel {
  padding: 20px 0;
}

.loading,
.error-message,
.no-events {
  padding: 20px;
  text-align: center;
  font-size: 14px;
}

.loading {
  color: #666;
}

.error-message {
  color: #d32f2f;
  background: #ffebee;
}

.no-events {
  color: #666;
  background: #f5f5f5;
}

.matches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
/* BUTTON */
.bet-btn {
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: bold;
  cursor: pointer;
  border: none;
  color: white;
  background: linear-gradient(135deg, #22c55e, #16a34a);

  transition: 0.2s;
}

.bet-btn:hover {
  transform: scale(1.03);
  background: linear-gradient(135deg, #4ade80, #22c55e);
}

.bet-btn:active {
  transform: scale(0.98);
}
/* OPTIONAL: subtle separation */
.match-card {
  display: flex;
  flex-direction: column;
}

.odds-row {
  margin-bottom: 6px;
}
/* CARD */
.match-card {
  background: linear-gradient(145deg, #0f172a, #020617);
  border-radius: 14px;
  padding: 12px;
  color: #fff;
  transition: 0.2s;
  border: 1px solid #1e293b;
}

.match-card:hover {
  transform: translateY(-3px);
  border-color: #22c55e;
}

/* TOP */
.match-top {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 8px;
  gap: 8px;
}

/* Date */
.match-top span:first-child {
  flex: 0 0 auto;       /* fixed size */
  white-space: nowrap;
  font-weight: 600;
  color: #cbd5e1;
}

/* League name */
.match-top span:last-child {
  flex: 1;
  max-width: 80%;       /* limit width */
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  word-break: break-word;   /* allow wrapping */
  color: #94a3b8;
  text-align: right;
}


/* TEAMS INLINE */
.teams-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 10px;
  gap: 6px;
  height:2.3rem;
}

.teams-line span {
  flex: 1;
  text-align: center;
}

/* VS SVG */
.vs-icon svg {
  width: 28px;
  height: 28px;
}

.vs-icon circle {
  fill: #1e293b;
  stroke: #22c55e;
  stroke-width: 2;
}

.vs-icon text {
  fill: #22c55e;
  font-size: 12px;
  font-weight: bold;
}

/* ODDS */
.odds-row {
  display: flex;
  gap: 6px;
}

.odd {
  flex: 1;
  text-align: center;
  background: #1e293b;
  padding: 6px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
}

.odd:hover {
  background: #22c55e;
  color: #000;
  transform: scale(1.05);
}

/* AUTO HANDLE 2 ODDS */
.match-card.odds-2 .odd {
  flex: 1;
}

/* RESPONSIVE */

/* Laptop */
@media (max-width: 1200px) {
  .matches-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Tablet */
@media (max-width: 900px) {
  .matches-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 500px) {
  .matches-grid {
    grid-template-columns: 1fr;
  }
}