/* SPORT 7.14.250 – fix the current match card without another stacked override.
   This file replaces the 7.14.249 stylesheet in place.
   Session TV only; no game data / tournament view changes. */

/* The old layout gave the children min-height:100%; they expanded beyond the card.
   Use one single flex row and let each child stretch to its actual card height. */
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv233-court-stack > .tv231-live-court {
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: stretch !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  box-sizing: border-box !important;
  gap: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.tv-body.tv-session-mode.tv-readable .tv232-grid .tv231-live-court > .tv-live-status {
  display: flex !important;
  flex: 0 0 clamp(135px, 17%, 214px) !important;
  align-self: stretch !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: clamp(7px, .65vw, 14px) !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 4px clamp(9px, .7vw, 18px) !important;
  box-sizing: border-box !important;
  border-right: 1px solid rgba(92, 222, 193, .2) !important;
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv231-live-court > .tv-live-status > .live-dot {
  flex: 0 0 auto !important;
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv231-live-court > .tv-live-status > div {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 2px !important;
  align-self: center !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv231-live-court .tv-live-status small {
  display: block !important;
  font-size: clamp(12px, .78vw, 17px) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  margin: 0 !important;
  letter-spacing: .02em !important;
  white-space: normal !important;
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv231-live-court .tv-live-status strong {
  display: block !important;
  font-size: clamp(20px, 1.2vw, 30px) !important;
  line-height: 1.03 !important;
  margin: 0 !important;
  color: #fff !important;
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv231-live-court .tv231-live-elapsed {
  display: block !important;
  min-height: 0 !important;
  margin: 0 !important;
  font-size: clamp(11px, .63vw, 15px) !important;
  line-height: 1.05 !important;
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv231-live-court .tv231-live-elapsed:empty {
  display: none !important;
}

/* Exactly three inline columns – left team / plain VS / right team.
   No oversized min-height on children, which caused their vertical overflow. */
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv231-live-court > .tv-live-match {
  display: grid !important;
  flex: 1 1 0 !important;
  grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  align-items: center !important;
  justify-content: stretch !important;
  align-self: stretch !important;
  gap: clamp(8px, .9vw, 22px) !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 clamp(10px, 1.05vw, 28px) !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv231-live-court > .tv-live-match > strong {
  display: block !important;
  align-self: center !important;
  justify-self: center !important;
  width: auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  font-family: Inter, system-ui, sans-serif !important;
  font-size: clamp(24px, 1.65vw, 44px) !important;
  font-weight: 780 !important;
  line-height: 1.04 !important;
  color: #fff !important;
  text-align: center !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  text-wrap: balance !important;
  text-shadow: none !important;
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv231-live-court > .tv-live-match > span {
  display: block !important;
  align-self: center !important;
  justify-self: center !important;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  box-shadow: none !important;
  color: #64d7ff !important;
  font-size: clamp(17px, 1vw, 24px) !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: .01em !important;
  text-shadow: none !important;
}

/* Keep names readable even in the shorter 720p court. */
@media (max-width: 1950px), (max-height: 840px) {
  .tv-body.tv-session-mode.tv-readable .tv232-grid .tv231-live-court > .tv-live-status {
    flex-basis: clamp(145px, 28%, 180px) !important;
    padding-inline: clamp(6px, .6vw, 12px) !important;
    gap: 7px !important;
  }
  .tv-body.tv-session-mode.tv-readable .tv232-grid .tv231-live-court > .tv-live-match {
    padding-inline: clamp(6px, .75vw, 16px) !important;
    gap: clamp(6px, .65vw, 13px) !important;
  }
  .tv-body.tv-session-mode.tv-readable .tv232-grid .tv231-live-court > .tv-live-match > strong {
    font-size: clamp(20px, 1.43vw, 30px) !important;
  }
  .tv-body.tv-session-mode.tv-readable .tv232-grid .tv231-live-court .tv-live-status small {
    font-size: clamp(11px, .83vw, 15px) !important;
  }
  .tv-body.tv-session-mode.tv-readable .tv232-grid .tv231-live-court .tv-live-status strong {
    font-size: clamp(19px, 1.22vw, 25px) !important;
  }
}
/* When no match is available, center the waiting message over the whole right area. */
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv231-live-court > .tv-live-match > strong:only-child {
  grid-column: 1 / -1 !important;
}
