    /* Modern Team Profile Styles - Matching Player Profile */
    :root {
        /* Map team colors to shared primary/secondary to match player page */
        --primary-color: var(--team-primary);
        --secondary-color: var(--team-secondary, var(--team-primary));

        /* Color tokens that do not depend on team */
        --text-primary: #1F2937;
        --text-secondary: #4B5563;
        --bg-primary: #FFFFFF;
        --bg-secondary: #F3F4F6;
        --border-color: #E5E7EB;
        --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

        /* Spacing variables copied from player profile */
        --spacing-xs: 0.5rem;
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 1.5rem;
        --spacing-xl: 2rem;
        --spacing-2xl: 3rem;

        /* Map any legacy gap vars to spacing to ensure identical spacing */
        --gap-xs: var(--spacing-xs);
        --gap-sm: var(--spacing-sm);
        --gap-md: var(--spacing-md);
        --gap-lg: var(--spacing-lg);
        --gap-xl: var(--spacing-xl);
        --gap-2xl: var(--spacing-2xl);
    }

    /* Ensure team variables cascade to primary/secondary like player page */
    .home-sections {
        --primary-color: var(--team-primary);
        --secondary-color: var(--team-secondary, var(--team-primary));
    }

    /* Align container with global layout system */
    .container {
        overflow-x: visible;
    }

    /* Wrapper for proper layout */
/* Profile pages now use .home-sections wrapper like home page */

    /* Hero Section - copy player profile spacings/alignment */
    .hero-section {
        background: var(--team-primary);
        /* Move content slightly more to the left */
        padding: var(--spacing-2xl) var(--spacing-lg) 0 var(--spacing-md);
        margin-bottom: 0.25rem; /* match player */
        position: relative;
        z-index: 1;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-background {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        opacity: 0.2;
        background:
            radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0) 52%),
            radial-gradient(circle at 82% 8%, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 48%);
        z-index: 0;
    }

    /* Table presentation is handled by the shared blueprint stylesheet. */

    .hero-content {
        position: relative;
        z-index: 1;
        display: flex;
        align-items: center !important; /* center vertically */
        justify-content: flex-start; /* move block to the left */
        gap: 2rem; /* match player */
        height: 100%;
        /* Match shared top banner sizing */
        min-height: var(--fs-top-banner-content-height) !important;
        height: var(--fs-top-banner-content-height) !important;
        padding: 0 var(--fs-top-banner-padding-x) !important;
    }

    .team-header {
        display: flex;
        align-items: center !important;
        gap: 2rem; /* match player */
        flex: 1;
    }

    .team-logo-container {
        position: relative;
        flex-shrink: 0;
        width: min(180px, 24vw);
        max-width: 180px;
        height: min(180px, 24vw);
        margin-bottom: 0; /* Keep flush with bottom of colored hero */
        z-index: 3;
        align-self: center !important; /* center vertically like requested */
        /* No background - true transparent PNG */
    }

    .team-header .team-logo {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        object-fit: contain;
        filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    }

    .team-info-header {
        color: white !important;
        flex: 1 !important;
        /* mirror player info header alignment */
        align-self: center !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    /* Title row layout to mirror player profile */
    .team-title-row {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-auto-rows: auto;
        align-items: center; /* Vertically align name and quick stats */
        column-gap: 1.25rem;
        row-gap: 0rem; /* No extra gap between name and meta */
        width: 100%;
    }

    .hero-section .team-name {
        /* Slightly larger than previous for better prominence */
        font-size: clamp(1.75rem, 3.4vw, 2.6rem);
        font-weight: 700;
        margin: 0;
        color: white !important;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    }

    .team-title-row .team-meta-info {
        grid-column: 1;
        grid-row: 2;
        margin-top: 0 !important; /* keep meta snug to name for vertical centering */
    }

    .team-meta-info {
        display: flex;
        flex-wrap: nowrap; /* force single row like requested */
        gap: 1rem;
        margin-top: 0.75rem;
        opacity: 0.95;
        align-items: center;
        white-space: nowrap; /* keep items on one line */
    }

    .meta-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: clamp(1rem, 1.7vw, 1.1rem);
        color: white !important;
    }

    /* Hero meta line: 25% smaller (Position / Record / Percentage) */
    .hero-section .team-meta-info .meta-item {
        font-size: clamp(0.75rem, 1.275vw, 0.825rem) !important;
    }
    
    .meta-item span {
        color: white !important;
    }

    .meta-item i {
        color: white !important;
        opacity: 0.9;
    }

    /* Season Selector - Styled like player profile filters */
    .season-selector {
        display: inline-flex;
        gap: var(--gap-xs);
        margin-left: auto;
        position: relative;
    }

    .season-button {
        padding: 0.5rem 1rem;
        background: #ffffff;
        border: 2px solid var(--primary-color);
        border-radius: 12px;
        color: var(--primary-color);
        font-size: 0.875rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s ease;
        white-space: nowrap;
    }

    .season-button:hover {
        background: #ffffff;
        filter: brightness(0.98);
        transform: translateY(-1px);
    }

    .season-button.active {
        background: var(--primary-color);
        color: #ffffff;
        border-color: var(--primary-color);
        font-weight: 700;
    }

    .season-dropdown {
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 0;
        background: white;
        border-radius: 12px;
        box-shadow: var(--shadow-xl);
        padding: var(--gap-xs);
        display: none;
        max-height: 200px;
        overflow-y: auto;
        min-width: 100px;
        z-index: 1000;
    }

    .season-dropdown.show {
        display: block;
    }

    .season-option {
        padding: 0.5rem 1rem;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
        color: var(--text-primary);
        font-size: 0.875rem;
    }

    .season-option:hover {
        background: var(--primary-color);
        color: #ffffff;
    }

    .season-option.current {
        background: var(--primary-color);
        color: #ffffff;
        font-weight: 600;
    }

    /* Quick Stats */
    .team-title-row .quick-stats {
        grid-column: 2;
        grid-row: 1; /* Align on the same row as team name */
        align-self: center; /* vertical center against the name */
        margin-left: auto; /* push to the right like player */
    }

    .quick-stats {
        display: flex;
        gap: 2rem;
        margin-top: 0; /* match player */
        align-items: center;
        padding: 0;
    }
    
    /* Overview stat bubbles */
    .overview-bubbles {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
        margin-top: 1rem;
        margin-bottom: var(--gap-xs);
    }
    .stat-bubble {
        display: inline-flex;
        align-items: center;
        gap: var(--gap-xs);
        padding: 0.4rem 0.75rem;
        border-radius: 9999px;
        font-weight: 600;
        font-size: 0.85rem;
        border: 1px solid var(--border-color);
        background: var(--bg-secondary);
        color: var(--text-primary);
        white-space: nowrap;
    }
    .stat-bubble .label { opacity: 0.7; font-weight: 600; }
    .stat-bubble .value { font-weight: 700; }
    .stat-bubble.pf { border-color: #10B981; background: rgba(16,185,129,0.12); color: #065F46; }
    .stat-bubble.pa { border-color: #EF4444; background: rgba(239,68,68,0.12); color: #991B1B; }

    .stat-item {
        text-align: center;
    }

    .stat-value {
        font-size: 2.4rem;
        font-weight: 700;
        margin: 0;
        color: white !important;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    }

    .stat-label {
        font-size: clamp(0.8rem, 1.3vw, 0.95rem);
        opacity: 0.9;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: white !important;
    }

    /* Make hero quick stats 25% smaller */
    .hero-section .quick-stats .stat-value { font-size: 1.8rem !important; }
    .hero-section .quick-stats .stat-label { font-size: clamp(0.6rem, 1.0vw, 0.7rem) !important; }

    /* Team tabs: mirror the player menu container + inner nav structure */
    #team-profile [data-testid="tabs-menu"] {
        position: relative;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        border: 1px solid #E5E7EB !important;
        border-radius: 16px !important;
        background: #ffffff !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
        overflow: hidden !important;
    }

    #team-profile [data-testid="tabs-menu"]::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--primary-color, var(--team-primary, var(--brand-blue)));
        border-radius: 16px 16px 0 0;
        pointer-events: none;
        z-index: 1;
    }

    #team-profile [data-testid="tabs-menu"] .profile-nav {
        display: flex !important;
        gap: var(--spacing-sm) !important;
        position: relative !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        padding-top: calc(0.45rem + 4px) !important;
        padding-bottom: 0.35rem !important;
        padding-left: var(--spacing-lg) !important;
        padding-right: var(--spacing-lg) !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        width: 100% !important;
        box-sizing: border-box !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        overflow: visible !important;
    }

    #team-profile [data-testid="tabs-menu"] .profile-nav::before {
        content: none !important;
    }

    #team-profile [data-testid="tabs-menu"] .profile-nav::-webkit-scrollbar {
        display: none;
    }

    #team-profile [data-testid="tabs-menu"] .nav-tab {
        background: none;
        border: none;
        padding: 0.75rem 1.5rem;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 0.95rem;
        font-weight: 500;
        color: var(--text-secondary);
        white-space: nowrap;
    }

    #team-profile [data-testid="tabs-menu"] .nav-tab.active {
        background: var(--primary-color);
        color: white;
        box-shadow: var(--shadow-md);
    }

    #team-profile [data-testid="tabs-menu"] .nav-tab:hover:not(.active) {
        background: var(--bg-secondary);
        color: var(--text-primary);
    }

    /* Content Sections - identical to player profile */
    .tab-content {
        display: none;
        animation: fadeIn 0.3s ease-in;
        position: relative;
        padding: 1.5rem;
        width: 100%;
        max-width: 1400px;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .tab-content.active {
        display: block;
    }

    /* Match player tab start position on all breakpoints */
    #team-profile .tab-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    @media (min-width: 821px) {
        #team-profile .tab-content {
            padding-left: 0;
            padding-right: 0;
            max-width: 100%;
            margin: 0;
        }

        #team-profile [data-testid="hero-banner"] {
            min-height: var(--fs-top-banner-total-height);
            height: var(--fs-top-banner-total-height);
            padding: 0 var(--spacing-lg) 0 var(--spacing-md);
            display: flex;
            align-items: center;
        }

        #team-profile [data-testid="hero-banner"] .hero-content {
            width: 100%;
            min-height: 100% !important;
            height: 100% !important;
            padding-top: 0 !important;
            padding-bottom: 0 !important;
            align-items: center !important;
        }

        #team-profile [data-testid="hero-banner"] .team-header {
            height: 100%;
            align-items: center !important;
        }

        #team-profile [data-testid="hero-banner"] [data-testid="banner-text"] {
            height: 100%;
        }
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    /* Card Components - EXACT PLAYER PROFILE COPY */
    .content-card {
        background: white;
        border-radius: 16px;
        padding: var(--spacing-lg);
        margin-bottom: var(--spacing-lg);
        box-shadow: var(--shadow-md);
        border: 1px solid var(--border-color);
        transition: all 0.3s ease;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden; /* Contain content within card */
        position: relative;
    }

    /* Allow overflow for cards with tooltips to match player */
    .content-card:has(.stat-guide-hover-container),
    .content-card.has-tooltip {
        overflow: visible;
    }

    .content-card:hover {
        box-shadow: var(--shadow-lg);
        transform: translateY(-2px);
    }

    .content-card.has-tooltip {
        overflow: visible;
    }

    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: var(--gap-lg);
        position: relative;
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--text-primary);
    }

    .card-title {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--text-primary);
        margin: 0;
        display: flex;
        align-items: center;
        gap: var(--gap-xs);
    }

    .card-icon {
        color: var(--primary-color);
        font-size: 1.1rem;
    }

    .card-header span {
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--text-primary);
        display: flex;
        align-items: center;
        gap: var(--gap-xs);
    }

    /* Stats Grid */
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    @media (min-width: 768px) {
        .stats-grid { grid-template-columns: repeat(3, 1fr); }
    }
    @media (min-width: 1024px) {
        .stats-grid { grid-template-columns: repeat(4, 1fr); }
    }

    .grid-stat {
        text-align: center;
        padding: 1rem;
        background: var(--bg-secondary);
        border-radius: 12px;
    }

    .grid-stat-value {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--primary-color);
    }

    .grid-stat-label {
        font-size: 0.75rem;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-top: 0.25rem;
    }

    /* Legacy per-page table sizing/sticky/sort styling removed.
       Shared table blueprint now lives in `unified-stats-table.css`. */

    .table-row {
        display: grid;
        align-items: center;
        padding: 0.4rem 0.75rem;
        border-bottom: 1px solid var(--border-color);
        transition: all 0.2s ease;
        font-size: 0.8rem;
        gap: 0.75rem;
        cursor: pointer;
    }

    .table-row:hover {
        background: var(--bg-secondary);
        padding-left: 1rem;
    }

    .table-row:last-child {
        border-bottom: none;
    }

    .table-header {
        display: grid;
        align-items: center;
        padding: 0.5rem 0.75rem;
        font-weight: 600;
        color: var(--text-secondary);
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-bottom: 2px solid var(--border-color);
        gap: 0.75rem;
        background: var(--bg-secondary);
    }

    /* Schedule Table Layout */
    .schedule-table .table-header,
    .schedule-table .table-row {
        grid-template-columns: 1fr 1.6fr 2fr 1.8fr 1.3fr 0.8fr;
    }

    .schedule-opponent-abbr,
    .schedule-date-short {
        display: none;
    }

    /* Roster Table Layout */
    .roster-table .table-header,
    .roster-table .table-row {
        grid-template-columns: 0.5fr 2.5fr 0.7fr 1fr 1fr 0.8fr 1fr;
    }

    .opponent-cell {
        display: flex;
        align-items: center;
        gap: var(--gap-xs);
    }

    .opponent-logo {
        width: 20px;
        height: 20px;
        object-fit: contain;
        flex-shrink: 0;
    }

    .match-centre-wrapper {
        font-size: 0.7rem;
        margin-top: 0.2rem;
        display: inline-flex;
    }

    .match-centre-wrapper .match-centre-link {
        color: var(--primary-color);
        text-decoration: none;
        font-weight: 600;
    }

    .match-centre-wrapper .match-centre-link:hover {
        text-decoration: underline;
    }

    /* Game result badges in table (match player profile) */
    .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;
    }

    .game-result-badge.win {
        background: #D1FAE5;
        color: #065F46;
        border: 1px solid #A7F3D0;
    }

    .game-result-badge.loss {
        background: #FEE2E2;
        color: #991B1B;
        border: 1px solid #FECACA;
    }

    .game-result-badge.draw {
        background: #FEF3C7;
        color: #92400E;
        border: 1px solid #FDE68A;
    }

    /* Back-compat for existing markup in stats table */
    .result-badge {
        background: #FEF3C7;
        color: #92400E;
        border: 1px solid #FDE68A;
        padding: 0.2rem 0.5rem;
        border-radius: 6px;
        font-size: 0.65rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        display: inline-block;
        white-space: nowrap;
    }
    .result-badge.win {
        background: #D1FAE5;
        color: #065F46;
        border: 1px solid #A7F3D0;
    }

    /* Score cell styling (match player profile) */
    .score-display {
        font-weight: 600;
        white-space: nowrap;
        font-size: 0.8rem;
    }

    .score-display .winning-score {
        color: #059669;
        font-weight: 700;
    }

    .score-display .losing-score {
        color: #991B1B;
        font-weight: 700;
    }
    .score-cell .match-centre-link,
    .score-cell .match-centre-link:link,
    .score-cell .match-centre-link:visited,
    .score-cell .match-centre-link:active {
        font-size: inherit;
        font-weight: inherit;
        color: inherit;
        letter-spacing: 0;
        text-decoration: none;
    }
    .score-cell .match-centre-link:hover {
        color: inherit;
        text-decoration: underline;
    }

    .merged-result-score {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        white-space: nowrap;
    }

    .merged-result-score .merged-result-value,
    .merged-result-score .merged-score-value {
        display: inline-flex;
        align-items: center;
    }

    /* Venue/table cell presentation is handled by the shared table blueprint. */

    @media (max-width: 768px) {
        /* Keep player parity on smaller screens */
        .hero-content { min-height: 12rem !important; }
        .schedule-table .table-header,
        .schedule-table .table-row {
            grid-template-columns: 1fr 1.6fr 2.5fr 1.4fr;
        }

        .schedule-table .venue-col,
        .schedule-table .record-col {
            display: none;
        }

        .roster-table .table-header,
        .roster-table .table-row {
            grid-template-columns: 0.5fr 3fr 0.8fr 1fr;
        }

        .roster-table .height-col,
        .roster-table .weight-col,
        .roster-table .debut-col {
            display: none;
        }
    }

    @media (max-width: 480px) {
        .hero-content { min-height: 10rem !important; }

        .home-sections[class*="team-"] .content-card .card-title,
        .home-sections[class*="team-"] .content-card .card-header > span {
            font-size: 0.9rem !important;
        }

        .home-sections[class*="team-"] .content-card .card-icon {
            font-size: 0.78rem !important;
        }

        .home-sections[class*="team-"] .stat-guide-hover-btn {
            padding: 0.32rem 0.58rem !important;
            gap: 0.28rem !important;
            min-height: 27px !important;
            font-size: 0.68rem !important;
            border-radius: 7px !important;
        }

        .home-sections[class*="team-"] .stat-guide-hover-btn i {
            font-size: 0.69rem !important;
        }

        #splits .game-log-title {
            font-size: 0.9rem !important;
            gap: 0.4rem;
        }

        #splits .game-log-title i {
            font-size: 0.78rem !important;
        }
    }

    @media (max-width: 820px) {
        .home-sections[class*="team-"] .content-card .card-title,
        .home-sections[class*="team-"] .content-card .card-header > span {
            font-size: clamp(0.95rem, 3.8vw, 1.05rem);
            gap: 0.4rem;
        }

        .home-sections[class*="team-"] .content-card .card-icon {
            font-size: clamp(0.82rem, 3vw, 0.92rem);
        }

        .home-sections[class*="team-"] .stat-guide-hover-btn {
            padding: 0.4rem 0.72rem;
            gap: 0.34rem;
            min-height: 30px;
            font-size: 0.75rem;
            border-radius: 7px;
        }

        .home-sections[class*="team-"] .stat-guide-hover-btn i {
            font-size: 0.76rem;
        }

        /* Season overview bubbles: mobile-only 3-up layout */
        #team-profile #overview .stats-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 0.45rem;
        }

        #team-profile #overview .grid-stat {
            padding: 0.62rem 0.35rem;
            border-radius: 10px;
        }

        #team-profile #overview .grid-stat-value {
            font-size: clamp(0.95rem, 3.8vw, 1.08rem);
            line-height: 1.05;
        }

        #team-profile #overview .grid-stat-label {
            font-size: clamp(0.5rem, 1.9vw, 0.62rem);
            letter-spacing: 0.03em;
            margin-top: 0.15rem;
            line-height: 1.12;
        }

        .schedule-table {
            min-width: 640px;
        }

        .schedule-table .table-header,
        .schedule-table .table-row {
            grid-template-columns: 0.5fr 0.9fr 1.2fr 1fr 1fr 0.6fr;
            gap: 0.45rem;
        }

        .schedule-table .table-header > div,
        .schedule-table .table-row > div {
            white-space: nowrap;
        }

        .schedule-table .venue-col,
        .schedule-table .record-col {
            display: block;
        }

        .schedule-table .table-row,
        .schedule-table .table-header {
            padding: 0.35rem 0.6rem;
        }

        .schedule-opponent-full,
        .schedule-date-full {
            display: none;
        }

        .schedule-opponent-abbr,
        .schedule-date-short {
            display: inline;
        }

        #splits .game-log-header {
            flex-wrap: wrap;
            align-items: flex-start;
        }

        #splits .game-log-header .stat-guide-hover-container {
            flex-basis: 100%;
            display: flex;
            justify-content: flex-end;
            margin-left: 0 !important;
        }
    }

    /* Player Row */
    .player-row {
        cursor: pointer;
    }

    .player-cell {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .player-img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--border-color);
    }

    /* Game Result Badges - Modern Style */
    .result-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.2rem 0.5rem;
        border-radius: 4px;
        font-size: 0.7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .result-badge.win {
        background: rgba(16, 185, 129, 0.15);
        color: #10B981;
    }

    .result-badge.loss {
        background: rgba(239, 68, 68, 0.15);
        color: #EF4444;
    }

    .result-badge.draw {
        background: rgba(245, 158, 11, 0.15);
        color: #F59E0B;
    }

    .score-cell {
        font-weight: 500;
        font-size: 0.85rem;
    }

    .score-cell strong {
        color: var(--primary-color);
    }

    /* Split Filters */
    .split-filters {
        display: flex;
        gap: var(--gap-xs);
        margin-bottom: var(--gap-lg);
        flex-wrap: wrap;
    }

    .split-filter {
        padding: 0.5rem 1rem;
        background: var(--bg-secondary);
        border: 2px solid transparent;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.2s ease;
        font-size: 0.875rem;
        font-weight: 500;
        color: var(--text-secondary);
    }

    .split-filter:hover {
        background: white;
        border-color: var(--primary-color);
        color: var(--primary-color);
    }

    .split-filter.active {
        background: var(--primary-color);
        color: white;
        border-color: var(--primary-color);
    }

    /* Toggle Switch for Leaders */
    .toggle-container {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        border: none !important;
        box-shadow: none !important;
        outline: none !important;
    }

    .toggle-container .toggle-label {
        font-size: 0.875rem !important;
        font-weight: 600 !important;
        color: #4B5563 !important;
        font-family: var(--font-sans) !important;
        border: none !important;
        outline: none !important;
    }

    .toggle-container .toggle-switch {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 24px;
        background-color: #E5E7EB !important;
        border-radius: 12px;
        cursor: pointer;
        transition: background-color 0.3s;
        border: 0 !important;
        outline: none !important;
        padding: 0;
        margin: 0;
        box-shadow: none !important;
    }

    .toggle-container .toggle-switch input {
        display: none;
    }
    
    .toggle-container .toggle-switch.active {
        background-color: var(--primary-color) !important;
    }

    /* Use standard toggle colors for For/Against */

    .toggle-container .toggle-slider {
        position: absolute;
        top: 2px;
        left: 2px;
        width: 20px;
        height: 20px;
        background-color: #ffffff;
        border-radius: 10px;
        transition: left 0.3s;
        border: none;
        outline: none;
        box-shadow: none;
    }

    .toggle-container .toggle-switch.active .toggle-slider {
        left: 28px;
    }

    /* Remove any inherited styles */
    .toggle-container .toggle-switch * {
        box-shadow: none !important;
        border: none !important;
        outline: none !important;
    }
    
    .toggle-container .toggle-switch::before,
    .toggle-container .toggle-switch::after,
    .toggle-container .toggle-slider::before,
    .toggle-container .toggle-slider::after {
        display: none !important;
    }

    /* Leaders Section */
    .leaders-grid {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.75rem;
    }

    @media (max-width: 1400px) {
        .leaders-grid {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }
    }

    @media (max-width: 1100px) {
        .leaders-grid {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }
    
    .leaders-grid.hidden {
        display: none !important;
    }

    .leader-card {
        background: var(--bg-secondary);
        border-radius: 12px;
        padding: 0.7rem;
        text-align: center;
        transition: all 0.3s ease;
        cursor: pointer;
        text-decoration: none;
        display: block;
        position: relative;
        overflow: hidden;
    }

    .leader-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
        background: white;
    }

    .leader-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: var(--primary-color);
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .leader-card:hover::before {
        transform: scaleX(1);
    }

    .leader-image {
        width: 54px;
        height: 54px;
        border-radius: 50%;
        object-fit: cover;
        margin: 0 auto 0.45rem;
        border: 2px solid var(--primary-color);
        box-shadow: var(--shadow-md);
    }

    .leader-stat {
        font-size: 0.66rem;
        color: var(--text-secondary);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 0.25rem;
        min-height: 2.2em;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1.15;
    }

    .leader-name {
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 0.2rem;
        font-size: 0.82rem;
        line-height: 1.2;
    }

    .leader-value {
        font-size: 1.12rem;
        font-weight: 700;
        color: var(--primary-color);
    }

    /* Stats table specific styles */
    .stats-table .table-header {
        grid-template-columns: 0.8fr 0.8fr 1fr 1.2fr 1.2fr 1fr 1fr 1.2fr;
    }

    .stats-table .table-row {
        grid-template-columns: 0.8fr 0.8fr 1fr 1.2fr 1.2fr 1fr 1fr 1.2fr;
    }

    .table-row.highlighted {
        background: rgba(58, 145, 248, 0.15);
        border-left: 3px solid var(--primary-color);
        padding-left: calc(1rem - 3px);
    }

    .table-row.highlighted > div {
        font-weight: 600;
    }

    /* Removed old result-badge styles; unified to .game-result-badge */

    /* Splits Panel Styles - matching player profile */
    .games-controls {
        background: white;
        border-radius: 10px;
        padding: 20px;
        margin-bottom: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .games-filter-row {
        display: flex;
        gap: 15px;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .filter-group {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    
    .filter-label {
        font-size: 0.85em;
        color: #666;
        font-weight: 500;
    }

    .splits-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .split-table {
        background: white;
        border-radius: 10px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        overflow: hidden;
    }

    .split-table h4 {
        background: var(--primary-color);
        color: white;
        margin: 0;
        padding: 15px 20px;
        font-size: 1.1em;
    }

    .table-scroll {
        max-height: 400px;
        overflow-y: auto;
    }

    .stats-table {
        width: 100%;
        border-collapse: collapse;
    }

    .stats-table thead {
        background: #f5f5f5;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .stats-table th {
        padding: 12px;
        text-align: left;
        font-weight: 600;
        color: #333;
        font-size: 0.9em;
        border-bottom: 2px solid #e0e0e0;
    }

    .stats-table td {
        padding: 12px;
        border-bottom: 1px solid #e0e0e0;
        font-size: 0.95em;
    }

    .stats-table tbody tr:hover {
        background: #f9f9f9;
    }

    /* Toggle Switch Styles */
    .toggle-switch {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-left: auto;
    }

    .switch {
        width: 50px;
        height: 26px;
        background: #ccc;
        border-radius: 13px;
        position: relative;
        cursor: pointer;
        transition: background 0.3s;
    }

    .switch.active {
        background: var(--primary-color);
    }

    .switch-slider {
        width: 22px;
        height: 22px;
        background: white;
        border-radius: 50%;
        position: absolute;
        top: 2px;
        left: 2px;
        transition: transform 0.3s;
    }

    .switch.active .switch-slider {
        transform: translateX(24px);
    }

    .season-dropdown {
        padding: 8px 12px;
        border: 2px solid #ddd;
        border-radius: 6px;
        background: white;
        color: #333;
        font-size: 1em;
        cursor: pointer;
    }

    .season-dropdown:focus {
        border-color: var(--primary-color);
        outline: none;
    }

    /* Game Log Styles - Modern Design */
    .game-log-container {
        background: white;
        border-radius: 12px;
        padding: 24px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }
    
    .game-log-header {
        margin-bottom: var(--gap-lg);
    }
    
    .for-against-slot {
        display: flex;
        align-items: center;
    }

    .for-against-slot-desktop {
        margin-left: auto;
    }

    .for-against-slot-mobile {
        display: none;
    }
    
    .game-log-title {
        font-size: 1.5rem;
        font-weight: 600;
        color: #1a1a1a;
        margin: 0;
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .game-log-title i {
        color: #666;
        font-size: 1.2rem;
    }
    
    /* Filter Styles */
    .game-log-filters {
        display: flex;
        gap: 16px;
        margin-bottom: var(--gap-lg);
        flex-wrap: wrap;
    }
    
    .filter-item {
        flex: 1;
        min-width: 140px;
    }
    
    .filter-item .filter-label {
        display: block;
        font-size: 0.75rem;
        font-weight: 600;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 6px;
    }
    
    .filter-select {
        width: 100%;
        padding: 8px 12px;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        background: white;
        color: #1a1a1a;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.2s;
    }

    .filter-select:hover {
        border-color: #d1d5db;
    }

    .filter-select:focus {
        outline: none;
        border-color: var(--primary-color);
        /* Use a subtle neutral ring like player profile */
        box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
    }

    /* (Reverted) Advanced filter selects: use default profile styles */
    
    /* Games List Styles */
    .games-list {
        margin-bottom: var(--gap-lg);
    }
    
    .game-item {
        display: grid;
        grid-template-columns: 30px 1fr 1fr 1fr 1fr 1fr 1fr;
        align-items: center;
        padding: 0.4rem 0;
        border-bottom: 1px solid var(--border-color);
        transition: all 0.2s ease;
        font-size: 0.75rem;
        gap: 1rem;
    }
    
    .game-item:hover {
        background: var(--bg-secondary);
        padding-left: 0.5rem;
    }
    
    .game-item:last-child {
        border-bottom: none;
    }
    
    .opponent-logo {
        width: 20px;
        height: 20px;
        object-fit: contain;
        flex-shrink: 0;
    }
    
    .game-match-info {
        display: flex;
        flex-direction: column;
        gap: 0.125rem;
        flex: 1;
        min-width: 0;
    }
    
    .team-link {
        color: inherit;
        text-decoration: none;
        font-weight: 400; /* keep team names non-bold */
    }
    
    .team-link:hover {
        text-decoration: underline;
    }
    
    .team-logo {
        width: 40px;
        height: 40px;
        object-fit: contain;
    }
    
    .game-opponent {
        font-weight: 600;
        color: #1a1a1a;
        font-size: 0.8rem;
    }
    
    .game-scores {
        font-size: 0.7rem;
        color: #6b7280;
    }
    
    .game-venue {
        font-size: 0.7rem;
        color: #6b7280;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .game-player-score {
        font-size: 0.8rem;
        font-weight: 600;
        color: #1a1a1a;
        text-align: center;
    }
    
    .game-date-result {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.125rem;
    }
    
    .game-date {
        font-size: 0.7rem;
        color: #6b7280;
    }
    
    .game-result {
        font-weight: 600;
        padding: 0.1rem 0.4rem;
        border-radius: 10px;
        font-size: 0.6rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        display: inline-block;
    }
    
    .game-result.win {
        background: #D1FAE5;
        color: #065F46;
    }
    
    .game-result.loss {
        background: #FEE2E2;
        color: #991B1B;
    }
    
    .game-result.draw {
        background: #FEF3C7;
        color: #92400E;
    }
    
    .game-time-info {
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    
    .game-time {
        font-size: 0.65rem;
        color: #6b7280;
        font-weight: 500;
    }

    /* Pagination Styles */
    /* Old pagination styles removed - using shared blueprint pagination styles. */
    /*
    .game-log-pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 20px 0;
        border-top: 1px solid #e5e7eb;
    }
    
    .page-btn {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid #e5e7eb;
        background: white;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s;
        color: #6b7280;
    }
    
    .page-btn:hover:not(:disabled) {
        background: #f9fafb;
        border-color: #d1d5db;
    }
    
    .page-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }
    
    .page-numbers {
        display: flex;
        gap: 4px;
    }
    
    .page-number {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px solid transparent;
        background: white;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.2s;
        color: #6b7280;
        font-size: 0.9rem;
    }
    
    .page-number:hover {
        background: #f9fafb;
    }
    
    .page-number.active {
        background: #1a1a1a;
        color: white;
        font-weight: 600;
    }
    
    .page-info {
        margin-left: 20px;
        font-size: 0.9rem;
        color: #6b7280;
    }
    */
    

    /* Responsive */
    @media (max-width: 820px) {
        #team-profile #overview .team-leaders-header {
            flex-direction: column;
            justify-content: flex-start;
            align-items: flex-start;
            gap: 0.35rem;
            flex-wrap: nowrap;
        }

        #team-profile #overview .team-leaders-toggle {
            margin-left: 0;
            align-self: flex-start;
        }

        /* Match player statistics tab toggle sizing on mobile */
        #team-profile #overview .team-leaders-toggle .toggle-switch {
            width: 24px;
            height: 11.2px;
            border-radius: 5.6px;
        }

        #team-profile #overview .team-leaders-toggle .toggle-slider {
            top: 50%;
            left: 2px;
            width: 9.6px;
            height: 9.6px;
            border-radius: 4.8px;
            transform: translateY(-50%);
        }

        #team-profile #overview .team-leaders-toggle .toggle-switch.active .toggle-slider {
            left: calc(100% - 9.6px - 2px);
        }

        #team-profile .tab-content {
            width: 100%;
            max-width: 100%;
            margin-left: 0;
            margin-right: 0;
            padding-left: 0 !important;
            padding-right: 0 !important;
            box-sizing: border-box;
        }

        #team-profile .tab-content > .content-card,
        #team-profile .tab-content > .game-log-container,
        #team-profile .tab-content .stats-table-scroll-wrap,
        #team-profile .tab-content .profile-table-outer,
        #team-profile .tab-content .profile-pagination-container {
            width: 100%;
            max-width: 100%;
            margin-left: 0 !important;
            margin-right: 0 !important;
            box-sizing: border-box;
        }

        #team-profile [data-testid="tabs-menu"] .profile-nav {
            display: grid !important;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 8px;
            width: 100%;
            overflow: visible !important;
            padding: calc(var(--spacing-sm) + 4px) var(--spacing-sm) var(--spacing-sm) !important;
            padding-right: var(--spacing-sm) !important;
            white-space: normal !important;
        }

        #team-profile [data-testid="tabs-menu"] .profile-nav .nav-tab {
            width: 100%;
            min-width: 0;
            min-height: 36px;
            padding: 0.5rem 0.4rem !important;
            font-size: 0.85rem !important;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .splits-grid {
            grid-template-columns: 1fr;
        }

        .games-filter-row {
            flex-direction: column;
            align-items: stretch;
            gap: 10px;
        }
        
        .filter-group {
            width: 100%;
        }

        .toggle-switch {
            margin-left: 0;
            margin-top: 10px;
        }

        .season-dropdown {
            width: 100%;
        }
    }

    @media (max-width: 820px) {
        #team-profile #overview .leaders-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.5rem;
        }

        #team-profile #overview .leader-card {
            padding: 0.55rem 0.55rem;
            border-radius: 10px;
        }

        #team-profile #overview .leader-image {
            width: 40px;
            height: 40px;
            margin: 0 auto 0.35rem;
        }

        #team-profile #overview .leader-name {
            font-size: 0.74rem;
            margin-bottom: 0.15rem;
        }

        #team-profile #overview .leader-value {
            font-size: 1rem;
        }

        #team-profile #overview .leader-stat {
            font-size: 0.62rem;
            min-height: 1.9em;
            margin-bottom: 0.18rem;
        }

        #splits .game-log-header {
            flex-wrap: nowrap;
            align-items: center;
            justify-content: space-between;
            row-gap: 0;
        }

        #splits .game-log-header .stat-guide-hover-container {
            margin-left: auto !important;
            width: auto;
            flex-basis: auto;
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            justify-content: flex-end;
        }

        #splits .for-against-slot-desktop:empty {
            display: none;
        }

        #splits .for-against-slot-mobile {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            margin: 0 0 0.75rem;
        }

        #splits .for-against-slot-mobile .for-against-control {
            gap: 0.6rem;
        }

        #splits .for-against-slot-mobile .toggle-label {
            font-size: 0.7rem !important;
        }

        #splits .for-against-slot-mobile .toggle-switch {
            width: 40px;
            height: 19.2px;
            border-radius: 9.6px;
            margin-top: 0 !important;
        }

        #splits .for-against-slot-mobile .toggle-slider {
            top: 1.6px;
            left: 1.6px;
            width: 16px;
            height: 16px;
            border-radius: 8px;
        }

        #splits .for-against-slot-mobile .toggle-switch.active .toggle-slider {
            left: 22.4px;
        }

        #splits #team-advanced-filter .profile-filter-row .profile-filter-label {
            width: 100%;
            text-align: left;
            align-self: flex-start;
            justify-content: flex-start;
        }

        #splits .game-log-title {
            font-size: clamp(0.95rem, 3.8vw, 1.05rem);
            gap: 0.4rem;
        }

        #splits .game-log-title i {
            font-size: clamp(0.82rem, 3vw, 0.92rem);
        }

        /* Team banner mobile logic: mirror player banner anchoring and keep one source of truth */
        #team-profile [data-testid="hero-banner"] {
            position: relative;
            --banner-inset: 12px;
            --banner-top-line: calc(var(--banner-inset) + 6px);
            --banner-control-size: var(--bookmark-size-mobile, var(--bookmark-hit-area));
            --banner-control-gap: var(--bookmark-control-gap);
            --banner-name-size: clamp(1.35rem, 5vw, 1.95rem);
            --banner-meta-size: clamp(0.76rem, 2.7vw, 0.86rem);
            --banner-stat-value-size: 0.98rem;
            --banner-stat-label-size: 0.58rem;
            padding: 0 !important;
            overflow: visible;
        }

        #team-profile [data-testid="hero-banner"] .hero-content {
            position: relative !important;
            display: block !important;
            align-items: stretch !important;
            justify-content: center !important;
            min-height: 100% !important;
            height: 100% !important;
            padding: 0 !important;
        }

        #team-profile [data-testid="hero-banner"] .team-header {
            position: relative !important;
            width: 100%;
            min-height: 100% !important;
            height: 100% !important;
            display: block !important;
        }

        #team-profile [data-testid="hero-banner"] [data-testid="banner-text"] {
            position: absolute !important;
            top: var(--banner-top-line);
            left: var(--banner-inset);
            right: var(--banner-inset);
            transform: none !important;
            text-align: left !important;
            z-index: 5;
            width: auto !important;
            display: flex !important;
            flex-direction: column !important;
            align-items: flex-start !important;
            padding: 0 !important;
            margin: 0 !important;
        }

        #team-profile [data-testid="hero-banner"] .team-title-row {
            display: flex !important;
            flex-direction: column !important;
            align-items: flex-start !important;
            gap: 0.35rem !important;
            width: 100% !important;
        }

        #team-profile [data-testid="hero-banner"] .team-name {
            margin: 0 !important;
            text-align: left !important;
            font-size: var(--banner-name-size) !important;
            line-height: 1.1 !important;
        }

        #team-profile [data-testid="hero-banner"] .team-meta-info {
            display: flex !important;
            flex-wrap: wrap !important;
            align-items: flex-start !important;
            justify-content: flex-start !important;
            gap: 0.4rem 0.75rem !important;
            margin-top: 0.2rem !important;
            padding-top: 0.12rem !important;
            text-align: left !important;
            width: 100% !important;
            white-space: normal !important;
            font-size: var(--banner-meta-size) !important;
        }

        #team-profile [data-testid="hero-banner"] .team-meta-info .meta-item {
            display: inline-flex !important;
            align-items: center !important;
            justify-content: flex-start !important;
            text-align: left !important;
            font-size: var(--banner-meta-size) !important;
            line-height: 1.15 !important;
        }

        #team-profile [data-testid="hero-banner"] .team-meta-info .meta-item span,
        #team-profile [data-testid="hero-banner"] .team-meta-info .meta-item i {
            font-size: var(--banner-meta-size) !important;
            line-height: 1.15 !important;
        }

        #team-profile [data-testid="hero-banner"] .quick-stats {
            width: 100% !important;
            display: flex !important;
            justify-content: flex-start !important;
            align-items: flex-start !important;
            gap: 0.55rem !important;
            margin-top: 0.45rem !important;
            margin-left: 0 !important;
            padding-top: 0.12rem !important;
            position: static !important;
            flex-wrap: wrap !important;
        }

        #team-profile [data-testid="hero-banner"] .quick-stats .stat-item {
            min-width: 64px;
            display: flex;
            flex-direction: column;
            align-items: flex-start !important;
            justify-content: flex-start;
            text-align: left !important;
        }

        #team-profile [data-testid="hero-banner"] .hero-section .quick-stats .stat-value,
        #team-profile [data-testid="hero-banner"] .quick-stats .stat-value {
            font-size: var(--banner-stat-value-size) !important;
            line-height: 1.1;
        }

        #team-profile [data-testid="hero-banner"] .hero-section .quick-stats .stat-label,
        #team-profile [data-testid="hero-banner"] .quick-stats .stat-label {
            font-size: var(--banner-stat-label-size) !important;
            line-height: 1.1;
            letter-spacing: 0.04em;
        }

        /* Keep action buttons and text on the same top alignment line */
        #team-profile [data-testid="hero-banner"] [data-testid="bookmark-btn"] {
            top: var(--bookmark-offset) !important;
            right: var(--bookmark-offset) !important;
            width: var(--banner-control-size) !important;
            height: var(--banner-control-size) !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            margin: 0 !important;
            padding: 0 !important;
        }

        #team-profile [data-testid="hero-banner"] [data-testid="bookmark-btn"] i {
            font-size: var(--bookmark-icon-mobile) !important;
        }

        /* Historical statistics table: mobile horizontal scroll + roomier fields */
        .stats-table-scroll {
            width: 100%;
            overflow-x: auto;
            overflow-y: hidden;
            -webkit-overflow-scrolling: touch;
            padding-bottom: 0.3rem;
        }

        .stats-table-scroll .stats-table {
            min-width: 860px;
        }

        .stats-table-scroll .stats-table .table-header,
        .stats-table-scroll .stats-table .table-row {
            gap: 1rem;
            padding: 0.6rem 0.95rem;
        }

        .stats-table-scroll .stats-table .table-header > div,
        .stats-table-scroll .stats-table .table-row > div {
            white-space: nowrap;
        }
    }

    @media (max-width: 560px) {
        .leaders-grid {
            grid-template-columns: 1fr;
        }
    }

    .home-sections[class*="team-"] .schedule-table .table-header,
    .home-sections[class*="team-"] .schedule-table .table-row {
        gap: clamp(0.4rem, 0.7vw, 0.72rem);
        padding: clamp(0.34rem, 0.62vw, 0.56rem) clamp(0.54rem, 1vw, 0.92rem);
        grid-template-columns: minmax(50px, 1fr) minmax(84px, 1.55fr) minmax(118px, 1.95fr) minmax(104px, 1.75fr) minmax(122px, 1.25fr) minmax(64px, 0.78fr);
    }

    @media (max-width: 820px) {
        .home-sections[class*="team-"] .schedule-table .table-header,
        .home-sections[class*="team-"] .schedule-table .table-row {
            grid-template-columns: minmax(40px, 0.85fr) minmax(66px, 1.3fr) minmax(96px, 1.9fr) minmax(86px, 1.6fr) minmax(102px, 1.15fr) minmax(52px, 0.72fr);
        }
    }

    .team-games-table-shell {
        position: relative;
    }

    .team-games-loading {
        position: absolute;
        inset: 0;
        display: none;
        z-index: 6;
        pointer-events: none;
        background: color-mix(in srgb, var(--bg-card) 88%, transparent);
        border-radius: 0.75rem;
        padding: 0.9rem 0.75rem;
    }

    .team-games-table-shell.is-loading .team-games-loading {
        display: block;
    }

    .team-games-loading-grid {
        display: grid;
        gap: 0.55rem;
    }

    .team-games-loading-row {
        display: grid;
        grid-template-columns: 52px 56px 120px 120px 52px 80px 140px 1fr;
        gap: 0.45rem;
        align-items: center;
    }

    .team-games-loading-pill {
        height: 0.72rem;
        border-radius: 999px;
        background: linear-gradient(
            90deg,
            color-mix(in srgb, var(--team-primary) 10%, #d9e4f4) 0%,
            color-mix(in srgb, #ffffff 75%, var(--team-primary) 12%) 45%,
            color-mix(in srgb, var(--team-primary) 10%, #d9e4f4) 100%
        );
        background-size: 220% 100%;
        animation: team-games-loading-shimmer 1.15s linear infinite;
    }

    .team-games-loading-pill.short {
        max-width: 72px;
    }

    .team-games-loading-pill.medium {
        max-width: 120px;
    }

    @keyframes team-games-loading-shimmer {
        0% {
            background-position: 200% 0;
        }
        100% {
            background-position: -20% 0;
        }
    }

    @media (max-width: 820px) {
        .team-games-loading-row {
            grid-template-columns: 42px 44px 86px 96px 46px 64px 96px 1fr;
        }
    }
