/* ── OddsMaestro Widget ──────────────────────────────────────────────────── */

:root {
  --om-bg:        #0f1923;
  --om-card:      #1a2535;
  --om-border:    #253347;
  --om-accent:    #f5a623;
  --om-green:     #2ecc71;
  --om-red:       #e74c3c;
  --om-text:      #e8edf3;
  --om-muted:     #8a99ad;
  --om-radius:    10px;
  --om-font:      -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Section title ──────────────────────────────────────────────────────── */

.om-section-title {
  font-family: var(--om-font);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--om-text);
  margin: 2rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--om-accent);
}

/* ── Widget container ───────────────────────────────────────────────────── */

.om-widget {
  font-family: var(--om-font);
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 1.5rem 0;
}

.om-widget.om-empty {
  background: var(--om-card);
  border-radius: var(--om-radius);
  padding: 1.5rem;
  color: var(--om-muted);
  text-align: center;
}

/* ── Event card ─────────────────────────────────────────────────────────── */

.om-event {
  background: var(--om-card);
  border: 1px solid var(--om-border);
  border-radius: var(--om-radius);
  padding: 14px 16px;
  transition: border-color .2s;
}

.om-event:hover {
  border-color: var(--om-accent);
}

/* ── Event meta row ─────────────────────────────────────────────────────── */

.om-event-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.om-sport-tag {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--om-muted);
}

.om-event-time {
  font-size: .75rem;
  color: var(--om-muted);
}

.om-event-time.om-live {
  color: var(--om-red);
  font-weight: 700;
  animation: om-pulse 1.4s infinite;
}

@keyframes om-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .5; }
}

/* ── Matchup ────────────────────────────────────────────────────────────── */

.om-matchup {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 12px;
}

.om-team {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--om-bg);
  border-radius: 8px;
  padding: 10px 8px;
  gap: 6px;
  min-width: 0;
}

.om-team.om-draw {
  flex: 0 0 80px;
}

.om-team-name {
  font-size: .8rem;
  font-weight: 600;
  color: var(--om-text);
  text-align: center;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.om-odd {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--om-accent);
  font-variant-numeric: tabular-nums;
}

/* ── Bet buttons ────────────────────────────────────────────────────────── */

.om-bet-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.om-bet-btn {
  flex: 1 1 auto;
  display: inline-block;
  padding: 9px 14px;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: opacity .15s, transform .1s;
  background: var(--om-green);
  color: #fff !important;
  white-space: nowrap;
}

.om-bet-btn:hover {
  opacity: .88;
  transform: translateY(-1px);
}

.om-bet-btn:active {
  transform: translateY(0);
}

/* Per-operator accent colors */
.om-btn-betano      { background: #e31837; }
.om-btn-bet365      { background: #f5a623; color: #000 !important; }
.om-btn-kto         { background: #7b2fff; }
.om-btn-sportingbet { background: #1a6cb4; }
.om-btn-novibet     { background: #0a2240; }
.om-btn-blaze       { background: #ff4500; }

/* ── Disclaimer ─────────────────────────────────────────────────────────── */

.om-disclaimer {
  font-size: .68rem;
  color: var(--om-muted);
  text-align: center;
  margin: 4px 0 0;
  line-height: 1.6;
}

.om-disclaimer a {
  color: var(--om-muted);
  text-decoration: underline;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .om-matchup {
    flex-wrap: wrap;
  }

  .om-team {
    flex: 1 1 calc(50% - 6px);
  }

  .om-team.om-draw {
    flex: 1 1 100%;
    flex-direction: row;
    justify-content: center;
    gap: 12px;
  }

  .om-bet-buttons {
    flex-direction: column;
  }

  .om-bet-btn {
    width: 100%;
  }
}
