/* Fixed name-and-medal width: each row must use the same column geometry. */
.table-player-cell{
    grid-template-columns:180px minmax(0,1fr)!important;
    column-gap:20px!important;
}
.table-player-cell>span{
    display:grid!important;
    grid-template-columns:minmax(0,1fr) 24px!important;
    align-items:center!important;
    gap:4px 8px!important;
    width:180px!important;
    min-width:180px!important;
    box-sizing:border-box;
}
.table-player-cell>span>strong{grid-column:1;min-width:0}
.table-player-cell>span>.rank-medal{grid-column:2;grid-row:1;justify-self:center;white-space:nowrap}
.table-player-cell>span>small{grid-column:1/-1}
.roster-medals{display:inline-flex;flex-wrap:nowrap;align-items:center;gap:5px;max-width:100%;overflow:visible;vertical-align:middle}
.roster-medals>.rank-medal{flex:0 0 auto;white-space:nowrap}
@media(max-width:760px){
    .table-player-cell{grid-template-columns:1fr!important;gap:5px!important}
}

/* Separate year and club columns; scrolling preserves full club names. */
.player-detail-table{width:100%;min-width:1100px;table-layout:auto!important}
.player-detail-table .table-player-cell{display:block!important;min-width:180px!important;width:180px!important}
.player-detail-table .player-year-cell{text-align:center;white-space:nowrap;width:65px}
.player-detail-table .player-club-cell{white-space:nowrap!important;word-break:normal!important;overflow-wrap:normal!important}
.table-card>.table-scroll{overflow-x:auto;max-width:100%}

/* Override legacy 46% player column after splitting player/year/club. */
.player-detail-table{min-width:0!important;width:100%;table-layout:auto!important}
.player-detail-table th,.player-detail-table td{padding:10px 8px!important}
.player-detail-table th:nth-child(2),.player-detail-table td:nth-child(2){width:180px!important;min-width:180px!important;max-width:180px!important}
.player-detail-table th:nth-child(3),.player-detail-table td:nth-child(3){width:1%!important;min-width:0!important;white-space:nowrap!important;text-align:center!important}
.player-detail-table th:nth-child(4),.player-detail-table td:nth-child(4){text-align:left!important;white-space:nowrap!important}
.player-detail-table th:first-child,.player-detail-table td:first-child{width:1%;white-space:nowrap}
.player-detail-table th:nth-child(n+5),.player-detail-table td:nth-child(n+5){white-space:nowrap}

.league-roster .roster-medals{overflow:visible!important;max-width:none;flex-shrink:0}.league-roster [data-player-open]{cursor:pointer}.league-roster [data-player-open]:focus-visible{outline:3px solid #f5a800;outline-offset:3px}
