/* League One Match Centre preview v6: xG/Regional consistency + Teams Stats. */

.l1mc-v6-team-cell .l1mc-v6-team-link{appearance:none;background:none;border:0;padding:0;margin:0;color:inherit;font:inherit;font-weight:inherit;cursor:pointer;text-align:inherit}
.l1mc-v6-team-cell .l1mc-v6-form{justify-content:flex-start;margin-top:3px}
.l1mc-v6-team-cell-center .l1mc-v6-form{justify-content:center;margin-left:auto;margin-right:auto}
.l1mc-v6-team-cell-right .l1mc-v6-form{justify-content:flex-end;margin-left:auto}
.l1mc-public-match-hint{max-width:190px;text-align:right;line-height:1.25}

.l1ts-panel{max-width:1180px!important}
.l1ts-tabs{display:flex;justify-content:center;gap:5px;margin:2px auto 8px;flex-wrap:wrap}
.l1ts-tabs button{border:0;border-radius:8px;background:var(--pill-dark);color:#f4f5fb;padding:6px 12px;font:inherit;font-size:11px;font-weight:700;cursor:pointer}
.l1ts-tabs button.selected{background:var(--cyan);color:#fff}
.l1ts-scope{margin-bottom:7px}
.l1ts-table-wrap{width:100%;overflow-x:auto;scrollbar-width:thin}
.l1ts-table{width:100%!important;border-collapse:collapse!important;font-variant-numeric:tabular-nums}
.l1ts-table th,.l1ts-table td{text-align:center;white-space:nowrap;box-sizing:border-box}
.l1ts-table th{padding:6px 5px!important}
.l1ts-table td{padding:7px 5px!important}
.l1ts-table .l1ts-team-head,.l1ts-table .l1ts-team-cell{text-align:left}
.l1ts-team{appearance:none;background:none;border:0;padding:0;margin:0;color:inherit;font:inherit;font-weight:700;cursor:pointer;text-align:left;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.l1ts-team-cell .l1ts-form-dots{margin-top:3px;justify-content:flex-start}
.l1ts-sort{appearance:none;background:none;border:0;padding:0 11px 0 0;color:inherit;font:inherit;font-weight:700;cursor:pointer;position:relative;white-space:nowrap}
.l1ts-sort span{position:absolute;right:0;top:50%;transform:translateY(-50%);font-size:7px;opacity:.75}
.l1ts-sort.is-active{color:#fff}
.l1ts-form-col{min-width:105px}
.l1ts-form-col .l1ts-form-only{justify-content:center;margin:0}

@media(min-width:701px){
  .l1ts-table{font-size:11px}
  .l1ts-table .l1ts-team-head,.l1ts-table .l1ts-team-cell{min-width:155px}
  .l1ts-form-table .l1ts-team-head,.l1ts-form-table .l1ts-team-cell{min-width:180px}
}

@media(max-width:700px){
  .l1mc-public-match-hint{max-width:145px;font-size:10px}
  .l1ts-panel{padding-left:5px!important;padding-right:5px!important}
  .l1ts-tabs{gap:4px;margin-bottom:6px}
  .l1ts-tabs button{font-size:10px;padding:6px 9px;border-radius:7px}
  .l1ts-scope{margin-bottom:5px}
  .l1ts-table-wrap{overflow-x:hidden}
  .l1ts-table{table-layout:fixed!important;font-size:10px}
  .l1ts-table th,.l1ts-table td{padding:6px 3px!important;overflow:hidden;text-overflow:ellipsis}
  .l1ts-desktop,.l1ts-table th.l1ts-desktop,.l1ts-table td.l1ts-desktop,.l1ts-form-col,.l1ts-form-head{display:none!important}
  .l1ts-table .l1ts-team-head,.l1ts-table .l1ts-team-cell{width:43%!important;padding-left:6px!important}
  .l1ts-table:not(.bt-team-stats-table) th:not(.l1ts-team-head):not(.l1ts-desktop):not(.l1ts-form-head),
  .l1ts-table:not(.bt-team-stats-table) td:not(.l1ts-team-cell):not(.l1ts-desktop):not(.l1ts-form-col){width:auto!important}
  .l1ts-team{display:block;font-size:11.5px;line-height:1.15}
  .l1ts-team-cell .l1ts-form-dots{margin-top:4px}
  .l1ts-sort{padding-right:9px;font-size:9.5px}
  .l1ts-form-table .l1ts-team-head,.l1ts-form-table .l1ts-team-cell{width:47%!important}
  .l1ts-form-table th:first-child,.l1ts-form-table td:first-child{width:11%!important}
}


/* The Stats renderer supplies widths and column priorities for each metric. */
@media (max-width: 700px) {
  body.bt-team-stats-active .bt-team-stats-table th:has(> .bt-team-stats-sort) {
    padding-block: 0 !important;
  }
  body.bt-team-stats-active .bt-team-stats-table .bt-team-stats-sort {
    display: block;
    width: 100%;
    min-height: 26px;
  }
  body.bt-team-stats-active .bt-team-stats-table .bt-team-stats-team-cell,
  body.bt-team-stats-active .bt-team-stats-table .bt-team-stats-team-cell .bt-team-stats-team {
    overflow-wrap: break-word !important;
    word-break: normal !important;
  }
}


@media (max-width: 700px) {
  /* Total/G plus its active sort marker needs a little more space at 320px. */
  body.bt-team-stats-active .bt-team-stats-table.bt-team-stats-corners tr > :nth-child(7) {
    width: 18% !important;
  }
  body.bt-team-stats-active .bt-team-stats-table.bt-team-stats-corners .bt-team-stats-team-head,
  body.bt-team-stats-active .bt-team-stats-table.bt-team-stats-corners .bt-team-stats-team-cell {
    width: 41.3% !important;
  }

  /* The numeric handicap columns are mostly short values. Give names the slack. */
  body.bt-handicap-table-active .bt-market-table.bt-handicap-table:not([data-bt-market-has-odds="true"]) [data-bt-market-column="team"] {
    width: 40% !important;
  }
  body.bt-handicap-table-active .bt-market-table.bt-handicap-table:not([data-bt-market-has-odds="true"]) [data-bt-market-column="played"] {
    width: 9% !important;
  }

  /* The five-column player summary can fit more name text without hiding
     columns. Leave the richer player layouts and odds-specific grids alone. */
  body.bt-player-screen-active #handicapTable.bt-player-table:not(.top-scorer-table):not(:has(th[data-bt-player-column="team"])) [data-bt-player-column="player"] {
    width: 43% !important;
  }
  body.bt-player-screen-active #handicapTable.bt-player-table:not(.top-scorer-table):not(:has(th[data-bt-player-column="team"])) .l1pc-player-name {
    overflow-wrap: break-word !important;
  }
  /* On the compact assists layout, keep the header and indicator inside
     their shared column. Body column widths and sort behavior stay the same. */
  body.bt-player-screen-active #handicapTable.l1pa-table thead th.top-scorer-num {
    padding-inline: 2px 10px !important;
    background-position: right 1px center !important;
  }
}

