/* Match analysis v2 (plan 2026-11-27): the overview prototype's (page 17) look, inside v1's shell (layout.css: the
   pinned stage, tabs, sheets). Every rule sits under .ma2 so the site's own .card / .tab / .chip never meet it. */
.ma2 { --navy: #0B1D33; --teal: #0891B2; --teal-d: #0E7490; --teal-soft: #ECFEFF; --amber: #D97706; --amber-d: #B45309;
  --amber-soft: #FEF3C7; --bg: #F1F5F9; --line: #E2E8F0; --text: #0F172A; --muted: #64748B; --soft: #94A3B8; }
.ma2 h1, .ma2 h2, .ma2 h3 { font-family: 'Sora', sans-serif; color: var(--navy); margin: 0; text-wrap: balance; }
.ma2 .ma-tabpanel h2 { font-size: 16px; margin-bottom: 10px; } .ma2 h3 { font-size: 14px; }
.ma2 .s1 { --side: var(--teal); --side-d: var(--teal-d); --side-soft: var(--teal-soft); }
.ma2 .s2 { --side: var(--amber); --side-d: var(--amber-d); --side-soft: var(--amber-soft); }
/* core.js: team 1 started far from the camera, so team 1 is orange and team 2 blue (Bryan 11-28) */
.ma2.ma2-o1 .s1 { --side: var(--amber); --side-d: var(--amber-d); --side-soft: var(--amber-soft); }
.ma2.ma2-o1 .s2 { --side: var(--teal); --side-d: var(--teal-d); --side-soft: var(--teal-soft); }

/* "Analysis failed" box (a job whose who-switch did not finish): above the stage and tabs, both tabs */
.ma2-failed { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 14px; padding: 14px 16px;
  background: #FEF2F2; border: 2px solid #DC2626; border-radius: 12px; color: #7F1D1D; }
.ma2-failed svg { flex: none; color: #DC2626; margin-top: 1px; }
.ma2-failed strong { display: block; font-family: 'Sora', sans-serif; font-size: 18px; color: #B91C1C; }
.ma2-failed p { margin: 2px 0 0; font-size: 14px; line-height: 1.45; }
@media (max-width: 1023px) { .ma2-failed { margin: 0 12px 12px; } }

/* "Tap to open" (Bryan 11-27): a card that opens a sheet (Quality, a badge) carries the round chevron (M.GO); it
   darkens on hover / focus and dips when pressed. Cards that open nothing get neither. */
.ma2 .go { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border-radius: 999px; background: var(--bg); transition: background .15s, transform .15s; }
.ma2 .go svg { width: 14px; height: 14px; fill: none; stroke: var(--navy); stroke-width: 2.4; stroke-linecap: round;
  stroke-linejoin: round; transition: stroke .15s; }
.ma2 button.q, .ma2 .bd { cursor: pointer; transition: border-color .15s, transform .1s; }
.ma2 button.q:focus-visible, .ma2 .bd:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-color: var(--muted); }
.ma2 button.q:focus-visible .go, .ma2 .bd:focus-visible .go { background: var(--navy); }
.ma2 button.q:focus-visible .go svg, .ma2 .bd:focus-visible .go svg { stroke: #fff; }
.ma2 button.q:active, .ma2 .bd:active { transform: scale(.98); }
@media (hover: hover) {
  .ma2 button.q:hover, .ma2 .bd:hover { border-color: var(--muted); }
  .ma2 button.q:hover .go, .ma2 .bd:hover .go { background: var(--navy); transform: translateX(2px); }
  .ma2 button.q:hover .go svg, .ma2 .bd:hover .go svg { stroke: #fff; }
  .ma2 .bd:hover .medal { transform: translateY(-2px) scale(1.04); }
}

/* Stage: the eval bar beside the video; the chance line in the now bar */
.ma2-vid { display: flex; align-items: stretch; background: #000; }
.ma2-vid .ma-video { flex: 1; min-width: 0; }
.ma2-eval { position: relative; flex: none; width: 14px; background: var(--amber); overflow: hidden; transition: opacity .3s; }
.ma2-eval-fill { position: absolute; left: 0; right: 0; bottom: 0; height: 50%; background: var(--teal); }   /* stage.js eases it */
.ma2-eval-mid { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255,255,255,.55); }
.ma2-eval.idle { opacity: .35; }
.ma2-eval.is-swap { background: var(--teal); } .ma2-eval.is-swap .ma2-eval-fill { background: var(--amber); }   /* sides switched */
/* Fullscreen: stage.js moves #ma2-eval into the video-js player so the browser keeps it in fullscreen */
.ma2 .video-js.vjs-fullscreen .ma2-eval { position: absolute; left: 0; top: 0; bottom: 0; z-index: 3; pointer-events: none; }
.ma2 .video-js.vjs-fullscreen .vjs-tech, .ma2 .video-js.vjs-fullscreen .vjs-control-bar { left: 14px; width: calc(100% - 14px); }
.ma2 .video-js.vjs-fullscreen .ma-skip { left: 22px; }
.ma2-chance { font-size: 12px; font-weight: 600; color: #CBD5E1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ma2-chance b.t1 { color: #67E8F9; } .ma2-chance b.t2 { color: #FCD34D; }
.ma2-o1 .ma2-chance b.t1 { color: #FCD34D; } .ma2-o1 .ma2-chance b.t2 { color: #67E8F9; }
/* The X beside a clip list's title: back to the rallies (player.js toRallies, Bryan 11-28) */
.ma2-now-head { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; }
.ma2-now-head .ma-now-title { min-width: 0; }
.ma2-now-x { flex: none; width: 24px; height: 24px; display: grid; place-items: center; padding: 0; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; }
.ma2-now-x[hidden] { display: none; }   /* display: grid above would beat hidden */
.ma2-now-x:hover { background: rgba(255,255,255,.2); }
.ma2-now-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* Cards, rows, chips, play buttons */
.ma2 .sec { margin-bottom: 22px; }
.ma2 .card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.ma2 .card + .card { margin-top: 8px; }
.ma2 .row { display: flex; align-items: center; gap: 10px; }
.ma2 .grow { flex: 1; min-width: 0; }
.ma2 .muted { color: var(--muted); font-size: 13px; }
.ma2 .chip { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; color: #475569; background: var(--bg);
  border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.ma2 .chip.best { color: var(--teal-d); background: var(--teal-soft); }
.ma2 .play { flex: none; height: 34px; min-height: 0; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  cursor: pointer; font-size: 13px; font-weight: 700; color: var(--navy); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ma2 .play:hover { border-color: var(--soft); background: #fff; }
.ma2 .play svg { width: 12px; height: 12px; fill: currentColor; }
.ma2 .play.primary, .ma2 .play.is-now { background: var(--navy); border-color: var(--navy); color: #fff; }

/* Match tab */
.ma2 .score { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; align-items: center; }
.ma2 .score .tm { display: flex; align-items: center; gap: 8px; font-weight: 700; min-width: 0; }
.ma2 .score .tm i { width: 10px; height: 10px; border-radius: 999px; background: var(--side); flex: none; }
.ma2 .score .pts { font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 800; color: var(--muted); text-align: right; }
.ma2 .score .pts.won { color: var(--navy); }
.ma2 .score .tm-box { min-width: 0; }
.ma2 .score .who { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px 18px; }
.ma2 .pl-chip, .ma2 .pl-link { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; color: var(--navy);
  background: #fff; border: 1.5px solid var(--line); text-decoration: none; transition: border-color .15s; }
.ma2 .pl-chip { font-size: 13px; font-weight: 600; border-radius: 999px; padding: 3px 6px 3px 10px; }
.ma2 .pl-chip span, .ma2 .pl-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma2 .pl-chip svg, .ma2 .pl-link svg { width: 14px; height: 14px; flex: none; color: var(--muted); }
.ma2 .pl-chip:hover, .ma2 .pl-chip:focus-visible, .ma2 .pl-link:hover, .ma2 .pl-link:focus-visible { border-color: var(--navy); }
.ma2 .pl-plain { font-size: 13px; font-weight: 600; color: var(--muted); padding: 4.5px 0; }
.ma2 .won-tag { font-size: 11px; font-weight: 800; color: var(--side-d); background: var(--side-soft); border-radius: 999px; padding: 1px 8px; }
.ma2 .headline { font-family: 'Sora', sans-serif; font-size: 18px; font-weight: 700; color: var(--navy); line-height: 1.35;
  margin: 4px 0 12px; text-wrap: balance; }
.ma2 .reason { display: flex; gap: 10px; align-items: center; }
.ma2 .reason .num { flex: none; width: 24px; height: 24px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 12px;
  font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ma2 .flow { position: relative; }
.ma2 .flow + .flow { margin-top: 14px; }
.ma2 .flow h3 { margin-bottom: 4px; }
.ma2 .flow > svg { display: block; width: 100%; height: auto; overflow: visible; }
.ma2 .flow .hit { fill: transparent; cursor: pointer; }
.ma2 .flow-tip { position: absolute; top: 0; left: 0; background: var(--navy); color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 8px; border-radius: 8px; width: max-content; max-width: 100%; text-align: center; pointer-events: none; }
.ma2 .flow-tip.pin { pointer-events: auto; text-align: left; padding: 10px 12px; border-radius: 12px; font-weight: 500; max-width: 250px;
  box-shadow: 0 8px 24px rgba(11, 29, 51, .22); z-index: 2; }
.ma2 .flow-tip .ft-sc { display: flex; align-items: baseline; gap: 8px; }
.ma2 .flow-tip .ft-sc b { font-family: 'Sora', sans-serif; font-size: 20px; font-weight: 800; }
.ma2 .flow-tip .ft-sc span { font-size: 12px; color: #CBD5E1; }
.ma2 .flow-tip .ft-big { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-weight: 700; }
.ma2 .flow-tip .ft-big i { width: 10px; height: 10px; border-radius: 999px; border: 2px solid #fff; flex: none; }
.ma2 .flow-tip .play { display: flex; width: 100%; justify-content: center; margin-top: 10px; }
.ma2 .flow text.tp, .ma2 .flow text.fin { paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round;
  font-size: 11px; font-weight: 700; fill: #334155; }
.ma2 .flow text.fin { font-family: 'Sora', sans-serif; font-size: 13px; font-weight: 800; fill: var(--navy); }
.ma2 .trow { display: grid; grid-template-columns: 104px minmax(0,1fr); gap: 10px; align-items: center; padding: 8px 0;
  border-top: 1px solid var(--line); }
.ma2 .trow:first-child { border-top: 0; }
.ma2 .trow .lab { font-size: 13px; font-weight: 700; }
/* The five's rows that open a sheet (match_tab.js M.groupRow): the same row, a chevron at the end */
.ma2 .five .trow, .ma2 button.trow { grid-template-columns: 104px minmax(0,1fr) 24px; }   /* every bar ends level */
.ma2 button.trow { width: 100%; background: none; border: 0;
  border-top: 1px solid var(--line); font: inherit; color: inherit; text-align: left; cursor: pointer; }
.ma2 button.trow:first-child { border-top: 0; }
.ma2 button.trow:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 8px; }
@media (hover: hover) {
  .ma2 button.trow:hover .go { background: var(--navy); transform: translateX(2px); }
  .ma2 button.trow:hover .go svg { stroke: #fff; }
}
.ma2 .g-key { margin: 12px 0 2px; }
.ma2 .tbar { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 8px; align-items: center; font-size: 13px; }
.ma2 .tbar + .tbar { margin-top: 4px; }
.ma2 .tbar b { font-family: 'Sora', sans-serif; font-size: 13px; text-align: right; }
.ma2 .track { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.ma2 .track span { display: block; height: 100%; border-radius: 999px; background: var(--side); }
.ma2 .tbar.lead b { color: var(--side-d); }
.ma2 .key { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12px; font-weight: 600; color: #334155; margin-bottom: 4px; }
.ma2 .key span { display: inline-flex; align-items: center; gap: 5px; }
.ma2 .key i { width: 8px; height: 8px; border-radius: 999px; background: var(--side); }
.ma2 .moment-key { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #334155; margin-top: 6px; }
.ma2 .moment-key i { width: 12px; height: 12px; border-radius: 999px; border: 2px solid var(--navy); background: #fff; flex: none; }

/* Players tab: the picker (button tabs), the head, style scales, quality chips, plays */
.ma2 .pick { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; margin-bottom: 14px; }
.ma2 .pk { flex: 1; min-width: 0; height: 40px; padding: 0 6px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  cursor: pointer; font-size: 13px; font-weight: 700; color: var(--navy); display: inline-flex; align-items: center;
  justify-content: center; gap: 6px; }
.ma2 .pk:hover { border-color: var(--soft); }
.ma2 .pk[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.ma2 .pick .pk i { width: 8px; height: 8px; border-radius: 999px; background: var(--side); flex: none; }
.ma2 .pick .pk span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma2 .dupr { display: flex; gap: 8px; }
.ma2 .dupr div { text-align: center; background: var(--bg); border-radius: 10px; padding: 6px 12px; min-width: 84px; }
.ma2 button.dupr { border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 3px; cursor: pointer;
  align-items: center; font: inherit; }
.ma2 button.dupr:hover, .ma2 button.dupr:focus-visible { border-color: var(--navy); }
.ma2 button.dupr .info { margin: 0 6px 0 2px; }
.ma2 .dupr b { display: block; font-family: 'Sora', sans-serif; font-size: 20px; color: var(--navy); }
.ma2 .dupr small { font-size: 11px; font-weight: 700; color: var(--muted); }
.ma2 .scale { position: relative; height: 10px; border-radius: 999px; background: linear-gradient(90deg, #E2E8F0, #CBD5E1); margin: 8px 0 4px; }
.ma2 .scale i { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 999px;
  background: var(--side); border: 3px solid #fff; box-shadow: 0 1px 4px rgba(15,23,42,.35); }
.ma2 .card.off { opacity: .45; }
.ma2 .ends { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--muted); }
.ma2 .st-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ma2 .grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; }
.ma2 .grid2 .card + .card { margin-top: 0; }
.ma2 .q { display: flex; align-items: center; gap: 8px; width: 100%; font: inherit; color: inherit; text-align: left; }
.ma2 .q b { font-family: 'Sora', sans-serif; font-size: 22px; font-weight: 800; color: var(--navy); min-width: 34px; }
.ma2 .q .grow { font-size: 13px; }
.ma2 .q .lab { font-weight: 700; line-height: 16px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; }   /* a long label (Kitchen arrival beside 100 or a star) takes a 2nd line inside the same height */
.ma2 .q.low { opacity: .55; }
.ma2 .q .star { flex: none; width: 18px; height: 18px; margin-left: -4px; fill: var(--amber); }
.ma2 .shot .what { font-weight: 700; font-size: 14px; }
.ma2 .plays .shot { padding: 8px 0; border-top: 1px solid var(--line); }
.ma2 .plays .shot:first-child { border-top: 0; padding-top: 0; } .ma2 .plays .shot:last-child { padding-bottom: 0; }
.ma2 .chance { font-size: 12px; font-weight: 700; color: var(--muted); }
.ma2 .info { width: 22px; height: 22px; border-radius: 999px; border: 1.5px solid #94A3B8; background: #fff; color: #475569;
  font: 700 12px/1 Georgia, serif; cursor: help; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.ma2 .info:hover, .ma2 .info:focus-visible { border-color: var(--navy); color: var(--navy); }
.ma2 [data-tip] { cursor: help; }
.ma2 small.pct { font-size: max(10px, .55em); font-weight: 700; color: var(--soft); margin-left: 1px; }
/* The fixed sections of the players share one grid (subgrid), only the picked one shows; the rest flows after */
.ma2 #pbody { display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: repeat(4, auto); }
.ma2 #pbody .pl { grid-column: 1; grid-row: 1 / span 4; display: grid; grid-template-rows: subgrid; min-width: 0;
  grid-template-columns: minmax(0, 1fr); }   /* a long name ends in "...", the page never scrolls sideways */
.ma2 #pbody .pl:not(.on) { visibility: hidden; }
.ma2 .head .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ma2 .head h2.nm { margin-bottom: 2px; }
.ma2 .head .dupr { margin-top: 10px; }
.ma2 .head h2.nm-link { overflow: visible; }      /* the button's border sits left of the text, lined up with the team line */
.ma2 .head .pl-link { font: inherit; border-radius: 10px; padding: 1px 6px 1px 8.5px; margin-left: -10px; }

/* Tooltip box and the page's own sheet (v1's .ma-sheet: swipe down, Escape, backdrop) */
.ma2-tipbox { position: fixed; z-index: 1200; max-width: 240px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 600;
  line-height: 1.4; padding: 6px 9px; border-radius: 8px; pointer-events: none; }
.ma2-sheet .ma-sheet-panel { display: flex; flex-direction: column; max-height: 85vh; overflow: hidden; }
.ma2-sheet-top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ma2-sheet-top h2 { margin: 0; font-size: 16px; }
.ma2-sheet-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.ma2-sheet-body h3 { margin: 14px 0 6px; font-size: 13px; color: #475569; }
.ma2-sheet-body ul { margin: 0; padding-left: 18px; } .ma2-sheet-body li { margin: 4px 0; }
.ma2 .btn-close { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font: inherit;
  font-weight: 700; cursor: pointer; color: var(--navy); }
.ma2 .btn-close:hover { border-color: var(--navy); }
.ma2 .ms-n { display: block; font-size: 11px; font-weight: 600; color: var(--soft); }
.ma2 .ms-tabs { display: flex; gap: 6px; margin: 12px 0 10px; }
.ma2 .ms-grid { display: grid; grid-template-columns: repeat(var(--n), minmax(0,1fr)); gap: 6px; text-align: center; }
.ma2 .ms-grid b { font-family: 'Sora', sans-serif; font-size: 17px; font-weight: 800; color: var(--navy); }
.ma2 .ms-row { padding: 8px 0; border-top: 1px solid var(--line); }
.ma2 .ms-row .lab-tip { display: inline-block; font-size: 13px; font-weight: 700; color: #475569; margin-bottom: 4px; }
.ma2 .ms-hint { display: block; margin: -2px 0 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.ma2 .ma-tabpanel h2.q-h { margin-bottom: 3px; } .ma2 .ms-hint.q-hint { margin: 0 0 10px; }   /* Quality's line, no (i) */
.ma2 .q-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.ma2 .q-head h2.q-h { margin: 0; }
.ma2 .q-toggle { display: inline-flex; padding: 2px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.ma2 .q-tog { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; cursor: pointer; transition: background .15s, color .15s; white-space: nowrap; }
.ma2 .q-tog:hover { color: var(--navy); }
.ma2 .q-tog:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.ma2 .q-tog[aria-pressed="true"] { background: var(--navy); color: #fff; }
.ma2 .five-q .q { align-items: flex-start; }
.ma2 .five-q .q .go { align-self: center; }
.ma2 .five-q .q .lab { font-size: 15px; line-height: 18px; color: var(--navy); }
.ma2 .q .q-sub { display: flex; flex-direction: column; gap: 1px; margin-top: 4px; font-size: 11px; font-weight: 500;
  line-height: 14px; color: var(--muted); }
.ma2 .q .q-sub span::before { content: '•'; margin-right: 5px; color: var(--soft); }
.ma2 .grid2[hidden] { display: none; }
.ma2 .ms-hint.five-hint { margin: 10px 0 8px; }                 /* a player's five: the shot type picker */
.ma2 .five-pick { margin-top: 10px; } .ma2 .five-hint + .five-pick { margin-top: 0; }
.ma2 .five-q .q b, .ma2 .five-pick .q b { min-width: 62px; }    /* '100%' fits: the labels line up */
.ma2 .five-pick .q .lab { display: block; overflow: visible; }  /* the picker: a label wraps in full, never "..." (Bryan 11-30) */
.ma2 .ms-who { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; font-size: 12px;
  font-weight: 700; color: var(--muted); }
.ma2 .ms-who i { width: 8px; height: 8px; border-radius: 999px; background: var(--side); flex: none; }
.ma2 .lab-tip[data-tip] { text-decoration: underline dotted var(--soft); text-underline-offset: 3px; }

/* Badges (badges.js, medals medal.js): 3 at most, the rest in the sheet */
.ma2 .bd-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; margin-bottom: 10px; }
.ma2 .bd-head h2 { margin: 0; }
.ma2 .bd-all { font-size: 13px; padding: 4px 12px; }
.ma2 .bd-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.ma2 .bd { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 10px 6px 8px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; cursor: pointer; font: inherit; color: var(--navy); }
.ma2 .bd { position: relative; }
.ma2 .bd .go { position: absolute; top: 6px; right: 6px; }
.ma2 .bd-name { font-size: 12px; font-weight: 800; line-height: 15px; min-height: 30px; text-align: center; text-wrap: balance; }
.ma2 .bd-none { height: 120px; display: flex; align-items: center; justify-content: center; }
.ma2 .bd-list .bd-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 8px; border-top: 1px solid var(--line); border-radius: 10px; }
.ma2 .bd-list .bd-item:first-child { border-top: 0; } .ma2 .bd-item.on { background: var(--bg); }
.ma2 .bd-item .grow { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.ma2 .bd-t { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--navy); }
.ma2 .bd-fact { font-weight: 700; font-size: 14px; }
.ma2 .bd-team { display: inline-flex; align-items: center; gap: 5px; margin-right: 6px; font-size: 12px; color: var(--side-d); }
.ma2 .bd-team i { width: 8px; height: 8px; border-radius: 999px; background: var(--side); }
.ma2 .medal { flex: none; transition: transform .2s; filter: drop-shadow(0 2px 3px rgba(11, 29, 51, .22)); overflow: visible; }
.ma2 .medal.td { filter: drop-shadow(0 0 6px rgba(124, 155, 247, .55)) drop-shadow(0 2px 3px rgba(11, 29, 51, .25)); }
.ma2 .medal .sh { animation: ma2-sweep 5.6s ease-in-out infinite; }    /* gold + diamond: a light sweep; diamond sweeps more often */
.ma2 .medal.td .sh { animation-duration: 3.4s; }
@keyframes ma2-sweep { 0% { transform: translateX(0); } 42%, 100% { transform: translateX(230px); } }
.ma2 .medal .tw { transform-box: fill-box; transform-origin: center; animation: ma2-twinkle 2.6s ease-in-out infinite; }
@keyframes ma2-twinkle { 0%, 100% { opacity: .2; transform: scale(.55); } 50% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .ma2 .medal .sh { animation: none; display: none; } .ma2 .medal .tw { animation: none; } }
@media (max-width: 640px) {
  .ma2 .grid2 { grid-template-columns: minmax(0,1fr); }
  .ma2 .pick { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ma2 .trow { grid-template-columns: 84px minmax(0,1fr); }
  .ma2 .five .trow, .ma2 button.trow { grid-template-columns: 84px minmax(0,1fr) 24px; }
}

/* Player sheets (partials/analysis_v2/_sheets.html): speed and over the net, the speed-up filter, the body view */
/* Bryan 11-28: the title row and the Watch / Close row stay put, only the middle scrolls */
.ma2-bv .ma-bv-sheet { padding-top: 0; }
.ma2-bv .ma-bv-sheet:has(.ma-bv-acts) { padding-bottom: 0; }
.ma2-bv-top { position: sticky; top: 0; z-index: 3; flex: none; display: flex; flex-direction: column; gap: 14px;
  margin: 0 -20px; padding: 10px 20px 12px; background: #fff; box-shadow: 0 1px 0 #E2E8F0; }
.ma2-bv .ma-bv-acts { position: sticky; bottom: 0; z-index: 3; margin: 0 -20px;
  padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -1px 0 #E2E8F0; }
.ma2-pace { display: flex; gap: 8px; margin: 12px 0 14px; }
.ma2-pace > span { flex: 1 1 0; display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px;
  background: #F1F5F9; min-width: 0; }
.ma2-pace small { font-size: 12px; font-weight: 600; color: #64748B; white-space: nowrap; }
@media (max-width: 480px) {
  .ma2-pace > span { flex-wrap: wrap; row-gap: 2px; }
  .ma2-pace b { order: 3; flex-basis: 100%; margin-left: 0; }
}
.ma2-pace b { margin-left: auto; font-size: 15px; font-weight: 800; color: #0B1D33; white-space: nowrap; }
.ma2-su-pick { flex-wrap: wrap; margin-top: 12px; }
.ma2-su [data-su-line]:not([data-su-line="all"]) { display: none; }
.ma2-su:not([data-su-side="all"]) [data-su-line="all"] { display: none; }
.ma2-su[data-su-side="bounce"] [data-su-line="bounce"], .ma2-su[data-su-side="flick"] [data-su-line="flick"],
.ma2-su[data-su-side="roll"] [data-su-line="roll"], .ma2-su[data-su-side="other"] [data-su-line="other"] { display: block; }
.ma2-su .ma2-su-act[data-su-line] { display: none; }
.ma2-su[data-su-side="all"] .ma2-su-act[data-su-line="all"], .ma2-su[data-su-side="bounce"] .ma2-su-act[data-su-line="bounce"],
.ma2-su[data-su-side="flick"] .ma2-su-act[data-su-line="flick"], .ma2-su[data-su-side="roll"] .ma2-su-act[data-su-line="roll"],
.ma2-su[data-su-side="other"] .ma2-su-act[data-su-line="other"] { display: contents; }
.ma2-su[data-su-side="bounce"] [data-su-k]:not([data-su-k="bounce"]), .ma2-su[data-su-side="flick"] [data-su-k]:not([data-su-k="flick"]),
.ma2-su[data-su-side="roll"] [data-su-k]:not([data-su-k="roll"]), .ma2-su[data-su-side="other"] [data-su-k]:not([data-su-k="other"]) { display: none; }
/* the counters sheet's tabs (Against drives / Against speed-ups), the same block as the speed-ups' */
.ma2-su[data-su-side="vdrive"] [data-su-line="vdrive"], .ma2-su[data-su-side="vsu"] [data-su-line="vsu"] { display: block; }
.ma2-su[data-su-side="vdrive"] .ma2-su-act[data-su-line="vdrive"],
.ma2-su[data-su-side="vsu"] .ma2-su-act[data-su-line="vsu"] { display: contents; }
.ma2-su[data-su-side="vdrive"] [data-su-k]:not([data-su-k="vdrive"]),
.ma2-su[data-su-side="vsu"] [data-su-k]:not([data-su-k="vsu"]) { display: none; }
.ma-bv-stats > span[data-ct-q][hidden] { display: none; }
@media (max-width: 480px) { .ma2-ct .ma-bv-tg { min-width: 0; padding: 0 10px; } }  /* the three on one line */
.ma2-body-svg { display: block; width: 100%; max-width: 420px; margin: 6px auto 0; }
.ma2-body-bg { fill: #F1F5F9; }
.ma2-body-guide { stroke: #CBD5E1; stroke-width: .012; stroke-dasharray: .04 .04; }
.ma2-body-ground { stroke: #94A3B8; stroke-width: .02; }
.ma2-body-lab, .ma2-body-side { font-size: .105px; font-weight: 700; fill: #64748B; }
.ma2-body-fig { fill: #CBD5E1; stroke: #CBD5E1; stroke-linecap: round; stroke-linejoin: round; }
.ma2-body-fig path { fill: none; }
.ma2-body-fig circle { stroke: none; }
.ma2-body .ma-hs-key { flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 6px; }
.ma2-body-kg { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ma2-body-fig .is-torso { stroke-width: .3; }
.ma2-body-fig .is-limb { stroke-width: .09; }
.ma2-body-fig .is-leg { stroke-width: .12; }
.ma2-body-dot { stroke: #fff; stroke-width: .02; }
.ma2-body-dot.is-good { fill: #34D378; }
.ma2-body-dot.is-even { fill: #94A3B8; }
.ma2-body-dot.is-bad { fill: #F43F5E; }
.ma2-body-dot.is-est { fill: #fff; stroke-width: .025; stroke-dasharray: .05 .035; }
.ma2-body-dot.is-est.is-good { stroke: #34D378; }
.ma2-body-dot.is-est.is-even { stroke: #94A3B8; }
.ma2-body-dot.is-est.is-bad { stroke: #F43F5E; }
.ma2-body-note { margin: 8px 0 0; text-align: center; font-size: 12px; font-weight: 700; color: var(--ma-muted); }
.ma2-body-ek { flex: none; width: 10px; height: 10px; border: 1.5px dashed var(--ma-muted); border-radius: 50%; }
/* The site's floating Back button on phones (Bryan 12-05). v1's layout.css hides it (its header had a Match page link);
   v2 is the match page itself and has no bottom nav (hide_mobile_nav), so it sits lower than base.html's 90 px. */
@media (max-width: 767px) {
  body .page-back-link { display: inline-flex !important; bottom: calc(1.25rem + env(safe-area-inset-bottom)); }
}
