/* Consolidated TV layout from 7.14.233 and 7.14.234.
   The old versioned 714233 stylesheet is no longer loaded. */
/* Sport v7.14.233 – session TV: round progress immediately below the live match,
   and a distinct 2v2 pair scoreboard between today and season.
   No changes to tournament TV / session mechanics. */
.tv-body.tv-session-mode.tv-readable .tv-grid.tv231-grid.tv232-grid.tv231-running{
  grid-template-columns:minmax(0,.97fr) minmax(0,1.03fr);
  grid-template-rows:clamp(128px,17.5vh,186px) minmax(0,.93fr) minmax(0,1.07fr);
  grid-template-areas:"court right" "queue right" "recent right";
}
.tv-body.tv-session-mode.tv-readable .tv-grid.tv231-grid.tv232-grid.tv231-idle{
  grid-template-columns:minmax(0,.97fr) minmax(0,1.03fr);
  grid-template-rows:minmax(0,.95fr) minmax(0,1.05fr);
  grid-template-areas:"queue right" "recent right";
}
.tv-body.tv-session-mode .tv232-grid>.tv233-court-stack{
  grid-area:court;display:flex;flex-direction:column;gap:clamp(3px,.36vh,7px);
  min-width:0;min-height:0;width:100%;height:100%;overflow:hidden;
}
.tv-body.tv-session-mode.tv-readable .tv232-grid>.tv233-court-stack>.tv231-live-court{
  flex:0 0 auto;grid-area:auto;min-width:0;max-height:none;width:100%;
  min-height:clamp(58px,7.2vh,86px);height:clamp(58px,7.2vh,86px);
  grid-template-columns:minmax(90px,.26fr) minmax(0,1fr);
  padding:clamp(4px,.5vh,9px) clamp(8px,.7vw,15px);
  gap:clamp(6px,.62vw,13px);
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv233-court-stack>.tv-rounds-grid{
  flex:1 1 auto;display:grid;grid-template-columns:minmax(0,1fr);gap:3px;
  min-width:0;min-height:0;width:100%;max-width:100%;align-content:start;overflow:hidden;
}
.tv-body.tv-session-mode.tv-readable .tv233-court-stack .tv-round-strip{
  display:grid;grid-template-columns:auto minmax(24px,1fr) auto;
  gap:clamp(5px,.58vw,12px);min-width:0;min-height:clamp(30px,4vh,41px);
  padding:3px clamp(6px,.55vw,12px);width:100%;border-radius:clamp(7px,.55vw,11px);
}
.tv-body.tv-session-mode .tv233-court-stack .tv-round-strip[hidden]{display:none!important}
.tv-body.tv-session-mode.tv-readable .tv233-court-stack .tv-round-strip .tv-round-label{
  font-size:clamp(11px,.72vw,17px);white-space:normal;line-height:1.1;
}
.tv-body.tv-session-mode.tv-readable .tv233-court-stack .tv-round-strip strong{
  font-size:clamp(11px,.78vw,18px);white-space:nowrap;
}
.tv-body.tv-session-mode.tv-readable .tv233-court-stack .tv-round-strip small{display:none}
.tv-body.tv-session-mode.tv-readable .tv233-court-stack .tv-round-strip .tv-round-track{min-width:15px}
.tv-body.tv-session-mode .tv232-grid>.tv233-right-stack{
  grid-area:right;display:grid;grid-template-rows:minmax(0,1.16fr) minmax(95px,.70fr) minmax(0,.96fr);
  gap:clamp(6px,.65vw,14px);height:100%;min-width:0;min-height:0;overflow:hidden;
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv233-right-stack>.tv-card{
  min-width:0;min-height:0;height:100%;overflow:hidden;display:flex;flex-direction:column;
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv233-pairs-card .tv-card-head{
  margin-bottom:clamp(4px,.4vh,8px);align-items:center;
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv233-pairs-card .tv-card-head h2{
  display:flex;align-items:center;gap:.4vw;font-size:clamp(14px,1.03vw,23px);
}
.tv-body.tv-session-mode .tv232-grid .tv233-pairs-card .tv-card-head svg{width:1.05em;height:1.05em;flex:0 0 auto}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv233-pairs-card .tv233-pairs-wrap{
  flex:1 1 0;min-height:0;height:100%;overflow:hidden;
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv233-pairs-card .tv233-pairs-table{
  width:100%;table-layout:fixed;
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv233-pairs-card .tv233-pairs-table th,
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv233-pairs-card .tv233-pairs-table td{
  font-size:clamp(10px,.81vw,18px);padding:clamp(3px,.37vh,6px) clamp(2px,.34vw,7px);
  line-height:1.15;white-space:nowrap;text-align:center;
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv233-pairs-card .tv233-pairs-table th:nth-child(1),
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv233-pairs-card .tv233-pairs-table td:nth-child(1){width:6%}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv233-pairs-card .tv233-pairs-table th:nth-child(2),
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv233-pairs-card .tv233-pairs-table td:nth-child(2){width:49%;text-align:left}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv233-pairs-card .tv233-pairs-table th:nth-child(3),
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv233-pairs-card .tv233-pairs-table td:nth-child(3),
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv233-pairs-card .tv233-pairs-table th:nth-child(4),
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv233-pairs-card .tv233-pairs-table td:nth-child(4),
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv233-pairs-card .tv233-pairs-table th:nth-child(5),
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv233-pairs-card .tv233-pairs-table td:nth-child(5){width:9%}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv233-pairs-card .tv233-pairs-table th:nth-child(6),
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv233-pairs-card .tv233-pairs-table td:nth-child(6){width:18%}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv233-pairs-card .tv233-pairs-table .tv-player{
  overflow:hidden;text-overflow:ellipsis;font-size:clamp(11px,.83vw,19px);font-weight:800;
}
/* Compact 720p TV: keep three useful right-side cards without clipping the court. */
@media (max-width:1350px),(max-height:760px){
  .tv-body.tv-session-mode.tv-readable .tv-grid.tv231-grid.tv232-grid.tv231-running{
    grid-template-rows:clamp(125px,18.8vh,148px) minmax(0,.91fr) minmax(0,1.09fr);
  }
  .tv-body.tv-session-mode.tv-readable .tv232-grid>.tv233-right-stack{
    gap:6px;grid-template-rows:minmax(0,1.08fr) minmax(94px,.72fr) minmax(0,.93fr);
  }
  .tv-body.tv-session-mode.tv-readable .tv232-grid>.tv233-court-stack>.tv231-live-court{
    min-height:59px;height:59px;grid-template-columns:minmax(95px,.25fr) minmax(0,1fr);
  }
  .tv-body.tv-session-mode.tv-readable .tv233-court-stack .tv-round-strip{min-height:30px;padding:2px 6px}
  .tv-body.tv-session-mode.tv-readable .tv233-court-stack .tv-round-strip .tv-round-label{font-size:11px}
  .tv-body.tv-session-mode.tv-readable .tv233-court-stack .tv-round-strip strong{font-size:11px}
}
/* For narrow TV / phone, show blocks in their natural vertical order. */
@media(max-width:820px){
  .tv-body.tv-session-mode.tv-readable .tv-grid.tv231-grid.tv232-grid.tv231-running,
  .tv-body.tv-session-mode.tv-readable .tv-grid.tv231-grid.tv232-grid.tv231-idle{
    display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:none;
    grid-template-areas:none;overflow:visible;height:auto;
  }
  .tv-body.tv-session-mode .tv232-grid>.tv233-court-stack,
  .tv-body.tv-session-mode .tv232-grid>.tv-next-card,
  .tv-body.tv-session-mode .tv232-grid>.recent-card,
  .tv-body.tv-session-mode .tv232-grid>.tv233-right-stack{
    grid-area:auto;grid-column:auto;grid-row:auto;height:auto;min-height:0;overflow:visible;
  }
  .tv-body.tv-session-mode.tv-readable .tv232-grid>.tv233-court-stack{min-height:116px}
  .tv-body.tv-session-mode.tv-readable .tv232-grid>.tv233-right-stack{
    grid-template-rows:repeat(3,minmax(240px,auto));min-height:720px;overflow:visible;
  }
  .tv-body.tv-session-mode.tv-readable .tv232-grid>.tv233-right-stack>.tv-card{min-height:230px;max-height:none}
}


/* Sport 7.14.234 – Session TV only.
   Today: individual + 2v2 pair balances side by side above season rankings.
   Live fixture/round progress: content-height, no reserved empty row. */

/* Old 233 layout reserves 125–186px even when just one 30px progress is visible.
   max-content uses the actual live fixture and the displayed round indicators. */
.tv-body.tv-session-mode.tv-readable .tv-grid.tv231-grid.tv232-grid.tv231-running {
  grid-template-rows:max-content minmax(0,.91fr) minmax(0,1.09fr);
}
.tv-body.tv-session-mode.tv-readable .tv232-grid > .tv233-court-stack {
  height:auto;min-height:0;align-self:start;
  gap:clamp(3px,.35vh,6px);overflow:visible;
}
.tv-body.tv-session-mode.tv-readable .tv232-grid > .tv233-court-stack > .tv-rounds-grid {
  flex:0 0 auto;height:auto;min-height:0;align-content:start;
  grid-auto-rows:min-content;
}

/* Two tables together across the upper right; season standings underneath. */
.tv-body.tv-session-mode.tv-readable .tv232-grid > .tv234-right-stack {
  display:grid;grid-template-rows:minmax(0,1.10fr) minmax(0,.90fr);
  gap:clamp(6px,.65vw,14px);
  min-width:0;min-height:0;height:100%;overflow:hidden;
}
.tv-body.tv-session-mode .tv234-right-stack > .tv234-today-grid {
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(5px,.55vw,12px);
  min-width:0;min-height:0;overflow:hidden;
}
.tv-body.tv-session-mode.tv-readable .tv234-right-stack > .tv234-today-grid > .tv-card,
.tv-body.tv-session-mode.tv-readable .tv234-right-stack > .ranks-card {
  display:flex;flex-direction:column;
  height:100%;min-width:0;min-height:0;overflow:hidden;
}
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv-card {
  padding:clamp(6px,.6vh,11px) clamp(6px,.55vw,12px);
}
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv-card-head {
  align-items:center;gap:4px;min-height:0;flex:0 0 auto;
  margin-bottom:clamp(3px,.32vh,7px);
}
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv-card-head h2,
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv233-pairs-card .tv-card-head h2 {
  font-size:clamp(12px,1.01vw,21px);line-height:1.1;letter-spacing:-.02em;
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv-card-head .tv-pill {
  flex:0 0 auto;font-size:clamp(8px,.53vw,11px);
  padding:3px 5px;letter-spacing:0;
}
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv-table-wrap,
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv233-pairs-wrap {
  min-height:0;height:auto;flex:1 1 0;overflow:hidden;
}
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv-table {
  table-layout:fixed;width:100%;
}
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv-table th,
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv-table td,
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv233-pairs-table th,
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv233-pairs-table td {
  padding:clamp(3px,.37vh,6px) 2px;
  font-size:clamp(9px,.79vw,16px);
  line-height:1.12;text-align:center;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis;
}
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv-table td.tv-player,
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv233-pairs-table td.tv-player {
  font-size:clamp(10px,.85vw,18px);font-weight:850;
  text-align:left;overflow:hidden;text-overflow:ellipsis;
}
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv-table .tv-pos {font-size:clamp(9px,.7vw,14px)}
/* Individual scoreboard: #, Player, Matches, Wins, Losses, Success. */
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .session-scoreboard .tv-table th:nth-child(1),
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .session-scoreboard .tv-table td:nth-child(1) {width:7%}
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .session-scoreboard .tv-table th:nth-child(2),
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .session-scoreboard .tv-table td:nth-child(2) {width:42%;text-align:left}
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .session-scoreboard .tv-table th:nth-child(3),
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .session-scoreboard .tv-table td:nth-child(3),
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .session-scoreboard .tv-table th:nth-child(4),
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .session-scoreboard .tv-table td:nth-child(4),
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .session-scoreboard .tv-table th:nth-child(5),
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .session-scoreboard .tv-table td:nth-child(5) {width:10%}
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .session-scoreboard .tv-table th:nth-child(6),
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .session-scoreboard .tv-table td:nth-child(6) {width:21%}
/* Form is kept in markup for large screens; narrower TVs prioritize names and result stats. */
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .session-scoreboard .tv-table th:nth-child(7),
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .session-scoreboard .tv-table td:nth-child(7) {display:none}
/* Pair scoreboard uses the same six-column distribution for visual alignment. */
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv233-pairs-card .tv233-pairs-table th:nth-child(1),
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv233-pairs-card .tv233-pairs-table td:nth-child(1) {width:7%}
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv233-pairs-card .tv233-pairs-table th:nth-child(2),
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv233-pairs-card .tv233-pairs-table td:nth-child(2) {width:42%;text-align:left}
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv233-pairs-card .tv233-pairs-table th:nth-child(3),
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv233-pairs-card .tv233-pairs-table td:nth-child(3),
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv233-pairs-card .tv233-pairs-table th:nth-child(4),
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv233-pairs-card .tv233-pairs-table td:nth-child(4),
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv233-pairs-card .tv233-pairs-table th:nth-child(5),
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv233-pairs-card .tv233-pairs-table td:nth-child(5) {width:10%}
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv233-pairs-card .tv233-pairs-table th:nth-child(6),
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv233-pairs-card .tv233-pairs-table td:nth-child(6) {width:21%}
/* Keep the original two ELO tables and their internal auto-scroll. */
.tv-body.tv-session-mode.tv-readable .tv234-right-stack > .ranks-card .dual-rank {
  flex:1 1 0;min-height:0;height:auto;
}

@media(max-width:1350px),(max-height:760px) {
  .tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv-card-head h2,
  .tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv233-pairs-card .tv-card-head h2 {font-size:clamp(11px,.95vw,15px)}
  .tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv-table th,
  .tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv-table td,
  .tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv233-pairs-table th,
  .tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv233-pairs-table td {font-size:clamp(9px,.74vw,12px);padding:3px 1px}
  .tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv-table td.tv-player,
  .tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv233-pairs-table td.tv-player {font-size:clamp(10px,.82vw,13px)}
  .tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv-card-head .tv-pill {display:none}
}
/* Narrow TV/web portrait fallback: stack blocks without clipped/overlapping grid tracks. */
@media(max-width:820px) {
  .tv-body.tv-session-mode.tv-readable .tv-grid.tv231-grid.tv232-grid.tv231-running,
  .tv-body.tv-session-mode.tv-readable .tv-grid.tv231-grid.tv232-grid.tv231-idle {
    display:flex;flex-direction:column;align-items:stretch;
    gap:8px;height:auto;max-height:none;min-height:0;overflow:visible;flex:none;
    grid-template-rows:none;grid-template-columns:none;grid-template-areas:none;
  }
  .tv-body.tv-session-mode.tv-readable .tv232-grid > .tv233-court-stack {
    flex:0 0 auto;min-height:0;height:auto;overflow:visible;
  }
  .tv-body.tv-session-mode.tv-readable .tv232-grid > .tv-next-card,
  .tv-body.tv-session-mode.tv-readable .tv232-grid > .recent-card {
    flex:0 0 auto;min-height:210px;height:auto;max-height:none;overflow:visible;
  }
  .tv-body.tv-session-mode.tv-readable .tv232-grid > .tv234-right-stack {
    display:flex;flex-direction:column;gap:8px;
    flex:0 0 auto;height:auto;min-height:0;overflow:visible;
  }
  .tv-body.tv-session-mode.tv-readable .tv234-right-stack > .tv234-today-grid {
    display:flex;flex-direction:column;gap:8px;
    height:auto;min-height:0;overflow:visible;
  }
  .tv-body.tv-session-mode.tv-readable .tv234-right-stack > .tv234-today-grid > .tv-card {
    flex:0 0 auto;height:auto;min-height:210px;max-height:none;overflow:visible;
  }
  .tv-body.tv-session-mode.tv-readable .tv234-right-stack > .ranks-card {
    flex:0 0 auto;height:auto;min-height:310px;max-height:none;overflow:visible;
  }
}

