/* "Watch a recent match" tiles (Engine home page and player/replays.php): each match a game's
   logo, name, date and length; the chosen one opens full width below. ui/replay_panels.js
   loads the replay only while its panel is open. The TCGGuilds Hub has the same tiles. */
.rp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.rp-panel { border: 1px solid var(--eg-line); border-radius: 6px; background: var(--eg-surface); overflow: hidden; }
.rp-panel[open] { grid-column: 1 / -1; border-color: var(--eg-accent); }
.rp-panel summary { list-style: none; cursor: pointer; display: grid; justify-items: center; gap: 8px; padding: 16px; text-align: center; }
.rp-panel summary::-webkit-details-marker { display: none; }
.rp-panel[open] summary { grid-template-columns: auto 1fr auto; justify-items: start; align-items: center; text-align: left; }
.rp-logo { width: 100%; height: 120px; display: flex; align-items: center; justify-content: center; border-radius: 4px; background: var(--eg-sunken); padding: 8px; box-sizing: border-box; overflow: hidden; }
.rp-panel[open] .rp-logo { width: 120px; height: 64px; }
.rp-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.rp-logo span { font-weight: 700; font-size: .85rem; }
.rp-text { display: grid; gap: 2px; }
.rp-name { font-weight: 700; color: var(--eg-text); }
.rp-meta { font-size: .8rem; color: var(--eg-muted); }
.rp-go { font-size: .8rem; font-weight: 700; color: var(--eg-accent); border: 1px solid var(--eg-accent); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.rp-panel summary:hover .rp-go, .rp-panel[open] .rp-go { background: var(--eg-accent); color: #fff; }
.rp-stage { padding: 0 16px 16px; }
.rp-stage iframe { display: block; width: 100%; height: min(78vh, 760px); min-height: 440px; border: 1px solid var(--eg-line); border-radius: 4px; background: #0d1117; }
.rp-stage p { margin: 8px 0 0; }
.rp-more { display: inline-block; margin-top: 14px; font-weight: 700; }

/* The Recent matches page's filter bar */
.rp-filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 0 0 18px; padding: 14px; background: var(--eg-surface); border: 1px solid var(--eg-line); border-radius: 6px; }
.rp-filters label { display: grid; gap: 4px; font-size: .8rem; font-weight: 700; color: var(--eg-muted); }
.rp-filters select { min-width: 180px; padding: 8px 10px; border: 1px solid var(--eg-line); border-radius: 6px; background: var(--eg-surface); color: var(--eg-text); font: inherit; }
.rp-filters button { padding: 9px 16px; border: 1px solid var(--eg-accent); background: var(--eg-accent); color: #fff; border-radius: 6px; font-weight: 700; cursor: pointer; }
.rp-count { margin-left: auto; color: var(--eg-muted); font-size: .85rem; align-self: center; }
