/* SPORT 7.14.255 — Full HD session TV: remove metric strip, realign the two
   main columns and display full player names with readable wrapping.
   Scoped to live session; tournament TV view remains unchanged. */

/* Use the freed metric-strip height: header -> main content -> footer. */
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv-shell{
  display:flex !important;
  flex-direction:column !important;
  height:100vh !important;
  min-height:100vh !important;
  padding:clamp(6px,.7vh,12px) clamp(8px,.65vw,16px) clamp(4px,.45vh,8px) !important;
  gap:clamp(5px,.65vh,9px) !important;
  overflow:hidden !important;
}
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv-metrics{display:none !important}
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv-header{
  flex:0 0 auto !important;
  height:clamp(66px,7vh,82px) !important;
  min-height:66px !important;
  padding:8px 14px !important;
}
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv-footer{
  flex:0 0 auto !important;
  min-height:25px !important;
  padding:0 2px !important;
}

/* More room on the left for the two team names, plus six full queue entries.
   Right remains wide enough for the two today's tables and both season rankings. */
@media(min-width:821px){
  .tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv-grid.tv231-grid.tv232-grid.tv231-running,
  .tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv-grid.tv231-grid.tv232-grid.tv231-idle{
    display:grid !important;
    flex:1 1 0 !important;
    min-height:0 !important;
    height:auto !important;
    overflow:hidden !important;
    grid-template-columns:minmax(0,42fr) minmax(0,58fr) !important;
    gap:clamp(7px,.7vw,13px) !important;
  }
  .tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv-grid.tv231-grid.tv232-grid.tv231-running{
    grid-template-rows:max-content minmax(0,1.23fr) minmax(0,.77fr) !important;
    grid-template-areas:"court right" "queue right" "recent right" !important;
  }
  .tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv-grid.tv231-grid.tv232-grid.tv231-idle{
    grid-template-rows:minmax(0,1.23fr) minmax(0,.77fr) !important;
    grid-template-areas:"queue right" "recent right" !important;
  }
  .tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv232-grid > .tv234-right-stack{
    grid-template-rows:minmax(0,.82fr) minmax(0,1.18fr) !important;
  }
}

/* Live fixture: enough height for long team names, centered rather than clipped. */
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv232-grid > .tv233-court-stack > .tv231-live-court{
  flex:0 0 auto !important;
  height:clamp(98px,10.6vh,122px) !important;
  min-height:clamp(98px,10.6vh,122px) !important;
  max-height:none !important;
  grid-template-columns:clamp(112px,8.2vw,150px) minmax(0,1fr) !important;
  padding:3px 10px !important;
  gap:0 !important;
}
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv-live-status{
  min-height:0 !important;
  padding:0 8px !important;
}
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv-live-match{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) !important;
  align-items:center !important;
  column-gap:clamp(7px,.7vw,14px) !important;
  height:100% !important;
  min-height:0 !important;
  padding:4px 10px !important;
}
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv-live-match > strong{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-width:0 !important;
  height:auto !important;
  min-height:0 !important;
  font-size:clamp(24px,1.55vw,34px) !important;
  line-height:1.07 !important;
  text-align:center !important;
  white-space:normal !important;
  overflow-wrap:break-word !important;
  word-break:normal !important;
  text-overflow:clip !important;
  overflow:visible !important;
}
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv-live-match > span{
  font-size:clamp(17px,1.12vw,24px) !important;
  width:auto !important;height:auto !important;min-width:0 !important;
  padding:0 !important;border:0 !important;border-radius:0 !important;
  background:transparent !important;box-shadow:none !important;
}
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv233-court-stack .tv-round-strip{
  min-height:clamp(32px,3.5vh,39px) !important;
}

/* Six upcoming matches occupy the available height. The name text is no longer
   forced to one line / ellipsis. It may wrap to two lines as needed. */
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv-next-card{
  min-height:0 !important;
  overflow:hidden !important;
}
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv-next-card .tv-live-queue-list{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
  grid-template-rows:repeat(6,minmax(0,1fr)) !important;
  gap:clamp(4px,.48vh,7px) !important;
  height:auto !important;
  min-height:0 !important;
  overflow:hidden !important;
}
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv-next-card .tv-live-queue-row{
  display:grid !important;
  grid-template-columns:clamp(30px,1.8vw,38px) minmax(0,1fr) minmax(75px,15%) !important;
  column-gap:clamp(6px,.6vw,13px) !important;
  min-height:0 !important;height:100% !important;
  padding:clamp(3px,.4vh,7px) clamp(8px,.65vw,13px) !important;
  align-items:center !important;
  overflow:hidden !important;
}
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv-next-card .tv-live-queue-row > strong{
  display:block !important;
  width:100% !important;min-width:0 !important;
  background:transparent !important;padding:0 !important;border:0 !important;
  font-size:clamp(19px,1.30vw,27px) !important;
  line-height:1.09 !important;
  font-weight:500 !important;
  white-space:normal !important;
  overflow-wrap:break-word !important;
  word-break:normal !important;
  text-overflow:clip !important;
  overflow:visible !important;
}
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv-next-card .tv-live-queue-row > strong em{
  font-size:.91em !important;font-weight:600 !important;white-space:nowrap !important;
}
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv-next-card .tv-live-queue-row > small.tv237-bench{
  font-size:clamp(12px,.82vw,17px) !important;
  line-height:1.1 !important;
  text-align:right !important;
  white-space:normal !important;
  overflow-wrap:break-word !important;
  text-overflow:clip !important;
  overflow:visible !important;
}

/* Today's tables: provide more width for whole names and meaningful score cells,
   while retaining five dots in the form column. */
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv234-today-grid .tv-table{
  table-layout:fixed !important;width:100% !important;
}
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv234-today-grid .tv-table th,
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv234-today-grid .tv-table td{
  padding:clamp(5px,.55vh,9px) 2px !important;
  white-space:nowrap !important;
}
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv234-today-grid .tv-table th:nth-child(1),
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv234-today-grid .tv-table td:nth-child(1){width:5% !important}
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv234-today-grid .tv-table th:nth-child(2),
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv234-today-grid .tv-table td:nth-child(2){width:46% !important;text-align:left !important}
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv234-today-grid .tv-table th:nth-child(3),
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv234-today-grid .tv-table td:nth-child(3),
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv234-today-grid .tv-table th:nth-child(4),
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv234-today-grid .tv-table td:nth-child(4),
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv234-today-grid .tv-table th:nth-child(5),
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv234-today-grid .tv-table td:nth-child(5){width:7% !important}
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv234-today-grid .tv-table th:nth-child(6),
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv234-today-grid .tv-table td:nth-child(6){width:11% !important}
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv234-today-grid .tv-table th:nth-child(7),
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv234-today-grid .tv-table td:nth-child(7){display:table-cell !important;width:17% !important}
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv234-today-grid .tv-table .tv235-name{
  white-space:nowrap !important;
  overflow:visible !important;
  text-overflow:clip !important;
  font-size:clamp(19px,1.17vw,25px) !important;
}
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv234-today-grid .tv-table .tv235-player-inline{
  min-width:0 !important;
  overflow:visible !important;
}
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv234-today-grid .tv-table td.tv-player{
  overflow:hidden !important;text-overflow:clip !important;
}
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv234-today-grid .tv-table td:not(.tv-player){
  font-size:clamp(13px,.85vw,18px) !important;
}
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv234-today-grid .tv-form-dot{
  width:clamp(10px,.7vw,15px) !important;height:clamp(10px,.7vw,15px) !important;
  font-size:clamp(7px,.44vw,10px) !important;
}

/* Season lists: keep full names, allow 2-line wrap for longer nicknames. */
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .ranks-card .rank-column .tv-rank-row{
  min-height:clamp(37px,4.4vh,56px) !important;
  height:auto !important;
  align-items:center !important;
  overflow:visible !important;
}
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .ranks-card .rank-column .tv-rank-row > strong{
  min-width:0 !important;
  font-size:clamp(20px,1.28vw,27px) !important;
  line-height:1.1 !important;
  white-space:normal !important;
  overflow-wrap:break-word !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .ranks-card .rank-column .tv-rank-row .rank-elo{
  white-space:nowrap !important;font-size:clamp(19px,1.18vw,26px) !important;
}
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv-match-main strong,
.tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv-match-main span{
  white-space:normal !important;overflow-wrap:break-word !important;
}

/* Smaller TV fallback: keep all sections reachable without overgrowing tiles. */
@media (min-width:821px) and (max-width:1450px), (min-width:821px) and (max-height:820px){
  .tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv-grid.tv231-grid.tv232-grid.tv231-running,
  .tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv-grid.tv231-grid.tv232-grid.tv231-idle{
    grid-template-columns:minmax(0,44fr) minmax(0,56fr) !important;
    gap:7px !important;
  }
  .tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv232-grid > .tv233-court-stack > .tv231-live-court{
    height:clamp(88px,10.2vh,108px) !important;min-height:clamp(88px,10.2vh,108px) !important;
  }
  .tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv-next-card .tv-live-queue-row > strong{
    font-size:clamp(17px,1.35vw,22px) !important;
  }
  .tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv234-today-grid .tv-table .tv235-name{
    font-size:clamp(15px,1.08vw,21px) !important;
  }
  .tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv234-today-grid .tv-table td:not(.tv-player){
    font-size:clamp(11px,.82vw,15px) !important;
  }
}
@media(max-width:820px){
  .tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv-shell{
    height:auto !important;min-height:100vh !important;overflow:visible !important;
  }
  .tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv-live-match > strong{
    font-size:clamp(20px,4vw,28px) !important;
  }
  .tv-body.tv-session-mode.tv-readable.tv255-fullhd .tv-next-card .tv-live-queue-row > strong{
    font-size:clamp(17px,3vw,22px) !important;
  }
}
