/* ==========================================================================
   wingman-matches.css — widok Mecze (picker + sticky karta)
   ========================================================================== */

:root {
  --wingman-matches-sticky-top: calc(var(--site-top-offset, 96px) + 10px);
  --wingman-matches-sidebar-w: 400px;
  --wingman-match-picker-schedule-w: 82px;
  --wingman-match-picker-score-w: 2.25rem;
}

.wingman-matches-layout {
  display: grid;
  grid-template-columns: var(--wingman-matches-sidebar-w) minmax(0, 1fr);
  gap: var(--space-16);
  align-items: stretch;
  width: 100%;
  max-width: var(--category-content-max, 1400px);
  margin: 0 auto;
}

.wingman-matches-layout__sidebar {
  width: var(--wingman-matches-sidebar-w);
  max-width: 100%;
  min-width: 0;
}

.category-leagues--matches-picker {
  position: relative;
  z-index: 0;
  width: var(--wingman-matches-sidebar-w);
  max-width: 100%;
  gap: var(--space-10);
}

.category-leagues--matches-picker .league-header {
  width: var(--wingman-matches-sidebar-w);
  max-width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-12);
  background: var(--surface-1);
  overflow: hidden;
}

.category-leagues--matches-picker .league-header__head,
.category-leagues--matches-picker .league-header__toggle,
.category-leagues--matches-picker .league-header__panel,
.category-leagues--matches-picker .league-header__body {
  background: var(--surface-1);
}

.category-leagues--matches-picker .league-header__panel {
  border-top: none;
}

.category-leagues--matches-picker .league-header__body {
  padding: 0;
}

.category-leagues--matches-picker .league-header__count {
  background: rgba(20, 20, 20, 0.06);
  color: var(--muted);
}

html[data-theme="dark"] .category-leagues--matches-picker .league-header__count {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.wingman-matches-picker-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wingman-match-picker {
  display: grid;
  grid-template-columns:
    var(--wingman-match-picker-schedule-w)
    minmax(0, 1fr)
    var(--wingman-match-picker-score-w);
  align-items: stretch;
  gap: 0;
  width: 100%;
  margin: 0;
  padding: var(--space-6) var(--space-12);
  border: none;
  border-bottom: none;
  border-radius: 0;
  background: var(--surface-1);
  color: var(--fg);
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition:
    background-color var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}

.wingman-match-picker__schedule {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: var(--space-2);
  width: var(--wingman-match-picker-schedule-w);
  min-width: var(--wingman-match-picker-schedule-w);
  max-width: var(--wingman-match-picker-schedule-w);
  padding-right: var(--space-8);
  border-right: none;
}

.wingman-match-picker__date,
.wingman-match-picker__time {
  display: block;
  width: 100%;
  font-size: var(--fs-12);
  line-height: 1.15;
  white-space: nowrap;
  text-align: right;
}

.wingman-match-picker__date {
  font-weight: var(--fw-500);
  color: var(--muted);
}

.wingman-match-picker__time {
  font-weight: var(--fw-600);
  color: var(--fg);
}

.wingman-match-picker__teams {
  display: flex;
  flex-direction: column;
  min-width: 0;
  align-self: center;
}

.wingman-match-picker__team {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  min-width: 0;
  min-height: 28px;
}

.wingman-match-picker__score {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: var(--wingman-match-picker-score-w);
  padding-left: var(--space-4);
  font-variant-numeric: tabular-nums;
}

.wingman-match-picker__score .match-score-stack {
  --a3-row-h: 28px;
  --a3-row-gap: var(--space-4);
  width: 100%;
}

.wingman-match-picker__score .match-score-stack__row {
  min-height: 28px;
  font-size: var(--fs-14);
  font-weight: var(--fw-600);
}

.wingman-match-picker:hover {
  background: rgba(20, 20, 20, 0.03);
}

html[data-theme="dark"] .wingman-match-picker:hover {
  background: rgba(255, 255, 255, 0.06);
}

.wingman-match-picker:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(20, 20, 20, 0.2);
}

html[data-theme="dark"] .wingman-match-picker:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.28);
}

.wingman-match-picker--active,
.wingman-match-picker[aria-pressed="true"] {
  background: rgba(20, 20, 20, 0.04);
}

html[data-theme="dark"] .wingman-match-picker--active,
html[data-theme="dark"] .wingman-match-picker[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.08);
}

.wingman-match-picker__logo-wrap {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.wingman-match-picker__logo {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.wingman-match-picker__team-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--fs-14);
  font-weight: var(--fw-500);
  line-height: 1.25;
  color: var(--fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wingman-matches-layout__detail {
  min-width: 0;
  align-self: stretch;
}

.wingman-matches-layout__detail-sticky {
  position: sticky;
  top: var(--wingman-matches-sticky-top);
  z-index: 2;
  width: 100%;
}

.wingman-matches-layout__detail-inner {
  min-height: 120px;
  overflow: visible;
}

.wingman-matches-layout__detail-inner .wingman-match-card--matches-view {
  --wingman-matches-stat-row-h: 54px;
  --wingman-matches-stat-list-gap: var(--space-8);
  --wingman-matches-stat-scroll-w: 8px;
  --wingman-matches-stats-list-h: calc(
    6 * var(--wingman-matches-stat-row-h) + 5 * var(--wingman-matches-stat-list-gap) + var(--space-10)
  );
  --wingman-matches-side-head-h: 36px;
  --wingman-matches-side-pane-h: calc(
    var(--wingman-matches-side-head-h) + var(--wingman-matches-stats-list-h)
  );
  display: flex;
  flex-direction: column;
  height: auto;
  max-height: calc(100vh - var(--wingman-matches-sticky-top) + 60px);
  padding: 0;
  gap: 0;
  overflow: hidden;
}

.wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card-matches__scroll {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: var(--space-14);
  min-height: 0;
  max-height: none;
  padding: 0;
  overflow: hidden;
}

.wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card-matches__stage,
.wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card-matches__views-sticky,
.wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card-matches__views {
  flex: 0 0 auto;
}

.wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card-matches__view-panels {
  flex: 0 1 auto;
  min-height: 0;
  overflow: hidden;
}

.wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card-matches__view-panel {
  min-height: 0;
  overflow: hidden;
}

.wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card-matches__view-panel[hidden] {
  display: none !important;
}

.wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card-matches__view-panel[data-wingman-match-view-panel="analizy"]:not([hidden]) {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card__stats-section {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-height: 0;
}

.wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card__stats-head {
  flex: 0 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}

.wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card__stats-head::-webkit-scrollbar {
  width: var(--wingman-matches-stat-scroll-w);
}

.wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card__stats-head::-webkit-scrollbar-track,
.wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card__stats-head::-webkit-scrollbar-thumb {
  background: transparent;
}

.wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card__stats-head-row.league-header__head {
  padding-right: var(--space-10);
}

.wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card__stats-list {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  flex: 0 1 auto;
  align-items: stretch;
  gap: var(--wingman-matches-stat-list-gap);
  height: auto;
  max-height: var(--wingman-matches-stats-list-h);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  scrollbar-color: var(--odds-calculator-scrollbar-thumb) var(--odds-calculator-scrollbar-track);
}

.wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card__stats-list > .wingman-stat-bar,
.wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card__stats-list > * {
  flex: 0 0 auto;
  flex-shrink: 0;
  min-height: var(--wingman-matches-stat-row-h);
}

.wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card__stats-list::-webkit-scrollbar {
  width: var(--wingman-matches-stat-scroll-w);
}

.wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card__stats-list::-webkit-scrollbar-track {
  margin: var(--radius-10) 0;
  background: var(--odds-calculator-scrollbar-track);
  border-radius: var(--radius-pill);
}

.wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card__stats-list::-webkit-scrollbar-thumb {
  background-color: var(--odds-calculator-scrollbar-thumb);
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  background-clip: padding-box;
}

.wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card__stats-list::-webkit-scrollbar-thumb:hover {
  background-color: var(--odds-calculator-scrollbar-thumb-hover);
}

.wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card-matches__view-panel[data-wingman-match-view-panel="porownaj"]:not([hidden]),
.wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card-matches__view-panel[data-wingman-match-view-panel="h2h"]:not([hidden]),
.wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card-matches__view-panel[data-wingman-match-view-panel="raport"]:not([hidden]) {
  display: flex;
  flex-direction: column;
  height: var(--wingman-matches-side-pane-h);
  min-height: var(--wingman-matches-side-pane-h);
  max-height: var(--wingman-matches-side-pane-h);
  overflow: hidden;
}

.wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card-matches__pane {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
}

.wingman-matches-layout__detail-inner .wingman-match-card {
  width: 100%;
}

.wingman-matches-detail__empty {
  margin: 0;
  padding: var(--space-24);
  border: 1px dashed var(--border);
  border-radius: var(--radius-12);
  color: var(--muted);
  font-size: var(--fs-14);
  text-align: center;
}

.wingman-matches-detail__loading,
.wingman-matches-detail__error {
  margin: 0;
  padding: var(--space-24);
  border: 1px dashed var(--border);
  border-radius: var(--radius-12);
  color: var(--muted);
  font-size: var(--fs-14);
  text-align: center;
}

.wingman-matches-detail__error {
  border-color: color-mix(in srgb, #b91c1c 35%, var(--border));
  color: #b91c1c;
}

.wingman-matches-layout__detail-inner:has(.wingman-match-card) .wingman-matches-detail__empty,
.wingman-matches-layout__detail-inner:has(.wingman-match-card) .wingman-matches-detail__loading,
.wingman-matches-layout__detail-inner:has(.wingman-match-card) .wingman-matches-detail__error {
  display: none;
}

.wingman-matches-card-pool {
  display: none !important;
}

@media (max-width: 949px) {
  .wingman-matches-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .wingman-matches-layout__sidebar,
  .category-leagues--matches-picker,
  .category-leagues--matches-picker .league-header {
    width: 100%;
  }

  .wingman-matches-layout__detail-sticky {
    position: static;
    top: auto;
  }

  .wingman-matches-layout__detail-inner {
    max-height: none;
    overflow: visible;
  }

  .wingman-matches-layout__detail-inner .wingman-match-card--matches-view {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card-matches__scroll {
    max-height: none;
    overflow: visible;
  }

  .wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card-matches__view-panels,
  .wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card-matches__view-panel,
  .wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card__stats-list,
  .wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card-matches__pane-list,
  .wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card-matches__h2h-list {
    overflow: visible;
    height: auto;
    max-height: none;
  }

  .wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card-matches__pane-row {
    flex: 0 0 auto;
    min-height: 48px;
  }

  .wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-list {
    display: flex;
    grid-template-rows: none;
    height: auto;
  }

  .wingman-matches-layout__detail-inner .wingman-match-card--matches-view .wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-row {
    flex: 0 0 auto;
    min-height: 48px;
    height: auto;
  }
}

/* ==========================================================================
   Match card — widok Mecze / Ligi (osobno od bazowego .wingman-match-card)
   ========================================================================== */

.simple-match-card.simple-match-card--wingman.wingman-match-card--matches-view,
.simple-match-card.simple-match-card--wingman.wingman-match-card--leagues-view {
  padding: 0;
  gap: 0;
  min-height: 0;
}

.wingman-match-card--matches-view {
  min-height: 0;
}

.wingman-match-card--matches-view .wingman-match-card-matches__scroll {
  padding: 0;
}

.wingman-match-card-matches__scroll {
  display: flex;
  flex-direction: column;
  gap: var(--space-14);
  padding: var(--space-14);
  min-width: 0;
}

.wingman-match-card-matches__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-14);
  min-width: 0;
}

.category-leagues[data-category="wingman"] .wingman-match-card--leagues-view .wingman-match-card-matches__body {
  padding: var(--space-14);
}

.wingman-match-card--leagues-view {
  height: auto;
  min-height: 0;
  overflow: visible;
}

.wingman-match-card--leagues-view .wingman-match-card__stats-section {
  margin-top: 0;
}

.wingman-match-card-matches__league-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6);
  min-width: 0;
  font-size: var(--fs-12);
  line-height: 1.2;
  color: var(--muted);
}

.wingman-match-card-matches__country-flag {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  object-fit: cover;
  border-radius: 50%;
}

.wingman-match-card-matches__country-name {
  flex: 0 1 auto;
  min-width: 0;
  font-weight: var(--fw-500);
  color: var(--muted);
}

.wingman-match-card-matches__meta-dot {
  flex: 0 0 auto;
  color: var(--muted-2);
  line-height: 1;
}

.wingman-match-card-matches__league-brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  min-width: 0;
}

.wingman-match-card-matches__league-logo-wrap {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.wingman-match-card-matches__league-logo {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

html[data-theme="dark"] .wingman-match-card-matches__league-logo--light {
  display: none;
}

html:not([data-theme="dark"]) .wingman-match-card-matches__league-logo--dark {
  display: none;
}

.wingman-match-card-matches__league-name {
  min-width: 0;
  font-weight: var(--fw-600);
  color: var(--fg);
}

/* --- Scena (widok Mecze): liga + arena + picki 1X2 --- */
.wingman-match-card-matches__stage {
  contain: layout;
}

.wingman-match-card-matches__stage > .wingman-match-card-matches__arena-bg {
  z-index: 0;
}

.wingman-match-card-matches__face {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  width: 100%;
  min-width: 0;
  padding: var(--wingman-arena-pad);
  background: transparent;
}

.wingman-match-card-matches__league-meta--brand {
  display: flex;
  align-items: center;
  gap: var(--space-12);
  flex-wrap: nowrap;
  font-size: inherit;
  line-height: inherit;
  color: var(--fg);
}

.wingman-match-card-matches__league-meta--brand .wingman-match-card-matches__league-brand {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: var(--space-12);
  min-width: 0;
}

.wingman-match-card-matches__league-meta--brand .wingman-match-card-matches__league-logo-wrap {
  position: relative;
  flex: 0 0 auto;
  display: block;
  width: 40px;
  height: 40px;
}

.wingman-match-card-matches__league-meta--brand .wingman-match-card-matches__league-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.wingman-match-card-matches__league-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
  min-width: 0;
}

.wingman-match-card-matches__league-meta--brand .wingman-match-card-matches__league-name {
  font-size: var(--fs-14);
  font-weight: var(--fw-600);
  line-height: var(--lh-tight);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wingman-match-card-matches__country-row {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-width: 0;
}

.wingman-match-card-matches__league-meta--brand .wingman-match-card-matches__country-flag {
  width: 12px;
  height: 12px;
}

.wingman-match-card-matches__league-meta--brand .wingman-match-card-matches__country-name {
  font-size: var(--fs-12);
  font-weight: var(--fw-500);
  line-height: var(--lh-tight);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wingman-match-card-matches__league-meta--brand .wingman-settings-btn {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  min-width: 0;
  margin-left: auto;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--muted);
}

.wingman-match-card-matches__league-meta--brand .wingman-settings-btn:hover,
.wingman-match-card-matches__league-meta--brand .wingman-settings-btn:focus-visible,
.wingman-match-card-matches__league-meta--brand .wingman-settings-btn[aria-expanded="true"] {
  background: transparent;
  border: none;
  color: var(--fg);
}

html[data-device="phone"] .wingman-match-card-matches__league-meta--brand .wingman-settings-btn:hover,
html[data-device="phone"] .wingman-match-card-matches__league-meta--brand .wingman-settings-btn:focus,
html[data-device="phone"] .wingman-match-card-matches__league-meta--brand .wingman-settings-btn:focus-visible,
html[data-device="phone"] .wingman-match-card-matches__league-meta--brand .wingman-settings-btn:active,
html[data-device="phone"] .wingman-match-card-matches__league-meta--brand .wingman-settings-btn[aria-expanded="true"] {
  background: transparent;
  border: none;
  box-shadow: none;
  color: var(--muted);
  outline: none;
}

.wingman-match-card-matches__league-meta--brand .wingman-settings-btn:focus-visible {
  outline: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--focus-ring);
}

.wingman-match-card-matches__league-meta--brand .wingman-settings-btn__icon {
  font-size: 18px;
}

.wingman-match-card-matches__face .wingman-match-card-matches__hero {
  flex: 1 1 auto;
  min-height: 0;
}

.wingman-match-card-matches__stage .wingman-match-card-matches__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.wingman-match-card-matches__stage .wingman-match-card-matches__arena-inner {
  padding: 0;
}

.wingman-match-card-matches__stage .wingman-match-card-matches__picks {
  margin-right: 0;
}

.wingman-match-card--matches-view .wingman-match-card-matches__stage,
.wingman-match-card--matches-view .wingman-match-card-matches__arena {
  border-radius: 0;
}

.wingman-match-card-matches__views-sticky {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.wingman-match-card-matches__views {
  display: flex;
  width: auto;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
  height: 40px;
  max-height: 40px;
  align-items: stretch;
  gap: var(--space-8);
  margin-inline: var(--space-14);
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface-1);
}

html[data-theme="dark"] .wingman-match-card-matches__views {
  background: #1f1f1f;
  border-color: rgba(255, 255, 255, 0.16);
}

.wingman-match-card-matches__view-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  height: 100%;
  margin: 0;
  padding: 0 var(--space-8);
  border: none;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: var(--fs-13);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  transition:
    background-color var(--dur-2) var(--ease-out),
    color var(--dur-2) var(--ease-out),
    box-shadow var(--dur-2) var(--ease-out);
}

.wingman-match-card-matches__view-tab:hover:not(.wingman-match-card-matches__view-tab--active) {
  background: rgba(20, 20, 20, 0.06);
}

html[data-theme="dark"] .wingman-match-card-matches__view-tab {
  color: rgba(255, 255, 255, 0.72);
}

html[data-theme="dark"] .wingman-match-card-matches__view-tab:hover:not(.wingman-match-card-matches__view-tab--active) {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
}

.wingman-match-card-matches__view-tab:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.wingman-match-card-matches__view-tab--active {
  background: var(--fg);
  color: var(--bg);
  font-weight: var(--fw-500);
}

html[data-theme="light"] .wingman-match-card-matches__view-tab--active {
  background: #333333;
  color: #ffffff;
}

html[data-theme="dark"] .wingman-match-card-matches__view-tab--active {
  background: #ffffff;
  color: #141414;
}

.wingman-match-card-matches__view-panels {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  padding-inline: var(--space-14);
  padding-bottom: var(--space-14);
  box-sizing: border-box;
}

.wingman-match-card-matches__view-panel {
  grid-area: 1 / 1;
  min-width: 0;
}

.wingman-match-card-matches__view-panel[hidden] {
  display: block !important;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
}

.wingman-match-card-matches__view-panel:not([hidden]) {
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.wingman-match-card-matches__view-panel[data-wingman-match-view-panel="raport"]:not([hidden]) {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.wingman-match-card--matches-view .wingman-match-card__stats-section {
  --wingman-stats-logo-size: 28px;
  --wingman-stats-logo-offset-x: 0;
  margin-top: 0;
}

.wingman-match-card--matches-view .wingman-match-card__stats-section .wingman-match-card__stats-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  grid-column: 2;
  width: var(--wingman-stat-prob-size);
  height: var(--wingman-stats-logo-size);
  justify-self: center;
  transform: none;
}

.wingman-match-card--matches-view .wingman-match-card__stats-logo-wrap .match-team-logo,
.wingman-match-card--matches-view .wingman-match-card__stats-logo {
  width: var(--wingman-stats-logo-size);
  height: var(--wingman-stats-logo-size);
}

.wingman-match-card-matches__report-list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  list-style: none;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.wingman-match-card-matches__report-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 0;
  min-height: calc(var(--wingman-matches-side-pane-h) / 5);
  padding: 8px 10px 8px 12px;
  border: none;
  background: transparent;
  box-shadow: inset 3px 0 0 transparent;
}

.wingman-match-card-matches__report-item + .wingman-match-card-matches__report-item {
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.wingman-match-card-matches__report-item--form {
  box-shadow: inset 3px 0 0 #2f9e6b;
}

.wingman-match-card-matches__report-item--h2h {
  box-shadow: inset 3px 0 0 var(--accent, #c45c26);
}

.wingman-match-card-matches__report-item--last10 {
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--fg) 45%, transparent);
}

.wingman-match-card-matches__report-item--season {
  box-shadow: inset 2px 0 0 color-mix(in srgb, var(--border) 90%, var(--fg));
}

.wingman-match-card-matches__report-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.wingman-match-card-matches__report-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--border) 80%, transparent);
  font-size: 9px;
  font-weight: var(--fw-700);
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted);
}

.wingman-match-card-matches__report-item--form .wingman-match-card-matches__report-tag {
  color: #2f9e6b;
  background: color-mix(in srgb, #2f9e6b 14%, transparent);
}

.wingman-match-card-matches__report-item--h2h .wingman-match-card-matches__report-tag {
  color: var(--accent, #c45c26);
  background: color-mix(in srgb, var(--accent, #c45c26) 14%, transparent);
}

.wingman-match-card-matches__report-frac {
  flex: 0 0 auto;
  font-family: var(--font-score, var(--font-sans));
  font-size: var(--fs-13);
  font-weight: var(--fw-700);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #333333;
}

html[data-theme="dark"] .wingman-match-card-matches__report-frac {
  color: #ffffff;
}

.wingman-match-card-matches__report-text {
  margin: 0;
  min-width: 0;
  color: #333333;
  font-size: var(--fs-13);
  font-weight: var(--fw-500);
  line-height: 1.35;
}

html[data-theme="dark"] .wingman-match-card-matches__report-text {
  color: #ffffff;
}

.wingman-match-card-matches__report-empty {
  margin: auto;
  padding: var(--space-24) 10px;
  color: var(--muted);
  font-size: var(--fs-14);
  line-height: 1.4;
  text-align: center;
}

.wingman-match-card-matches__pane {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.wingman-match-card-matches__pane-head {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  gap: var(--space-8);
  min-width: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.wingman-match-card-matches__compare > .wingman-match-card-matches__pane-head {
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  gap: 10px;
  justify-content: center;
  overflow: hidden;
}

.wingman-match-card-matches__pane-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-8);
  min-height: 24px;
  min-width: 0;
}

.wingman-match-card-matches__pane-team {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  min-width: 0;
}

.wingman-match-card-matches__pane-team--home {
  justify-content: flex-start;
}

.wingman-match-card-matches__pane-team--away {
  justify-content: flex-end;
}

.wingman-match-card-matches__pane-logo,
.wingman-match-card-matches__pane-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
}

.wingman-match-card-matches__pane-logo-img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.wingman-match-card-matches__pane-label {
  justify-self: center;
  font-size: 10px;
  font-weight: var(--fw-700);
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted);
}

.wingman-match-card-matches__pane-count {
  font-family: var(--font-score, var(--font-sans));
  font-size: var(--fs-16);
  font-weight: var(--fw-700);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: #333333;
}

html[data-theme="dark"] .wingman-match-card-matches__pane-count {
  color: #ffffff;
}

.wingman-match-card-matches__pane-track {
  display: flex;
  height: 6px;
  gap: 0;
  border-radius: 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--border) 55%, transparent);
}

.wingman-match-card-matches__compare-row .wingman-match-card-matches__pane-track::after {
  content: none;
}

.wingman-match-card-matches__pane-spine {
  flex: 0 0 auto;
}

.wingman-match-card-matches__pane-spine .wingman-match-card-matches__pane-fill {
  flex: 1 1 0;
  width: auto;
}

.wingman-match-card-matches__pane-fill {
  display: block;
  height: 100%;
  min-width: 0;
  border-radius: 0;
}

.wingman-match-card-matches__pane-fill--home {
  background: var(--wingman-team-home-color, var(--accent));
}

.wingman-match-card-matches__pane-fill--away {
  background: var(--wingman-team-away-color, color-mix(in srgb, #ffb347 85%, var(--accent) 15%));
}

.wingman-match-card-matches__pane-list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.wingman-match-card-matches__pane-row {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;
  justify-content: center;
  gap: var(--space-4);
  min-width: 0;
  min-height: 0;
  padding: 0 var(--space-4);
  border: none;
  border-radius: 0;
  background: transparent;
}

.wingman-match-card-matches__pane-row + .wingman-match-card-matches__pane-row {
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.wingman-match-card-matches__compare {
  min-width: 0;
}

.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-summary-teams {
  display: none;
}

.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__pane-summary {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 0;
  min-height: 0;
  overflow: hidden;
}

.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__pane-head .wingman-match-card-matches__h2h-tabs {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-self: center;
  gap: 4px;
  min-width: 0;
}

.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-tab {
  min-height: 24px;
  height: 24px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-tab-logo,
.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-tab-logo-inner,
.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-tab-logo-img {
  width: 14px;
  height: 14px;
}

.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-list {
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  flex: 1 1 auto;
  align-content: stretch;
  gap: 0;
  overflow: hidden;
}

.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-league,
.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-divider {
  display: none;
}

.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-row {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  min-height: 0;
  height: auto;
  max-height: none;
  padding: 0 10px;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-row + .wingman-match-card-matches__h2h-row {
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-team--home {
  grid-column: 1;
}

.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-score {
  grid-column: 2;
  padding: 0;
  background: transparent;
}

.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-team--away {
  grid-column: 3;
}

.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-row--home.wingman-match-card-matches__h2h-row--accent-left,
.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-row--away.wingman-match-card-matches__h2h-row--accent-left {
  box-shadow: inset 2px 0 0 var(--h2h-accent);
  background: transparent;
}

.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-row--home.wingman-match-card-matches__h2h-row--accent-right,
.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-row--away.wingman-match-card-matches__h2h-row--accent-right {
  box-shadow: inset -2px 0 0 var(--h2h-accent);
  background: transparent;
}

html[data-theme="dark"] .wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-row--home.wingman-match-card-matches__h2h-row--accent-left,
html[data-theme="dark"] .wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-row--away.wingman-match-card-matches__h2h-row--accent-left,
html[data-theme="dark"] .wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-row--home.wingman-match-card-matches__h2h-row--accent-right,
html[data-theme="dark"] .wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-row--away.wingman-match-card-matches__h2h-row--accent-right {
  background: transparent;
}

.wingman-match-card-matches__compare-values {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
  align-items: center;
  gap: var(--space-6);
}

.wingman-match-card-matches__compare-value {
  font-family: var(--font-score, var(--font-sans));
  font-size: var(--fs-13);
  font-weight: var(--fw-700);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.wingman-match-card-matches__compare-value--home {
  text-align: right;
  color: #333333;
}

.wingman-match-card-matches__compare-value--away {
  text-align: left;
  color: #333333;
}

html[data-theme="dark"] .wingman-match-card-matches__compare-value--home,
html[data-theme="dark"] .wingman-match-card-matches__compare-value--away {
  color: #ffffff;
}

.wingman-match-card-matches__compare-label {
  min-width: 0;
  font-size: var(--fs-12);
  font-weight: var(--fw-600);
  line-height: 1.2;
  color: var(--muted);
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wingman-match-card-matches__main {
  min-width: 0;
}

.wingman-match-card-matches__arena {
  --wingman-arena-pad: var(--space-14);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: none;
  border-radius: var(--radius-12);
  background: var(--surface-1);
}

.wingman-match-card-matches__arena-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(20, 20, 20, 0.02) 0%,
    transparent 100%
  );
}

.wingman-match-card-matches__arena-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--surface-1) 82%, transparent) 0%,
    color-mix(in srgb, var(--surface-1) 42%, transparent) 32%,
    color-mix(in srgb, var(--surface-1) 42%, transparent) 68%,
    color-mix(in srgb, var(--surface-1) 82%, transparent) 100%
  );
}

html[data-theme="dark"] .wingman-match-card-matches__arena-bg {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.03) 0%,
    transparent 100%
  );
}

html[data-theme="dark"] .wingman-match-card-matches__arena-bg::after {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--surface-1) 88%, transparent) 0%,
    color-mix(in srgb, var(--surface-1) 48%, transparent) 32%,
    color-mix(in srgb, var(--surface-1) 48%, transparent) 68%,
    color-mix(in srgb, var(--surface-1) 88%, transparent) 100%
  );
}

.wingman-match-card-matches__arena--themed .wingman-match-card-matches__arena-bg {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--wingman-team-home-color, transparent) 22%, transparent) 0%,
    transparent 38%,
    transparent 62%,
    color-mix(in srgb, var(--wingman-team-away-color, transparent) 22%, transparent) 100%
  );
}

.wingman-match-card-matches__arena-teams-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.wingman-match-card-matches__arena-team-watermark {
  position: absolute;
  top: 50%;
  width: clamp(200px, 92%, 380px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  opacity: 0.62;
  filter: blur(28px) saturate(1.45);
}

.wingman-match-card-matches__arena-team-watermark--home {
  left: -24%;
}

.wingman-match-card-matches__arena-team-watermark--away {
  right: -24%;
}

.wingman-match-card-matches__arena--themed .wingman-match-card-matches__arena-team-watermark {
  opacity: 0.72;
}

.wingman-match-card-matches__arena-team-watermark-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

html[data-theme="dark"] .wingman-match-card-matches__arena-team-watermark-img--light {
  display: none;
}

html:not([data-theme="dark"]) .wingman-match-card-matches__arena-team-watermark-img--dark {
  display: none;
}

.wingman-match-card-matches__arena-inner {
  position: relative;
  z-index: 1;
  padding: var(--wingman-arena-pad);
  min-width: 0;
}

.wingman-match-card-matches__schedule {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  max-width: 100%;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.wingman-match-card-matches__schedule-sep {
  color: var(--muted-2);
  line-height: 1;
}

.wingman-match-card-matches__date,
.wingman-match-card-matches__time {
  display: inline;
  font-size: var(--fs-12);
  line-height: 1.2;
  white-space: nowrap;
}

.wingman-match-card-matches__date {
  font-weight: var(--fw-500);
  color: var(--muted);
}

.wingman-match-card-matches__time {
  font-weight: var(--fw-700);
  color: var(--fg);
}

.wingman-match-card-matches__arena--themed .wingman-match-card-matches__time {
  color: color-mix(in srgb, var(--wingman-team-home-color, var(--fg)) 45%, var(--fg));
}

.wingman-match-card-matches__showdown {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(var(--space-10), 2.5vw, var(--space-16));
  min-width: 0;
}

.wingman-match-card-matches__side {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  min-width: 0;
}

.wingman-match-card-matches__side--home,
.wingman-match-card-matches__side--away {
  align-items: center;
}

.wingman-match-card-matches__side-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  width: 100%;
  min-width: 0;
}

.wingman-match-card-matches__side-head .match-team-standing-rank {
  min-width: 0;
  font-size: 10px;
  font-weight: var(--fw-600);
  text-align: center;
}

.wingman-match-card-matches__side-logo-wrap {
  --wingman-side-logo-size: 48px;
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--wingman-side-logo-size);
  height: var(--wingman-side-logo-size);
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.wingman-match-card-matches__side-logo-inner.match-team-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.wingman-match-card-matches__side-logo-wrap .match-team-logo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}

.wingman-match-card-matches__side-logo-wrap .match-team-logo--light,
.wingman-match-card-matches__side-logo-wrap .match-team-logo--dark {
  position: absolute;
  inset: 0;
}

.wingman-match-card-matches__side-name {
  max-width: 100%;
  width: 100%;
  font-size: clamp(var(--fs-13), 1.6vw, var(--fs-15));
  font-weight: var(--fw-600);
  line-height: var(--lh-tight);
  color: var(--fg);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.wingman-match-card-matches__side-form {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 22px;
}

.wingman-match-card-matches__side--home .wingman-match-card-matches__side-form,
.wingman-match-card-matches__side--away .wingman-match-card-matches__side-form {
  justify-content: center;
}

.wingman-match-card-matches__side-form--home .match-form-strip,
.wingman-match-card-matches__side-form--away .match-form-strip {
  justify-content: center;
}

/* Home: X X X X [X] — najnowsza z prawej z obramowaniem (DOM: oldest → newest) */
/* Away: [X] X X X X — najnowsza z lewej z obramowaniem (lustrzane) */
.wingman-match-card-matches__side-form--away .match-form-strip {
  flex-direction: row-reverse;
}

.wingman-match-card-matches__side-form--away .match-form-strip__item--latest {
  margin-left: 0;
  margin-right: max(0px, var(--form-latest-offset));
}

.wingman-match-card-matches__duel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  align-self: center;
  min-width: 5.5rem;
  padding-inline: var(--space-4);
}

.wingman-match-card-matches__score {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.wingman-match-card-matches__score:has(.match-score-stack:not([hidden])) {
  min-width: 4.5rem;
  min-height: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: none;
  border-radius: 0;
}

html[data-theme="dark"] .wingman-match-card-matches__score:has(.match-score-stack:not([hidden])) {
  background: transparent;
  box-shadow: none;
}

.wingman-match-card-matches__arena--themed .wingman-match-card-matches__score:has(.match-score-stack:not([hidden])) {
  background: transparent;
  box-shadow: none;
}

html:not([data-theme="dark"]) .wingman-match-card-matches__arena--themed .wingman-match-card-matches__score:has(.match-score-stack:not([hidden])) {
  background: transparent;
  box-shadow: none;
}

.wingman-match-card-matches__duel-vs {
  font-size: 11px;
  font-weight: var(--fw-700);
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted-2);
}

.wingman-match-card-matches__arena--themed .wingman-match-card-matches__duel-vs {
  color: var(--muted-2);
}

.wingman-match-card-matches__score:has(.match-score-stack:not([hidden])) .wingman-match-card-matches__duel-vs {
  display: none;
}

.wingman-match-card-matches__score .match-score-stack {
  --a3-row-h: 42px;
  --a3-row-gap: 0;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: auto;
  white-space: nowrap;
}

.wingman-match-card-matches__score .match-score-stack__row {
  min-height: auto;
  font-size: 42px;
  font-weight: 500;
  line-height: 1;
}

.wingman-match-card-matches__score .match-score-stack__row--home::after {
  content: " - ";
  font-weight: inherit;
  color: inherit;
}

.wingman-match-card-matches__hero-flip-btn {
  display: none;
}

html:not([data-device="phone"]) .wingman-match-card-matches__hero-flip,
html:not([data-device="phone"]) .wingman-match-card-matches__hero-face {
  display: contents;
}

.wingman-match-card-matches__hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  min-width: 0;
}

@media (min-width: 1100px) {
  .wingman-match-card--matches-view .wingman-match-card-matches__hero,
  .wingman-match-card--leagues-view .wingman-match-card-matches__hero {
    flex-direction: row;
    align-items: stretch;
    gap: var(--space-12);
  }

  .wingman-match-card--matches-view .wingman-match-card-matches__hero .wingman-match-card-matches__main,
  .wingman-match-card--leagues-view .wingman-match-card-matches__hero .wingman-match-card-matches__main {
    flex: 1 1 auto;
    min-width: 0;
  }

  .wingman-match-card--matches-view .wingman-match-card-matches__hero .wingman-match-card-matches__picks,
  .wingman-match-card--leagues-view .wingman-match-card-matches__hero .wingman-match-card-matches__picks {
    flex: 0 0 auto;
    align-self: center;
    margin-left: var(--space-8);
    margin-right: var(--space-14);
  }

  .wingman-match-card--matches-view .wingman-match-card-matches__stage .wingman-match-card-matches__hero .wingman-match-card-matches__picks {
    margin-right: 0;
  }
}

.wingman-match-card-matches__picks {
  flex: 0 0 auto;
  align-self: center;
  margin-left: var(--space-8);
  display: grid;
  grid-template-columns: repeat(3, minmax(2.85rem, auto));
  gap: var(--space-40);
  align-items: start;
  margin-right: var(--space-14);
}

.wingman-match-card-matches__pick-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  min-width: 0;
}

.wingman-match-card-matches__pick-label {
  font-size: 9px;
  font-weight: var(--fw-600);
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted-2);
}

.wingman-match-card-matches__pick-prob,
.wingman-match-card-matches__pick-odd {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
}

.wingman-match-card-matches__pick-odd .match-pick-odd {
  min-width: 0;
}

.wingman-match-card-matches__h2h {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  padding: var(--space-12);
  border: 1px solid var(--border);
  border-radius: var(--radius-12);
  background: linear-gradient(180deg, rgba(20, 20, 20, 0.02), transparent 55%);
  min-width: 0;
}

html[data-theme="dark"] .wingman-match-card-matches__h2h {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 55%);
}

.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"],
html[data-theme="dark"] .wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"],
html[data-theme="light"] .wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] {
  background: transparent;
  border: none;
  box-shadow: none;
}

.wingman-match-card-matches__h2h-head {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  min-width: 0;
}

.wingman-match-card-matches__h2h-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.wingman-match-card-matches__h2h-toggle-main {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-6);
  min-width: 0;
}

.wingman-match-card-matches__h2h-toggle:focus-visible {
  outline: none;
  border-radius: var(--radius-sm);
  box-shadow: var(--focus-ring);
}

.wingman-match-card-matches__h2h-title {
  margin: 0;
  font-size: 10px;
  font-weight: var(--fw-700);
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted);
}

.wingman-match-card-matches__h2h-chip {
  display: none;
  align-items: center;
  min-height: 22px;
  padding: 0 var(--space-8);
  border-radius: var(--radius-pill);
  background: rgba(20, 20, 20, 0.06);
  font-size: var(--fs-12);
  font-weight: var(--fw-600);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--fg);
}

.wingman-match-card-matches__h2h[data-wingman-h2h-expanded="true"] .wingman-match-card-matches__h2h-chip {
  display: inline-flex;
}

html[data-theme="dark"] .wingman-match-card-matches__h2h-chip {
  background: rgba(255, 255, 255, 0.1);
}

.wingman-match-card-matches__h2h-summary {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  min-width: 0;
}

.wingman-match-card-matches__h2h-summary-teams {
  display: none;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--space-8);
}

.wingman-match-card-matches__h2h[data-wingman-h2h-expanded="true"] .wingman-match-card-matches__h2h-summary-teams {
  display: grid;
}

.wingman-match-card-matches__h2h-summary-team {
  display: inline-flex;
  align-items: center;
  gap: var(--space-6);
  min-width: 0;
}

.wingman-match-card-matches__h2h-summary-team--home {
  justify-content: flex-start;
}

.wingman-match-card-matches__h2h-summary-team--draw {
  flex-direction: column;
  gap: var(--space-2);
  justify-content: center;
  text-align: center;
}

.wingman-match-card-matches__h2h-summary-team--away {
  justify-content: flex-end;
}

.wingman-match-card-matches__h2h-summary-draw-label {
  font-size: 9px;
  font-weight: var(--fw-700);
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--muted-2);
}

.wingman-match-card-matches__h2h-summary-count {
  font-size: var(--fs-16);
  font-weight: var(--fw-700);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--fg);
}

.wingman-match-card-matches__h2h-summary-logo-wrap,
.wingman-match-card-matches__h2h-summary-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.wingman-match-card-matches__h2h-summary-logo-img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.wingman-match-card-matches__h2h-summary-bar {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 6px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: rgba(20, 20, 20, 0.06);
}

html[data-theme="dark"] .wingman-match-card-matches__h2h-summary-bar {
  background: rgba(255, 255, 255, 0.08);
}

.wingman-match-card-matches__h2h-summary-seg {
  flex: 0 1 auto;
  min-width: 4px;
  border-radius: var(--radius-pill);
}

.wingman-match-card-matches__h2h-summary-seg--home {
  background: var(--wingman-team-home-color, #2f9e63);
}

.wingman-match-card-matches__h2h-summary-seg--draw {
  background: #8f96a3;
}

.wingman-match-card-matches__h2h-summary-seg--away {
  background: var(--wingman-team-away-color, #3b82f6);
}

.wingman-match-card-matches__h2h-chevron {
  flex: 0 0 auto;
  font-size: var(--fs-12);
  color: var(--muted-2);
  transition: transform var(--dur-2) var(--ease-out);
}

.wingman-match-card-matches__h2h[data-wingman-h2h-expanded="true"] .wingman-match-card-matches__h2h-chevron {
  transform: rotate(180deg);
}

.wingman-match-card-matches__h2h-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  min-width: 0;
  min-height: 0;
}

.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-body {
  flex: 1 1 auto;
  overflow: hidden;
}

.wingman-match-card-matches__h2h-body[hidden] {
  display: none !important;
}

.wingman-match-card-matches__h2h-list {
  --wingman-h2h-col-league: 22px;
  --wingman-h2h-col-divider: 1px;
  --wingman-h2h-col-score: 3.25rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-list {
  overflow: hidden;
}

.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-summary-bar {
  height: 6px;
  border-radius: 0;
  background: color-mix(in srgb, var(--border) 55%, transparent);
}

.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-summary-seg {
  border-radius: 0;
}

.wingman-match-card-matches__h2h-row[hidden] {
  display: none !important;
}

.wingman-match-card-matches__h2h-empty {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  font-size: var(--fs-12);
  font-weight: var(--fw-500);
  line-height: var(--lh-tight);
  color: var(--muted);
  list-style: none;
}

.wingman-match-card-matches__h2h-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  min-width: 0;
}

.wingman-match-card-matches__h2h-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  box-sizing: border-box;
  min-height: 28px;
  height: 28px;
  max-width: 100%;
  padding: 0 var(--space-10);
  border: 1px solid rgba(20, 20, 20, 0.14);
  border-radius: var(--radius-pill);
  background: none;
  color: #333;
  font-family: var(--font-sans);
  font-size: var(--fs-12);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition:
    background-color var(--dur-2) var(--ease-out),
    border-color var(--dur-2) var(--ease-out),
    color var(--dur-2) var(--ease-out);
}

html[data-theme="dark"] .wingman-match-card-matches__h2h-tab:not(.wingman-match-card-matches__h2h-tab--active) {
  background: none;
  color: #e8e8e8;
  border-color: rgba(255, 255, 255, 0.16);
}

.wingman-match-card-matches__h2h-tab:not(.wingman-match-card-matches__h2h-tab--active):hover,
.wingman-match-card-matches__h2h-tab:not(.wingman-match-card-matches__h2h-tab--active):focus-visible {
  color: #333;
  border-color: #33333313;
  background: #33333313;
}

.wingman-match-card-matches__h2h-tab:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.wingman-match-card-matches__h2h-tab--active {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--surface-1);
}

html[data-theme="light"] .wingman-match-card-matches__h2h-tab--active,
html[data-theme="light"] .wingman-match-card-matches__h2h-tab--active:hover,
html[data-theme="light"] .wingman-match-card-matches__h2h-tab--active:focus-visible {
  background: #333333;
  border-color: #333333;
  color: #ffffff;
}

html[data-theme="dark"] .wingman-match-card-matches__h2h-tab:not(.wingman-match-card-matches__h2h-tab--active):hover,
html[data-theme="dark"] .wingman-match-card-matches__h2h-tab:not(.wingman-match-card-matches__h2h-tab--active):focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .wingman-match-card-matches__h2h-tab--active {
  background: #ffffff;
  border-color: #ffffff;
  color: #141414;
}

.wingman-match-card-matches__h2h-tab-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.wingman-match-card-matches__h2h-tab-logo-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.wingman-match-card-matches__h2h-tab-logo-img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.wingman-match-card-matches__h2h-tab-suffix {
  flex: 0 0 auto;
  color: inherit;
}

.wingman-match-card-matches__h2h-row {
  display: grid;
  grid-template-columns:
    var(--wingman-h2h-col-league)
    var(--wingman-h2h-col-divider)
    minmax(0, 1fr)
    var(--wingman-h2h-col-score)
    minmax(0, 1fr);
  column-gap: var(--space-8);
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
  padding: var(--space-8) var(--space-10);
  border: 1px solid var(--border);
  border-radius: var(--radius-12);
  background: var(--surface-1);
}

html[data-theme="dark"] .wingman-match-card-matches__h2h-row {
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
}

.wingman-match-card-matches__h2h-row--home {
  --h2h-accent: var(--wingman-team-home-color, #2f9e63);
  --h2h-accent-border: color-mix(in srgb, var(--h2h-accent) 36%, var(--border));
  --h2h-accent-mix: rgba(255, 255, 255, 0.7);
}

.wingman-match-card-matches__h2h-row--away {
  --h2h-accent: var(--wingman-team-away-color, #3b82f6);
  --h2h-accent-border: color-mix(in srgb, var(--h2h-accent) 36%, var(--border));
  --h2h-accent-mix: rgba(255, 255, 255, 0.7);
}

html[data-theme="dark"] .wingman-match-card-matches__h2h-row--home,
html[data-theme="dark"] .wingman-match-card-matches__h2h-row--away {
  --h2h-accent-border: color-mix(in srgb, var(--h2h-accent) 42%, var(--border));
  --h2h-accent-mix: rgba(255, 255, 255, 0.06);
}

.wingman-match-card-matches__h2h-row--home.wingman-match-card-matches__h2h-row--accent-left,
.wingman-match-card-matches__h2h-row--away.wingman-match-card-matches__h2h-row--accent-left {
  border-color: var(--h2h-accent-border);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--h2h-accent) 22%, var(--h2h-accent-mix)) 0%,
    color-mix(in srgb, var(--h2h-accent) 10%, transparent) 38%,
    transparent 62%
  );
}

.wingman-match-card-matches__h2h-row--home.wingman-match-card-matches__h2h-row--accent-right,
.wingman-match-card-matches__h2h-row--away.wingman-match-card-matches__h2h-row--accent-right {
  border-color: var(--h2h-accent-border);
  background: linear-gradient(
    270deg,
    color-mix(in srgb, var(--h2h-accent) 22%, var(--h2h-accent-mix)) 0%,
    color-mix(in srgb, var(--h2h-accent) 10%, transparent) 38%,
    transparent 62%
  );
}

html[data-theme="dark"] .wingman-match-card-matches__h2h-row--home.wingman-match-card-matches__h2h-row--accent-left,
html[data-theme="dark"] .wingman-match-card-matches__h2h-row--away.wingman-match-card-matches__h2h-row--accent-left {
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--h2h-accent) 28%, var(--h2h-accent-mix)) 0%,
    color-mix(in srgb, var(--h2h-accent) 12%, transparent) 38%,
    transparent 62%
  );
}

html[data-theme="dark"] .wingman-match-card-matches__h2h-row--home.wingman-match-card-matches__h2h-row--accent-right,
html[data-theme="dark"] .wingman-match-card-matches__h2h-row--away.wingman-match-card-matches__h2h-row--accent-right {
  background: linear-gradient(
    270deg,
    color-mix(in srgb, var(--h2h-accent) 28%, var(--h2h-accent-mix)) 0%,
    color-mix(in srgb, var(--h2h-accent) 12%, transparent) 38%,
    transparent 62%
  );
}

.wingman-match-card-matches__h2h-row--draw {
  border-color: color-mix(in srgb, #8f96a3 24%, var(--border));
}

.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-row--home.wingman-match-card-matches__h2h-row--accent-left,
.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-row--away.wingman-match-card-matches__h2h-row--accent-left {
  box-shadow: inset 2px 0 0 var(--h2h-accent);
  background: transparent;
}

.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-row--home.wingman-match-card-matches__h2h-row--accent-right,
.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-row--away.wingman-match-card-matches__h2h-row--accent-right {
  box-shadow: inset -2px 0 0 var(--h2h-accent);
  background: transparent;
}

html[data-theme="dark"] .wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-row--home.wingman-match-card-matches__h2h-row--accent-left,
html[data-theme="dark"] .wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-row--away.wingman-match-card-matches__h2h-row--accent-left,
html[data-theme="dark"] .wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-row--home.wingman-match-card-matches__h2h-row--accent-right,
html[data-theme="dark"] .wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-row--away.wingman-match-card-matches__h2h-row--accent-right {
  background: transparent;
}

.wingman-match-card-matches__h2h[data-wingman-h2h-always-open="true"] .wingman-match-card-matches__h2h-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wingman-match-card-matches__h2h-divider {
  grid-column: 2;
  align-self: stretch;
  width: 0;
  margin: 2px 0;
  border-right: 1px dashed var(--border);
}

.wingman-match-card-matches__h2h-team {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  min-width: 0;
}

.wingman-match-card-matches__h2h-team--home {
  grid-column: 3;
  justify-content: flex-start;
}

.wingman-match-card-matches__h2h-team--away {
  grid-column: 5;
  justify-content: flex-end;
}

.wingman-match-card-matches__h2h-name {
  min-width: 0;
  flex: 1 1 auto;
  font-size: var(--fs-12);
  font-weight: var(--fw-500);
  line-height: var(--lh-tight);
  color: var(--fg);
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.wingman-match-card-matches__h2h-team--home .wingman-match-card-matches__h2h-name {
  text-align: left;
}

.wingman-match-card-matches__h2h-team--away .wingman-match-card-matches__h2h-name {
  text-align: right;
}

.wingman-match-card-matches__h2h-side {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

.wingman-match-card-matches__h2h-league {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.wingman-match-card-matches__h2h-league--empty {
  width: 18px;
  height: 18px;
}

.wingman-match-card-matches__h2h-league-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.wingman-match-card-matches__h2h-league-logo {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

html[data-theme="dark"] .wingman-match-card-matches__h2h-league-logo--light {
  display: none;
}

html:not([data-theme="dark"]) .wingman-match-card-matches__h2h-league-logo--dark {
  display: none;
}

.wingman-match-card-matches__h2h-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}

.wingman-match-card-matches__h2h-logo {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.wingman-match-card-matches__h2h-score {
  grid-column: 4;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-pill);
  background: rgba(20, 20, 20, 0.05);
  font-family: var(--font-score);
  font-size: var(--fs-14);
  font-weight: var(--fw-700);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
  color: var(--fg);
}

html[data-theme="dark"] .wingman-match-card-matches__h2h-score {
  background: rgba(255, 255, 255, 0.08);
}

.wingman-match-card-matches__h2h-score-part--win {
  color: var(--h2h-accent, var(--fg));
}

.wingman-match-card-matches__h2h-row--home .wingman-match-card-matches__h2h-score-part--win {
  color: var(--wingman-team-home-color, var(--h2h-accent));
}

.wingman-match-card-matches__h2h-row--away .wingman-match-card-matches__h2h-score-part--win {
  color: var(--wingman-team-away-color, var(--h2h-accent));
}

.wingman-match-card-matches__h2h-score-sep {
  opacity: 0.55;
}

@media (max-width: 1249px) {
  .wingman-match-card--matches-view .wingman-match-card-matches__side-form {
    display: none;
  }
}

@media (max-width: 1099px) {
  .wingman-match-card--matches-view .wingman-match-card-matches__hero .wingman-match-card-matches__picks,
  .wingman-match-card--leagues-view .wingman-match-card-matches__hero .wingman-match-card-matches__picks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 4vw, 28px);
    width: 100%;
    margin: 0;
    padding: var(--space-12) 0 0;
    border-top: 1px solid var(--border);
    align-self: stretch;
    justify-items: center;
  }

  html:not([data-device="phone"]) .wingman-match-card--matches-view .wingman-stat-bar__hit {
    display: none;
  }

  html:not([data-device="phone"]) .wingman-match-card--matches-view .wingman-stat-bar__team,
  html:not([data-device="phone"]) .wingman-match-card--matches-view .wingman-match-card__stats-head-team {
    grid-template-columns: var(--wingman-stat-team-cols-compact);
  }

  html:not([data-device="phone"]) .wingman-match-card--matches-view .wingman-stat-bar__team .match-pick-prob {
    grid-column: 1;
  }

  html:not([data-device="phone"]) .wingman-match-card--matches-view .wingman-stat-bar__team .match-pick-odd {
    grid-column: 2;
  }

  html:not([data-device="phone"]) .wingman-match-card--matches-view .wingman-match-card__stats-logo-wrap {
    grid-column: 1;
  }
}

@media (max-width: 949px) {
  .wingman-match-card-matches__arena {
    --wingman-arena-pad: var(--space-12);
  }

  .wingman-match-card-matches__showdown {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: var(--space-8);
  }

  .wingman-match-card-matches__side-logo-wrap {
    --wingman-side-logo-size: 44px;
  }

  .wingman-match-card-matches__h2h-summary-count {
    font-size: var(--fs-14);
  }
}

@media (max-width: 560px) {
  .wingman-match-card-matches__side-name {
    font-size: var(--fs-12);
  }

  .wingman-match-card-matches__h2h-name {
    font-size: 11px;
  }

  .wingman-match-card-matches__h2h-row {
    column-gap: var(--space-4);
    padding: var(--space-6) var(--space-8);
  }
}

/* ChiliWrap Ligi — ukryj 1X2 i hit: 1110–1399px oraz poniżej 690px */
@media (min-width: 1110px) and (max-width: 1399px) {
  .category-leagues[data-category="wingman"] .wingman-match-card--leagues-view .wingman-match-card-matches__picks {
    display: none !important;
  }

  .category-leagues[data-category="wingman"] .wingman-match-card--leagues-view .wingman-stat-bar__hit {
    display: none !important;
  }

  .category-leagues[data-category="wingman"] .wingman-match-card--leagues-view .wingman-stat-bar__team,
  .category-leagues[data-category="wingman"] .wingman-match-card--leagues-view .wingman-match-card__stats-head-team {
    grid-template-columns: var(--wingman-stat-team-cols-compact);
  }

  .category-leagues[data-category="wingman"] .wingman-match-card--leagues-view .wingman-stat-bar__team .match-pick-prob {
    grid-column: 1;
  }

  .category-leagues[data-category="wingman"] .wingman-match-card--leagues-view .wingman-stat-bar__team .match-pick-odd {
    grid-column: 2;
  }

  .category-leagues[data-category="wingman"] .wingman-match-card--leagues-view .wingman-match-card__stats-logo-wrap {
    grid-column: 1;
  }
}

@media (max-width: 689px) {
  .category-leagues[data-category="wingman"] .wingman-match-card--leagues-view .wingman-match-card-matches__picks {
    display: none !important;
  }

  html:not([data-device="phone"]) .category-leagues[data-category="wingman"] .wingman-match-card--leagues-view .wingman-stat-bar__hit {
    display: none !important;
  }

  html:not([data-device="phone"]) .category-leagues[data-category="wingman"] .wingman-match-card--leagues-view .wingman-stat-bar__team,
  html:not([data-device="phone"]) .category-leagues[data-category="wingman"] .wingman-match-card--leagues-view .wingman-match-card__stats-head-team {
    grid-template-columns: var(--wingman-stat-team-cols-compact);
  }

  html:not([data-device="phone"]) .category-leagues[data-category="wingman"] .wingman-match-card--leagues-view .wingman-stat-bar__team .match-pick-prob {
    grid-column: 1;
  }

  html:not([data-device="phone"]) .category-leagues[data-category="wingman"] .wingman-match-card--leagues-view .wingman-stat-bar__team .match-pick-odd {
    grid-column: 2;
  }

  html:not([data-device="phone"]) .category-leagues[data-category="wingman"] .wingman-match-card--leagues-view .wingman-match-card__stats-logo-wrap {
    grid-column: 1;
  }
}

/* Stats head — rozmiar loga (ładowane po match-team-logo.css) */
.wingman-match-card__stats-section .wingman-match-card__stats-logo-wrap {
  width: var(--wingman-stats-logo-size, 48px);
  height: var(--wingman-stats-logo-size, 48px);
}

/* Telefon (data-device=phone): head = loga; bar = tytuł + dane jak desktop */
html[data-device="phone"] .wingman-match-card__stats-section {
  /* Tylko paski kategorii — 1X2 używa własnego --prob-size */
  --wingman-stat-prob-size: clamp(28px, 7.5vw, 34px);
  --wingman-stat-odd-w: 52px;
  --wingman-stat-odd-h: 26px;
  --wingman-stat-hit-w: 3.25rem;
  --wingman-stat-team-gap: clamp(4px, 1.2vw, 8px);
  --wingman-stat-teams-gap: clamp(16px, 5vw, 24px);
  /* obie strony: szeroki slot (hit) | koło | szeroki slot — kolejność: kurs→koło→hit | hit→koło→kurs */
  --wingman-stat-team-cols: var(--wingman-stat-hit-w) var(--wingman-stat-prob-size) var(--wingman-stat-hit-w);
  --wingman-stat-team-col: minmax(0, 1fr);
  --wingman-stats-logo-size: clamp(36px, 10vw, 44px);
  --wingman-stat-hit-track-h: 4px;
}

html[data-device="phone"] .wingman-match-card--matches-view .wingman-match-card__stats-section {
  --wingman-stats-logo-size: 28px;
  --wingman-stats-logo-offset-x: 0;
}

html[data-device="phone"] .wingman-match-card__stats-head-label {
  display: none;
}

html[data-device="phone"] .wingman-match-card__stats-head-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: var(--wingman-stat-teams-gap);
  align-items: center;
  min-height: 0;
  min-width: 0;
}

html[data-device="phone"] .wingman-match-card__stats-head-row.league-header__head {
  align-items: center;
  min-height: 0;
  max-height: none;
  padding: var(--space-6) var(--space-10) var(--space-6) var(--space-6);
  gap: var(--space-6);
}

html[data-device="phone"] .wingman-match-card__stats-head-team {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: none;
  min-height: 0;
  box-sizing: border-box;
}

html[data-device="phone"] .wingman-match-card__stats-head-team--home {
  grid-column: 1;
  justify-self: center;
}

html[data-device="phone"] .wingman-match-card__stats-head-team--away {
  grid-column: 2;
  justify-self: center;
}

html[data-device="phone"] .wingman-match-card__stats-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  grid-column: unset;
  width: var(--wingman-stats-logo-size, 44px);
  height: var(--wingman-stats-logo-size, 44px);
  max-width: 100%;
  margin-inline: auto;
  transform: none;
}

html[data-device="phone"] .wingman-stat-bar__head.league-header__head {
  align-items: center;
  min-height: 0;
  max-height: none;
  padding: var(--space-10) var(--space-10) var(--space-10) var(--space-6);
  gap: var(--space-6);
}

html[data-device="phone"] .wingman-stat-bar__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  row-gap: var(--space-8);
  column-gap: var(--wingman-stat-teams-gap);
  align-items: center;
  min-height: 0;
  min-width: 0;
  width: 100%;
  padding: var(--space-2) 0;
}

html[data-device="phone"] .wingman-match-card__stats-head-grid.wingman-stat-bar__content {
  grid-template-rows: none;
  row-gap: 0;
  padding: 0;
  min-height: 0;
}

html[data-device="phone"] .wingman-stat-bar__title {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: center;
  align-self: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0 var(--space-8);
  font-size: 11px;
  font-weight: var(--fw-400);
  line-height: 1.3;
  text-align: center;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-word;
}

html[data-device="phone"] .wingman-stat-bar--dc .wingman-stat-bar__content--dc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  row-gap: var(--space-8);
  column-gap: var(--wingman-stat-teams-gap);
  align-items: center;
  justify-items: stretch;
  width: 100%;
  padding: var(--space-2) 0;
  position: relative;
}

html[data-device="phone"] .wingman-stat-bar--dc .wingman-stat-bar__title {
  grid-column: 1 / -1;
  grid-row: 1;
}

html[data-device="phone"] .wingman-stat-bar--dc .wingman-stat-bar__dc-home,
html[data-device="phone"] .wingman-stat-bar--dc .wingman-stat-bar__dc-away {
  display: grid;
  grid-template-columns: var(--wingman-stat-team-cols);
  column-gap: var(--wingman-stat-team-gap);
  align-items: center;
  justify-items: center;
  width: max-content;
  max-width: 100%;
  min-height: 0;
  padding: var(--space-2) 0;
  box-sizing: border-box;
  justify-self: center;
}

html[data-device="phone"] .wingman-stat-bar--dc .wingman-stat-bar__dc-home {
  grid-column: 1;
  grid-row: 2;
}

html[data-device="phone"] .wingman-stat-bar--dc .wingman-stat-bar__dc-away {
  grid-column: 2;
  grid-row: 2;
}

html[data-device="phone"] .wingman-stat-bar--dc .wingman-stat-bar__dc-spacer {
  display: block;
  width: 100%;
  max-width: var(--wingman-stat-hit-w);
  min-height: 1px;
}

html[data-device="phone"] .wingman-stat-bar--dc .wingman-stat-bar__dc-home .wingman-stat-bar__dc-cell--odd-1x {
  grid-column: 1;
}

html[data-device="phone"] .wingman-stat-bar--dc .wingman-stat-bar__dc-home .wingman-stat-bar__dc-cell--prob-1x {
  grid-column: 2;
}

html[data-device="phone"] .wingman-stat-bar--dc .wingman-stat-bar__dc-home .wingman-stat-bar__dc-spacer {
  grid-column: 3;
}

html[data-device="phone"] .wingman-stat-bar--dc .wingman-stat-bar__dc-away .wingman-stat-bar__dc-spacer {
  grid-column: 1;
}

html[data-device="phone"] .wingman-stat-bar--dc .wingman-stat-bar__dc-away .wingman-stat-bar__dc-cell--prob-x2 {
  grid-column: 2;
}

html[data-device="phone"] .wingman-stat-bar--dc .wingman-stat-bar__dc-away .wingman-stat-bar__dc-cell--odd-x2 {
  grid-column: 3;
}

html[data-device="phone"] .wingman-stat-bar--dc .wingman-stat-bar__dc-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  grid-column: 1 / -1;
  grid-row: 2;
  justify-self: center;
  align-self: center;
  z-index: 1;
  pointer-events: none;
  width: max-content;
  max-width: 100%;
  min-height: 0;
  padding: var(--space-2) 0;
}

html[data-device="phone"] .wingman-stat-bar--dc .wingman-stat-bar__dc-mid .wingman-stat-bar__dc-cell,
html[data-device="phone"] .wingman-stat-bar--dc .wingman-stat-bar__dc-mid .match-pick-odd {
  pointer-events: auto;
}

html[data-device="phone"] .wingman-stat-bar--dc .wingman-stat-bar__dc-cell {
  min-height: 0;
  padding: 0;
  grid-column: unset;
  grid-row: unset;
}

html[data-device="phone"] .wingman-stat-bar--dc .wingman-stat-bar__dc-cell .match-pick-prob {
  --prob-size: var(--wingman-stat-prob-size);
}

html[data-device="phone"] .wingman-stat-bar--dc .wingman-stat-bar__dc-cell .match-pick-odd {
  width: var(--wingman-stat-odd-w);
  min-width: var(--wingman-stat-odd-w);
  height: var(--wingman-stat-odd-h, 26px);
  padding: 0 var(--space-4);
  font-size: var(--fs-12);
}

html[data-device="phone"] .wingman-stat-bar__team--home {
  grid-column: 1;
  grid-row: 2;
  justify-self: center;
}

html[data-device="phone"] .wingman-stat-bar__team--away {
  grid-column: 2;
  grid-row: 2;
  justify-self: center;
}

html[data-device="phone"] .wingman-match-card--matches-view .wingman-stat-bar__team,
html[data-device="phone"] .wingman-match-card--leagues-view .wingman-stat-bar__team {
  display: grid;
  grid-template-columns: var(--wingman-stat-team-cols);
  grid-template-rows: none;
  column-gap: var(--wingman-stat-team-gap);
  row-gap: 0;
  align-items: center;
  align-content: center;
  justify-items: center;
  justify-self: center;
  width: max-content;
  max-width: 100%;
  min-height: 0;
  padding: var(--space-2) 0;
  box-sizing: border-box;
}

html[data-device="phone"] .wingman-match-card--matches-view .wingman-stat-bar__team .match-pick-prob,
html[data-device="phone"] .wingman-match-card--leagues-view .wingman-stat-bar__team .match-pick-prob {
  grid-column: 2;
  grid-row: auto;
  justify-self: center;
}

html[data-device="phone"] .wingman-stat-bar__team--home .match-pick-odd {
  grid-column: 1;
  grid-row: auto;
  justify-self: center;
}

html[data-device="phone"] .wingman-stat-bar__team--away .match-pick-odd {
  grid-column: 3;
  grid-row: auto;
  justify-self: center;
}

html[data-device="phone"] .wingman-match-card--matches-view .wingman-stat-bar__team .match-pick-odd,
html[data-device="phone"] .wingman-match-card--leagues-view .wingman-stat-bar__team .match-pick-odd {
  width: var(--wingman-stat-odd-w);
  min-width: var(--wingman-stat-odd-w);
  height: var(--wingman-stat-odd-h, 26px);
  padding: 0 var(--space-4);
  font-size: var(--fs-12);
}

/* Hit zawsze widoczny na telefonie: kurs → koło → hit | hit → koło → kurs */
html[data-device="phone"] .wingman-match-card--matches-view .wingman-stat-bar__hit,
html[data-device="phone"] .wingman-match-card--leagues-view .wingman-stat-bar__hit {
  display: flex !important;
  width: 100%;
  min-width: 0;
  max-width: var(--wingman-stat-hit-w);
  gap: var(--space-4);
}

html[data-device="phone"] .wingman-stat-bar__team--home .wingman-stat-bar__hit {
  grid-column: 3;
  justify-self: stretch;
  align-items: flex-end;
}

html[data-device="phone"] .wingman-stat-bar__team--away .wingman-stat-bar__hit {
  grid-column: 1;
  justify-self: stretch;
  align-items: flex-start;
}

html[data-device="phone"] .wingman-stat-bar__hit-track {
  height: var(--wingman-stat-hit-track-h, 4px);
}

html[data-device="phone"] .wingman-match-card__stats-section .wingman-stat-bar__team .match-pick-prob__value,
html[data-device="phone"] .wingman-match-card__stats-section .wingman-stat-bar__team .match-pick-prob--empty .match-pick-prob__value,
html[data-device="phone"] .wingman-match-card__stats-section .wingman-stat-bar--dc .match-pick-prob__value,
html[data-device="phone"] .wingman-match-card__stats-section .wingman-stat-bar--dc .match-pick-prob--empty .match-pick-prob__value {
  font-size: 10px;
}

html[data-device="phone"] .wingman-match-card__stats-list {
  padding-bottom: 40px;
  box-sizing: border-box;
}

html[data-device="phone"] .wingman-stat-bar__hit-label {
  font-size: 11px;
  font-weight: var(--fw-400);
}
