/* Sport 7.14.251 – coherent light TV theme, larger names in daily/season standings.
   Session TV only: do not change match logic or tournament screen.
   Dark mode retains its existing palette. */

/* Ranking legibility applies to both themes. Keep narrow names on one line. */
.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 .tv-table td.tv-player .tv235-name,
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv-table td.tv-player .tv235-player-inline,
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv-table td.tv-player .tv235-player-inline .tv235-name {
  font-size:clamp(19px,1.26vw,28px) !important;
  font-weight:750 !important;
  line-height:1.14 !important;
  min-width:0;
}
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv-table td.tv-player .tv235-name,
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv-table td.tv-player > span {
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv233-pairs-table td.tv-player,
.tv-body.tv-session-mode.tv-readable .tv234-today-grid .tv233-pairs-table td.tv-player .tv235-name {
  font-size:clamp(17px,1.13vw,25px) !important;
}
.tv-body.tv-session-mode.tv-readable .ranks-card .rank-column .tv-rank-row > strong {
  font-size:clamp(20px,1.42vw,30px) !important;
  font-weight:800 !important;
  line-height:1.18 !important;
  min-width:0 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
.tv-body.tv-session-mode.tv-readable .ranks-card .rank-column .tv-rank-row .rank-pos,
.tv-body.tv-session-mode.tv-readable .ranks-card .rank-column .tv-rank-row .rank-elo {
  font-size:clamp(17px,1.12vw,24px) !important;
  line-height:1.18 !important;
}
.tv-body.tv-session-mode.tv-readable .ranks-card .rank-column .tv-rank-row {min-width:0;}

/* Specific selectors override v7.14.250 rules that forced white on live teams. */
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv232-grid .tv231-live-court .tv-live-status strong,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv232-grid .tv231-live-court .tv-live-status small,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv232-grid .tv231-live-court .tv231-live-elapsed{
  color:#113d32 !important;
  text-shadow:none !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv232-grid .tv231-live-court > .tv-live-match > strong{
  color:#123c35 !important;
  text-shadow:none !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv232-grid .tv231-live-court > .tv-live-match > span{
  color:#176398 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  text-shadow:none !important;
}

/* The light-theme selectors intentionally override old unconditional dark rules
   from 7.14.243–250. Black TV remains unchanged. */
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable {
  --tv-bg:#edf4fa;
  --tv-bg2:#f7fbff;
  --tv-card:#ffffff;
  --tv-card2:#f5f9fd;
  --tv-line:#c6d6e4;
  --tv-text:#162c42;
  --tv-muted:#50687e;
  --tv-blue:#1769c4;
  --tv-blue-soft:#dcecff;
  --tv-purple:#6953ba;
  --tv-purple-soft:#eee9fb;
  --tv-good:#147944;
  --tv-bad:#bd304c;
  background:linear-gradient(180deg,#f1f7fc 0%,#e6f0f8 100%) !important;
  color:#182c40 !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-shell {background:transparent !important;color:#182c40 !important;}

/* Header: truly light, high contrast */
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-header{
  background:#ffffff !important;
  color:#162c42 !important;
  border:1px solid #c6d7e6 !important;
  box-shadow:0 2px 12px rgba(47,75,108,.08) !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-header::before,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-header::after{display:none !important;content:none !important;}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-brand strong,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-session-title strong,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-clock{
  color:#13283e !important;
  text-shadow:none !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-brand small,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-session-title small,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-date{color:#4a637b !important;}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-clock-wrap{border-color:#d6e3ed !important;}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .pp227-tv-pref{
  background:#e7f3ff !important;color:#15569c !important;border-color:#b8d3ea !important;
}

/* Base card surfaces: white everywhere, including both ranking panels */
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-metric,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-card,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-round-strip,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .rank-column,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv233-pairs-card.tv242-empty-pairs,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .ranks-card .rank-column.tv242-empty-rank,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .ranks-card .rank-column.tv242-empty-rank[data-rank-mode="1v1"],
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .recent-card.tv242-empty-recent{
  color:#1b2f46 !important;
  background:#ffffff !important;
  border-color:#c6d7e6 !important;
  box-shadow:0 3px 14px rgba(48,81,115,.07) !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-metric > span,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv245-metric-icon{
  background:#eaf2fa !important;color:#176aa8 !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv245-metric-icon img,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv246-fa-icon{
  filter:brightness(.69) saturate(1.5) !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-metric small {color:#4f6680 !important;}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-metric strong,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-card-head h2,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .rank-column h3,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-empty strong,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-icon-heading{
  color:#142b42 !important;text-shadow:none !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-card-head p,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-empty small,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-muted,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv237-queue-sits{
  color:#536c82 !important;text-shadow:none !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-pill,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .refresh-label{
  background:#e0f2e9 !important;color:#126a3e !important;border-color:#9accb6 !important;
}

/* Live match: pale green panel and dark names */
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv232-grid .tv233-court-stack > .tv231-live-court,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv231-live-court{
  background:linear-gradient(100deg,#ddf5e9,#f0faf5) !important;
  border-color:#8ac7b2 !important;
  color:#102e26 !important;
  box-shadow:0 2px 12px rgba(29,104,78,.10) !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv231-live-court::before{opacity:.06 !important;}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-live-status{border-right-color:#abd6c4 !important;}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-live-status small,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-live-status strong,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-live-match strong,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv231-live-elapsed{
  color:#113d32 !important;text-shadow:none !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-live-match > span{
  color:#176398 !important;background:transparent !important;border:0 !important;
  box-shadow:none !important;text-shadow:none !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-round-strip .tv-round-label,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-round-strip strong,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-round-strip small{
  color:#234863 !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-round-track{background:#d6e7f4 !important;}

/* Queue and match history: readable dark text on pale rows */
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-next-card .tv-live-queue-row{
  color:#1b324b !important;
  background:#ecf4fb !important;
  border:1px solid #c9dae8 !important;
  box-shadow:none !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-next-card .tv-live-queue-row:nth-child(even){background:#e3eef8 !important;}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-next-card .tv-live-queue-row > strong,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-next-card .tv-live-queue-row > span,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-next-card .tv-live-queue-row > small.tv237-bench{
  color:#162d44 !important;background:transparent !important;text-shadow:none !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-next-card .tv-live-queue-row > strong em{color:#17659f !important;}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-next-card .tv-live-queue-row > span{
  color:#1766a0 !important;background:#d7e9f7 !important;border:1px solid #b7d1e6 !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-match-row{
  background:#f1f6fb !important;color:#172e44 !important;border-color:#dae5ee !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-match-row:nth-child(even){background:#e9f2f9 !important;}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-match-main strong,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-match-main span,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-match-time,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-match-time small{
  color:#243f59 !important;text-shadow:none !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-mode{
  background:#e3eef8 !important;color:#315a99 !important;
}

/* Daily standings: alternating white/pale blue, dark numbers */
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-table{
  color:#1c334a !important;background:#fff !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-table th,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-table thead th{
  background:#dceaf5 !important;color:#285474 !important;border-color:#c1d5e5 !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-table tbody tr{
  background:#ffffff !important;border-color:#e1eaf2 !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-table tbody tr:nth-child(even){background:#edf5fb !important;}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-table td,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-table td.tv-player,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-table td.tv-player .tv235-name,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-table td.tv-pos{
  color:#1b344d !important;text-shadow:none !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-table td.tv-win{color:#147542 !important;}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-table td.tv-loss{color:#be304e !important;}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv235-player-inline,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv235-player-inline .tv235-name{color:#1b344d !important;}

/* Season standings: high contrast list rows and easy-to-read ELO */
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .ranks-card .rank-column,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .ranks-card .rank-column.tv242-empty-rank{
  background:#f8fbfe !important;
  color:#18354c !important;
  border-color:#c8d9e7 !important;
  box-shadow:none !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .ranks-card .rank-column::before{display:none !important;content:none !important;}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .ranks-card .rank-column .tv-rank-row{
  background:transparent !important;color:#21394e !important;border-color:#dae7f1 !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .ranks-card .rank-column .tv-rank-row:nth-child(even){background:#edf5fb !important;}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .ranks-card .rank-column .tv-rank-row > strong,
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .ranks-card .rank-column .tv-rank-row .rank-pos{
  color:#18344e !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .ranks-card .rank-column .tv-rank-row .rank-elo{
  color:#17659c !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .rank-mode.one{
  color:#155c9c !important;background:#dceeff !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .rank-mode.two{
  color:#6938a5 !important;background:#f0e4fc !important;
}

/* Footer also switches themes */
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-footer{
  background:#ffffff !important;color:#45627b !important;
  border-top:1px solid #c9dbe9 !important;
}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .tv-footer a{color:#1465a5 !important;}
html[data-tv-theme="light"] .tv-body.tv-session-mode.tv-readable .refresh-progress{opacity:.5 !important;}

@media(max-width:1400px), (max-height:760px){
  .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 .tv-table td.tv-player .tv235-name{
    font-size:clamp(17px,1.25vw,23px) !important;
  }
  .tv-body.tv-session-mode.tv-readable .ranks-card .rank-column .tv-rank-row > strong{
    font-size:clamp(19px,1.32vw,25px) !important;
  }
}
