/* Sport v7.14.237 – TV Session: six complete queue rows, one bench-column heading,
   and more space for season standings. Tournament screen is untouched. */
@media (min-width:821px) {
  /* Previous 7.14.234 split did not leave enough height for six full queue rows. */
  .tv-body.tv-session-mode.tv-readable .tv-grid.tv231-grid.tv232-grid.tv231-running {
    grid-template-rows:max-content minmax(0,1.28fr) minmax(0,.72fr);
  }
  .tv-body.tv-session-mode.tv-readable .tv-grid.tv231-grid.tv232-grid.tv231-idle {
    grid-template-rows:minmax(0,1.28fr) minmax(0,.72fr);
  }
  /* Prefer season tables when the right column needs space for more players. */
  .tv-body.tv-session-mode.tv-readable .tv232-grid > .tv234-right-stack {
    grid-template-rows:minmax(0,.75fr) minmax(0,1.25fr);
  }
  .tv-body.tv-session-mode.tv-readable .tv232-grid .tv-next-card {
    padding:clamp(5px,.65vh,11px) clamp(6px,.65vw,13px);
  }
  .tv-body.tv-session-mode.tv-readable .tv232-grid .tv-next-card .tv-card-head {
    min-height:0; margin-bottom:clamp(3px,.34vh,6px);
  }
  .tv-body.tv-session-mode.tv-readable .tv232-grid .tv-next-card .tv-live-queue-list {
    flex:1 1 0;min-height:0;overflow-y:auto;
    gap:clamp(3px,.33vh,6px);
    scrollbar-width:thin;
  }
  /* Keeping row height proportional to TV height makes the sixth line fully visible
     on 720p while preserving large enough lettering on Full HD. */
  .tv-body.tv-session-mode.tv-readable .tv232-grid .tv-live-queue-row {
    flex:0 0 auto;
    min-height:clamp(33px,5.25vh,59px);
    height:clamp(33px,5.25vh,59px);
    grid-template-columns:clamp(25px,1.8vw,34px) minmax(0,1fr) minmax(56px,17%);
    gap:clamp(4px,.4vw,9px);
    padding:2px clamp(5px,.5vw,10px);
    box-sizing:border-box;
  }
  .tv-body.tv-session-mode.tv-readable .tv232-grid .tv-live-queue-row > strong {
    font-size:clamp(12px,.88vw,18px);
    line-height:1.16;
    min-width:0;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  }
  .tv-body.tv-session-mode.tv-readable .tv232-grid .tv-live-queue-row > span {
    width:clamp(24px,1.7vw,32px);height:clamp(24px,1.7vw,32px);
    min-width:24px;min-height:24px;
  }
}
/* One heading for the bench column; no repeated 'Sedí:' or mode in every row. */
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv237-queue-head {
  display:grid;grid-template-columns:minmax(0,1fr) minmax(56px,17%);
  align-items:center;column-gap:clamp(4px,.4vw,9px);
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv237-queue-sits {
  display:block;min-width:0;
  color:var(--tv-muted);text-align:right;
  font-size:clamp(10px,.66vw,14px);font-weight:800;
  padding-right:clamp(5px,.5vw,10px);white-space:nowrap;
}
.tv-body.tv-session-mode.tv-readable .tv232-grid .tv237-bench {
  display:block;min-width:0;text-align:right;
  color:var(--tv-muted);font-size:clamp(10px,.72vw,15px);
  font-weight:650;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;
  opacity:.85;
}
@media (max-width:1350px), (max-height:760px) {
  .tv-body.tv-session-mode.tv-readable .tv232-grid .tv-next-card .tv-live-queue-list {
    gap:3px;
  }
  .tv-body.tv-session-mode.tv-readable .tv232-grid .tv-live-queue-row {
    min-height:33px;height:clamp(33px,5.25vh,45px);
  }
}
@media (max-width:820px) {
  /* Preserve the existing vertically scrollable phone fallback. */
  .tv-body.tv-session-mode.tv-readable .tv232-grid .tv237-queue-head {
    grid-template-columns:minmax(0,1fr) 68px;
  }
}
