/* Sport 7.14.232 – five blocks, two TV columns. Tournament view unchanged.
   LEFT: current match / waiting queue / played matches
   RIGHT: today balance / season table (1v1 + 2v2 ELO)
   Rules deliberately use the tv232-grid hook and override 7.14.231 only. */
.tv-body.tv-session-mode.tv-readable .tv-grid.tv231-grid.tv232-grid.tv231-running{
  display:grid;
  grid-template-columns:minmax(0,.97fr) minmax(0,1.03fr);
  grid-template-rows:clamp(70px,8.4vh,112px) minmax(0,.90fr) minmax(0,1.20fr);
  grid-template-areas:
    "court scoreboard"
    "queue scoreboard"
    "recent ranks";
  gap:clamp(6px,.65vw,14px);
  min-height:0;
  overflow:hidden;
}
.tv-body.tv-session-mode.tv-readable .tv-grid.tv231-grid.tv232-grid.tv231-idle{
  display:grid;
  grid-template-columns:minmax(0,.97fr) minmax(0,1.03fr);
  grid-template-rows:minmax(0,.90fr) minmax(0,1.20fr);
  grid-template-areas:
    "queue scoreboard"
    "recent ranks";
  gap:clamp(6px,.65vw,14px);
  min-height:0;
  overflow:hidden;
}
.tv-body.tv-session-mode .tv232-grid > .tv231-live-court {grid-area:court;min-width:0}
.tv-body.tv-session-mode .tv232-grid > .tv-next-card {grid-area:queue;min-width:0}
.tv-body.tv-session-mode .tv232-grid > .recent-card {grid-area:recent;min-width:0}
.tv-body.tv-session-mode .tv232-grid > .session-scoreboard {grid-area:scoreboard;min-width:0}
.tv-body.tv-session-mode .tv232-grid > .ranks-card {grid-area:ranks;min-width:0}
.tv-body.tv-session-mode.tv-readable .tv232-grid > .tv-card {
  min-height:0;
  min-width:0;
  overflow:hidden;
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv-card-head h2 {font-size:clamp(16px,1.18vw,26px)}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv-card-head p {font-size:clamp(10px,.68vw,14px)}
/* At the top left, only the fixture currently being played/on deck. */
.tv-body.tv-session-mode.tv-readable .tv232-grid > .tv231-live-court {
  height:100%; max-height:100%; min-height:0;
  grid-template-columns:minmax(108px,.26fr) minmax(0,1fr);
  padding:clamp(7px,.55vh,12px) clamp(9px,.75vw,17px);
  gap:clamp(6px,.65vw,14px);
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv-live-match strong {
  font-size:clamp(14px,1.18vw,27px);
  line-height:1.1;
}
/* Larger, readable waiting queue, without repeating the match shown above. */
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv-next-card .tv-live-queue-list {
  flex:1 1 0; min-height:0; overflow:hidden; gap:clamp(4px,.45vh,9px);
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv-live-queue-row{
  flex:0 0 auto;
  min-height:clamp(34px,4.35vh,54px);
  grid-template-columns:2em minmax(0,1fr) auto;
  gap:clamp(6px,.48vw,12px);
  padding:clamp(4px,.35vh,8px) clamp(6px,.5vw,11px);
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv-live-queue-row strong{
  font-size:clamp(12px,.84vw,19px); line-height:1.18;
  white-space:normal; overflow-wrap:anywhere;
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv-live-queue-row > span,
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv-live-queue-row small{
  font-size:clamp(10px,.67vw,14px);
}
/* All six recent session matches stack as an ordered, auto-advancing list. */
.tv-body.tv-session-mode.tv-readable .tv232-grid .recent-card .tv-match-list{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  grid-auto-rows:max-content;
  align-content:start;
  gap:clamp(4px,.4vh,9px);
  flex:1 1 0; min-height:0; overflow:hidden;
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv-match-row{
  min-height:clamp(34px,4.1vh,58px);
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:clamp(6px,.48vw,12px);
  padding:clamp(3px,.35vh,8px) clamp(6px,.48vw,12px);
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv-match-main strong,
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv-match-time{
  font-size:clamp(12px,.82vw,20px);
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv-match-main span,
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv-match-time small{
  font-size:clamp(10px,.65vw,16px);
}
/* Right column: balance above season standings, sized for the narrower card. */
.tv-body.tv-session-mode.tv-readable .tv232-grid .session-scoreboard .tv-table th{
  font-size:clamp(9px,.68vw,15px);
  padding:clamp(3px,.36vh,7px) clamp(3px,.38vw,8px);
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .session-scoreboard .tv-table td{
  font-size:clamp(11px,.89vw,20px);
  padding:clamp(3px,.47vh,9px) clamp(3px,.38vw,8px);
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .session-scoreboard .tv-table td.tv-player{
  font-size:clamp(12px,1.04vw,23px);
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .session-scoreboard .tv-table-wrap{
  min-height:0; height:auto; flex:1 1 0; overflow:hidden;
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .ranks-card .dual-rank{
  height:auto; min-height:0; flex:1 1 0;
  grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(6px,.52vw,13px);
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .rank-column{min-width:0;min-height:0;overflow:hidden}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv-rank-row{
  min-height:clamp(28px,3.25vh,43px);
  padding:clamp(2px,.2vh,5px) 0;
  font-size:clamp(11px,.83vw,19px);
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .rank-elo{font-size:clamp(11px,.88vw,20px)}
/* 720p television: preserve both columns, with tighter labels. */
@media (max-width:1350px),(max-height:760px){
  .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{
    grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);
    gap:6px;
  }
  .tv-body.tv-session-mode.tv-readable .tv232-grid > .tv231-live-court{
    grid-template-columns:minmax(100px,.25fr) minmax(0,1fr);
    gap:6px; padding:5px 8px;
  }
  .tv-body.tv-session-mode.tv-readable .tv232-grid .tv-card-head p{display:none}
  .tv-body.tv-session-mode.tv-readable .tv232-grid .tv-card-head h2{font-size:clamp(13px,1.18vw,18px)}
}
/* Phone/tablet TV fallback: same order, single column, all content reachable. */
@media(max-width:820px){
  .tv-body.tv-session-mode{overflow:auto}
  .tv-body.tv-session-mode .tv-shell{height:auto;min-height:100vh;overflow:visible}
  .tv-body.tv-session-mode.tv-readable .tv-grid.tv231-grid.tv232-grid.tv231-running{
    display:grid;grid-template-columns:minmax(0,1fr);
    grid-template-rows:minmax(82px,auto) minmax(190px,auto) minmax(220px,auto) minmax(250px,auto) minmax(330px,auto);
    grid-template-areas:"court" "queue" "recent" "scoreboard" "ranks";
    overflow:visible;
  }
  .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:minmax(170px,auto) minmax(220px,auto) minmax(250px,auto) minmax(330px,auto);
    grid-template-areas:"queue" "recent" "scoreboard" "ranks";
    overflow:visible;
  }
  .tv-body.tv-session-mode.tv-readable .tv232-grid > .tv231-live-court{min-height:82px}
}
