/* Match detail — exchange-style (scoped under .exchange-match-page) */
.exchange-match-page {
  --ex-bg: #2c3338;
  --ex-head: #1a2b5f;
  --ex-back: #80ccff;
  --ex-lay: #ff99cc;
  --ex-cash: #b34d80;
  --ex-muted: #9aa0a6;
  color: #fff;
}

.exchange-breadcrumb {
  background: #3a4147;
  font-size: 12px;
  padding: 8px 12px;
  color: var(--ex-muted);
}

.exchange-breadcrumb a {
  color: #cbd5e1;
  text-decoration: none;
}

.exchange-match-header {
  background: var(--ex-head);
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.exchange-match-header .ex-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.exchange-match-header .ex-when {
  font-size: 12px;
  color: #cbd5e1;
}

.exchange-scorecard-strip {
  background: #252b30;
  border-bottom: 1px solid #1f2428;
  padding: 10px 14px;
  font-size: 13px;
  color: #e5e7eb;
}

.exchange-scorecard-strip .ex-muted {
  color: var(--ex-muted);
  font-size: 11px;
}

.exchange-market {
  border-bottom: 1px solid #1f2428;
  background: var(--ex-bg);
}

.exchange-market-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  background: #353c42;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.exchange-market-head .ex-mk-title {
  font-weight: 700;
}

.exchange-market-head .ex-limits {
  color: var(--ex-muted);
  font-size: 11px;
}

.exchange-market-head .ex-cashout {
  background: var(--ex-cash);
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 10px;
}

.exchange-market-body {
  padding: 10px 12px 14px;
}

.exchange-runner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.exchange-runner:last-child {
  margin-bottom: 0;
}

.exchange-runner .runner-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  align-self: center;
}

.exchange-runner .runner-actions {
  display: flex;
  gap: 6px;
}

.exchange-cell {
  min-width: 72px;
  padding: 6px 8px;
  border-radius: 4px;
  text-align: center;
  text-decoration: none !important;
  color: #111 !important;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.2;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.exchange-cell.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.exchange-cell.exchange-back {
  background: var(--ex-back);
}

.exchange-cell.exchange-lay {
  background: var(--ex-lay);
}

.exchange-cell .ex-vol {
  font-size: 10px;
  font-weight: 500;
  color: #333;
  margin-top: 4px;
}

.exchange-session-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #e5e7eb;
}

.exchange-session-meta {
  font-size: 11px;
  color: var(--ex-muted);
  margin-bottom: 8px;
}

.exchange-loading,
.exchange-error {
  padding: 16px;
  text-align: center;
  color: var(--ex-muted);
  font-size: 13px;
}

.exchange-fallback {
  margin-top: 12px;
}

/* Rich Scorecard */
.exchange-scorecard-rich {
  background: #111;
  border-bottom: 2px solid #1f2428;
  padding: 12px 14px;
}
.score-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.score-team {
  flex: 1;
}
.score-teamb {
  text-align: right;
}
.score-team .team-name {
  display: block;
  font-size: 11px;
  color: var(--ex-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.score-team .team-score {
  font-size: 18px;
  font-weight: 700;
}
.score-spacer {
  width: 20px;
}
.score-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #e5e7eb;
}
.score-stats {
  font-weight: 600;
}
.score-recent {
  display: flex;
  gap: 4px;
}
.score-recent .ball {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f59e0b; /* Orange default for runs */
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
}
.score-recent .ball-boundary {
  background: #fcd34d; /* Yellow for 4s/6s */
  color: #000;
}
.score-recent .ball-wicket {
  background: #ef4444; /* Red for wickets */
  color: #fff;
}
.score-equation-row {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ex-muted);
  border-top: 1px solid #252b30;
  padding-top: 6px;
}

/* Market Suspended Styles */
.market-rel {
  position: relative;
}
.exchange-market-body {
  position: relative;
}
.suspended-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.suspended-overlay span {
  color: #ef4444;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  border: 4px solid #ef4444;
  padding: 4px 16px;
  transform: rotate(-5deg);
}