/* Match report header (relatorio.asp displayHeader + relatorio_p1.asp facts), styled after the 2D viewer scoreboard
   (viewer-next/viewer.css .mv-board). Classic design: scoped to .rh, plus the tabs and commentary below it. */

.rh { margin: 0 0 14px; text-align: left; }
/* board and facts are one block: the facts are the board's bottom band */
.rh {
  overflow: hidden; border: 1px solid #10301a; border-radius: 14px; background: #13321c;
  box-shadow: 0 6px 20px -8px rgba(16,30,20,0.35), 0 2px 6px -2px rgba(16,30,20,0.15);
}
.rh .rh-board { border: 0; border-radius: 0; box-shadow: none; }

/* scoreboard */
.rh-board {
  position: relative; overflow: hidden; border-radius: 14px; color: #e8ffdc;
  background: radial-gradient(ellipse at top, #2f5a37 0%, transparent 70%), linear-gradient(180deg, #13321c 0%, #1f5426 100%);
  border: 1px solid #10301a; box-shadow: 0 6px 20px -8px rgba(16,30,20,0.35), 0 2px 6px -2px rgba(16,30,20,0.15);
}
.rh-board:before { content: ""; display: block; height: 4px; background: linear-gradient(90deg, #bae057 0 50%, #e9c65a 50% 100%); opacity: 0.9; }
.rh-board__main {
  display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 16px; padding: 14px 18px 8px;
}
.rh-team { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rh-team--away { justify-content: flex-end; text-align: right; }
.rh-team__kit { flex-shrink: 0; display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 3px 6px rgba(0,0,0,0.35)); }
.rh-team__kit:empty { display: none; }
.rh-team__crest { display: block; width: 76px; height: 76px; }   /* the club's drawn crest instead of the kit */
.rh-team__crest svg { display: block; width: 100%; height: 100%; }
.rh-team__logo { display: block; width: 76px; height: 76px; object-fit: contain; }   /* an uploaded logo image */
.rh-team__kit #myFlashDiv, .rh-team__kit #myFlashDiv2 { line-height: 0; }
.rh-board a.rh-team__name {
  min-width: 0; color: #fff; font: 800 20px/1.15 Arial, Helvetica, sans-serif; text-decoration: none;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4); overflow-wrap: anywhere;
}
.rh-board a.rh-team__name:hover { color: #e9c65a; text-decoration: none; }
.rh-pen { display: inline-grid; place-items: center; flex-shrink: 0; min-width: 20px; height: 20px; margin: 0 -4px; padding: 0 5px; box-sizing: border-box; border-radius: 5px; background: #e9c65a; color: #1f3d10; font: 800 12px/1 var(--display, Arial, sans-serif); cursor: help; }   /* won the penalty shoot-out */

.rh-score { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rh-score__nums {
  display: flex; align-items: center; gap: 10px; padding: 5px 16px; border-radius: 10px;
  background: rgba(0,0,0,0.28); border: 1px solid rgba(255,255,255,0.1);
  font: 900 36px/1 Arial, Helvetica, sans-serif; color: #fff; font-variant-numeric: tabular-nums;
}
.rh-score__nums .sep { color: #e9c65a; font-size: 24px; }
.rh-score__nums--hidden { padding: 5px 20px; }
.rh-score__live {
  display: inline-flex; align-items: center; gap: 7px; font: 700 12px/1 Arial, Helvetica, sans-serif; color: #e9c65a;
  letter-spacing: 0.5px;
}
.rh-score__live b { color: #fff; font-size: 14px; }
.rh-live { width: 8px; height: 8px; border-radius: 50%; background: #e53935; box-shadow: 0 0 0 3px rgba(229,57,53,0.3); animation: rh-pulse 2s ease-in-out infinite; }
@keyframes rh-pulse { 50% { box-shadow: 0 0 0 7px rgba(229,57,53,0); } }

/* goals, cards, injuries under each team */
.rh-events { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 4px 40px; padding: 0 18px 10px; }
.rh-events__col { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rh-events__col--away { align-items: flex-end; text-align: right; }
.rh-ev { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; font: 12px/1.35 Arial, Helvetica, sans-serif; color: #d6ecd2; }
.rh-events__col--away .rh-ev { flex-direction: row-reverse; }
.rh-ev__txt { min-width: 0; overflow-wrap: anywhere; }
.rh-ev__txt a { color: inherit; text-decoration: none; }
.rh-ev__txt a:hover { color: #fff; text-decoration: underline; }
.rh-ev__min { color: #e9c65a; font-weight: bold; white-space: nowrap; }
.rh-ev__ico { flex-shrink: 0; display: inline-block; width: 12px; height: 12px; }
.rh-ev--g .rh-ev__ico { width: 13px; height: 13px; background: url(/viewer-next/ball.png) center / contain no-repeat; } /* the 2D viewer's ball */
.rh-ev--y .rh-ev__ico { width: 9px; border-radius: 2px; background: #f2cf2c; }
.rh-ev--r .rh-ev__ico { width: 9px; border-radius: 2px; background: #e5383b; }
.rh-ev--i .rh-ev__ico { border-radius: 2px; background:
  linear-gradient(#e5383b, #e5383b) center / 8px 2px no-repeat, linear-gradient(#e5383b, #e5383b) center / 2px 8px no-repeat, #fff; }

/* competition / date / stadium */
.rh-board__meta {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; padding: 8px 18px 10px;
  border-top: 1px solid rgba(255,255,255,0.08); font: 12px/1.4 Arial, Helvetica, sans-serif; color: #cfe4cb;
}
.rh-board__meta span { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.rh-board__meta .fa { color: #e9c65a; }
.rh-board__meta a { color: #fff; text-decoration: underline; }

/* attendance, weather, referee, game id: a darker band closing the board */
.rh-facts {
  display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px;
  border-top: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.08);
}
.rh-fact { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 12px; min-width: 0; background: #0f2716; text-align: center; }
.rh-fact__lab { font: bold 10px/1.3 Arial, Helvetica, sans-serif; color: #8fb58a; text-transform: uppercase; letter-spacing: 0.4px; }
.rh-fact__val { font: 13px/1.4 Arial, Helvetica, sans-serif; color: #f1f8ec; overflow-wrap: anywhere; }
.rh-fact__val a { color: #e9c65a; }
.rh-fact__val img { vertical-align: middle; max-height: 28px; }

/* tabs (relatorio_tabs.asp): pills on the page, no frame */
.rh-tabs { margin: 0; }
/* centred, on the same axis as the board and the pitch below */
.rh-tabs .nav-tabs.rh-tabs__nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; width: fit-content; max-width: 100%; margin: 0 auto; padding: 3px; list-style: none; box-sizing: border-box;
  border: 1px solid #d6e4b5; border-radius: 10px; background: #eef4df;
}
.rh-tabs .nav-tabs.rh-tabs__nav > li { float: none; margin: 0; }
.rh-tabs .nav-tabs.rh-tabs__nav:before, .rh-tabs .nav-tabs.rh-tabs__nav:after { display: none; }
.rh-tabs .nav-tabs.rh-tabs__nav > li > a {
  display: block; padding: 6px 14px; border: 0; border-radius: 7px; background: transparent;
  font: bold 12px/1.3 Tahoma, Geneva, sans-serif; color: #5b6650; text-decoration: none;
}
.rh-tabs .nav-tabs.rh-tabs__nav > li > a:hover, .rh-tabs .nav-tabs.rh-tabs__nav > li > a:focus { border: 0; background: transparent; color: #23301a; }
.rh-tabs .nav-tabs.rh-tabs__nav > li > a.active, .rh-tabs .nav-tabs.rh-tabs__nav > li > a.active:hover, .rh-tabs .nav-tabs.rh-tabs__nav > li > a.active:focus {
  border: 0; background: #2f6b22; color: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.rh-tabs .tab-content { margin-top: 4px; }
.rh-tabs .rh-com { margin: 6px 0 4px; }

/* commentary (relatorio_p1.asp): a plain minute-by-minute feed */
.rh-com { margin: 22px 0 8px; }
.rh-com__title {
  margin: 0 0 4px; padding: 0 2px; font: bold 13px/1.3 Arial, Helvetica, sans-serif;
  color: #2e6b12; text-transform: uppercase; letter-spacing: 0.5px;
}
.rh-com__feed { width: 100%; border-collapse: collapse; font: 13px/1.6 Tahoma, Geneva, sans-serif; color: #2d3426; }
.rh-com__feed td { padding: 9px 4px; vertical-align: top; border-top: 1px solid #e3ecd0; }
.rh-com__feed tr:first-child > td { border-top: 0; }
.rh-com__feed td[colspan] { display: none; }
.rh-com__feed td:first-child { width: 1%; padding-left: 2px; white-space: nowrap; font-weight: bold; color: #2e6b12; font-variant-numeric: tabular-nums; }
.rh-com__feed td:nth-child(2) { width: 6px; padding: 0; }
.rh-com__feed a, .rh-com__text a { color: #2e6b12; text-decoration: none; }
.rh-com__feed a:hover, .rh-com__text a:hover { text-decoration: underline; }
.rh-com__text { padding: 4px 2px; font: 13px/1.6 Tahoma, Geneva, sans-serif; color: #2d3426; overflow-wrap: anywhere; }
/* Minute-by-minute commentary (every user): a timeline of minute badges; goals, sent-offs, substitutions and the
   half-time / full-time analysis stand out; filter chips above. Live matches list the newest minute first. */
.rf-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.rf-filter { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border: 1px solid #cfdcb8; border-radius: 999px; background: #fff; color: #3d4a33; font: 600 12px/1.4 Tahoma, Geneva, sans-serif; cursor: pointer; }
.rf-filter b { color: #2e6b12; }
.rf-filter:hover { border-color: #2e6b12; }
.rf-filter.is-on { background: #2e6b12; border-color: #2e6b12; color: #fff; }
.rf-filter.is-on b { color: #fff; }
.rf-feed { position: relative; margin: 0; padding: 0; list-style: none; text-align: start; }
.rf-feed::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 23px; width: 2px; background: #e3ecd0; }
.rf-item { position: relative; display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px; padding: 6px 0; }
.rf-item[hidden] { display: none; }
.rf-min { position: relative; justify-self: center; align-self: start; min-width: 38px; margin-top: 2px; padding: 2px 6px; border: 1px solid #cfdcb8; border-radius: 999px; background: #fff; color: #2e6b12; font: 700 12px/1.4 Tahoma, Geneva, sans-serif; text-align: center; font-variant-numeric: tabular-nums; box-sizing: border-box; }
.rf-body { min-width: 0; padding: 3px 0; font: 13px/1.6 Tahoma, Geneva, sans-serif; color: #2d3426; overflow-wrap: anywhere; }
.rf-body a { color: #2e6b12; text-decoration: none; }
.rf-body a:hover { text-decoration: underline; }
.rf-pill { display: inline-flex; align-items: center; gap: 5px; margin-right: 7px; padding: 0 9px; border-radius: 999px; font: 700 11.5px/1.75 Tahoma, Geneva, sans-serif; vertical-align: 1px; white-space: nowrap; }
.rf-card { display: inline-block; width: 8px; height: 11px; border-radius: 2px; background: #d33a2c; vertical-align: -1px; }
.rf-item--goal .rf-min { border-color: #2e6b12; background: #2e6b12; color: #fff; }
.rf-item--goal .rf-body, .rf-item--card .rf-body, .rf-item--ht .rf-body, .rf-item--final .rf-body { padding: 8px 12px; border: 1px solid #cfe3b5; border-radius: 10px; background: #eef6e4; }
.rf-pill--goal { background: #2e6b12; color: #fff; }
.rf-item--card .rf-min { border-color: #d33a2c; color: #b02a1e; }
.rf-item--card .rf-body { border-color: #f1c9c4; background: #fdf1ef; }
.rf-pill--card { background: #fbe0dc; color: #a32018; }
.rf-pill--sub { background: #e4edf8; color: #1f4f86; }
.rf-item--ht .rf-body, .rf-item--final .rf-body { border-color: #e6dfc2; background: #f8f5e9; }
.rf-item--ht .rf-pill, .rf-item--final .rf-pill { background: #6b5d24; color: #fff; }
.rf-item--ht .rf-min, .rf-item--final .rf-min { border-color: #b9a95c; color: #6b5d24; }

/* weather in the facts band (relatorio_p1.asp rh_wx) */
.rh-fact__val .wx-ico { display: inline-block; width: 22px; height: 22px; margin-right: 6px; vertical-align: -6px; }   /* img/weather, include_files/weather_icons.asp */

/* stats tab (relatorio_stats.asp): home | label | away rows, viewer style; share bars added by relatorio_tabs.asp */
.rs-tbl, .rs-tbl > tbody { display: block; width: 100%; }
.rs-tbl { max-width: 760px; margin: 6px auto 0; font: 13px/1.4 Arial, Helvetica, sans-serif; color: #23301a; }
.rs-tbl tr.rs-row, .rs-tbl tr.rs-head {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(110px,190px) minmax(0,1fr); align-items: center; column-gap: 10px;
  padding: 6px 12px; border-radius: 8px;
}
.rs-tbl tr > td { display: block; width: auto !important; min-width: 0; padding: 0; overflow-wrap: anywhere; }
.rs-tbl tr > td:nth-child(1) { order: 2; }
.rs-tbl tr > td:nth-child(2) { order: 1; }
.rs-tbl tr > td:nth-child(3) { display: none; }
.rs-tbl tr > td:nth-child(4) { order: 3; }
.rs-tbl tr > td div[align] { text-align: inherit; }
.rs-tbl tr > td:nth-child(2), .rs-tbl tr > td:nth-child(2) div { text-align: left; }
.rs-tbl tr > td:nth-child(4), .rs-tbl tr > td:nth-child(4) div { text-align: right; }
.rs-tbl td.cabecalhos { text-align: center; font: bold 10px/1.3 Arial, Helvetica, sans-serif; color: #7a8570; text-transform: uppercase; letter-spacing: 0.4px; }
.rs-tbl .comentarios { font: 13px/1.4 Arial, Helvetica, sans-serif; color: #23301a; }
.rs-tbl tr.rs-head { padding-bottom: 8px; border-bottom: 2px solid #d6e4b5; border-radius: 0; }
.rs-tbl tr.rs-head tt, .rs-tbl tr.rs-head b { font: 800 15px/1.25 Arial, Helvetica, sans-serif; color: #1f3d10; }
.rs-tbl tr.rs-row:nth-child(even) { background: rgba(214,228,181,0.28); }
.rs-tbl tr.rs-row:hover { background: #eef6d8; }
.rs-tbl tr.rs-gap { display: block; height: 14px; }
.rs-tbl tr.rs-gap > td { display: none; }
.rs-tbl tr.rs-cmp { row-gap: 5px; }
.rs-tbl tr.rs-cmp .comentarios { font-weight: bold; font-size: 14px; font-variant-numeric: tabular-nums; }
.rs-tbl tr.rs-cmp td.rs-lead .comentarios { color: #1f5426; }
.rs-tbl td.rs-bar { order: 4; grid-column: 1 / -1; display: flex; gap: 3px; height: 6px; }
.rs-bar__h, .rs-bar__a { display: block; height: 100%; border-radius: 3px; min-width: 3px; }
.rs-bar__h { background: #7cb342; }
.rs-bar__a { background: #e0b43c; }
.rs-bar--none .rs-bar__h, .rs-bar--none .rs-bar__a { background: #dfe6d2; }
.rs-tbl a img { vertical-align: -2px; }

/* Action Zones tab (relatorio_zones.asp): sector ratings and ball location on one pitch, after PM-2026's VS mini-pitch */
.rz-bar { width: auto !important; margin: 4px auto 12px; }
.rz-bar td[width='50%'] { display: none; }
.rz-bar td { text-align: center; font: 12px/1.4 Tahoma, Geneva, sans-serif; color: #23301a; }
.rz-bar .butao {
  padding: 5px 10px; border: 1px solid #d6e4b5; border-radius: 8px; background: #fff;
  font: bold 12px Tahoma, Geneva, sans-serif; color: #23301a; cursor: pointer;
}
.rz-bar input.butao:hover { background: #eef6d8; }
.rz { max-width: 760px; margin: 0 auto 8px; text-align: left; }
.rz-teams { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 2px 8px; }
.rz-team { display: inline-flex; align-items: center; gap: 7px; min-width: 0; font: 800 14px/1.25 Arial, Helvetica, sans-serif; color: #1f3d10; }
.rz-team__name { min-width: 0; overflow-wrap: anywhere; }
.rz-dot { flex-shrink: 0; width: 10px; height: 10px; border-radius: 3px; }
/* each side in its club's shirt colour (set on .rz by the page), green/gold when unknown */
.rz-dot--h, .rz-gk--h, .rz-avg--h, .rz-vs__h { background: var(--rz-h, #7cb342); color: var(--rz-h-ink, #10240c); }
.rz-dot--a, .rz-gk--a, .rz-avg--a, .rz-vs__a { background: var(--rz-a, #e0b43c); color: var(--rz-a-ink, #2a1d00); }
.rz-vs__h, .rz-vs__a, .rz-gk { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35); }   /* dark kits on the dark pitch */
.rz-avg {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 6px;
  font: 800 12px/1 Arial, Helvetica, sans-serif; font-variant-numeric: tabular-nums;
}
.rz-avg .fa { font-size: 10px; opacity: 0.8; }
.rh-board__meta a.rh-board__comp { color: inherit; text-decoration: none; } .rh-board__meta a.rh-board__comp:hover { text-decoration: underline; }
.rz-vs__h .fa, .rz-vs__a .fa, .rz-gk__val .fa { font-size: 8px; opacity: 0.8; margin-right: 2px; vertical-align: 1px; }   /* the star before every rating, as the averages */
/* goalkeepers at their goals; the zone grid is inset so they never meet the middle-row pills */
.rz-gk {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 5px; border-radius: 6px;
  font: 800 12px/1 Arial, Helvetica, sans-serif; font-variant-numeric: tabular-nums; box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.rz-gk--h { left: 1.2%; }
.rz-gk--a { right: 1.2%; }
.rz-gk__lab { font-size: 8px; letter-spacing: 0.5px; opacity: 0.8; }

.rz-pitch {
  position: relative; direction: ltr; aspect-ratio: 105 / 68; overflow: hidden; border-radius: 12px;
  border: 1px solid #10301a;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 9.09%, rgba(0,0,0,0.05) 9.09% 18.18%),
    linear-gradient(180deg, #2f6b2a 0%, #1f4f22 100%);
  box-shadow: inset 0 0 40px rgba(0,0,0,0.3), 0 4px 14px -6px rgba(16,30,20,0.35);
}
.rz-pitch__mid, .rz-pitch__circle, .rz-pitch__box, .rz-pitch__six { position: absolute; border: 1.5px solid rgba(255,255,255,0.28); box-sizing: border-box; }
.rz-pitch__mid { top: 0; bottom: 0; left: 50%; width: 0; border-width: 0 0 0 1.5px; }
.rz-pitch__circle { left: 50%; top: 50%; height: 27%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; }
.rz-pitch__box { top: 20.5%; bottom: 20.5%; width: 15.7%; }
.rz-pitch__six { top: 36.5%; bottom: 36.5%; width: 5.2%; }
.rz-pitch__box--l, .rz-pitch__six--l { left: 0; border-left: 0; }
.rz-pitch__box--r, .rz-pitch__six--r { right: 0; border-right: 0; }
.rz-pitch__grid { position: absolute; inset: 0 7.5%; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); grid-template-rows: repeat(3, minmax(0,1fr)); }
.rz-cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0; }
.rz-cell:not(:nth-child(3n)) { border-right: 1px dashed rgba(255,255,255,0.16); }
.rz-cell:nth-child(-n+6) { border-bottom: 1px dashed rgba(255,255,255,0.16); }
.rz-cell__heat {
  position: absolute; left: 50%; top: 50%; width: 92%; height: 92%; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, var(--heat) 0%, transparent 70%); pointer-events: none;
}
.rz-heat1 { --heat: rgba(255,255,255,0.07); }
.rz-heat2 { --heat: rgba(250,222,90,0.5); }
.rz-heat3 { --heat: rgba(245,160,40,0.62); }
.rz-heat4 { --heat: rgba(235,75,55,0.7); }
.rz-vs {
  position: relative; display: inline-flex; gap: 2px; padding: 2px; border-radius: 7px; background: rgba(10,25,14,0.7);
  font: 800 13px/1 Arial, Helvetica, sans-serif; font-variant-numeric: tabular-nums; box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.rz-vs__h, .rz-vs__a { min-width: 30px; padding: 5px 6px; border-radius: 5px; text-align: center; box-sizing: border-box; }
.rz-vs__sep { display: grid; place-items: center; padding: 0 4px; font: bold 9px/1 Arial, Helvetica, sans-serif; color: rgba(255,255,255,0.7); text-transform: uppercase; letter-spacing: 0.5px; }
.rz-vs__h:not(.is-win), .rz-vs__a:not(.is-win), .rz-gk:not(.is-win), .rz-avg:not(.is-win) { filter: saturate(0.45) brightness(0.92); }
.rz-cell__pct { position: relative; font: 800 12px/1 Arial, Helvetica, sans-serif; color: #f6e27a; text-shadow: 0 1px 2px rgba(0,0,0,0.6); font-variant-numeric: tabular-nums; }
.rz-legend { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 10px; margin-top: 8px; font: 11px/1.3 Arial, Helvetica, sans-serif; color: #5b6650; }
.rz-legend__swatch { width: 90px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #4f7f45, #f6d55a, #f0a030, #e5503c); }

/* ===== Starting Eleven (relatorio_tabs.asp), ported from the PM-2026 match report (styles-match-report.css).
   Classic adaptations: no outer card, green pitch (PM-2026's stripe layer had replaced its gradient), full names,
   a muted low-rating colour, classic fonts. ===== */
.mr-formations {
  --display: Arial, Helvetica, sans-serif; --ui: Tahoma, Geneva, sans-serif;
  --card: #fff; --ink: #23301a; --muted: #6b7760; --border: #dfe8cc; --cream-2: #eef4df;
  --accent: #4c9a1a; --accent-ink: #2e6b12; --accent-soft: #dff1c4; --gold: #e9c65a; --gold-deep: #c99a16;
  --r-high: #2f7d32; --r-mid: #c58a10; --r-low: #9a5b45;
  margin-top: 6px; text-align: left;
}
.mr-formations__head { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; padding: 4px 4px 10px; }
.mr-formations__team { display: flex; flex-direction: column; min-width: 0; }
.mr-formations__team--away { align-items: flex-end; text-align: right; }
.mr-formations__form-name { font: 800 15px/1.25 var(--display); color: #1f3d10; overflow-wrap: anywhere; }
.mr-formations__form-formation { margin-top: 2px; font: bold 11px/1.3 var(--ui); color: var(--accent-ink); letter-spacing: 0.3px; }
.mr-formations__form-style { margin-top: 1px; font: 11px/1.3 var(--ui); color: var(--muted); }

/* pitch */
.mr-pitch-wrap { position: relative; }
.mr-pitch {
  container-type: inline-size; /* name tags scale with it */
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; border: 1px solid #6a9a4a;
  /* light grass, like the old lineup frame: the dark scoreboard above stays the only dark block */
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.07) 0 6%, rgba(255,255,255,0) 6% 12%),
    linear-gradient(180deg, #8ec266 0%, #79b053 100%);
  box-shadow: inset 0 0 40px rgba(40,70,20,0.18), 0 4px 14px -8px rgba(16,30,20,0.3);
}
.mr-pitch__lines { position: absolute; inset: 0; pointer-events: none; }
.mr-pitch__mid-line, .mr-pitch__mid-circle, .mr-pitch__mid-dot, .mr-pitch__box, .mr-pitch__six, .mr-pitch__spot, .mr-pitch__d, .mr-pitch__corner { position: absolute; box-sizing: border-box; }
.mr-pitch__mid-line { top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-1px); background: rgba(255,255,255,0.75); }
.mr-pitch__mid-circle { top: 50%; left: 50%; width: 18%; aspect-ratio: 1; transform: translate(-50%, -50%); border: 2px solid rgba(255,255,255,0.75); border-radius: 50%; }
.mr-pitch__mid-dot { top: 50%; left: 50%; width: 6px; height: 6px; transform: translate(-50%, -50%); background: rgba(255,255,255,0.7); border-radius: 50%; }
.mr-pitch__box { top: 22%; bottom: 22%; width: 14%; border: 2px solid rgba(255,255,255,0.75); }
.mr-pitch__six { top: 36%; bottom: 36%; width: 5%; border: 2px solid rgba(255,255,255,0.75); }
.mr-pitch__box--l, .mr-pitch__six--l { left: 0; border-left: 0; }
.mr-pitch__box--r, .mr-pitch__six--r { right: 0; border-right: 0; }
.mr-pitch__spot { top: 50%; width: 5px; height: 5px; transform: translate(-50%, -50%); background: rgba(255,255,255,0.7); border-radius: 50%; }
.mr-pitch__spot--l { left: 10%; }
.mr-pitch__spot--r { right: 10%; transform: translate(50%, -50%); }
.mr-pitch__d { top: 50%; width: 8%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255,255,255,0.75); }
.mr-pitch__d--l { left: 10%; transform: translate(0, -50%); clip-path: inset(0 0 0 50%); }
.mr-pitch__d--r { right: 10%; transform: translate(0, -50%); clip-path: inset(0 50% 0 0); }
.mr-pitch__corner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.4); }
.mr-pitch__corner--tl { top: 0; left: 0; border-width: 0 0 2px 2px; border-bottom-left-radius: 100%; }
.mr-pitch__corner--tr { top: 0; right: 0; border-width: 0 2px 2px 0; border-bottom-right-radius: 100%; }
.mr-pitch__corner--bl { bottom: 0; left: 0; border-width: 2px 0 0 2px; border-top-left-radius: 100%; }
.mr-pitch__corner--br { bottom: 0; right: 0; border-width: 2px 2px 0 0; border-top-right-radius: 100%; }
.mr-pitch__home-side, .mr-pitch__away-side { position: absolute; top: 8px; font: 800 10px/1 var(--display); letter-spacing: 1.5px; color: rgba(255,255,255,0.9); text-shadow: 0 1px 2px rgba(0,0,0,0.25); text-transform: uppercase; }
.mr-pitch__home-side { left: 12px; }
.mr-pitch__away-side { right: 12px; }

/* players */
.mr-pp { position: absolute; z-index: 1; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 1px; width: 96px; }
.mr-pp--mom { z-index: 2; }
.mr-pp.is-hl { z-index: 5; }   /* the man of the match while his side box is hovered */
.mr-pp.is-hl .mr-pp__shirt { transform: scale(1.18); filter: drop-shadow(0 0 5px #ffd54a) drop-shadow(0 0 2px #ffd54a); transition: transform 0.15s; }
.mr-pp__shirt { position: relative; width: 36px; height: 38px; display: grid; place-items: center; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)); }
.mr-pp__shirt svg { width: 100%; height: 100%; }
.mr-pp__shirt .pm-art { display: block; width: 100%; height: 100%; transform: scale(0.9); }   /* drawn kits fill the box: as big as the plain shirt */
.mr-pp__shirt .pm-art svg { display: block; }
.mr-pp__num { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 3px; font: 900 11px/1 var(--display); text-shadow: 0 0 2px rgba(0,0,0,0.35); pointer-events: none; }
.mr-pp__rating {
  position: absolute; top: 0; right: calc(100% + 2px); min-width: 22px; height: 18px; padding: 0 4px; box-sizing: border-box; white-space: nowrap;   /* beside the shirt, above the goal/assist badges */
  display: inline-grid; place-items: center; border-radius: 5px; border: 1.5px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  font: 800 10px/1 var(--display); font-variant-numeric: tabular-nums; color: #fff;
}
.mr-pp__rating--low { background: var(--r-low); }
.mr-pp__rating--mid { background: var(--r-mid); }
.mr-pp__rating--high { background: var(--r-high); }
.mr-pp__rating--mom { gap: 2px; display: inline-flex; align-items: center; }   /* man of the match: the star first */
.mr-pp__mom-star { color: #ffd54a; font-size: 10px; line-height: 1; text-shadow: 0 0 2px rgba(0,0,0,0.5); }
/* the man of the match, named under the team names */
.mr-mom { display: none; align-items: center; justify-content: center; flex-wrap: wrap; gap: 5px; margin: 0 0 8px; font: 13px/1.3 Arial, Helvetica, sans-serif; color: #2b3a20; }   /* phones only: desktop has the side box */
.mr-mom a { font-weight: bold; color: #1f3d10; } .mr-mom a:hover { text-decoration: underline; }
.mr-mom b { padding: 2px 6px; border-radius: 5px; background: var(--r-high, #2f7d32); color: #fff; font: 800 12px/1 var(--display, Arial); }
.mr-mom__star { color: #c9971c; font-size: 15px; line-height: 1; }
/* side box (Match Report): the man of the match as the PM-2026 report's card - star, name, team/goals, rating */
.rel-mom { padding: 8px !important; text-align: left; }   /* its own side box */
.rel-mom__star { color: #c9971c; font-size: 13px; }
a.rel-mom__card { display: flex; align-items: center; gap: 10px; padding: 4px 2px; border-radius: 8px; text-decoration: none; color: #1f2a17; }   /* on the box itself, no card of its own */
a.rel-mom__card:hover { background: rgba(255,255,255,0.35); text-decoration: none; }
.rel-mom__avatar { flex-shrink: 0; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(160deg, #f6d36b, #c9971c); color: #fff; font: 22px/1 Arial, Helvetica, sans-serif; text-shadow: 0 1px 2px rgba(0,0,0,0.25); }   /* a star tile */
.rel-mom__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rel-mom__name { font: 800 13px/1.25 Arial, Helvetica, sans-serif; color: #1f2a17; overflow-wrap: anywhere; }
.rel-mom__sub { margin-top: 2px; font: 11px/1.3 Arial, Helvetica, sans-serif; color: #6b7660; overflow-wrap: anywhere; }
.rel-mom__sub b { color: #2f7d32; }
.rel-mom__rating { flex-shrink: 0; font: 900 20px/1 Arial, Helvetica, sans-serif; color: #2f7d32; font-variant-numeric: tabular-nums; }
.mr-pp__mom {
  position: absolute; top: -6px; right: -8px; z-index: 2; width: 18px; height: 18px; display: inline-grid; place-items: center;
  border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.4);
  background: radial-gradient(circle at 30% 30%, #fbe7a0, var(--gold-deep)); color: #4a3200; font-size: 11px; line-height: 1; font-weight: 900;
}
a.mr-pp__name, a.mr-pp__name:link, a.mr-pp__name:visited, a.mr-pp__name:active {
  max-width: 96px; padding: 1px 5px; border-radius: 4px; background: rgba(255,255,255,0.93); box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  font: 600 10px/1.25 var(--ui); color: var(--ink); text-align: center; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; /* one line; the full name on hover */
  max-width: min(96px, 11.5cqw); /* narrower than the gap between columns on a small pitch */
}
a.mr-pp__name:hover { text-decoration: underline; }
/* the keeper stands near the goal line: a narrower tag that wraps stays inside the pitch */
.mr-pp--gk { width: 64px; }
.mr-pp--gk a.mr-pp__name, .mr-pp--gk a.mr-pp__name:link, .mr-pp--gk a.mr-pp__name:visited { max-width: min(64px, 11.5cqw); }
.mr-pp__name--cap::before {
  content: "C"; display: inline-grid; place-items: center; width: 11px; height: 11px; margin-right: 3px; vertical-align: -1px;
  border-radius: 3px; background: var(--gold); color: #3a2400; font: 900 8px/1 var(--display);
}
/* event badges sit beside the bottom of the shirt (goals/assists left, off/cards/injury right), not in a row of their own */
.mr-pp__badges { position: absolute; top: 20px; display: flex; align-items: center; gap: 2px; pointer-events: auto; }
.mr-pp__badges--l { right: calc(50% + 14px); flex-direction: row-reverse; }
.mr-pp__badges--r { left: calc(50% + 14px); }
.mr-pp__badges:empty { display: none; }
.mr-pp__badge {
  display: inline-flex; align-items: center; justify-content: center; gap: 1px; min-width: 16px; height: 16px; padding: 0 2px; box-sizing: border-box;
  border-radius: 4px; border: 1.5px solid #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.3); white-space: nowrap;
  font: 900 10px/1 var(--display); color: #fff;
}
.mr-pp__badge b { font: 900 9px/1 var(--display); }
.mr-pp__badge--goal { background: #1f5426; }
.mr-pp__badge--assist { background: #2f62b0; }
.mr-pp__badge--assist img { width: 10px; height: 10px; object-fit: contain; display: block; }
.mr-pp__badge--yellow { width: 11px; min-width: 11px; background: #f2cf2c; }
.mr-pp__badge--red { width: 11px; min-width: 11px; background: #e5383b; }
.mr-pp__badge--injury { background: #c0392b; }
.mr-pp__badge--out { background: #8a4a3a; font-size: 11px; }

/* managers + substitutions */
.mr-roster-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 16px 2px 4px; }
.mr-rfoot__col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mr-manager { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--cream-2); }
.mr-manager__avatar {
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(160deg, #5f8f58, #2f5a2a); color: #fff; font: 800 16px/1 var(--display); text-decoration: none;
}
a.mr-manager__avatar:hover { filter: brightness(1.05); text-decoration: none; }
.mr-manager__avatar--bot { background: linear-gradient(160deg, #8a9bb3, #4a5d78); }
.mr-manager__avatar--face { background: #fff; padding: 0; place-items: start; }
.mr-manager__avatar--face .mr-face { position: relative; display: block; width: 80px; height: 80px; transform: scale(0.6); transform-origin: top left; pointer-events: none; }
.mr-manager__avatar--face .mr-face img { position: absolute; top: 0; left: 0; width: 80px; height: 80px; }
.mr-manager__body { display: flex; flex-direction: column; min-width: 0; }
.mr-manager__name { font: 800 14px/1.25 var(--display); color: var(--accent-ink); overflow-wrap: anywhere; }
a.mr-manager__name:hover { text-decoration: underline; }
.mr-manager__role { margin-top: 1px; font: bold 10px/1.3 var(--ui); color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; overflow-wrap: anywhere; }
.mr-subs__title { margin: 8px 2px 0; font: bold 11px/1.3 var(--display); color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.mr-sub { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 7px 2px; border-bottom: 1px solid var(--border); }
.mr-sub:last-child { border-bottom: 0; }
.mr-sub { transition: background-color 0.15s; } .mr-sub.is-hl { background: #fff1b8; box-shadow: inset 3px 0 0 #e0a800; }   /* who came on, while his starter's arrow is hovered */
.mr-pp__badge--out { cursor: default; }
.mr-sub__body { display: flex; flex-direction: column; min-width: 0; }
.mr-sub__title { font: 600 13px/1.35 var(--ui); color: var(--ink); overflow-wrap: anywhere; }
.mr-sub__title--empty { color: var(--muted); font-weight: normal; font-style: italic; }
.mr-sub__in { margin-right: 4px; font: 800 11px/1 var(--display); color: var(--accent); }
.mr-sub__ev { display: inline-flex; align-items: center; gap: 2px; margin-left: 3px; vertical-align: -2px; white-space: nowrap; font: 900 11px/1 var(--display); }
.mr-sub__ev--goal { font-size: 12px; letter-spacing: -1px; }
.mr-sub__ev--assist { height: 16px; padding: 0 3px; border-radius: 4px; background: #2f62b0; color: #fff; font-size: 10px; }
.mr-sub__ev--assist img { width: 10px; height: 10px; object-fit: contain; display: block; }
.mr-sub__ev--yellow, .mr-sub__ev--red { width: 9px; height: 13px; border-radius: 2px; background: #f2cf2c; }
.mr-sub__ev--red { background: #e5383b; }
.mr-sub__out { margin-top: 1px; font: 11px/1.3 var(--ui); color: var(--muted); overflow-wrap: anywhere; }
.mr-sub__out::before { content: "\2193\00a0"; color: var(--r-low); font-weight: 900; }
a.mr-sub__link, a.mr-sub__link:link, a.mr-sub__link:visited, a.mr-sub__link:active { color: inherit; text-decoration: none; }   /* players link as on the pitch */
a.mr-sub__link:hover { text-decoration: underline; }
.mr-sub__rating { padding: 4px 8px; border-radius: 6px; font: 800 13px/1 var(--display); font-variant-numeric: tabular-nums; color: #fff; }
.mr-sub__rating--low { background: var(--r-low); }
.mr-sub__rating--mid { background: var(--r-mid); }
.mr-sub__rating--high { background: var(--r-high); }

/* phones: a list per team under the pitch (the pitch stands up when the phone is held upright, below) */
.mr-lineup-mobile { display: none; }

@media (max-width: 1180px) {
  .mr-pp { width: 84px; }
  a.mr-pp__name, a.mr-pp__name:link, a.mr-pp__name:visited, a.mr-pp__name:active { max-width: min(84px, 11.5cqw); font-size: 9.5px; }
  .rh-board a.rh-team__name { font-size: 18px; }
}
@media (max-width: 820px) {
  .mr-mom { display: flex; }   /* the side box is far below on phones */
  /* phones: each team's manager, then its players, then its substitutions (not both lists, then both managers) */
  .rh-tabs .tab-content > .mr-formations.active { display: flex; flex-direction: column; }
  .mr-formations .mr-lineup-mobile, .mr-formations .mr-roster-foot, .mr-formations .mr-rfoot__col { display: contents; }
  .mr-formations .mr-mlist--h { order: 2; } .mr-formations .mr-mlist--a { order: 5; }
  .mr-formations .mr-rfoot__col > * { order: 3; } .mr-formations .mr-rfoot__col > .mr-manager { order: 1; margin-top: 12px; }
  .mr-formations .mr-rfoot__col--away > * { order: 6; } .mr-formations .mr-rfoot__col--away > .mr-manager { order: 4; }
  .mr-formations .mr-mlist { margin-top: 6px; }
  /* the substitutions as a card under the team's list (they lost their column when it was unwrapped) */
  .mr-formations .mr-subs__title { margin: 8px 0 0; padding: 9px 12px; background: var(--cream-2); border: 1px solid var(--border); border-bottom: 0; border-radius: 12px 12px 0 0; }
  .mr-formations .mr-sub { padding: 8px 12px; background: var(--card); border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
  .mr-formations .mr-rfoot__col > .mr-sub:last-child { border-bottom: 1px solid var(--border); border-radius: 0 0 12px 12px; }
  .mr-formations .mr-rfoot__col--away > .mr-manager { margin-top: 24px; }   /* a clear break between the two teams */
  .rh-board__main { gap: 8px; padding: 12px 10px 6px; }
  .rh-team, .rh-team--away { flex-direction: column; justify-content: center; text-align: center; gap: 6px; }
  .rh-team--away .rh-team__kit { order: -1; }
  .rh-board a.rh-team__name { font-size: 15px; }
  .rh-score__nums { font-size: 28px; padding: 4px 10px; }
  .rh-events { gap: 4px 12px; padding: 0 10px 8px; }
  .rh-ev { font-size: 11px; }
  .rh-facts { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .rh-tabs .nav-tabs.rh-tabs__nav { width: 100%; }
  .rh-tabs .nav-tabs.rh-tabs__nav > li { flex: 1 1 auto; }
  .rh-tabs .nav-tabs.rh-tabs__nav > li > a { padding: 10px 10px; text-align: center; }
  .rh-com__feed, .rh-com__text { font-size: 12.5px; }
  .rh-com__feed td { padding: 8px 3px; }
  .rf-feed::before { left: 19px; }
  .rf-item { grid-template-columns: 40px minmax(0,1fr); gap: 9px; }
  .rf-min { min-width: 34px; font-size: 11.5px; padding: 2px 4px; }
  .rf-body { font-size: 12.5px; }
  .rf-item--goal .rf-body, .rf-item--card .rf-body, .rf-item--ht .rf-body, .rf-item--final .rf-body { padding: 7px 10px; }
  .rs-tbl tr.rs-row, .rs-tbl tr.rs-head { grid-template-columns: minmax(0,1fr) minmax(84px,120px) minmax(0,1fr); padding: 6px 4px; column-gap: 6px; }
  .rs-tbl, .rs-tbl .comentarios { font-size: 12px; }
  .rs-tbl tr.rs-head tt, .rs-tbl tr.rs-head b { font-size: 13px; }
  .rz-pitch { aspect-ratio: 105 / 84; }
  .rz-team { font-size: 12px; gap: 5px; }
  .rz-vs { font-size: 11px; }
  .rz-vs__h, .rz-vs__a { min-width: 24px; padding: 4px 3px; }
  .rz-vs__sep { padding: 0 2px; font-size: 8px; }
  .rz-gk { padding: 3px 3px; font-size: 11px; }
  .rz-gk__lab { font-size: 7px; }
  .rz-cell { gap: 4px; }
  .rz-cell__pct { font-size: 10px; }
  .mr-pitch-wrap { margin-bottom: 4px; }
  .mr-formations__head { grid-template-columns: 1fr 1fr; padding: 0 2px 8px; }
  .mr-roster-foot { grid-template-columns: 1fr; gap: 12px; }
  .mr-lineup-mobile { display: flex; flex-direction: column; gap: 12px; }
  .mr-mlist { overflow: hidden; border-radius: 12px; background: var(--card); border: 1px solid var(--border); }
  .mr-mlist__head { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: var(--cream-2); border-bottom: 1px solid var(--border); }
  .mr-mlist__dot { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: #7cb342; }
  .mr-mlist--a .mr-mlist__dot { background: #e0b43c; }
  .mr-mlist__name { flex: 1; min-width: 0; font: 800 13px/1.25 var(--display); color: var(--ink); overflow-wrap: anywhere; }
  .mr-mlist__formation { flex-shrink: 0; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font: bold 11px/1 var(--display); }
  .mr-mlist__rows { list-style: none; margin: 0; padding: 0; }
  .mr-mlist__row { display: grid; grid-template-columns: 24px minmax(0,1fr) auto auto; gap: 8px; align-items: center; min-height: 44px; padding: 4px 12px; box-sizing: border-box; border-bottom: 1px solid var(--border); font-size: 12px; }
  .mr-mlist__row:last-child { border-bottom: 0; }
  .mr-mlist__row.is-mom { background: #fdf6dc; }
  .mr-mlist__num { text-align: center; font: 800 12px/1 var(--display); color: var(--muted); font-variant-numeric: tabular-nums; }
  .mr-mlist__name-cell { display: inline-flex; align-items: center; gap: 5px; min-width: 0; color: var(--ink); font-weight: 600; text-decoration: none; }
  .mr-mlist__pname { min-width: 0; overflow-wrap: anywhere; }
  .mr-mlist__cap { flex-shrink: 0; display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 3px; background: var(--gold); color: #3a2400; font: 900 9px/1 var(--display); }
  .mr-mlist__mom { flex-shrink: 0; color: var(--gold-deep); font-size: 13px; line-height: 1; }
  .mr-mlist__events { display: inline-flex; align-items: center; justify-content: flex-end; gap: 3px; }
  .mr-mlist__ev { display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 3px; box-sizing: border-box; border-radius: 4px; font-size: 9px; line-height: 1; color: #fff; }
  .mr-mlist__ev b { margin-left: 2px; font: 900 9px/1 var(--display); }
  .mr-mlist__ev--goal { background: #1f5426; }
  .mr-mlist__ev--yellow { width: 11px; min-width: 11px; padding: 0; background: #f2cf2c; }
  .mr-mlist__ev--red { width: 11px; min-width: 11px; padding: 0; background: #e5383b; }
  .mr-mlist__ev--injury { background: #c0392b; }
  .mr-mlist__ev--out { background: #8a4a3a; font-size: 11px; font-weight: 900; }
  .mr-mlist__ev--assist { padding: 0 2px; background: #2f62b0; }
  .mr-mlist__ev--assist img { display: block; width: 10px; height: 10px; }
  .mr-mlist__rating { display: inline-grid; place-items: center; min-width: 34px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 6px; font: 800 12px/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
  .mr-mlist__rating--low { background: var(--r-low); }
  .mr-mlist__rating--mid { background: var(--r-mid); }
  .mr-mlist__rating--high { background: var(--r-high); }
}
/* phones held upright: the pitch stands up - home at the bottom attacking up, away at the top - the pitch turned a
   quarter (so both teams keep their flanks): a chip at (x, y) on the lying pitch goes to (y, 100 - x); the lines are
   drawn lying and turned; --dx is the page script's sideways push between chips in the same row */
@media (max-width: 820px) and (orientation: portrait) {
  .mr-pitch-wrap { max-width: 440px; width: 100%; margin: 0 auto 4px; }
  .mr-pitch {
    --vert: 1; aspect-ratio: 9 / 14;
    background-image:
      repeating-linear-gradient(180deg, rgba(255,255,255,0.07) 0 6%, rgba(255,255,255,0) 6% 12%),
      linear-gradient(90deg, #8ec266 0%, #79b053 100%);
  }
  .mr-pitch__lines { inset: auto; left: 50%; top: 50%; width: calc(100cqw * 14 / 9); height: 100cqw; transform: translate(-50%, -50%) rotate(-90deg); }
  .mr-pp, .mr-pp--gk { left: calc(var(--y) + var(--dx, 0px)) !important; top: calc(100% - var(--x)) !important; width: 72px; }
  a.mr-pp__name, a.mr-pp__name:link, a.mr-pp__name:visited, a.mr-pp__name:active,
  .mr-pp--gk a.mr-pp__name, .mr-pp--gk a.mr-pp__name:link, .mr-pp--gk a.mr-pp__name:visited { max-width: min(72px, 18cqw); }
  .mr-pitch__home-side { top: auto; bottom: 8px; left: 10px; }
  .mr-pitch__away-side { top: 8px; left: 10px; right: auto; }
  .mr-pitch__arrow { display: inline-block; transform: rotate(-90deg); }   /* -> up, <- down */
}
/* phones held sideways: the keepers stand by the goal lines, so their rating goes above the shirt, inside the pitch */
@media (max-width: 820px) and (orientation: landscape) {
  .mr-pp--gk .mr-pp__rating { top: auto; right: auto; bottom: calc(100% + 1px); left: 50%; transform: translateX(-50%); }
}
@media (max-width: 520px) {
  .rh-tabs .nav-tabs.rh-tabs__nav { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
}
