.live-centre {
  /* Fallbacks only: live-centre.js sets both to the clubs' own colours
     (core/team-colors.js) for the match on show. */
  --live-home: #9566cf;
  --live-away: #5a9ec6;
  margin-bottom: 28px;
}
/* The sheet is the panel itself. With live matches its tabs stand on its top
   edge like the dividers of a binder: the chosen tab joins the sheet, the
   others sit a step lower, behind it. */
.live-centre-sheet {
  border: 1px solid var(--line);
  border-top: 3px solid var(--panel-rule, #9566cf);
  border-radius: 10px;
  background: var(--surface, #fff);
  overflow: hidden;
}
.live-centre:has(> .live-fixture-tabs:not([hidden])) .live-centre-sheet {
  border-top-width: 1px;
  border-top-color: var(--line);
  border-top-left-radius: 0;
}
.live-fixture-tabs { position: relative; z-index: 1; display: flex; align-items: flex-end; gap: 4px; margin-bottom: -1px; overflow-x: auto; }
.live-fixture-tab {
  display: grid;
  gap: 2px;
  flex: none;
  margin-bottom: 1px;
  padding: 7px 14px 6px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: var(--surface-raised, #f7f2fc);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
}
.live-fixture-tab:hover { color: var(--ink); }
.live-fixture-tab[aria-selected="true"] {
  margin-bottom: 0;
  padding: 10px 16px 8px;
  border-top: 3px solid var(--panel-rule, #9566cf);
  background: var(--surface, #fff);
  color: var(--ink);
}
.live-fixture-minute { color: var(--muted); font-size: 10px; font-weight: 500; }
.live-centre-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 20px 24px 0; }
.live-centre-heading > div { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.live-centre-heading h2 { font-size: 18px; }
.live-badge { --live-badge-bg: #fce1e7; --live-badge-ink: #a62749; display: inline-flex; align-items: center; gap: 6px; background: var(--live-badge-bg); color: var(--live-badge-ink); border-radius: 4px; padding: 4px 7px; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.live-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.live-centre-note { margin: 9px 24px 20px; font-size: 11px; color: var(--muted); }
.live-scoreboard { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 24px; align-items: center; padding: 24px; margin: 0 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-raised, #f7f2fc); }
.live-club { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; text-align: center; }
.live-club strong { font-size: 16px; overflow-wrap: anywhere; }
.live-club .club-logo { width: 56px; height: 56px; flex-basis: 56px; }
.live-club .club-logo img { width: 52px; height: 52px; }
.live-score { display: grid; justify-items: center; gap: 6px; text-align: center; }
.live-match-state { font-size: 11px; color: var(--muted); }
.live-score-value { font-size: clamp(28px, 4vw, 44px); line-height: 1.2; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.live-centre-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 24px; }
.live-centre-grid > section { min-width: 0; }
.live-centre-grid h3 { font-size: 13px; font-weight: 600; margin: 0 0 16px; }
.live-stat-row { margin: 0 0 12px; }
.live-stat-label { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 8px; align-items: center; font-size: 11px; text-align: center; }
.live-stat-label strong { font-size: 12px; font-variant-numeric: tabular-nums; }
.live-home-value { text-align: left; }
.live-away-value { text-align: right; }
.live-stat-bars { display: flex; gap: 4px; margin-top: 5px; }
.live-stat-track { display: flex; flex: 1; height: 5px; border-radius: 3px; background: var(--surface-raised, #f1edf5); overflow: hidden; }
.live-stat-track:first-child { justify-content: flex-end; }
.live-stat-track > span { display: block; height: 100%; border-radius: inherit; }
.live-home-bar { background: var(--live-home); }
.live-away-bar { background: var(--live-away); }
.live-coverage-note { font-size: 10px; color: var(--muted); margin: 8px 0 0; }
.live-events ol { margin: 0; padding: 0 8px 0 0; list-style: none; max-height: 360px; overflow-y: auto; }
.live-event { display: grid; grid-template-columns: 40px 18px minmax(0, 1fr); gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.live-event:first-child { padding-top: 0; }
.live-event:last-child { border-bottom: 0; }
.live-event-minute { color: var(--muted); font-variant-numeric: tabular-nums; }
.live-event-icon { color: var(--muted); text-align: center; }
.live-event-icon.is-yellow { color: #d09c13; }
.live-event-icon.is-red { color: #d9526c; }
.live-event-details { display: grid; gap: 3px; overflow-wrap: anywhere; }
.live-event-details strong { font-weight: 600; }
.live-event-details small, .live-events-empty { color: var(--muted); font-size: 11px; }
:root[data-theme="dark"] .live-badge { --live-badge-bg: #402131; --live-badge-ink: #ffabc0; }
@media (max-width: 760px) {
  .live-centre-heading { padding: 18px 16px 0; }
  .live-centre-note { margin-left: 16px; margin-right: 16px; }
  .live-scoreboard { margin: 0 16px; padding: 20px 12px; gap: 10px; }
  .live-club strong { font-size: 12px; }
  .live-club .club-logo { width: 44px; height: 44px; flex-basis: 44px; }
  .live-club .club-logo img { width: 40px; height: 40px; }
  .live-match-state { max-width: 100px; }
  .live-centre-grid { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; gap: 24px; }
}
