/* Match page tabs + team stat cards (code-drawn, never AI images) */
/* B — Separadores com ícone e sublinhado, sticky sob o cabeçalho */
.pr-mtabs {
  position: sticky;
  top: var(--app-header-h, 58px);
  bottom: auto;
  left: auto;
  right: auto;
  z-index: 15;
  display: flex;
  gap: 0;
  overflow: visible;
  margin: 0 -16px 12px;
  padding: 0 8px;
  background: color-mix(in srgb, var(--bg, #f3f5f2) 88%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 0;
  border-bottom: 1px solid var(--line, #101c1814);
  border-radius: 0;
  box-shadow: none;
  scrollbar-width: none;
}
.pr-mtabs::-webkit-scrollbar { display: none; }
.pr-mtab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: var(--muted, #5b6a66);
  font: inherit;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 8px 4px 11px;
  border-radius: 0;
  cursor: pointer;
  position: relative;
  line-height: 1.15;
  text-align: center;
  transition: color .18s ease;
}
.pr-mtab .pr-mtab-icon,
.pr-mtab svg.pr-mtab-icon {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}
.pr-mtab span {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pr-mtab[aria-selected="true"] {
  background: transparent;
  border-color: transparent;
  color: var(--text, #102018);
}
.pr-mtab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: #22e58b;
}
[data-theme="light"] .pr-mtabs {
  background: color-mix(in srgb, var(--bg, #f3f5f2) 88%, transparent);
}
[data-theme="light"] .pr-mtab {
  border-color: transparent;
  background: transparent;
}
[data-theme="light"] .pr-mtab[aria-selected="true"],
[data-theme="dark"] .pr-mtab[aria-selected="true"] {
  background: transparent;
  border-color: transparent;
  color: var(--accent, #0b9a5b);
}
[data-theme="dark"] .pr-mtabs {
  background: color-mix(in srgb, var(--bg, #070b14) 88%, transparent);
  border-bottom-color: var(--line, #96bedc1f);
}
[data-theme="dark"] .pr-mtab[aria-selected="true"] {
  color: #22e58b;
}
.pr-mtabs-outside,
.match-page > .pr-mtabs {
  position: sticky;
  top: var(--app-header-h, 58px);
  bottom: auto;
  margin-top: 0;
  z-index: 15;
}
@media (min-width: 1024px) {
  .match-page > .pr-mtabs,
  .match-page > .pr-mtabs-outside {
    grid-column: 1 / -1;
  }
}
/* Back button must not share the sticky band with the tab bar. */
.match-page:has(.pr-mtabs) .match-back {
  position: relative;
  top: auto;
  z-index: 2;
}

/* Content clears the fixed bottom nav (6 items + home indicator).
   !important beats the utility pb-4 on main.app-main. */
@media (max-width: 1023px) {
  main.app-main.bottom-safe,
  .app-main.bottom-safe {
    padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px)) !important;
  }
  html, body {
    scroll-padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
  }
  nav.app-nav {
    z-index: 40;
  }
}
.pr-mtabs-outside + .pr-mpanel,
.pr-mtabs-outside + .lockable {
  margin-top: 10px;
}

.pr-mpanel[hidden] { display: none !important; }

.pr-stat-grid {
  display: grid;
  gap: 12px;
}
@media (min-width: 720px) {
  .pr-stat-grid.cards { grid-template-columns: 1fr 1fr; }
}

.pr-scard {
  border-radius: 20px;
  padding: 14px 14px 12px;
  background: color-mix(in srgb, var(--card, #101820) 100%, transparent);
  border: 1px solid color-mix(in srgb, #fff 8%, transparent);
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}
[data-theme="light"] .pr-scard { background: #fff; border-color: #e5e8ee; }

.pr-scard-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.pr-scard-head img { width: 28px; height: 28px; object-fit: contain; }
.pr-scard-head strong { font-size: 15px; font-weight: 800; line-height: 1.2; }
.pr-scard-head span { font-size: 11px; opacity: .65; font-weight: 600; }

.pr-pitch-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 520px) {
  .pr-pitch-wrap { grid-template-columns: 1fr 140px 1fr; align-items: center; }
}

.pr-pitch {
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
}
.pr-metric {
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, #fff 10%, transparent);
  background: color-mix(in srgb, #fff 3%, transparent);
  min-height: 68px;
}
[data-theme="light"] .pr-metric { border-color: #e5e8ee; background: #f7f8fa; }
.pr-metric .k { font-size: 11px; font-weight: 800; letter-spacing: .02em; opacity: .75; }
.pr-metric .v { font-size: 22px; font-weight: 800; line-height: 1.15; margin-top: 2px; }
.pr-metric .u { font-size: 11px; opacity: .65; font-weight: 600; }
.pr-metric.xg { border-color: color-mix(in srgb, #16a34a 45%, transparent); }
.pr-metric.xga { border-color: color-mix(in srgb, #2563eb 45%, transparent); }
.pr-metric.sot { border-color: color-mix(in srgb, #15803d 45%, transparent); }
.pr-metric.pos { border-color: color-mix(in srgb, #d97706 45%, transparent); }
.pr-metric.corners { border-color: color-mix(in srgb, #dc2626 40%, transparent); }

.pr-cmp { margin-top: 14px; }
.pr-cmp h3 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; margin: 0 0 8px; opacity: .75; }
.pr-cmp-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-top: 1px solid color-mix(in srgb, #fff 8%, transparent);
  font-size: 13px;
}
[data-theme="light"] .pr-cmp-row { border-top-color: #e8eaef; }
.pr-cmp-row .lab { text-align: center; font-size: 11px; font-weight: 700; opacity: .65; }
.pr-cmp-row .h, .pr-cmp-row .a { font-weight: 800; font-variant-numeric: tabular-nums; }
.pr-cmp-row .h { text-align: left; }
.pr-cmp-row .a { text-align: right; }
.pr-form { letter-spacing: .08em; font-weight: 800; }
.pr-muted { font-size: 13px; opacity: .7; padding: 8px 2px; }

.pr-prob-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pr-prob {
  border-radius: 16px;
  padding: 12px;
  background: color-mix(in srgb, var(--card, #101820) 100%, transparent);
  border: 1px solid color-mix(in srgb, #fff 8%, transparent);
}
[data-theme="light"] .pr-prob { background: #fff; border-color: #e5e8ee; }
.pr-prob .k { font-size: 11px; font-weight: 700; text-transform: uppercase; opacity: .65; }
.pr-prob .v { font-size: 20px; font-weight: 800; margin-top: 4px; }

.match-page > .pr-mpanel {
  margin: 0 0 12px;
}




/* Team switcher + advanced single-team card (code-drawn, real numbers only) */
.pr-tswitch {
  position: sticky;
  top: calc(var(--app-header-h, 58px) + 56px);
  bottom: auto;
  z-index: 14;
  display: flex;
  gap: 6px;
  align-items: stretch;
  padding: 6px 0 8px;
  margin: 0 0 10px;
  background: color-mix(in srgb, var(--bg, #f3f5f2) 90%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.pr-tsw {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line, #101c1814);
  background: var(--card, #fff);
  color: var(--text, #102018);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
  padding: 8px 8px;
  border-radius: 14px;
  cursor: pointer;
  line-height: 1.15;
  box-shadow: 0 1px 4px color-mix(in srgb, #102018 5%, transparent);
}
.pr-tsw img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
.pr-tsw span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pr-tsw-cmp {
  flex: 0 0 auto;
  padding: 8px 10px;
  color: var(--muted, #5b6a66);
}
.pr-tsw-cmp svg {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}
.pr-tsw[aria-selected="true"] {
  background: #22e58b;
  border-color: #22e58b;
  color: var(--accent-ink, #052014);
  box-shadow: 0 2px 8px color-mix(in srgb, #22e58b 40%, transparent);
}
.pr-tview[hidden] { display: none !important; }

.pr-adv {
  border-radius: 20px;
  padding: 14px 14px 12px;
  background: var(--card, #fff);
  border: 1px solid var(--line, #101c1814);
  box-shadow: var(--shadow, 0 10px 28px #10201814);
}
.pr-adv-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.pr-adv-head img { width: 36px; height: 36px; object-fit: contain; }
.pr-adv-head strong { display: block; font-size: 16px; font-weight: 800; line-height: 1.15; }
.pr-adv-sub { font-size: 11px; font-weight: 600; color: var(--muted, #5b6a66); margin-top: 2px; }

.pr-form-pills { display: flex; gap: 4px; margin-top: 6px; }
.pr-form-pills span {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: var(--muted, #5b6a66);
}
.pr-form-pills span.w { background: #0b9a5b; }
.pr-form-pills span.d { background: #c4920a; }
.pr-form-pills span.l { background: #d63b4a; }

.pr-adv-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-flow: dense;
  gap: 8px;
}
.pr-tile.xg, .pr-tile.pos, .pr-tile.xga, .pr-tile.gf { grid-column: 1; }
.pr-tile.sot, .pr-tile.corners, .pr-tile.cards, .pr-tile.cs { grid-column: 2; }

.pr-tile {
  border-radius: 14px;
  padding: 10px 10px 9px;
  border: 1px solid var(--line, #101c1814);
  background: var(--card-2, #f4f7f4);
  min-height: 86px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}
.pr-tile-top { display: flex; align-items: flex-start; gap: 7px; }
.pr-tile-ico {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
  background: #0b9a5b;
}
.pr-tile-ico svg { width: 14px; height: 14px; display: block; }
.pr-tile .k { font-size: 11px; font-weight: 800; letter-spacing: .01em; line-height: 1.2; }
.pr-tile .s { font-size: 10px; font-weight: 600; color: var(--muted, #5b6a66); margin-top: 1px; line-height: 1.25; }
.pr-tile-val { display: flex; align-items: baseline; justify-content: flex-end; gap: 6px; margin-top: auto; }
.pr-tile-val .v { font-size: 22px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.pr-tile-val .u { font-size: 10px; font-weight: 700; color: var(--muted, #5b6a66); }
.pr-tile-extra { display: flex; align-items: center; gap: 8px; }
.pr-donut { width: 36px; height: 36px; color: #c4920a; flex-shrink: 0; }
.pr-tile.xg { border-color: color-mix(in srgb, #16a34a 45%, transparent); }
.pr-tile.xg .pr-tile-ico { background: #15803d; }
.pr-tile.sot { border-color: color-mix(in srgb, #15803d 45%, transparent); }
.pr-tile.sot .pr-tile-ico { background: #0b9a5b; }
.pr-tile.pos { border-color: color-mix(in srgb, #d97706 45%, transparent); }
.pr-tile.pos .pr-tile-ico { background: #d97706; }
.pr-tile.xga { border-color: color-mix(in srgb, #2563eb 45%, transparent); }
.pr-tile.xga .pr-tile-ico { background: #1f5fd6; }
.pr-tile.corners { border-color: color-mix(in srgb, #dc2626 40%, transparent); }
.pr-tile.corners .pr-tile-ico { background: #dc2626; }
.pr-tile.cards { border-color: color-mix(in srgb, #c4920a 40%, transparent); }
.pr-tile.cards .pr-tile-ico { background: #c4920a; }
.pr-tile.gf { border-color: color-mix(in srgb, #0b9a5b 40%, transparent); }
.pr-tile.ga { border-color: color-mix(in srgb, #1f5fd6 40%, transparent); }
.pr-tile.cs { border-color: color-mix(in srgb, #1f5fd6 40%, transparent); }
.pr-tile.cs .pr-tile-ico { background: #1f5fd6; }

.pr-card-pair { display: flex; gap: 10px; justify-content: flex-end; align-items: baseline; }
.pr-card-pair .cp { display: flex; align-items: center; gap: 4px; font-weight: 800; font-size: 16px; }
.pr-card-swatch { width: 10px; height: 14px; border-radius: 2px; display: inline-block; }
.pr-card-swatch.y { background: #e6b800; border: 1px solid #b8860b; }
.pr-card-swatch.r { background: #d63b4a; border: 1px solid #9f1239; }

.pr-adv-more {
  margin-top: 12px;
  border-top: 1px solid var(--line, #101c1814);
  padding-top: 4px;
}
.pr-more-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line, #101c1814);
  font-size: 13px;
}
.pr-more-row:last-child { border-bottom: 0; }
.pr-more-row span { color: var(--muted, #5b6a66); font-weight: 600; }
.pr-more-row strong { font-weight: 800; font-variant-numeric: tabular-nums; }

.pr-adv-ai {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--accent-dim, #0b9a5b1f);
  color: var(--text, #102018);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}

[data-theme="dark"] .pr-tswitch {
  background: color-mix(in srgb, var(--bg, #070b14) 88%, transparent);
}
[data-theme="dark"] .pr-tsw {
  background: var(--card, #10182a);
  border-color: var(--line, #96bedc1f);
  color: var(--text, #f4f7fb);
}
[data-theme="dark"] .pr-tsw[aria-selected="true"] {
  background: #22e58b;
  border-color: #22e58b;
  color: #052014;
}
[data-theme="dark"] .pr-adv {
  background: var(--card, #10182a);
  border-color: var(--line, #96bedc1f);
}
[data-theme="dark"] .pr-tile {
  background: var(--card-2, #161f33);
  border-color: var(--line, #96bedc1f);
}
[data-theme="dark"] .pr-tile .s,
[data-theme="dark"] .pr-tile-val .u,
[data-theme="dark"] .pr-adv-sub,
[data-theme="dark"] .pr-more-row span,
[data-theme="dark"] .pr-tsw-cmp { color: var(--muted, #8b97ab); }
[data-theme="dark"] .pr-adv-more,
[data-theme="dark"] .pr-more-row { border-color: var(--line, #96bedc1f); }
[data-theme="dark"] .pr-adv-ai { background: #22e58b24; color: var(--text, #f4f7fb); }

/* Comparison stays a single card under the Comparar view */
.pr-cmp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.pr-cmp-head .side {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  min-width: 0;
  flex: 1;
}
.pr-cmp-head .side:last-child { flex-direction: row-reverse; text-align: right; }
.pr-cmp-head .side img { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; }
.pr-cmp-head .side span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-cmp > h3 { margin-top: 4px; }


/* Freemium premium teaser (blurred probabilities / analysis) */
.pr-teaser {
  position: relative;
  overflow: hidden;
  margin: 8px 16px 16px;
  border-radius: 18px;
  min-height: 210px;
  background: color-mix(in srgb, var(--card, #fff) 92%, var(--accent, #0b9a5b));
  border: 1px solid color-mix(in srgb, var(--accent, #0b9a5b) 22%, transparent);
}
.pr-teaser-blur {
  filter: blur(7px);
  opacity: .55;
  pointer-events: none;
  user-select: none;
  padding: 22px 16px 70px;
}
.pr-teaser-bars { display: flex; flex-direction: column; gap: 10px; }
.pr-teaser-bars i {
  display: block;
  height: 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent, #0b9a5b) 35%, var(--line, #d5ddd7));
}
.pr-teaser-bars i:nth-child(1) { width: 88%; }
.pr-teaser-bars i:nth-child(2) { width: 64%; }
.pr-teaser-bars i:nth-child(3) { width: 76%; }
.pr-teaser-bars i:nth-child(4) { width: 42%; }
.pr-teaser-bars-2 { margin-top: 16px; }
.pr-teaser-cta {
  position: absolute;
  inset: auto 14px 14px 14px;
  top: 50%;
  transform: translateY(-46%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 14px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg, #f3f5f2) 88%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px color-mix(in srgb, #052014 16%, transparent);
}
.pr-teaser-cta strong {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent-ink, #052014);
}
html[data-theme="dark"] .pr-teaser-cta strong { color: var(--text, #e8f6ee); }
.pr-teaser-cta p {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted, #5b6b64);
  max-width: 28ch;
}
.pr-teaser-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13.5px;
  text-decoration: none;
  color: #052014;
  background: #22e58b;
  box-shadow: 0 6px 16px color-mix(in srgb, #22e58b 40%, transparent);
}
.pr-teaser-btn:hover { filter: brightness(1.04); }

.pr-cmp-row .pr-form-pills { justify-content: center; margin: 0; }
.pr-cmp h3 { text-transform: none; letter-spacing: 0; }
