/* ============================================
   STATS PAGE - TEAM & PLAYER STATISTICS
   ============================================ */

:root {
    --predators-gold: #FFB81C;
    --predators-navy: #041E42;
}

.page-stats {
    background: #EDEEF0;
    min-height: 100vh;
}

/* ============================================
   PAGE HEADER
   ============================================ */

.stats-page-header {
    background: #041E42;
    color: white;
    padding: 24px 24px 20px;
}

.stats-header-content {
    max-width: 1400px;
    margin: 0 auto;
}

.stats-page-header h1 {
    font-size: 32px;
    font-weight: 900;
    margin: 0 0 8px 0;
}

.season-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

/* ============================================
   STATS CONTAINER
   ============================================ */

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 24px;
}

.section-heading {
    font-size: 24px;
    font-weight: 800;
    color: #48494A;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--predators-gold);
}

.team-overview-section {
    margin-bottom: 40px;
}

.player-stats-section {
    margin-bottom: 48px;
}

/* Section header row with toggle */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.section-header-row .section-heading {
    margin: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Mobile stats toggle */
.mobile-stats-toggle {
    display: none;
    background: #f1f1f1;
    border-radius: 8px;
    padding: 4px;
}

.mobile-stats-toggle .toggle-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-stats-toggle .toggle-btn.active {
    background: #ffffff;
    color: #041E42;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Show toggle only on mobile */
@media (max-width: 768px) {
    .mobile-stats-toggle {
        display: flex;
    }
}

/* Column visibility for key stats mode */
@media (max-width: 768px) {
    /* Key stats mode - hide advanced columns */
    .stats-table-wrapper[data-view="key"] .stats-table th:nth-child(8),
    .stats-table-wrapper[data-view="key"] .stats-table td:nth-child(8),
    .stats-table-wrapper[data-view="key"] .stats-table th:nth-child(9),
    .stats-table-wrapper[data-view="key"] .stats-table td:nth-child(9),
    .stats-table-wrapper[data-view="key"] .stats-table th:nth-child(10),
    .stats-table-wrapper[data-view="key"] .stats-table td:nth-child(10),
    .stats-table-wrapper[data-view="key"] .stats-table th:nth-child(11),
    .stats-table-wrapper[data-view="key"] .stats-table td:nth-child(11),
    .stats-table-wrapper[data-view="key"] .stats-table th:nth-child(12),
    .stats-table-wrapper[data-view="key"] .stats-table td:nth-child(12) {
        display: none;
    }

    /* In key mode, reduce table min-width */
    .stats-table-wrapper[data-view="key"] .stats-table {
        min-width: 500px;
    }
}

.standings-cards-section {
    margin-bottom: 48px;
}

/* ============================================
   STATS DASHBOARD - 3-TIER LAYOUT
   ============================================ */

.stats-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
}

.dashboard-section {
    width: 100%;
}

/* ============================================
   HERO SECTION - 4 Navy Cards
   ============================================ */

.hero-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.hero-card {
    background: #041E42;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #FFB81C 0%, #e5a519 100%);
}

.hero-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(4, 30, 66, 0.3);
}

.hero-card-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.hero-card-value {
    font-size: 42px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 6px;
}

.hero-card-value.standings-combo {
    font-size: 28px;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.standings-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.standings-sep {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 2px;
}

.hero-card-meta {
    font-size: 13px;
    font-weight: 500;
    color: #FFB81C;
}

/* ============================================
   PERFORMANCE SECTION - Offense vs Defense
   ============================================ */

.performance-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.performance-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-left: 4px solid transparent;
}

/* Default: gold border (neutral) */
.performance-card.offense,
.performance-card.defense {
    border-left-color: #FFB81C;
}

.performance-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
}

.performance-icon {
    font-size: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.performance-card .performance-icon {
    background: rgba(4, 30, 66, 0.1);
    color: #041E42;
}

/* League rank badge in header */
.perf-rank {
    margin-left: auto;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    background: #f3f4f6;
    color: #6b7280;
}

.perf-rank.good {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.perf-rank.bad {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

/* Context row showing league comparison */
.perf-context {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    padding: 6px 10px;
    background: #f9fafb;
    border-radius: 6px;
    margin-top: 4px;
}

.context-label {
    color: #6b7280;
    font-weight: 500;
}

.context-diff {
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.context-diff.positive {
    background: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.context-diff.negative {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.performance-title {
    font-size: 16px;
    font-weight: 800;
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.performance-stats {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.perf-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.perf-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.perf-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.perf-value {
    font-size: 20px;
    font-weight: 800;
    color: #1f2937;
}

.perf-value.positive {
    color: #10b981;
}

.perf-value.negative {
    color: #ef4444;
}

.perf-bar-container {
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
}

.perf-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.5s ease;
}

.perf-bar.offense-bar {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.perf-bar.defense-bar {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

/* ============================================
   SITUATIONAL SECTION - 4 Compact Cards
   ============================================ */

.situational-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.situational-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.situational-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.sit-card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

.sit-icon {
    font-size: 16px;
}

.sit-label {
    font-size: 11px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sit-card-value {
    font-size: 26px;
    font-weight: 900;
    color: #1f2937;
    line-height: 1.2;
    margin-bottom: 6px;
}

.sit-card-meta {
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
}

/* Streak badge */
.streak-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 800;
}

.streak-badge.win {
    background: #10b981;
    color: #ffffff;
}

.streak-badge.loss {
    background: #ef4444;
    color: #ffffff;
}

/* ============================================
   RESPONSIVE - Stats Dashboard
   ============================================ */

@media (max-width: 1200px) {
    .hero-cards {
        grid-template-columns: repeat(4, 1fr);
    }

    .hero-card-value {
        font-size: 36px;
    }

    .hero-card-value.standings-combo {
        font-size: 24px;
    }
}

@media (max-width: 1024px) {
    .hero-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-card-value {
        font-size: 38px;
    }

    .hero-card-value.standings-combo {
        font-size: 26px;
    }

    .situational-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-dashboard {
        gap: 16px;
    }

    .hero-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hero-card {
        padding: 18px 14px;
    }

    .hero-card-value {
        font-size: 32px;
    }

    .hero-card-value.standings-combo {
        font-size: 22px;
    }

    .performance-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .performance-card {
        padding: 18px;
    }

    .situational-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .situational-card {
        padding: 16px 12px;
    }

    .sit-card-value {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .stats-dashboard {
        gap: 12px;
    }

    .hero-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .hero-card {
        padding: 14px 10px;
    }

    .hero-card-label {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .hero-card-value {
        font-size: 26px;
        margin-bottom: 4px;
    }

    .hero-card-value.standings-combo {
        font-size: 18px;
        flex-wrap: wrap;
        gap: 4px;
    }

    .standings-label {
        font-size: 10px;
    }

    .hero-card-meta {
        font-size: 11px;
    }

    .performance-card {
        padding: 14px;
    }

    .performance-header {
        margin-bottom: 14px;
        padding-bottom: 10px;
    }

    .performance-title {
        font-size: 14px;
    }

    .perf-stat-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .perf-value {
        font-size: 18px;
    }

    .situational-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .situational-card {
        padding: 14px 10px;
    }

    .sit-card-value {
        font-size: 20px;
    }

    .streak-badge {
        font-size: 16px;
        padding: 4px 10px;
    }

    .sit-card-meta {
        font-size: 11px;
    }
}

/* Legacy stat classes for sidebar/other areas */
.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: 900;
    color: #48494A;
}

.stat-secondary {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    margin-top: 4px;
}

/* ============================================
   PLAYER STATS TABLES
   ============================================ */

.stats-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    align-items: start;
}

.stats-table-wrapper {
    background: #FFFFFF;
    border-radius: 12px;
    overflow-x: auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stats-sidebar {
    position: sticky;
    top: 20px;
}

.stats-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--predators-gold);
}

.stats-card-title {
    font-size: 18px;
    font-weight: 800;
    color: #48494A;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--predators-gold);
}

.leader-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #EDEEF0;
    transition: all 0.2s ease;
}

.leader-item:hover {
    background: rgba(255, 184, 28, 0.1);
    transform: translateX(4px);
}

.leader-item:last-child {
    margin-bottom: 0;
}

.leader-rank {
    font-size: 20px;
    font-weight: 900;
    color: var(--predators-gold);
    min-width: 30px;
    text-align: center;
}

.leader-player-info {
    flex: 1;
    min-width: 0;
}

.leader-player-name {
    font-size: 13px;
    font-weight: 700;
    color: #48494A;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.leader-stat-label {
    font-size: 10px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.leader-stat-value {
    font-size: 22px;
    font-weight: 900;
    color: #48494A;
    text-align: right;
    min-width: 45px;
}

.leader-category-title {
    font-size: 14px;
    font-weight: 700;
    color: #48494A;
    margin: 20px 0 12px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #1E1F21;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leader-category-title:first-child {
    margin-top: 0;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.stats-table th {
    background: #041E42;
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 8px 6px;
    text-align: center;
    cursor: pointer;
    user-select: none;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
    border-right: 1px solid #1E1F21;
}

.stats-table th:last-child {
    border-right: none;
}

.stats-table th:hover {
    background: #1E1F21;
}

.stats-table th.sortable::after {
    content: ' ⇅';
    opacity: 0.5;
}

.stats-table th.sorted-asc::after {
    content: ' ▲';
    opacity: 1;
}

.stats-table th.sorted-desc::after {
    content: ' ▼';
    opacity: 1;
}

/* Goalie table sortable columns */
.stats-table th.sortable-goalie::after {
    content: ' ⇅';
    opacity: 0.5;
}

.stats-table th.sortable-goalie.sorted-asc::after {
    content: ' ▲';
    opacity: 1;
}

.stats-table th.sortable-goalie.sorted-desc::after {
    content: ' ▼';
    opacity: 1;
}

.stats-table th.text-left {
    text-align: left;
}

.stats-table tbody tr {
    border-bottom: 1px solid #1E1F21;
    transition: background 0.2s ease;
}

.stats-table tbody tr:hover {
    background: #EDEEF0;
}

.stats-table td {
    padding: 6px 6px;
    font-size: 12px;
    color: #48494A;
    text-align: center;
    border-right: 1px solid #1E1F21;
}

.stats-table td:last-child {
    border-right: none;
}

.player-name-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.player-headshot-tiny {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--predators-gold);
    object-fit: cover;
}

.player-name-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 32px;
    justify-content: center;
}

.player-name-link {
    font-weight: 600;
    font-size: 13px;
    color: #48494A;
    text-decoration: none;
}

.player-name-link:hover {
    color: var(--predators-gold);
}

.player-position-tiny {
    font-size: 10px;
    color: #6b7280;
    font-weight: 600;
}

/* Tooltip styling */
.stats-table th {
    position: relative;
}

.stats-table th[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 8px;
    letter-spacing: normal;
    text-transform: none;
    pointer-events: none;
}

.stats-table th[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
    margin-bottom: 2px;
    z-index: 1000;
}

/* ============================================
   STANDINGS CARDS
   ============================================ */

.standings-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.standings-card {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    max-height: 600px;
}

.standings-card > div {
    overflow-y: auto;
    max-height: 520px;
}

.standings-card-title {
    font-size: 18px;
    font-weight: 800;
    color: #48494A;
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--predators-gold);
    flex-shrink: 0;
}

.standings-mini-table {
    width: 100%;
    border-collapse: collapse;
}

.standings-mini-table th {
    background: #041E42;
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 8px;
    text-align: left;
}

.standings-mini-table th.text-center {
    text-align: center;
}

.standings-mini-table tbody tr {
    border-bottom: 1px solid #1E1F21;
    transition: background 0.2s ease;
}

.standings-mini-table tbody tr:hover {
    background: #EDEEF0;
}

.standings-mini-table tbody tr.predators-row {
    background: rgba(255, 184, 28, 0.1);
    font-weight: 700;
}

.standings-mini-table tbody tr.predators-row:hover {
    background: rgba(255, 184, 28, 0.15);
}

.standings-mini-table td {
    padding: 10px 8px;
    font-size: 13px;
    color: #48494A;
}

.standings-mini-table td.text-center {
    text-align: center;
}

.team-name-cell-mini {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-logo-mini {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.team-name-mini {
    font-weight: 600;
    font-size: 12px;
}


/* ============================================
   LOADING & ERROR STATES
   ============================================ */

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--predators-gold);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-spinner p {
    color: #6b7280;
    font-size: 14px;
}

.error-message {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
    font-size: 16px;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .overview-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .stat-value {
        font-size: 26px;
    }

    .overview-stat-card {
        padding: 16px 12px;
    }

    .stats-with-sidebar {
        grid-template-columns: 1fr;
    }

    .stats-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .stats-page-header {
        padding: 20px 16px 16px;
    }

    .stats-page-header h1 {
        font-size: 24px;
    }

    .stats-container {
        padding: 24px 16px;
    }

    .section-heading {
        font-size: 20px;
    }

    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .overview-stat-card {
        padding: 14px 10px;
    }

    .stat-label {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .stat-value {
        font-size: 22px;
    }

    .stat-secondary {
        font-size: 10px;
    }

    .stats-table-wrapper {
        position: relative;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Visual indicator for horizontal scrolling - REMOVED (persistent white bar) */
    /* .stats-table-wrapper::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 40px;
        background: linear-gradient(to left, rgba(255, 255, 255, 0.95), transparent);
        pointer-events: none;
        z-index: 5;
    } */

    .stats-table th {
        padding: 12px 8px;
        font-size: 13px;
    }

    .stats-table td {
        padding: 10px 8px;
        font-size: 14px;
    }

    .player-headshot-tiny {
        width: 28px;
        height: 28px;
    }

    .standings-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .standings-card {
        padding: 16px;
    }

    .standings-card-title {
        font-size: 16px;
    }

    /* Make first column (Player name) sticky on stats tables for tablets/landscape */
    .stats-table th:first-child,
    .stats-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 10;
        background-color: #ffffff;
        box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    }

    .stats-table thead th:first-child {
        z-index: 11;
        background-color: #041E42;
    }

    .stats-table tbody tr:hover td:first-child {
        background-color: #EDEEF0;
    }
}

@media (max-width: 480px) {
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .overview-stat-card {
        padding: 12px 8px;
        border-radius: 8px;
    }

    .stat-label {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .stat-value {
        font-size: 20px;
        line-height: 1.1;
    }

    .stat-secondary {
        font-size: 9px;
        margin-top: 2px;
    }

    /* Make first column (Player name) sticky on stats tables - WIDER for full names */
    .stats-table th:first-child,
    .stats-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 10;
        background-color: #ffffff;
        box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
        max-width: 150px;
        min-width: 150px;
        width: 150px;
        padding: 6px !important;
        overflow: hidden;
    }

    .stats-table thead th:first-child {
        z-index: 11;
        background-color: #041E42;
    }

    .stats-table tbody tr:hover td:first-child {
        background-color: #EDEEF0;
    }

    /* Player cell with headshot in lower right */
    .player-name-cell {
        position: relative;
        padding-right: 36px;
        min-height: 44px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }

    .player-headshot-tiny {
        position: absolute !important;
        bottom: 3px;
        right: 36px;
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        border-radius: 50%;
        border: 2px solid #EDEEF0;
        opacity: 0.8;
    }

    .player-name-wrapper {
        width: calc(100% - 32px);
        min-height: 28px;
        justify-content: center;
    }

    .player-name-link {
        font-size: 11px;
        line-height: 1.25;
        display: block;
        word-wrap: break-word;
        white-space: normal;
        font-weight: 600;
    }

    .player-position-tiny {
        font-size: 9px;
        color: #666;
        display: inline;
        margin-left: 4px;
        font-weight: 400;
    }

    /* Make first column (Team) sticky on standings tables */
    .standings-mini-table th:first-child,
    .standings-mini-table td:first-child {
        position: sticky;
        left: 0;
        z-index: 10;
        background-color: #ffffff;
        box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    }

    .standings-mini-table thead th:first-child {
        z-index: 11;
        background-color: #f8f9fa;
    }

    .standings-mini-table tbody tr:hover td:first-child {
        background-color: #f0f0f0;
    }

    .standings-mini-table tbody tr.predators-row td:first-child {
        background-color: #041E42;
        color: #FFB81C;
    }

    .standings-mini-table tbody tr.predators-row:hover td:first-child {
        background-color: #062952;
    }
}
