/*
Game Log Table Template Styles (site-wide)

This stylesheet is the single CSS source of truth for reusable statistics tables.
Load it after page-specific CSS so these rules win the cascade.

How to create the table on another page:
1. Import and render the macro from `_game_log_table_template.html`.
2. Keep the table class `unified-stats-table`.
3. Wrap in `.profile-table-outer > .profile-table-inner.profile-table-sticky` to keep Year/Round sticky.

Column rules:
- Columns 1-9 are structural (Year through #) and have fixed sizing.
- Columns 10+ are treated as statistic columns and auto-use uniform width.
- If you add a new stat column in the template, it automatically inherits these stat rules.

Highlight and mobile rules:
- Filter/sort highlight classes (`profile-filtered`, `profile-stat-filtered`, `sorted-col`) are styled here.
- Mobile hides opponent logos, keeps compact result/score layout, and works with JS `RND` header text.

Generic blueprint rules:
- Add `stats-table-blueprint` to any statistics table to apply the shared look and spacing.
- Add `fs-pagination-blueprint` (or use the pagination macro) to apply the shared pagination design.
*/

/* Shared table shell (replaces legacy profile/data table wrappers) */
.stats-table-scroll-wrap {
    width: 100%;
    max-width: 100%;
}

.profile-table-outer {
    width: 100%;
    max-width: 100%;
    margin: 1rem 0;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 8px;
}

.profile-table-inner {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    position: relative;
    box-sizing: border-box;
    margin: 0;
    padding-inline: 0;
    -webkit-overflow-scrolling: touch;
}

.profile-table-inner::-webkit-scrollbar {
    height: 12px;
}

.profile-table-inner::-webkit-scrollbar-track {
    background: #f3f4f6;
    border-radius: 6px;
}

.profile-table-inner::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 6px;
}

.profile-table-inner::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

/* Shared advanced-stat filter blueprint */
#player-profile .profile-filter-section,
#coach-profile .profile-filter-section,
.home-sections .profile-filter-section,
.search-results-wrapper .profile-filter-section,
.profile-filter-section {
    background: var(--profile-table-bg-secondary, var(--bg-secondary, #f8f9fa));
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1.5rem 0;
    border: 1px solid var(--profile-table-border, #e5e7eb);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#player-profile .profile-filter-header,
#coach-profile .profile-filter-header,
.home-sections .profile-filter-header,
.search-results-wrapper .profile-filter-header,
.profile-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

#player-profile .profile-filter-title,
#coach-profile .profile-filter-title,
.home-sections .profile-filter-title,
.search-results-wrapper .profile-filter-title,
.profile-filter-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--profile-table-text-primary, var(--text-primary, #1f2937));
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-filter-title i {
    color: var(--primary-color, #0a1931);
    font-size: 0.85rem;
}

#player-profile .profile-filter-controls,
#coach-profile .profile-filter-controls,
.home-sections .profile-filter-controls,
.search-results-wrapper .profile-filter-controls,
.profile-filter-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#player-profile .profile-filter-row,
#coach-profile .profile-filter-row,
.home-sections .profile-filter-row,
.search-results-wrapper .profile-filter-row,
.profile-filter-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

#player-profile .profile-filter-label,
#coach-profile .profile-filter-label,
.home-sections .profile-filter-label,
.search-results-wrapper .profile-filter-label,
.profile-filter-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--profile-table-text-secondary, var(--text-secondary, #4b5563));
    white-space: nowrap;
}

#player-profile .profile-filter-select,
#player-profile .profile-filter-input,
#coach-profile .profile-filter-select,
#coach-profile .profile-filter-input,
.home-sections .profile-filter-select,
.home-sections .profile-filter-input,
.search-results-wrapper .profile-filter-select,
.search-results-wrapper .profile-filter-input,
.profile-filter-select,
.profile-filter-input {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.85rem;
    background: #fff;
    color: var(--profile-table-text-primary, var(--text-primary, #1f2937));
    transition: all 0.2s ease;
    cursor: pointer;
}

.profile-filter-select {
    min-width: 150px;
}

.profile-filter-input {
    width: 80px;
}

#player-profile .profile-filter-select:hover,
#player-profile .profile-filter-input:hover,
#coach-profile .profile-filter-select:hover,
#coach-profile .profile-filter-input:hover,
.home-sections .profile-filter-select:hover,
.home-sections .profile-filter-input:hover,
.search-results-wrapper .profile-filter-select:hover,
.search-results-wrapper .profile-filter-input:hover,
.profile-filter-select:hover,
.profile-filter-input:hover {
    border-color: var(--primary-color, #0a1931);
}

#player-profile .profile-filter-select:focus,
#player-profile .profile-filter-input:focus,
#coach-profile .profile-filter-select:focus,
#coach-profile .profile-filter-input:focus,
.home-sections .profile-filter-select:focus,
.home-sections .profile-filter-input:focus,
.search-results-wrapper .profile-filter-select:focus,
.search-results-wrapper .profile-filter-input:focus,
.profile-filter-select:focus,
.profile-filter-input:focus {
    outline: none;
    border-color: var(--primary-color, #0a1931);
    box-shadow: 0 0 0 3px rgba(10, 25, 49, 0.1);
}

#player-profile .profile-filter-button,
#coach-profile .profile-filter-button,
.home-sections .profile-filter-button,
.search-results-wrapper .profile-filter-button,
.profile-filter-button {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

#player-profile .profile-filter-apply,
#coach-profile .profile-filter-apply,
.home-sections .profile-filter-apply,
.search-results-wrapper .profile-filter-apply,
.profile-filter-apply {
    background: var(--primary-color, #0a1931);
    color: #fff;
}

#player-profile .profile-filter-apply:hover,
#coach-profile .profile-filter-apply:hover,
.home-sections .profile-filter-apply:hover,
.search-results-wrapper .profile-filter-apply:hover,
.profile-filter-apply:hover {
    background: #132a4d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(10, 25, 49, 0.2);
}

#player-profile .profile-filter-clear,
#coach-profile .profile-filter-clear,
.home-sections .profile-filter-clear,
.search-results-wrapper .profile-filter-clear,
.profile-filter-clear {
    background: #ef4444;
    color: #fff;
}

#player-profile .profile-filter-clear:hover,
#coach-profile .profile-filter-clear:hover,
.home-sections .profile-filter-clear:hover,
.search-results-wrapper .profile-filter-clear:hover,
.profile-filter-clear:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

#player-profile .profile-filter-active,
#coach-profile .profile-filter-active,
.home-sections .profile-filter-active,
.search-results-wrapper .profile-filter-active,
.profile-filter-active {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

#player-profile .profile-filter-badge,
#coach-profile .profile-filter-badge,
.home-sections .profile-filter-badge,
.search-results-wrapper .profile-filter-badge,
.profile-filter-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem;
    background: var(--primary-color, #0a1931);
    color: #fff;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

#coach-profile .profile-filter-section .filters-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

#player-profile .unified-stats-table,
.unified-stats-table {
    width: 100% !important;
    min-width: auto !important;
}

/* Site-wide generic stats table blueprint */
#player-profile .stats-table-blueprint,
#coach-profile .stats-table-blueprint,
.home-sections .stats-table-blueprint,
.search-results-wrapper .stats-table-blueprint,
.stats-table-blueprint {
    width: 100% !important;
    min-width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    table-layout: auto !important;
    background: #fff;
}

#player-profile .stats-table-blueprint th,
#player-profile .stats-table-blueprint td,
#coach-profile .stats-table-blueprint th,
#coach-profile .stats-table-blueprint td,
.home-sections .stats-table-blueprint th,
.home-sections .stats-table-blueprint td,
.search-results-wrapper .stats-table-blueprint th,
.search-results-wrapper .stats-table-blueprint td,
.stats-table-blueprint th,
.stats-table-blueprint td {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border-bottom: 1px solid #f3f4f6 !important;
    padding: 0.55rem 0.62rem !important;
    font-size: 0.78rem !important;
    color: var(--text-primary, #1f2937) !important;
    line-height: 1.35 !important;
    vertical-align: middle !important;
}

#player-profile .stats-table-blueprint th,
#coach-profile .stats-table-blueprint th,
.home-sections .stats-table-blueprint th,
.search-results-wrapper .stats-table-blueprint th,
.stats-table-blueprint th {
    background: #f3f4f6 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    color: var(--text-primary, #1f2937) !important;
    border-bottom: 2px solid #e5e7eb !important;
}

/* Keep numeric headers and numeric cells aligned across all blueprint tables. */
#player-profile .stats-table-blueprint th.number-header,
#coach-profile .stats-table-blueprint th.number-header,
.home-sections .stats-table-blueprint th.number-header,
.search-results-wrapper .stats-table-blueprint th.number-header,
.stats-table-blueprint th.number-header,
#player-profile .stats-table-blueprint td.number-cell,
#coach-profile .stats-table-blueprint td.number-cell,
.home-sections .stats-table-blueprint td.number-cell,
.search-results-wrapper .stats-table-blueprint td.number-cell,
.stats-table-blueprint td.number-cell {
    text-align: center !important;
    font-variant-numeric: tabular-nums;
}

/* Rank columns stay compact and left-aligned when present. */
.stats-table-blueprint th.rank-col,
.stats-table-blueprint th.col-rank,
.stats-table-blueprint td.rank-col,
.stats-table-blueprint td.col-rank {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    text-align: left !important;
    font-weight: 700 !important;
    font-variant-numeric: tabular-nums;
    white-space: nowrap !important;
    padding-left: 0.3rem !important;
    padding-right: 0.25rem !important;
}

.stats-table-blueprint td.rank-col .rank-number,
.stats-table-blueprint td.rank-col .rank-value,
.stats-table-blueprint td.col-rank .rank-number,
.stats-table-blueprint td.col-rank .rank-value,
.stats-table-blueprint td.rank-col strong,
.stats-table-blueprint td.col-rank strong {
    font-weight: 700 !important;
    white-space: nowrap !important;
}

/* Shared highlight treatment for any blueprint table (game-log and non-game-log). */
#player-profile .stats-table-blueprint th.profile-filtered,
#player-profile .stats-table-blueprint th.profile-stat-filtered,
#player-profile .stats-table-blueprint th.highlighted-header,
#player-profile .stats-table-blueprint th.stat-highlight-header,
#coach-profile .stats-table-blueprint th.profile-filtered,
#coach-profile .stats-table-blueprint th.profile-stat-filtered,
#coach-profile .stats-table-blueprint th.highlighted-header,
#coach-profile .stats-table-blueprint th.stat-highlight-header,
.home-sections .stats-table-blueprint th.profile-filtered,
.home-sections .stats-table-blueprint th.profile-stat-filtered,
.home-sections .stats-table-blueprint th.highlighted-header,
.home-sections .stats-table-blueprint th.stat-highlight-header,
.search-results-wrapper .stats-table-blueprint th.profile-filtered,
.search-results-wrapper .stats-table-blueprint th.profile-stat-filtered,
.search-results-wrapper .stats-table-blueprint th.highlighted-header,
.search-results-wrapper .stats-table-blueprint th.stat-highlight-header,
.stats-table-blueprint th.profile-filtered,
.stats-table-blueprint th.profile-stat-filtered,
.stats-table-blueprint th.highlighted-header,
.stats-table-blueprint th.stat-highlight-header {
    background: var(--primary-color, var(--team-primary, #0b2240)) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

#player-profile .stats-table-blueprint td.profile-stat-filtered,
#player-profile .stats-table-blueprint td.stat-highlight,
#player-profile .stats-table-blueprint td.highlighted-cell,
#coach-profile .stats-table-blueprint td.profile-stat-filtered,
#coach-profile .stats-table-blueprint td.stat-highlight,
#coach-profile .stats-table-blueprint td.highlighted-cell,
.home-sections .stats-table-blueprint td.profile-stat-filtered,
.home-sections .stats-table-blueprint td.stat-highlight,
.home-sections .stats-table-blueprint td.highlighted-cell,
.search-results-wrapper .stats-table-blueprint td.profile-stat-filtered,
.search-results-wrapper .stats-table-blueprint td.stat-highlight,
.search-results-wrapper .stats-table-blueprint td.highlighted-cell,
.stats-table-blueprint td.profile-stat-filtered,
.stats-table-blueprint td.stat-highlight,
.stats-table-blueprint td.highlighted-cell {
    background: var(--primary-color, var(--team-primary, #0b2240)) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}

#player-profile .stats-table-blueprint td.profile-filtered:not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col),
#coach-profile .stats-table-blueprint td.profile-filtered:not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col),
.home-sections .stats-table-blueprint td.profile-filtered:not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col),
.search-results-wrapper .stats-table-blueprint td.profile-filtered:not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col),
.stats-table-blueprint td.profile-filtered:not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col) {
    font-weight: 600 !important;
    position: relative;
}

#player-profile .stats-table-blueprint td.profile-filtered:not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col)::before,
#coach-profile .stats-table-blueprint td.profile-filtered:not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col)::before,
.home-sections .stats-table-blueprint td.profile-filtered:not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col)::before,
.search-results-wrapper .stats-table-blueprint td.profile-filtered:not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col)::before,
.stats-table-blueprint td.profile-filtered:not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color, var(--team-primary, #0b2240));
}

/* Keep player/team names in-table on the shared hyperlink color contract. */
.stats-table-blueprint .player-link,
.stats-table-blueprint .player-link:link,
.stats-table-blueprint .player-link:visited,
.stats-table-blueprint .player-link:active,
.stats-table-blueprint .standard-player-link,
.stats-table-blueprint .standard-player-link:link,
.stats-table-blueprint .standard-player-link:visited,
.stats-table-blueprint .standard-player-link:active,
.stats-table-blueprint .team-link,
.stats-table-blueprint .team-link:link,
.stats-table-blueprint .team-link:visited,
.stats-table-blueprint .team-link:active,
.stats-table-blueprint .standard-team-link,
.stats-table-blueprint .standard-team-link:link,
.stats-table-blueprint .standard-team-link:visited,
.stats-table-blueprint .standard-team-link:active {
    color: var(--primary-color, #0b2240) !important;
    font-weight: 600;
    text-decoration: none;
}

.stats-table-blueprint .player-link:hover,
.stats-table-blueprint .standard-player-link:hover,
.stats-table-blueprint .team-link:hover,
.stats-table-blueprint .standard-team-link:hover {
    color: var(--primary-color, #0b2240) !important;
    text-decoration: none;
}

.stats-table-blueprint .player-link,
.stats-table-blueprint .player-link:link,
.stats-table-blueprint .player-link:visited,
.stats-table-blueprint .player-link:active,
.stats-table-blueprint .standard-player-link,
.stats-table-blueprint .standard-player-link:link,
.stats-table-blueprint .standard-player-link:visited,
.stats-table-blueprint .standard-player-link:active {
    font-weight: 700;
}

/* Consistent team-cell formatting for blueprint tables. */
.stats-table-blueprint .team-cell-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    vertical-align: middle;
    line-height: 1;
}

.stats-table-blueprint .opponent-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    vertical-align: middle;
    line-height: 1;
}

.stats-table-blueprint .team-cell-inline .team-link,
.stats-table-blueprint .opponent-cell .team-link {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

/* Keep team/opponent logos on identical footprint across all blueprint tables. */
.stats-table-blueprint .team-logo-inline,
.stats-table-blueprint .opponent-logo-small,
.stats-table-blueprint .game-log-team-logo {
    width: 16px !important;
    height: 16px !important;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

/* Prevent page-level stat-value styles leaking into blueprint table cells. */
.stats-table-blueprint .stat-value,
.stats-table-blueprint .stat-value.wins,
.stats-table-blueprint .stat-value.losses,
.stats-table-blueprint .stat-value.percentage {
    color: inherit !important;
}

.stats-table-blueprint td.profile-stat-filtered .player-link,
.stats-table-blueprint td.profile-stat-filtered .player-link:link,
.stats-table-blueprint td.profile-stat-filtered .player-link:visited,
.stats-table-blueprint td.profile-stat-filtered .team-link,
.stats-table-blueprint td.profile-stat-filtered .team-link:link,
.stats-table-blueprint td.profile-stat-filtered .team-link:visited,
.stats-table-blueprint td.stat-highlight .player-link,
.stats-table-blueprint td.stat-highlight .player-link:link,
.stats-table-blueprint td.stat-highlight .player-link:visited,
.stats-table-blueprint td.stat-highlight .team-link,
.stats-table-blueprint td.stat-highlight .team-link:link,
.stats-table-blueprint td.stat-highlight .team-link:visited {
    color: #ffffff !important;
}

.stats-table-blueprint td.profile-stat-filtered .stat-value,
.stats-table-blueprint td.profile-stat-filtered .stat-value.wins,
.stats-table-blueprint td.profile-stat-filtered .stat-value.losses,
.stats-table-blueprint td.profile-stat-filtered .stat-value.percentage,
.stats-table-blueprint td.stat-highlight .stat-value,
.stats-table-blueprint td.stat-highlight .stat-value.wins,
.stats-table-blueprint td.stat-highlight .stat-value.losses,
.stats-table-blueprint td.stat-highlight .stat-value.percentage {
    color: #ffffff !important;
}

.stats-table-blueprint td.profile-stat-filtered .player-link:hover,
.stats-table-blueprint td.profile-stat-filtered .team-link:hover,
.stats-table-blueprint td.stat-highlight .player-link:hover,
.stats-table-blueprint td.stat-highlight .team-link:hover {
    color: #ffffff !important;
}

#player-profile .stats-table-blueprint thead th.profile-sortable,
#coach-profile .stats-table-blueprint thead th.profile-sortable,
.home-sections .stats-table-blueprint thead th.profile-sortable,
.search-results-wrapper .stats-table-blueprint thead th.profile-sortable,
.stats-table-blueprint thead th.profile-sortable {
    cursor: pointer;
}

#player-profile .stats-table-blueprint thead th.profile-sortable::after,
#coach-profile .stats-table-blueprint thead th.profile-sortable::after,
.home-sections .stats-table-blueprint thead th.profile-sortable::after,
.search-results-wrapper .stats-table-blueprint thead th.profile-sortable::after,
.stats-table-blueprint thead th.profile-sortable::after {
    content: '';
    display: inline-block;
    margin-left: 0;
    width: auto;
    font-size: 0.62rem;
    line-height: 1;
    vertical-align: middle;
    opacity: 0.9;
}

#player-profile .stats-table-blueprint thead th.profile-sortable.sort-asc::after,
#coach-profile .stats-table-blueprint thead th.profile-sortable.sort-asc::after,
.home-sections .stats-table-blueprint thead th.profile-sortable.sort-asc::after,
.search-results-wrapper .stats-table-blueprint thead th.profile-sortable.sort-asc::after,
.stats-table-blueprint thead th.profile-sortable.sort-asc::after {
    content: '\2191';
    margin-left: 0.2rem;
}

#player-profile .stats-table-blueprint thead th.profile-sortable.sort-desc::after,
#coach-profile .stats-table-blueprint thead th.profile-sortable.sort-desc::after,
.home-sections .stats-table-blueprint thead th.profile-sortable.sort-desc::after,
.search-results-wrapper .stats-table-blueprint thead th.profile-sortable.sort-desc::after,
.stats-table-blueprint thead th.profile-sortable.sort-desc::after {
    content: '\2193';
    margin-left: 0.2rem;
}

#player-profile .stats-table-blueprint thead th.profile-sortable i,
#coach-profile .stats-table-blueprint thead th.profile-sortable i,
.home-sections .stats-table-blueprint thead th.profile-sortable i,
.search-results-wrapper .stats-table-blueprint thead th.profile-sortable i,
.stats-table-blueprint thead th.profile-sortable i {
    display: none !important;
}

/* APOS inline guide trigger: absolutely anchored so it never changes table width. */
.stats-table-blueprint thead th.has-inline-guide {
    position: relative;
    vertical-align: middle;
}

.stats-table-blueprint thead th.has-inline-guide .header-label {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    padding-right: 1.34rem;
}

.stats-table-blueprint thead th.has-inline-guide .stat-guide-hover-container.stat-guide-inline-anchor {
    position: absolute;
    top: 50%;
    right: 0.14rem;
    transform: translateY(-50%);
    margin: 0;
    display: inline-flex;
    z-index: 3;
}

.stats-table-blueprint thead th.has-inline-guide .stat-guide-hover-btn.stat-guide-inline-btn {
    width: 1.02rem;
    height: 1.02rem;
    min-width: 1.02rem;
    min-height: 1.02rem;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.38);
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    text-transform: none;
    transform: none;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.12);
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.stats-table-blueprint thead th.has-inline-guide .stat-guide-hover-btn.stat-guide-inline-btn span {
    display: block;
    line-height: 1;
    font-size: 0.57rem;
    font-weight: 700;
    text-transform: none;
    transform: none;
}

.stats-table-blueprint thead th.has-inline-guide .stat-guide-hover-btn.stat-guide-inline-btn:hover {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.6);
    transform: none;
}

.stats-table-blueprint thead th.has-inline-guide .stat-guide-hover-btn.stat-guide-inline-btn:active {
    background: rgba(255, 255, 255, 0.92);
    transform: none;
}

.stats-table-blueprint thead th.has-inline-guide .stat-guide-hover-btn.stat-guide-inline-btn:focus-visible {
    outline: 2px solid rgba(15, 23, 42, 0.45);
    outline-offset: 1px;
}

.stats-table-blueprint thead th[data-sort='apos'],
.stats-table-blueprint thead th[data-sort-key='apos'],
.stats-table-blueprint tbody td.game-log-apos-cell {
    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    text-align: center !important;
}

#player-profile .stats-table-blueprint tbody tr:hover td:not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col),
#coach-profile .stats-table-blueprint tbody tr:hover td:not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col),
.home-sections .stats-table-blueprint tbody tr:hover td:not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col),
.search-results-wrapper .stats-table-blueprint tbody tr:hover td:not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col),
.stats-table-blueprint tbody tr:hover td:not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col) {
    background: #f9fafb !important;
}

/* Safety guard: legacy sort glyph/icon nodes are never rendered. */
.stats-table-blueprint .sort-indicator,
.stats-table-blueprint thead th .sort-indicator,
.stats-table-blueprint thead th i[class*="fa-sort"],
.search-results-wrapper .stats-table-blueprint thead th .sort-indicator,
.search-results-wrapper .stats-table-blueprint thead th i[class*="fa-sort"],
body .search-results-wrapper .stats-table-blueprint thead th .sort-indicator,
body .search-results-wrapper .stats-table-blueprint thead th i[class*="fa-sort"] {
    display: none !important;
}

.stats-table-blueprint tbody td.profile-sortable::after,
.stats-table-blueprint tbody th.profile-sortable::after,
.stats-table-blueprint tfoot td.profile-sortable::after,
.stats-table-blueprint tfoot th.profile-sortable::after {
    content: none !important;
    display: none !important;
}

.stats-table-blueprint tbody .sort-indicator,
.stats-table-blueprint tfoot .sort-indicator,
.stats-table-blueprint tbody i[class*="fa-sort"],
.stats-table-blueprint tfoot i[class*="fa-sort"] {
    display: none !important;
}

#player-profile .stats-table-blueprint .venue-column,
#coach-profile .stats-table-blueprint .venue-column,
.home-sections .stats-table-blueprint .venue-column,
.search-results-wrapper .stats-table-blueprint .venue-column,
.stats-table-blueprint .venue-column {
    text-align: center !important;
}

/* Pagination blueprint (shared by player/team/coach/search tables) */
.profile-pagination-container.fs-pagination-blueprint,
.fs-pagination-blueprint {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.profile-pagination-container.fs-pagination-blueprint .profile-pagination-btn,
.fs-pagination-blueprint .profile-pagination-btn {
    min-width: 34px;
    min-height: 34px;
    padding: 0.36rem 0.64rem;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #1f2937;
    font-weight: 600;
    font-size: 0.78rem;
}

.profile-pagination-container.fs-pagination-blueprint .profile-pagination-btn:hover:not(:disabled),
.fs-pagination-blueprint .profile-pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-color, #0a1931);
    color: var(--primary-color, #0a1931);
}

.profile-pagination-container.fs-pagination-blueprint .profile-pagination-btn.active,
.fs-pagination-blueprint .profile-pagination-btn.active {
    background: var(--primary-color, #0a1931);
    border-color: var(--primary-color, #0a1931);
    color: #fff;
}

.profile-pagination-container.fs-pagination-blueprint .profile-pagination-btn:disabled,
.fs-pagination-blueprint .profile-pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.profile-pagination-container.fs-pagination-blueprint .profile-pagination-info,
.fs-pagination-blueprint .profile-pagination-info {
    margin-left: 0.25rem;
    color: #6b7280;
    font-size: 0.78rem;
    white-space: nowrap;
}

.profile-pagination-container.fs-pagination-blueprint .profile-pagination-dots,
.fs-pagination-blueprint .profile-pagination-dots {
    color: #6b7280;
    font-weight: 700;
}

/* Force blueprint sizing on legacy pages with strong per-page nth-child rules */
#coach-profile #recentGamesTable.unified-stats-table th:nth-child(1),
#coach-profile #recentGamesTable.unified-stats-table td:nth-child(1),
#coach-profile #gameLogTable.unified-stats-table th:nth-child(1),
#coach-profile #gameLogTable.unified-stats-table td:nth-child(1),
#splits #teamGamesTable.unified-stats-table th:nth-child(1),
#splits #teamGamesTable.unified-stats-table td:nth-child(1) {
    width: 70px !important;
    min-width: 70px !important;
}

#coach-profile #recentGamesTable.unified-stats-table th:nth-child(2),
#coach-profile #recentGamesTable.unified-stats-table td:nth-child(2),
#coach-profile #gameLogTable.unified-stats-table th:nth-child(2),
#coach-profile #gameLogTable.unified-stats-table td:nth-child(2),
#splits #teamGamesTable.unified-stats-table th:nth-child(2),
#splits #teamGamesTable.unified-stats-table td:nth-child(2) {
    width: 80px !important;
    min-width: 80px !important;
}

#coach-profile #recentGamesTable.unified-stats-table th:nth-child(3),
#coach-profile #recentGamesTable.unified-stats-table td:nth-child(3),
#coach-profile #gameLogTable.unified-stats-table th:nth-child(3),
#coach-profile #gameLogTable.unified-stats-table td:nth-child(3),
#splits #teamGamesTable.unified-stats-table th:nth-child(3),
#splits #teamGamesTable.unified-stats-table td:nth-child(3) {
    width: 96px !important;
    min-width: 96px !important;
}

#coach-profile #recentGamesTable.unified-stats-table th:nth-child(4),
#coach-profile #recentGamesTable.unified-stats-table td:nth-child(4),
#coach-profile #gameLogTable.unified-stats-table th:nth-child(4),
#coach-profile #gameLogTable.unified-stats-table td:nth-child(4),
#splits #teamGamesTable.unified-stats-table th:nth-child(4),
#splits #teamGamesTable.unified-stats-table td:nth-child(4) {
    width: 100px !important;
    min-width: 100px !important;
}

#coach-profile #recentGamesTable.unified-stats-table th:nth-child(5),
#coach-profile #recentGamesTable.unified-stats-table td:nth-child(5),
#coach-profile #gameLogTable.unified-stats-table th:nth-child(5),
#coach-profile #gameLogTable.unified-stats-table td:nth-child(5),
#splits #teamGamesTable.unified-stats-table th:nth-child(5),
#splits #teamGamesTable.unified-stats-table td:nth-child(5) {
    width: 90px !important;
    min-width: 90px !important;
}

#coach-profile #recentGamesTable.unified-stats-table th:nth-child(6),
#coach-profile #recentGamesTable.unified-stats-table td:nth-child(6),
#coach-profile #gameLogTable.unified-stats-table th:nth-child(6),
#coach-profile #gameLogTable.unified-stats-table td:nth-child(6),
#splits #teamGamesTable.unified-stats-table th:nth-child(6),
#splits #teamGamesTable.unified-stats-table td:nth-child(6) {
    width: clamp(80px, 10vw, 120px) !important;
    min-width: 80px !important;
}

#coach-profile #recentGamesTable.unified-stats-table th:nth-child(7),
#coach-profile #recentGamesTable.unified-stats-table td:nth-child(7),
#coach-profile #gameLogTable.unified-stats-table th:nth-child(7),
#coach-profile #gameLogTable.unified-stats-table td:nth-child(7),
#splits #teamGamesTable.unified-stats-table th:nth-child(7),
#splits #teamGamesTable.unified-stats-table td:nth-child(7) {
    width: 115px !important;
    min-width: 115px !important;
    max-width: 115px !important;
    text-align: center !important;
}

#splits #teamGamesTable.unified-stats-table th:nth-child(8),
#splits #teamGamesTable.unified-stats-table td:nth-child(8) {
    width: 100px !important;
    min-width: 100px !important;
    text-align: center !important;
}

#splits #teamGamesTable.unified-stats-table th:nth-child(9),
#splits #teamGamesTable.unified-stats-table td:nth-child(9) {
    width: 42px !important;
    min-width: 42px !important;
    text-align: center !important;
}

#splits #teamGamesTable.unified-stats-table th:nth-child(n+10),
#splits #teamGamesTable.unified-stats-table td:nth-child(n+10) {
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    text-align: center !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}

/* Apply blueprint baseline to roster/history/record tables on team + coach pages */
#roster .stats-table-blueprint th,
#roster .stats-table-blueprint td,
#stats .stats-table-blueprint th,
#stats .stats-table-blueprint td,
#records .stats-table-blueprint th,
#records .stats-table-blueprint td,
#coach-profile .records-table.stats-table-blueprint th,
#coach-profile .records-table.stats-table-blueprint td {
    padding: 0.55rem 0.62rem !important;
    font-size: 0.78rem !important;
    border-bottom: 1px solid #f3f4f6 !important;
    background-clip: padding-box;
}

/* Structural columns */
#player-profile .unified-stats-table th:nth-child(1),
#player-profile .unified-stats-table td:nth-child(1),
.unified-stats-table th:nth-child(1),
.unified-stats-table td:nth-child(1) {
    width: 70px !important;
    min-width: 70px !important;
    padding-left: 1rem !important;
}

#player-profile .unified-stats-table th:nth-child(2),
#player-profile .unified-stats-table td:nth-child(2),
.unified-stats-table th:nth-child(2),
.unified-stats-table td:nth-child(2) {
    width: 78px !important;
    min-width: 78px !important;
    white-space: nowrap;
}

#player-profile .unified-stats-table th:nth-child(3),
#player-profile .unified-stats-table td:nth-child(3),
.unified-stats-table th:nth-child(3),
.unified-stats-table td:nth-child(3) {
    width: 90px !important;
    min-width: 90px !important;
    white-space: nowrap;
}

#player-profile .unified-stats-table th:nth-child(4),
#player-profile .unified-stats-table td:nth-child(4),
.unified-stats-table th:nth-child(4),
.unified-stats-table td:nth-child(4) {
    width: 100px !important;
}

#player-profile .unified-stats-table td:nth-child(4),
.unified-stats-table td:nth-child(4) {
    font-weight: 600;
}

#player-profile .unified-stats-table th:nth-child(5),
#player-profile .unified-stats-table td:nth-child(5),
.unified-stats-table th:nth-child(5),
.unified-stats-table td:nth-child(5) {
    width: 90px !important;
}

#player-profile .unified-stats-table th:nth-child(6),
#player-profile .unified-stats-table td:nth-child(6),
.unified-stats-table th:nth-child(6),
.unified-stats-table td:nth-child(6) {
    width: clamp(80px, 10vw, 120px) !important;
}

#player-profile .unified-stats-table th:nth-child(7),
#player-profile .unified-stats-table td:nth-child(7),
.unified-stats-table th:nth-child(7),
.unified-stats-table td:nth-child(7) {
    width: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center !important;
    padding-right: 0.2rem !important;
    padding-left: 0.2rem !important;
    font-size: 0.75rem;
}

#player-profile .unified-stats-table th:nth-child(8),
#player-profile .unified-stats-table td:nth-child(8),
.unified-stats-table th:nth-child(8),
.unified-stats-table td:nth-child(8) {
    width: 100px !important;
    text-align: center;
    text-transform: capitalize;
    font-weight: 500;
    white-space: nowrap;
}

#player-profile .unified-stats-table th:nth-child(9),
#player-profile .unified-stats-table td:nth-child(9),
.unified-stats-table th:nth-child(9),
.unified-stats-table td:nth-child(9) {
    width: 42px !important;
    min-width: 42px !important;
    text-align: center;
}

@media (min-width: 821px) {
    #player-profile .unified-stats-table th:nth-child(2),
    #player-profile .unified-stats-table td:nth-child(2),
    .unified-stats-table th:nth-child(2),
    .unified-stats-table td:nth-child(2) {
        width: 80px !important;
        min-width: 80px !important;
    }

    #player-profile .unified-stats-table th:nth-child(3),
    #player-profile .unified-stats-table td:nth-child(3),
    .unified-stats-table th:nth-child(3),
    .unified-stats-table td:nth-child(3) {
        width: 96px !important;
        min-width: 96px !important;
    }

    /* Desktop: keep venue compact without letting the column over-expand. */
    #player-profile .unified-stats-table th:nth-child(7),
    #player-profile .unified-stats-table td:nth-child(7),
    .unified-stats-table th:nth-child(7),
    .unified-stats-table td:nth-child(7) {
        width: 115px !important;
        min-width: 115px !important;
        max-width: 115px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap;
        padding-right: 0.4rem !important;
        padding-left: 0.4rem !important;
    }
}

/* Legacy positional fallback for stat-like columns (10+):
   keep content-driven width instead of fixed width. */
#player-profile #recentGamesTable.unified-stats-table th:nth-child(n+10),
#player-profile #recentGamesTable.unified-stats-table td:nth-child(n+10),
#player-profile #gameLogTable.unified-stats-table th:nth-child(n+10),
#player-profile #gameLogTable.unified-stats-table td:nth-child(n+10),
#player-profile .unified-stats-table th:nth-child(n+10),
#player-profile .unified-stats-table td:nth-child(n+10),
.unified-stats-table th:nth-child(n+10),
.unified-stats-table td:nth-child(n+10) {
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    text-align: center;
    padding: 0.25rem 0.33rem !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}

/* Shared class-based stat sizing across all unified tables.
   These classes are applied by table generators and a shared annotator for legacy markup. */
.unified-stats-table th.stat-col-header:not(.rank-col):not(.col-rank),
.unified-stats-table td.stat-col-cell:not(.rank-col):not(.col-rank),
.unified-stats-table th.number-header:not(.rank-col):not(.col-rank),
.unified-stats-table td.number-cell:not(.rank-col):not(.col-rank) {
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    text-align: center !important;
    padding: 0.25rem 0.33rem !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}

.unified-stats-table th.stat-col-header:not(.rank-col):not(.col-rank),
.unified-stats-table th.number-header:not(.rank-col):not(.col-rank) {
    padding-top: var(--spacing-xs) !important;
    padding-bottom: var(--spacing-xs) !important;
}

#player-profile #recentGamesTable.unified-stats-table th:nth-child(n+10),
#player-profile #gameLogTable.unified-stats-table th:nth-child(n+10),
#player-profile .unified-stats-table th:nth-child(n+10),
.unified-stats-table th:nth-child(n+10) {
    padding-top: var(--spacing-xs) !important;
    padding-bottom: var(--spacing-xs) !important;
}

/* Sticky Year + Round */
#player-profile .profile-table-sticky #recentGamesTable.unified-stats-table,
#player-profile .profile-table-sticky #gameLogTable.unified-stats-table,
#player-profile .profile-table-sticky .unified-stats-table,
.profile-table-sticky .unified-stats-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

#player-profile .profile-table-sticky #recentGamesTable.unified-stats-table th:nth-child(1),
#player-profile .profile-table-sticky #gameLogTable.unified-stats-table th:nth-child(1),
#player-profile .profile-table-sticky .unified-stats-table th:nth-child(1),
.profile-table-sticky .unified-stats-table th:nth-child(1) {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 4 !important;
    box-sizing: border-box !important;
    line-height: 1.15 !important;
    border-bottom: 2px solid #e5e7eb !important;
    box-shadow: -1px 0 0 #e5e7eb, 1px 0 0 #e5e7eb !important;
}

#player-profile .profile-table-sticky #recentGamesTable.unified-stats-table td:nth-child(1),
#player-profile .profile-table-sticky #gameLogTable.unified-stats-table td:nth-child(1),
#player-profile .profile-table-sticky .unified-stats-table td:nth-child(1),
.profile-table-sticky .unified-stats-table td:nth-child(1) {
    position: sticky !important;
    left: 0 !important;
    z-index: 2 !important;
    box-shadow: -1px 0 0 #e5e7eb, 1px 0 0 #e5e7eb !important;
}

#player-profile .profile-table-sticky #recentGamesTable.unified-stats-table th:nth-child(2),
#player-profile .profile-table-sticky #gameLogTable.unified-stats-table th:nth-child(2),
#player-profile .profile-table-sticky .unified-stats-table th:nth-child(2),
.profile-table-sticky .unified-stats-table th:nth-child(2) {
    position: sticky !important;
    top: 0 !important;
    left: var(--sticky-col-1-width, 70px) !important;
    z-index: 3 !important;
    box-sizing: border-box !important;
    line-height: 1.15 !important;
    border-bottom: 2px solid #e5e7eb !important;
    box-shadow: 1px 0 0 #e5e7eb !important;
}

#player-profile .profile-table-sticky #recentGamesTable.unified-stats-table td:nth-child(2),
#player-profile .profile-table-sticky #gameLogTable.unified-stats-table td:nth-child(2),
#player-profile .profile-table-sticky .unified-stats-table td:nth-child(2),
.profile-table-sticky .unified-stats-table td:nth-child(2) {
    position: sticky !important;
    left: var(--sticky-col-1-width, 70px) !important;
    z-index: 2 !important;
    box-shadow: 1px 0 0 #e5e7eb !important;
}

#player-profile .profile-table-sticky #recentGamesTable.unified-stats-table th:nth-child(1):not(.profile-filtered):not(.profile-stat-filtered):not(.highlighted-header):not(.stat-highlight-header),
#player-profile .profile-table-sticky #gameLogTable.unified-stats-table th:nth-child(1):not(.profile-filtered):not(.profile-stat-filtered):not(.highlighted-header):not(.stat-highlight-header),
#player-profile .profile-table-sticky .unified-stats-table th:nth-child(1):not(.profile-filtered):not(.profile-stat-filtered):not(.highlighted-header):not(.stat-highlight-header),
.profile-table-sticky .unified-stats-table th:nth-child(1):not(.profile-filtered):not(.profile-stat-filtered):not(.highlighted-header):not(.stat-highlight-header),
#player-profile .profile-table-sticky #recentGamesTable.unified-stats-table th:nth-child(2):not(.profile-filtered):not(.profile-stat-filtered):not(.highlighted-header):not(.stat-highlight-header),
#player-profile .profile-table-sticky #gameLogTable.unified-stats-table th:nth-child(2):not(.profile-filtered):not(.profile-stat-filtered):not(.highlighted-header):not(.stat-highlight-header),
#player-profile .profile-table-sticky .unified-stats-table th:nth-child(2):not(.profile-filtered):not(.profile-stat-filtered):not(.highlighted-header):not(.stat-highlight-header),
.profile-table-sticky .unified-stats-table th:nth-child(2):not(.profile-filtered):not(.profile-stat-filtered):not(.highlighted-header):not(.stat-highlight-header) {
    background: #f3f4f6 !important;
    color: var(--text-primary, #1f2937) !important;
}

#player-profile .profile-table-sticky #recentGamesTable.unified-stats-table td:nth-child(1):not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col),
#player-profile .profile-table-sticky #gameLogTable.unified-stats-table td:nth-child(1):not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col),
#player-profile .profile-table-sticky .unified-stats-table td:nth-child(1):not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col),
.profile-table-sticky .unified-stats-table td:nth-child(1):not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col),
#player-profile .profile-table-sticky #recentGamesTable.unified-stats-table td:nth-child(2):not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col),
#player-profile .profile-table-sticky #gameLogTable.unified-stats-table td:nth-child(2):not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col),
#player-profile .profile-table-sticky .unified-stats-table td:nth-child(2):not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col),
.profile-table-sticky .unified-stats-table td:nth-child(2):not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col) {
    background: #fff !important;
}

#player-profile .profile-table-sticky #recentGamesTable.unified-stats-table tbody tr:hover td:nth-child(1):not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col),
#player-profile .profile-table-sticky #recentGamesTable.unified-stats-table tbody tr:hover td:nth-child(2):not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col),
#player-profile .profile-table-sticky #gameLogTable.unified-stats-table tbody tr:hover td:nth-child(1):not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col),
#player-profile .profile-table-sticky #gameLogTable.unified-stats-table tbody tr:hover td:nth-child(2):not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col),
#player-profile .profile-table-sticky .unified-stats-table tbody tr:hover td:nth-child(1):not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col),
#player-profile .profile-table-sticky .unified-stats-table tbody tr:hover td:nth-child(2):not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col),
.profile-table-sticky .unified-stats-table tbody tr:hover td:nth-child(1):not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col),
.profile-table-sticky .unified-stats-table tbody tr:hover td:nth-child(2):not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col) {
    background: #fafbfc !important;
}

/* Search leaderboards use explicit sticky-col classes only (# + entity subject). */
.search-results-wrapper .profile-table-sticky .unified-stats-table.table-layout-leaderboard th:nth-child(1):not(.sticky-col-1):not(.sticky-col-2):not(.sticky-col-3),
.search-results-wrapper .profile-table-sticky .unified-stats-table.table-layout-leaderboard td:nth-child(1):not(.sticky-col-1):not(.sticky-col-2):not(.sticky-col-3),
.search-results-wrapper .profile-table-sticky .unified-stats-table.table-layout-leaderboard th:nth-child(2):not(.sticky-col-1):not(.sticky-col-2):not(.sticky-col-3),
.search-results-wrapper .profile-table-sticky .unified-stats-table.table-layout-leaderboard td:nth-child(2):not(.sticky-col-1):not(.sticky-col-2):not(.sticky-col-3),
.search-results-wrapper .profile-table-sticky .unified-stats-table.table-layout-player-year-round th:nth-child(1):not(.sticky-col-1):not(.sticky-col-2):not(.sticky-col-3),
.search-results-wrapper .profile-table-sticky .unified-stats-table.table-layout-player-year-round td:nth-child(1):not(.sticky-col-1):not(.sticky-col-2):not(.sticky-col-3),
.search-results-wrapper .profile-table-sticky .unified-stats-table.table-layout-player-year-round th:nth-child(2):not(.sticky-col-1):not(.sticky-col-2):not(.sticky-col-3),
.search-results-wrapper .profile-table-sticky .unified-stats-table.table-layout-player-year-round td:nth-child(2):not(.sticky-col-1):not(.sticky-col-2):not(.sticky-col-3) {
    position: static !important;
    left: auto !important;
    z-index: auto !important;
    box-shadow: none !important;
}

/* Dynamic sticky fallback: enforce Year+Round pairing on non-leaderboard tables. */
.profile-table-sticky .unified-stats-table th.dynamic-sticky-col {
    position: sticky !important;
    top: 0 !important;
    left: var(--dynamic-sticky-left, 0px) !important;
    z-index: 4 !important;
    box-sizing: border-box !important;
    line-height: 1.15 !important;
    border-bottom: 2px solid #e5e7eb !important;
    box-shadow: -1px 0 0 #e5e7eb, 1px 0 0 #e5e7eb !important;
}

.profile-table-sticky .unified-stats-table td.dynamic-sticky-col {
    position: sticky !important;
    left: var(--dynamic-sticky-left, 0px) !important;
    z-index: 3 !important;
    box-shadow: -1px 0 0 #e5e7eb, 1px 0 0 #e5e7eb !important;
}

.profile-table-sticky .unified-stats-table th.dynamic-sticky-col:not(.profile-filtered):not(.profile-stat-filtered):not(.highlighted-header):not(.stat-highlight-header) {
    background: #f3f4f6 !important;
    color: var(--text-primary, #1f2937) !important;
}

.profile-table-sticky .unified-stats-table td.dynamic-sticky-col:not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col) {
    background: #fff !important;
}

.profile-table-sticky .unified-stats-table tbody tr:hover td.dynamic-sticky-col:not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col) {
    background: #fafbfc !important;
}

/* Leaderboard sticky columns (# + entity subject) using blueprint surface colors. */
.profile-table-sticky .unified-stats-table.table-layout-leaderboard th.sticky-col-1,
.profile-table-sticky .unified-stats-table.table-layout-leaderboard th.sticky-col-2,
.profile-table-sticky .unified-stats-table.table-layout-leaderboard th.sticky-col-3,
.profile-table-sticky .unified-stats-table.table-layout-player-year-round th.sticky-col-1,
.profile-table-sticky .unified-stats-table.table-layout-player-year-round th.sticky-col-2,
.profile-table-sticky .unified-stats-table.table-layout-player-year-round th.sticky-col-3 {
    position: sticky !important;
    top: 0 !important;
}

.profile-table-sticky .unified-stats-table.table-layout-leaderboard td.sticky-col-1,
.profile-table-sticky .unified-stats-table.table-layout-leaderboard td.sticky-col-2,
.profile-table-sticky .unified-stats-table.table-layout-leaderboard td.sticky-col-3,
.profile-table-sticky .unified-stats-table.table-layout-player-year-round td.sticky-col-1,
.profile-table-sticky .unified-stats-table.table-layout-player-year-round td.sticky-col-2,
.profile-table-sticky .unified-stats-table.table-layout-player-year-round td.sticky-col-3 {
    position: sticky !important;
}

.profile-table-sticky .unified-stats-table.table-layout-leaderboard th.sticky-col-1:not(.profile-filtered):not(.profile-stat-filtered):not(.highlighted-header):not(.stat-highlight-header),
.profile-table-sticky .unified-stats-table.table-layout-leaderboard th.sticky-col-2:not(.profile-filtered):not(.profile-stat-filtered):not(.highlighted-header):not(.stat-highlight-header),
.profile-table-sticky .unified-stats-table.table-layout-leaderboard th.sticky-col-3:not(.profile-filtered):not(.profile-stat-filtered):not(.highlighted-header):not(.stat-highlight-header),
.profile-table-sticky .unified-stats-table.table-layout-player-year-round th.sticky-col-1:not(.profile-filtered):not(.profile-stat-filtered):not(.highlighted-header):not(.stat-highlight-header),
.profile-table-sticky .unified-stats-table.table-layout-player-year-round th.sticky-col-2:not(.profile-filtered):not(.profile-stat-filtered):not(.highlighted-header):not(.stat-highlight-header),
.profile-table-sticky .unified-stats-table.table-layout-player-year-round th.sticky-col-3:not(.profile-filtered):not(.profile-stat-filtered):not(.highlighted-header):not(.stat-highlight-header) {
    background: #f3f4f6 !important;
    color: var(--text-primary, #1f2937) !important;
}

.profile-table-sticky .unified-stats-table.table-layout-leaderboard td.sticky-col-1:not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col),
.profile-table-sticky .unified-stats-table.table-layout-leaderboard td.sticky-col-2:not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col),
.profile-table-sticky .unified-stats-table.table-layout-leaderboard td.sticky-col-3:not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col),
.profile-table-sticky .unified-stats-table.table-layout-player-year-round td.sticky-col-1:not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col),
.profile-table-sticky .unified-stats-table.table-layout-player-year-round td.sticky-col-2:not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col),
.profile-table-sticky .unified-stats-table.table-layout-player-year-round td.sticky-col-3:not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell):not(.sorted-col) {
    background: #fff !important;
}

.profile-table-sticky .unified-stats-table.table-layout-leaderboard th.sticky-col-1,
.profile-table-sticky .unified-stats-table.table-layout-leaderboard td.sticky-col-1,
.profile-table-sticky .unified-stats-table.table-layout-player-year-round th.sticky-col-1,
.profile-table-sticky .unified-stats-table.table-layout-player-year-round td.sticky-col-1 {
    left: var(--sticky-col-1-left, 0px) !important;
    z-index: 6 !important;
    box-shadow: -1px 0 0 #e5e7eb, 1px 0 0 #e5e7eb !important;
}

.profile-table-sticky .unified-stats-table.table-layout-leaderboard th.sticky-col-2,
.profile-table-sticky .unified-stats-table.table-layout-leaderboard td.sticky-col-2,
.profile-table-sticky .unified-stats-table.table-layout-player-year-round th.sticky-col-2,
.profile-table-sticky .unified-stats-table.table-layout-player-year-round td.sticky-col-2 {
    left: var(--sticky-col-2-left, 0px) !important;
    z-index: 5 !important;
    box-shadow: -1px 0 0 #e5e7eb, 1px 0 0 #e5e7eb !important;
}

.profile-table-sticky .unified-stats-table.table-layout-leaderboard th.sticky-col-3,
.profile-table-sticky .unified-stats-table.table-layout-leaderboard td.sticky-col-3,
.profile-table-sticky .unified-stats-table.table-layout-player-year-round th.sticky-col-3,
.profile-table-sticky .unified-stats-table.table-layout-player-year-round td.sticky-col-3 {
    left: var(--sticky-col-3-left, 0px) !important;
    z-index: 4 !important;
    box-shadow: -1px 0 0 #e5e7eb, 1px 0 0 #e5e7eb !important;
}

/* Team/opponent cells */
.unified-stats-table .game-log-team-cell {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    white-space: nowrap;
}

.unified-stats-table .team-cell-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
    vertical-align: middle;
    line-height: 1;
}

.unified-stats-table .team-cell-inline .team-link,
.unified-stats-table .opponent-cell .team-link {
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.unified-stats-table .game-log-team-logo,
.unified-stats-table .team-logo-inline,
.unified-stats-table .opponent-logo-small {
    width: 16px !important;
    height: 16px !important;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.unified-stats-table .opponent-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.unified-stats-table .opponent-cell .opponent-prefix {
    display: inline-flex;
    align-items: center;
    order: 1;
}

.unified-stats-table .opponent-cell .opponent-logo-small {
    order: 2;
}

.unified-stats-table .opponent-cell .team-link,
.unified-stats-table .opponent-cell .team-cell-inline {
    order: 3;
}

/* Score/result presentation */
.unified-stats-table .game-result-badge {
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
    white-space: nowrap;
}

.unified-stats-table .game-result-badge.win {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.unified-stats-table .game-result-badge.loss {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.unified-stats-table .game-result-badge.draw {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.unified-stats-table .game-result-badge.streak-status-badge {
    font-size: 70% !important;
    padding: 0.12rem 0.35rem !important;
    line-height: 1.05;
}

.unified-stats-table .score-cell-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.unified-stats-table .score-cell-wrapper .match-centre-link,
.unified-stats-table .score-cell-wrapper .match-centre-link:link,
.unified-stats-table .score-cell-wrapper .match-centre-link:visited,
.unified-stats-table .score-cell-wrapper .match-centre-link:active,
.unified-stats-table .merged-result-score .match-centre-link,
.unified-stats-table .merged-result-score .match-centre-link:link,
.unified-stats-table .merged-result-score .match-centre-link:visited,
.unified-stats-table .merged-result-score .match-centre-link:active {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    letter-spacing: 0;
    text-decoration: none;
}

.unified-stats-table .score-cell-wrapper .match-centre-link:hover {
    color: inherit;
    text-decoration: underline;
}

.unified-stats-table .merged-result-score .match-centre-link:hover {
    color: inherit;
    text-decoration: none;
}

.unified-stats-table .merged-result-score {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    white-space: nowrap;
}

.unified-stats-table .merged-result-score .merged-result-value,
.unified-stats-table .merged-result-score .merged-score-value {
    display: inline-flex;
    align-items: center;
}

.unified-stats-table .score-display {
    font-weight: 600;
    white-space: nowrap;
    font-size: 0.8rem;
}

.unified-stats-table .score-display .winning-score {
    color: #059669;
    font-weight: 700;
}

.unified-stats-table .score-display .losing-score {
    color: #991b1b;
    font-weight: 700;
}

/* Cell utilities */
.unified-stats-table .venue-column {
    font-size: 0.75rem;
    color: var(--text-secondary, #6b7280);
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    max-width: none;
    text-align: center !important;
}

.unified-stats-table .game-log-position-cell {
    text-align: center;
    text-transform: uppercase;
}

.unified-stats-table .game-log-jersey-cell {
    text-align: center;
}

/* Sorted-column indicator */
.unified-stats-table.sorted-column td.sorted-col {
    position: relative;
}

.unified-stats-table.sorted-column td.sorted-col::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: var(--primary-color);
}

/* Filter highlights */
#player-profile #gameLogTable.unified-stats-table th.profile-filtered,
#player-profile #gameLogTable.unified-stats-table th.profile-stat-filtered,
#player-profile .unified-stats-table th.profile-filtered,
#player-profile .unified-stats-table th.profile-stat-filtered,
.search-results-wrapper .unified-stats-table th.profile-filtered,
.search-results-wrapper .unified-stats-table th.profile-stat-filtered,
.unified-stats-table th.profile-filtered,
.unified-stats-table th.profile-stat-filtered {
    background: var(--primary-color) !important;
    color: #fff !important;
    font-weight: 700;
}

#player-profile #gameLogTable.unified-stats-table th.profile-filtered.profile-sortable i,
#player-profile #gameLogTable.unified-stats-table th.profile-stat-filtered.profile-sortable i,
#player-profile .unified-stats-table th.profile-filtered.profile-sortable i,
#player-profile .unified-stats-table th.profile-stat-filtered.profile-sortable i,
.search-results-wrapper .unified-stats-table th.profile-filtered.profile-sortable i,
.search-results-wrapper .unified-stats-table th.profile-stat-filtered.profile-sortable i,
.unified-stats-table th.profile-filtered.profile-sortable i,
.unified-stats-table th.profile-stat-filtered.profile-sortable i {
    color: #fff !important;
    opacity: 0.9;
}

#player-profile #gameLogTable.unified-stats-table th.profile-filtered.profile-sortable:hover i,
#player-profile #gameLogTable.unified-stats-table th.profile-stat-filtered.profile-sortable:hover i,
#player-profile .unified-stats-table th.profile-filtered.profile-sortable:hover i,
#player-profile .unified-stats-table th.profile-stat-filtered.profile-sortable:hover i,
.search-results-wrapper .unified-stats-table th.profile-filtered.profile-sortable:hover i,
.search-results-wrapper .unified-stats-table th.profile-stat-filtered.profile-sortable:hover i,
.unified-stats-table th.profile-filtered.profile-sortable:hover i,
.unified-stats-table th.profile-stat-filtered.profile-sortable:hover i {
    color: #fff !important;
    opacity: 1;
}

/* Never highlight Year/Round headers, even when filter/highlight classes are present. */
.stats-table-blueprint th.col-year.profile-filtered,
.stats-table-blueprint th.col-year.profile-stat-filtered,
.stats-table-blueprint th.col-year.highlighted-header,
.stats-table-blueprint th.col-year.stat-highlight-header,
.stats-table-blueprint th.col-years.profile-filtered,
.stats-table-blueprint th.col-years.profile-stat-filtered,
.stats-table-blueprint th.col-years.highlighted-header,
.stats-table-blueprint th.col-years.stat-highlight-header,
.stats-table-blueprint th.col-round.profile-filtered,
.stats-table-blueprint th.col-round.profile-stat-filtered,
.stats-table-blueprint th.col-round.highlighted-header,
.stats-table-blueprint th.col-round.stat-highlight-header,
.stats-table-blueprint th.profile-filtered[data-sort="year"],
.stats-table-blueprint th.profile-stat-filtered[data-sort="year"],
.stats-table-blueprint th.highlighted-header[data-sort="year"],
.stats-table-blueprint th.stat-highlight-header[data-sort="year"],
.stats-table-blueprint th.profile-filtered[data-sort="round"],
.stats-table-blueprint th.profile-stat-filtered[data-sort="round"],
.stats-table-blueprint th.highlighted-header[data-sort="round"],
.stats-table-blueprint th.stat-highlight-header[data-sort="round"],
.stats-table-blueprint th.profile-filtered[data-sort-key="year"],
.stats-table-blueprint th.profile-stat-filtered[data-sort-key="year"],
.stats-table-blueprint th.highlighted-header[data-sort-key="year"],
.stats-table-blueprint th.stat-highlight-header[data-sort-key="year"],
.stats-table-blueprint th.profile-filtered[data-sort-key="years"],
.stats-table-blueprint th.profile-stat-filtered[data-sort-key="years"],
.stats-table-blueprint th.highlighted-header[data-sort-key="years"],
.stats-table-blueprint th.stat-highlight-header[data-sort-key="years"],
.stats-table-blueprint th.profile-filtered[data-sort-key="round"],
.stats-table-blueprint th.profile-stat-filtered[data-sort-key="round"],
.stats-table-blueprint th.highlighted-header[data-sort-key="round"],
.stats-table-blueprint th.stat-highlight-header[data-sort-key="round"] {
    background: #f3f4f6 !important;
    color: var(--text-primary, #1f2937) !important;
}

#player-profile #gameLogTable.unified-stats-table td.profile-filtered:not(.profile-stat-filtered),
#player-profile .unified-stats-table td.profile-filtered:not(.profile-stat-filtered),
.search-results-wrapper .unified-stats-table td.profile-filtered:not(.profile-stat-filtered),
.unified-stats-table td.profile-filtered:not(.profile-stat-filtered) {
    font-weight: 600;
    position: relative;
}

#player-profile #gameLogTable.unified-stats-table td.profile-filtered:not(.profile-stat-filtered)::before,
#player-profile .unified-stats-table td.profile-filtered:not(.profile-stat-filtered)::before,
.search-results-wrapper .unified-stats-table td.profile-filtered:not(.profile-stat-filtered)::before,
.unified-stats-table td.profile-filtered:not(.profile-stat-filtered)::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary-color);
}

#player-profile #gameLogTable.unified-stats-table td.profile-stat-filtered,
#player-profile .unified-stats-table td.profile-stat-filtered,
.search-results-wrapper .unified-stats-table td.profile-stat-filtered,
.unified-stats-table td.profile-stat-filtered {
    background: var(--primary-color) !important;
    color: #fff !important;
    font-weight: 700;
    position: relative;
}

/* Keep highlighted/sorted columns visually stable during row hover. */
#player-profile #gameLogTable.unified-stats-table tbody tr:hover td.profile-filtered:not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell),
#player-profile .unified-stats-table tbody tr:hover td.profile-filtered:not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell),
.search-results-wrapper .unified-stats-table tbody tr:hover td.profile-filtered:not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell),
.unified-stats-table tbody tr:hover td.profile-filtered:not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell),
#player-profile #gameLogTable.unified-stats-table tbody tr:hover td.sorted-col:not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell),
#player-profile .unified-stats-table tbody tr:hover td.sorted-col:not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell),
.search-results-wrapper .unified-stats-table tbody tr:hover td.sorted-col:not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell),
.unified-stats-table tbody tr:hover td.sorted-col:not(.profile-filtered):not(.profile-stat-filtered):not(.stat-highlight):not(.highlighted-cell) {
    background: #fff !important;
}

#player-profile #gameLogTable.unified-stats-table tbody tr:hover td.profile-stat-filtered,
#player-profile .unified-stats-table tbody tr:hover td.profile-stat-filtered,
.search-results-wrapper .unified-stats-table tbody tr:hover td.profile-stat-filtered,
.unified-stats-table tbody tr:hover td.profile-stat-filtered,
#player-profile #gameLogTable.unified-stats-table tbody tr:hover td.stat-highlight,
#player-profile .unified-stats-table tbody tr:hover td.stat-highlight,
.search-results-wrapper .unified-stats-table tbody tr:hover td.stat-highlight,
.unified-stats-table tbody tr:hover td.stat-highlight {
    background: var(--primary-color, #0b2240) !important;
    color: #fff !important;
}

.unified-stats-table tbody tr.summary-row td {
    background: rgba(15, 23, 42, 0.06);
    font-weight: 600;
}

.unified-stats-table tbody tr.summary-row .summary-result-chip {
    background: rgba(11, 34, 64, 0.18);
    color: var(--team-primary, #0b2240);
}

.unified-stats-table td.stat-highlight {
    background: var(--primary-color, #0b2240) !important;
    color: #fff !important;
    font-weight: 700;
}

.unified-stats-table th.stat-highlight-header {
    background: var(--team-primary, #0b2240) !important;
    color: #fff !important;
}

.unified-stats-table th.number-header.profile-stat-filtered,
.unified-stats-table th.number-header.stat-highlight-header,
.unified-stats-table td.number-cell.profile-stat-filtered,
.unified-stats-table td.number-cell.stat-highlight,
.unified-stats-table td.number-cell.highlighted-cell {
    padding-left: 0.38rem !important;
    padding-right: 0.38rem !important;
}

.unified-stats-table tr.summary-row td.stat-highlight {
    background: var(--primary-accent, rgba(11, 34, 64, 0.24)) !important;
    color: var(--team-primary, #0b2240) !important;
}

/* Final rank-column override: keep rank compact, left-aligned, bold. */
#player-profile .stats-table-blueprint th.rank-col,
#player-profile .stats-table-blueprint th.col-rank,
#coach-profile .stats-table-blueprint th.rank-col,
#coach-profile .stats-table-blueprint th.col-rank,
.home-sections .stats-table-blueprint th.rank-col,
.home-sections .stats-table-blueprint th.col-rank,
.search-results-wrapper .stats-table-blueprint th.rank-col,
.search-results-wrapper .stats-table-blueprint th.col-rank,
.stats-table-blueprint th.rank-col,
.stats-table-blueprint th.col-rank,
#player-profile .stats-table-blueprint td.rank-col,
#player-profile .stats-table-blueprint td.col-rank,
#coach-profile .stats-table-blueprint td.rank-col,
#coach-profile .stats-table-blueprint td.col-rank,
.home-sections .stats-table-blueprint td.rank-col,
.home-sections .stats-table-blueprint td.col-rank,
.search-results-wrapper .stats-table-blueprint td.rank-col,
.search-results-wrapper .stats-table-blueprint td.col-rank,
.stats-table-blueprint td.rank-col,
.stats-table-blueprint td.col-rank,
#player-profile .unified-stats-table th.rank-col,
#player-profile .unified-stats-table th.col-rank,
#player-profile .unified-stats-table td.rank-col,
#player-profile .unified-stats-table td.col-rank,
.search-results-wrapper .unified-stats-table th.rank-col,
.search-results-wrapper .unified-stats-table th.col-rank,
.search-results-wrapper .unified-stats-table td.rank-col,
.search-results-wrapper .unified-stats-table td.col-rank,
.unified-stats-table th.rank-col,
.unified-stats-table th.col-rank,
.unified-stats-table td.rank-col,
.unified-stats-table td.col-rank {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    text-align: left !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
    padding-left: 0.3rem !important;
    padding-right: 0.25rem !important;
}

/* Rank header should always render as literal "#" (never ellipsized). */
.stats-table-blueprint th.rank-col,
.stats-table-blueprint th.col-rank,
.unified-stats-table th.rank-col,
.unified-stats-table th.col-rank {
    overflow: visible !important;
    text-overflow: clip !important;
}

.stats-table-blueprint th.rank-col .header-label,
.stats-table-blueprint th.col-rank .header-label,
.unified-stats-table th.rank-col .header-label,
.unified-stats-table th.col-rank .header-label {
    display: inline !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}

.stats-table-blueprint thead th.profile-sortable.rank-col::after,
.stats-table-blueprint thead th.profile-sortable.col-rank::after,
.unified-stats-table thead th.profile-sortable.rank-col::after,
.unified-stats-table thead th.profile-sortable.col-rank::after {
    content: none !important;
    display: none !important;
}

/* Mobile table presentation */
@media (max-width: 820px) {
    .profile-filter-section {
        padding: 1rem;
    }

    .profile-filter-row {
        flex-direction: column;
        align-items: stretch;
    }

    .profile-filter-row .profile-filter-select,
    .profile-filter-row .profile-filter-input {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    #player-profile #recentGamesTable.unified-stats-table .opponent-cell img,
    #player-profile #gameLogTable.unified-stats-table .opponent-cell img,
    #player-profile .unified-stats-table .opponent-cell img,
    .unified-stats-table .opponent-cell img {
        display: none !important;
    }

    #player-profile #recentGamesTable.unified-stats-table .score-display,
    #player-profile #gameLogTable.unified-stats-table .score-display,
    #player-profile .unified-stats-table .score-display,
    .unified-stats-table .score-display {
        font-size: 0.72rem;
    }

    #player-profile #recentGamesTable.unified-stats-table .game-result-badge,
    #player-profile #gameLogTable.unified-stats-table .game-result-badge,
    #player-profile .unified-stats-table .game-result-badge,
    .unified-stats-table .game-result-badge {
        font-size: 0.585rem;
        padding: 0.18rem 0.45rem;
    }

    #player-profile #recentGamesTable.unified-stats-table .game-result-badge.streak-status-badge,
    #player-profile #gameLogTable.unified-stats-table .game-result-badge.streak-status-badge,
    #player-profile .unified-stats-table .game-result-badge.streak-status-badge,
    .unified-stats-table .game-result-badge.streak-status-badge {
        padding: 0.08rem 0.26rem !important;
    }

    #player-profile #recentGamesTable.unified-stats-table .merged-result-score,
    #player-profile #gameLogTable.unified-stats-table .merged-result-score,
    #player-profile .unified-stats-table .merged-result-score,
    .unified-stats-table .merged-result-score {
        gap: 0.36rem;
    }

    /* Mobile: halve Round column footprint across all unified tables. */
    #player-profile .unified-stats-table th.col-round,
    #player-profile .unified-stats-table td.col-round,
    #coach-profile .unified-stats-table th.col-round,
    #coach-profile .unified-stats-table td.col-round,
    .search-results-wrapper .unified-stats-table th.col-round,
    .search-results-wrapper .unified-stats-table td.col-round,
    .unified-stats-table th.col-round,
    .unified-stats-table td.col-round {
        box-sizing: border-box !important;
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        padding-left: 0.1rem !important;
        padding-right: 0.1rem !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    /* Player-first sticky layout: tighten Year/Round further on mobile. */
    .search-results-wrapper .unified-stats-table.table-layout-player-year-round th.col-year,
    .search-results-wrapper .unified-stats-table.table-layout-player-year-round td.col-year,
    .search-results-wrapper .unified-stats-table.table-layout-player-year-round th.col-years,
    .search-results-wrapper .unified-stats-table.table-layout-player-year-round td.col-years {
        width: 52px !important;
        min-width: 52px !important;
        max-width: 52px !important;
        padding-left: 0.18rem !important;
        padding-right: 0.18rem !important;
        text-align: center !important;
    }

    .search-results-wrapper .unified-stats-table.table-layout-player-year-round th.col-round,
    .search-results-wrapper .unified-stats-table.table-layout-player-year-round td.col-round {
        width: 36px !important;
        min-width: 36px !important;
        max-width: 36px !important;
        padding-left: 0.08rem !important;
        padding-right: 0.08rem !important;
        text-align: center !important;
    }

    .stats-table-blueprint thead th.has-inline-guide .header-label {
        padding-right: 1.04rem;
    }

    .stats-table-blueprint thead th[data-sort='apos'],
    .stats-table-blueprint thead th[data-sort-key='apos'],
    .stats-table-blueprint tbody td.game-log-apos-cell {
        width: 50px !important;
        min-width: 50px !important;
        max-width: 50px !important;
    }

    .stats-table-blueprint thead th.has-inline-guide .stat-guide-hover-container.stat-guide-inline-anchor {
        right: 0.08rem;
    }

    .stats-table-blueprint thead th.has-inline-guide .stat-guide-hover-btn.stat-guide-inline-btn {
        width: 0.82rem;
        height: 0.82rem;
        min-width: 0.82rem;
        min-height: 0.82rem;
    }

    .stats-table-blueprint thead th.has-inline-guide .stat-guide-hover-btn.stat-guide-inline-btn span {
        font-size: 0.5rem;
    }

    #player-profile #recentGamesTable.unified-stats-table .venue-column,
    #player-profile #gameLogTable.unified-stats-table .venue-column,
    #player-profile .unified-stats-table .venue-column,
    .unified-stats-table .venue-column {
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 90px;
    }
}



/* Search tables: do not truncate non-player columns.
   Let columns expand and rely on horizontal scrolling for overflow on all breakpoints. */
.search-results-wrapper .unified-stats-table {
    width: max-content !important;
    min-width: 100% !important;
    table-layout: auto !important;
}

.search-results-wrapper .unified-stats-table th:not(.col-player):not(.col-player_name):not(.col-playername):not(.stat-col-header):not(.number-header),
.search-results-wrapper .unified-stats-table td:not(.player-column):not(.col-player):not(.col-player_name):not(.col-playername):not(.stat-col-cell):not(.number-cell) {
    width: auto !important;
    min-width: max-content !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
}


