/*
 * MMA match-centre blocks (mma-next-event / mma-fight-card / mma-results,
 * templates/content/blocks/mma_block.html). Platform baseline: light card,
 * scoped to .mmb, colours from the theme's --bm-* tokens when it has them
 * (malaysia-tiger), else neutral navy/gold fallbacks. Themes restyle .mmb-*.
 */
.mmb {
  --mmb-ink: var(--bm-navy, #102344);
  --mmb-soft: var(--bm-text-soft, #34445e);
  --mmb-muted: var(--bm-muted, #56647a);
  --mmb-line: var(--bm-border, #dfe4ec);
  --mmb-well: var(--bm-surface-2, #eef1f5);
  --mmb-card: var(--bm-surface, #fff);
  --mmb-gold: var(--bm-gold, #ffcc22);
  --mmb-gold-soft: var(--bm-gold-soft, #fff4cc);
  --mmb-gold-ink: var(--bm-gold-ink, #8a6400);
  --mmb-win: var(--bm-success, #167647);
  --mmb-live: var(--bm-danger, #b42318);
  --mmb-r: var(--bm-radius, 16px);
  --mmb-font: var(--bm-font, "Barlow", Arial, sans-serif);
  --mmb-display: var(--bm-font-display, "Barlow Condensed", "Arial Narrow", Arial, sans-serif);
  margin: 0 0 24px;
  padding: 20px;
  background: var(--mmb-card);
  border: 1px solid var(--mmb-line);
  border-radius: var(--mmb-r);
  box-shadow: var(--bm-shadow-card, 0 1px 2px rgba(16, 35, 68, .06), 0 6px 20px rgba(16, 35, 68, .06));
  color: var(--mmb-ink);
  font-family: var(--mmb-font);
}
.mmb a { color: inherit; text-decoration: none; }
.mmb-head { margin: 0 0 14px; }
.mmb-kicker {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 3px 12px;
  border-radius: 999px; background: var(--mmb-gold-soft); color: var(--mmb-ink);
  font: 700 12px/1.4 var(--mmb-font); letter-spacing: .06em; text-transform: uppercase;
}
.mmb .mmb-title { margin: 0 0 4px; font: 800 26px/1.15 var(--mmb-display); color: var(--mmb-ink); letter-spacing: 0; text-transform: none; }
.mmb .mmb-title a:hover { text-decoration: underline; text-decoration-color: var(--mmb-gold); text-underline-offset: 4px; }
.mmb-meta { margin: 0; color: var(--mmb-muted); font-size: 15px; }
.mmb-live { display: inline-flex; align-items: center; gap: 6px; color: var(--mmb-live); font-weight: 800; text-transform: uppercase; font-size: 12px; letter-spacing: .06em; }
.mmb-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* avatars: licensed photo or initials */
.mmb-av { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--mmb-well); border: 1px solid var(--mmb-line); }
.mmb-av img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.mmb-ini { background: var(--mmb-ink); color: var(--mmb-gold); font: 800 13px/1 var(--mmb-font); border-color: var(--mmb-ink); }

/* next event: main-event face-off */
.mmb-main { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 16px; border-radius: calc(var(--mmb-r) - 4px); background: var(--mmb-ink); color: #fff; }
.mmb-main:hover { background: var(--bm-navy-soft, #1c3560); }
.mmb-corner { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.mmb-corner .mmb-av { width: 88px; height: 88px; border: 3px solid var(--mmb-gold); background: var(--bm-navy-soft, #1c3560); }
.mmb-corner .mmb-ini { font-size: 26px; }
.mmb-corner .mmb-nm { font: 800 20px/1.15 var(--mmb-display); color: #fff; }
.mmb-corner small { color: var(--bm-muted-on-navy, #a9b6cc); font-size: 13px; }
.mmb-center { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 120px; }
.mmb-center small { color: var(--bm-muted-on-navy, #a9b6cc); font-size: 12px; }
.mmb-center .mmb-tag { color: var(--mmb-gold); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.mmb-main .mmb-vs { font: 800 30px/1 var(--mmb-display); color: var(--mmb-gold); text-transform: uppercase; }
.mmb-main .mmb-odds span { background: var(--bm-navy-soft, #1c3560); border-color: rgba(255, 255, 255, .18); color: #fff; }

.mmb-facts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin: 14px 0; }
.mmb-times { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; }
.mmb-times div { display: flex; flex-direction: column; }
.mmb-times dt { color: var(--mmb-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.mmb-times dd { margin: 0; font-size: 15px; }
.mmb-count { display: flex; gap: 6px; }
.mmb-count span { display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 6px 8px; border-radius: 10px; background: var(--mmb-ink); color: #fff; }
.mmb-count b { font: 800 24px/1 var(--mmb-display); color: var(--mmb-gold); font-variant-numeric: tabular-nums; }
.mmb-count small { font-size: 11px; color: var(--bm-muted-on-navy, #a9b6cc); text-transform: uppercase; letter-spacing: .06em; }

/* odds pair */
.mmb-odds { display: inline-flex; gap: 4px; }
.mmb-odds span { min-width: 50px; padding: 4px 8px; border: 1px solid var(--mmb-line); border-radius: 8px; background: var(--mmb-well); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; text-align: center; }

/* bout rows (card + results) */
.mmb-seg { margin: 0 0 14px; }
.mmb .mmb-seg-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin: 0 0 6px; padding: 0 0 6px; border-bottom: 2px solid var(--mmb-gold); font: 800 19px/1.2 var(--mmb-display); color: var(--mmb-ink); text-transform: none; }
.mmb-seg-h span { font: 600 14px/1.3 var(--mmb-font); color: var(--mmb-muted); }
.mmb-rows { list-style: none; margin: 0; padding: 0; }
.mmb-rows li { margin: 0; padding: 0; border-bottom: 1px solid var(--mmb-line); }
.mmb-rows li::before { content: none; }
.mmb-rows li:last-child { border-bottom: 0; }
.mmb-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; min-height: 56px; padding: 8px 4px; }
.mmb-row:hover { background: var(--mmb-well); }
.mmb-side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mmb-side--b { justify-content: flex-end; text-align: right; }
.mmb-who { display: flex; flex-direction: column; min-width: 0; }
.mmb-who b { font-weight: 700; font-size: 15px; overflow-wrap: break-word; hyphens: auto; }
.mmb-who small { color: var(--mmb-muted); font-size: 12px; }
.mmb-side.is-win .mmb-who b { color: var(--mmb-win); }
.mmb-side.is-win .mmb-who small { color: var(--mmb-win); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.mmb-side.is-loss .mmb-who b { color: var(--mmb-muted); font-weight: 600; }
.mmb-mid { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 112px; text-align: center; }
.mmb-mid small { color: var(--mmb-muted); font-size: 12px; }
.mmb-row .mmb-vs { color: var(--mmb-muted); font-weight: 800; font-size: 13px; text-transform: uppercase; }
.mmb-res { font-weight: 800; font-size: 14px; }

.mmb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-top: 4px; padding: 10px 20px; border-radius: 10px; background: var(--mmb-gold); color: var(--mmb-ink) !important; font: 700 16px/1.2 var(--mmb-font); }
.mmb-btn:hover { background: var(--bm-gold-strong, #f2b705); }
.mmb-note { display: flex; flex-direction: column; gap: 4px; margin: 14px 0 0; color: var(--mmb-muted); font-size: 12px; line-height: 1.45; }
.mmb-note a { text-decoration: underline; }

@media (max-width: 640px) {
  .mmb { padding: 16px; }
  .mmb .mmb-title { font-size: 22px; }
  .mmb-main { gap: 6px; padding: 14px 8px; }
  .mmb-corner .mmb-av { width: 64px; height: 64px; }
  .mmb-corner .mmb-nm { font-size: 17px; }
  .mmb-main .mmb-vs { font-size: 24px; }
  .mmb-row { gap: 6px; }
  .mmb-row .mmb-av { display: none; }
  .mmb-row { grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); }
  .mmb-mid { min-width: 0; }
  .mmb-mid small { font-size: 11px; line-height: 1.3; }
  .mmb-center { min-width: 0; max-width: 110px; }
  .mmb-center .mmb-tag { font-size: 11px; line-height: 1.3; }
  .mmb-main { grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr); }
  .mmb-who b { font-size: 14px; }
  .mmb-odds span { min-width: 42px; padding: 3px 5px; font-size: 13px; }
  .mmb-btn { width: 100%; }
}
.mmb-past { margin: 0 0 12px; }
