/* Wynik — wiersze jak nazwy drużyn (gap, wysokość, rozmiar czcionki) */

.match-score-stack {
  display: flex;
  flex-direction: column;
  gap: var(--a3-row-gap, var(--space-10));
  min-width: 0;
  width: 100%;
  font-family: var(--font-score);
  font-variant-numeric: tabular-nums;
}

.match-score-stack__row {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--a3-row-h, 28px);
  font-size: var(--fs-16);
  font-weight: var(--fw-500);
  line-height: var(--lh-tight);
  color: var(--fg);
}

/* --- Analytical: jak kolumna ZESPOŁY --- */
.analytical-match-card-3__cell--score {
  display: flex;
  flex-direction: column;
  gap: var(--a3-row-gap);
  min-height: var(--a3-block-h);
  justify-content: center;
  min-width: 0;
}

.analytical-match-card-3__cell--score .match-score-stack {
  gap: var(--a3-row-gap);
}

.analytical-match-card-3__cell--score .match-score-stack__row {
  min-height: var(--a3-row-h);
}

/* --- Simple / home gallery: stos po prawej --- */
.simple-match-card__score .match-score-stack,
.home-gallery-match__score .match-score-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-10);
  width: auto;
  max-width: 100%;
}

.simple-match-card__score .match-score-stack__row,
.home-gallery-match__score .match-score-stack__row {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  font-family: var(--font-score);
  font-variant-numeric: tabular-nums;
  font-size: var(--fs-16);
  font-weight: var(--fw-500);
  line-height: var(--lh-tight);
  color: var(--fg);
  text-align: center;
}

.home-gallery-match__score .match-score-stack {
  align-items: center;
  width: auto;
  max-width: 100%;
  margin-inline: 0 0;
  margin-left: auto;
  gap: 18px;
}

.home-gallery-match__score .match-score-stack__row {
  justify-content: center;
  text-align: center;
  width: auto;
}

/* Brak wyniku (ani Wiesiek, ani jeszcze LIVE) — bez kreski „—” */
.match-score-stack--empty:not(.match-score-stack--live) {
  display: none !important;
}

/* LIVE — czerwony wynik */
.match-score-stack--live .match-score-stack__row {
  color: var(--danger);
  font-weight: var(--fw-600);
}

/* FT / HT — wyróżniona waga statusu na karcie */
[data-finished-time-label="FT"],
[data-finished-time-label="HT"] {
  font-weight: var(--fw-600);
}

/* FT — font wyniku (Tomorrow) */
[data-live-time][data-finished-time-label] {
  font-family: var(--font-score);
}

/* LIVE minuta / blink / HT — font wyniku (Tomorrow), jak FT */
.match-live-time,
.match-live-time--blink,
.match-live-time--ht {
  font-family: var(--font-score);
  font-variant-numeric: tabular-nums;
}

/* LIVE — czerwona minuta w polu godziny */
.match-live-time {
  color: var(--danger) !important;
  font-weight: var(--fw-600);
}

/* Przerwa — ten sam czerwony co minuta live, bez mrugania */
.match-live-time--ht {
  color: #ff0046 !important;
  animation: none;
}

.match-live-time--blink {
  animation: match-live-minute-blink 3s ease-in-out infinite;
}

@keyframes match-live-minute-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .match-live-time--blink {
    animation: none;
  }
}

/* Value Bet — trafiony / nietrafiony (kolory jak forma W/D/L) */
.match-score-stack__row--hit {
  color: #6cd896;
  font-weight: var(--fw-600);
}

.match-score-stack__row--miss {
  color: #f1757f;
  font-weight: var(--fw-600);
}

/* HT/FT — wynik do przerwy (jaśniejszy) + wynik meczu obok siebie */
.match-score-stack--htft .match-score-stack__row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
}

.match-score-stack__part {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1ch;
  font-variant-numeric: tabular-nums;
}

.match-score-stack__part--ht {
  color: color-mix(in srgb, var(--fg) 32%, transparent);
  font-weight: var(--fw-500);
}

.match-score-stack__part--ft {
  color: var(--fg);
  font-weight: var(--fw-500);
}

.match-score-stack--live .match-score-stack__part--ft {
  color: var(--danger);
  font-weight: var(--fw-600);
}

.match-score-stack--live .match-score-stack__part--ht {
  color: color-mix(in srgb, var(--danger) 42%, transparent);
  font-weight: var(--fw-500);
}

.simple-match-card--htft .simple-match-card__score .match-score-stack--htft,
.simple-match-card--half-goal-range .simple-match-card__score .match-score-stack--htft {
  gap: var(--space-10);
}

.simple-match-card--htft .simple-match-card__score .match-score-stack--htft .match-score-stack__row,
.simple-match-card--half-goal-range .simple-match-card__score .match-score-stack--htft .match-score-stack__row {
  gap: var(--space-10);
}

/* Home gallery: HT/FT i 1-3 w połowach — cyfry obok siebie, wysokość jak pojedynczy wynik */
.home-gallery-match__score .match-score-stack.match-score-stack--htft {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.home-gallery-match__score .match-score-stack.match-score-stack--htft .match-score-stack__row {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  min-height: 28px;
  white-space: nowrap;
}

.home-gallery-match__score .match-score-stack.match-score-stack--htft .match-score-stack__part {
  flex: 0 0 auto;
  min-height: 28px;
}

.analytical-match-card-2__cell--score .match-score-stack--htft .match-score-stack__row {
  gap: var(--space-8);
}
