/* Scoped compact feed: no layout changes outside the recent matches widget. */
.recent-matches-block[data-rm-feed]{--rmf-edge:var(--rm-edge,#b3c3ce);--rmf-ink:var(--rm-ink,#142b3b);--rmf-muted:var(--rm-muted,#3d5869);--rmf-soft:var(--rm-soft,#f1f5f8);--rmf-accent:var(--rm-accent,#006c61)}
[data-theme=dark] .recent-matches-block[data-rm-feed]{--rmf-edge:var(--rm-edge,#294452);--rmf-ink:var(--rm-ink,#eef8fa);--rmf-muted:var(--rm-muted,#a9c0ce);--rmf-soft:var(--rm-soft,#142d3c);--rmf-accent:var(--rm-accent,#65e6cf)}
.recent-matches-block[data-rm-feed] .rm-header{grid-template-columns:minmax(0,1fr) auto;align-items:center}
.recent-matches-block[data-rm-feed] .rm-header .live-badge{display:none!important}
.recent-matches-block[data-rm-feed] [data-rmf-hidden],.recent-matches-block[data-rm-feed] .pr-rmf-toolbar [hidden],.recent-matches-block[data-rm-feed] .pr-rmf-footer[hidden],.recent-matches-block[data-rm-feed] .pr-rmf-footer [hidden],.recent-matches-block[data-rm-feed] .pr-rmf-empty[hidden]{display:none!important}
/* The existing Arena and legacy tables force table-row with !important.
   Match both concrete row containers so the compact filter always wins. */
.recent-matches-block[data-rm-feed] :is(#recent-matches-tbody,#referee-recent-tbody) > tr[data-rmf-hidden],
.recent-matches-block[data-rm-feed] :is(#recent-matches-cards,#referee-recent-cards) > [data-rmf-hidden]{display:none!important}
.pr-rmf-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:0 0 10px;color:var(--rmf-ink)}
.pr-rmf-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:3px;min-width:0}
.pr-rmf-tab,.pr-rmf-more{font:inherit;font-size:13px;font-weight:700;border:0;border-radius:999px;background:transparent;color:var(--rmf-ink);min-height:36px;padding:7px 11px;cursor:pointer;box-shadow:none}
.pr-rmf-tab{display:inline-flex;align-items:center;justify-content:center;gap:6px}
/* Match the established List/Cards pill instead of drawing a box around each filter. */
.pr-rmf-tab[aria-pressed=true]{color:#fff;background:#006c61}
[data-theme=dark] .pr-rmf-tab[aria-pressed=true]{color:#102334;background:#65e6cf}
.pr-rmf-tab[aria-pressed=true] .pr-rmf-tab-count{color:inherit}
.pr-rmf-tab-count{font-size:12px;color:var(--rmf-muted);font-variant-numeric:tabular-nums}
.pr-rmf-tab[aria-pressed=false]:hover,.pr-rmf-more:hover{background:var(--rmf-soft);color:var(--rmf-accent)}
.pr-rmf-more{color:var(--rmf-accent)}
.pr-rmf-tab:focus-visible,.pr-rmf-more:focus-visible,.pr-rmf-all:focus-visible{outline:2px solid var(--rmf-accent);outline-offset:2px}
.pr-rmf-status{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;font-size:12px;font-weight:650;color:var(--rmf-muted)}
.pr-rmf-status::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;flex:none}
.pr-rmf-status[data-state=live]{color:var(--rmf-accent)}
.pr-rmf-status[data-state=offline]{color:var(--rm-loss,#a44039)}
.pr-rmf-status[data-state=syncing]{color:var(--rmf-muted)}
.pr-rmf-status[data-state=http]::before{background:transparent;border:1px solid currentColor}
.pr-rmf-footer{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-top:10px;min-height:36px}
.pr-rmf-summary{color:var(--rmf-muted);font-size:12px;margin-right:auto}
.pr-rmf-all{font-size:13px;font-weight:650;color:var(--rmf-accent);text-decoration:none}
.pr-rmf-all:hover{text-decoration:underline}
.pr-rmf-empty{padding:20px 10px;text-align:center;font-size:14px;color:var(--rmf-muted)}
.recent-matches-block[data-rm-feed] .pr-rm-tr .pr-rm-item{min-height:62px;gap:8px;padding:7px 10px}
.recent-matches-block[data-rm-feed] .pr-rm-card .pr-rm-meta{padding:8px 10px 6px}
.recent-matches-block[data-rm-feed] .pr-rm-card .pr-rm-players{padding:0 8px 6px}
.recent-matches-block[data-rm-feed] .pr-rm-card .pr-rm-player{min-height:38px;padding:5px 7px}
.recent-matches-block[data-rm-feed] .pr-rm-card .pr-rm-score{font-size:28px}
.recent-matches-block[data-rm-feed] .pr-rm-card .pr-rm-avatar{width:28px;height:28px}
.recent-matches-block[data-rm-feed] .pr-rm-card .pr-rm-foot{padding:6px 10px}
.recent-matches-block[data-rm-feed] .pr-rm-card .pr-rm-action{padding:0 10px 6px}
.recent-matches-block[data-rm-feed] .pr-rm-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr))}
/* In the light theme the white surface and typography do the work.
   Preserve semantic outcome colors; remove extra internal rules and colored row fills. */
html[data-theme=light] .recent-matches-block[data-rm-feed] .pr-rm-card{border-color:#e1e8ec;background:#fff;box-shadow:0 1px 3px #142b3b09}
html[data-theme=light] .recent-matches-block[data-rm-feed] .pr-rm-card .pr-rm-player{background:transparent;min-height:40px}
html[data-theme=light] .recent-matches-block[data-rm-feed] .pr-rm-card .pr-rm-avatar{border:0;background:#f1f5f8}
html[data-theme=light] .recent-matches-block[data-rm-feed] .pr-rm-card .pr-rm-foot{border-top:0}
html[data-theme=light] .recent-matches-block[data-rm-feed] .pr-rm-list{border-color:#e1e8ec}
html[data-theme=light] .recent-matches-block[data-rm-feed] .pr-rm-table tr:not(:last-child) td{border-bottom-color:#e9eef1!important}
@container(max-width:720px){
  .recent-matches-block[data-rm-feed] .rm-header{grid-template-columns:minmax(0,1fr)}
  .recent-matches-block[data-rm-feed] .rm-header .rm-seg{grid-row:auto;grid-column:1}
  .pr-rmf-tab,.pr-rmf-more{min-height:44px}
  .pr-rmf-tab{font-size:12px;padding:6px 8px}
  .pr-rmf-toolbar{gap:6px}
  .pr-rmf-footer{gap:6px 10px}
  .recent-matches-block[data-rm-feed] .pr-rm-tr .pr-rm-item{min-height:0}
}
