.team-hero {
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-color);
        padding: 3rem 1rem 0;
        margin-top: calc(var(--nav-height) * -1);
        padding-top: calc(var(--nav-height) + 3rem);
    }

    /* Breadcrumbs */
    .breadcrumb {
        display: flex;
        gap: 0.5rem;
        font-size: 0.9rem;
        color: var(--text-muted);
        margin-top: -1.5rem;
        margin-bottom: 2rem;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
    .breadcrumb a {
        color: var(--text-secondary);
        text-decoration: none;
        transition: all 0.2s;
        border-bottom: 1px solid transparent;
    }
    .breadcrumb a:hover {
        color: var(--accent);
        border-bottom-color: var(--accent);
    }
    .breadcrumb .separator {
        color: var(--border-color);
    }

    .team-hero-content {
        max-width: 1200px;
        margin: 0 auto;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .team-hero-logo {
        width: 100px;
        height: 100px;
        object-fit: contain;
        background: #fff;
        border-radius: 50%;
        padding: 0.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border: 2px solid var(--border-color);
    }

    .team-avatar-dynamic {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        background: linear-gradient(135deg, var(--bg-elevated), var(--border-color));
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 2.5rem;
        font-weight: 800;
        color: var(--text-secondary);
        flex-shrink: 0;
        border: 2px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .team-hero-info h1 {
        font-size: 2.5rem;
        font-weight: 800;
        margin: 0 0 0.5rem;
    }

    .desktop-name { display: inline; }
    .mobile-name { display: none; }

    .record-row {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        flex-wrap: wrap;
    }

    .team-record {
        color: var(--text-secondary);
        font-size: 1.1rem;
        font-weight: 600;
        margin: 0;
    }

    .momentum-badges {
        display: flex;
        gap: 0.4rem;
    }
    .momentum-badge {
        width: 24px;
        height: 24px;
        border-radius: 4px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        font-weight: 800;
        color: #fff;
    }
    .momentum-badge.w { background: #28a745; }
    .momentum-badge.l { background: #dc3545; }
    .momentum-badge.t { background: #6c757d; }

    /* Next Game Card */
    .next-game-card {
        background: var(--bg-elevated);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 1rem 1.5rem;
        min-width: 280px;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    .ng-label {
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--accent);
    }
    .ng-matchup {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-weight: 700;
    }
    .ng-vs { font-size: 0.8rem; color: var(--text-muted); }
    .ng-date { font-size: 0.85rem; color: var(--text-secondary); }
    .ng-link {
        font-size: 0.85rem;
        color: var(--accent);
        text-decoration: none;
        font-weight: 600;
        margin-top: 0.25rem;
    }
    .ng-link:hover { text-decoration: underline; }

    /* Team Switcher */
    .team-switcher-container {
        position: relative;
        display: inline-block;
    }
    .team-switcher-btn {
        background: none;
        border: none;
        color: var(--text-primary);
        cursor: pointer;
        padding: 0;
        font-family: inherit;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        text-align: left;
    }
    .team-switcher-btn .chevron {
        width: 24px;
        height: 24px;
        transition: transform 0.3s ease;
        color: var(--text-muted);
    }
    .team-switcher-btn:hover .chevron {
        color: var(--accent);
    }
    .team-switcher-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--bg-elevated);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
        min-width: 320px;
        max-height: 400px;
        display: flex;
        flex-direction: column;
        z-index: 50;
        opacity: 0;
        visibility: hidden;
        transform: translateY(10px);
        transition: all 0.2s ease;
    }
    .team-switcher-dropdown.show {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .team-switcher-search {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        position: sticky;
        top: 0;
        background: var(--bg-elevated);
        border-radius: 12px 12px 0 0;
    }
    .team-switcher-search input {
        width: 100%;
        padding: 0.5rem 1rem;
        border-radius: 6px;
        border: 1px solid var(--border-color);
        background: var(--bg-card);
        color: var(--text-primary);
        font-size: 0.9rem;
    }
    .team-switcher-search input:focus {
        outline: none;
        border-color: var(--accent);
    }
    .team-switcher-list {
        overflow-y: auto;
        padding: 0.5rem 0;
        scrollbar-width: thin;
    }
    .team-switcher-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.5rem 1.5rem;
        color: var(--text-primary);
        text-decoration: none;
        font-weight: 600;
        font-size: 0.9rem;
        transition: background-color 0.2s;
    }
    .team-switcher-item:hover {
        background: rgba(220, 53, 69, 0.05);
        color: var(--accent);
    }
    .team-switcher-item img {
        width: 24px;
        height: 24px;
        object-fit: contain;
    }
    .team-switcher-no-results {
        padding: 1rem;
        text-align: center;
        color: var(--text-muted);
        font-size: 0.9rem;
        display: none;
    }

    /* Sticky Nav */
    .team-nav-wrapper {
        position: sticky;
        top: var(--nav-height);
        background: var(--bg-card);
        z-index: 10;
        border-bottom: 1px solid var(--border-color);
    }
    .team-nav {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
    }
    .team-tabs {
        display: flex;
        gap: 2rem;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .team-tabs::-webkit-scrollbar { display: none; }
    
    .team-nav-link {
        padding: 1rem 0;
        font-weight: 600;
        color: var(--text-secondary);
        text-decoration: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
        transition: var(--transition);
    }
    .team-nav-link:hover { color: var(--text-primary); }
    .team-nav-link.active { color: var(--accent); border-bottom-color: var(--accent); }

    .btn-view-odds {
        background: var(--accent);
        color: #fff;
        padding: 0.5rem 1.25rem;
        border-radius: 6px;
        font-weight: 700;
        font-size: 0.85rem;
        text-decoration: none;
        transition: var(--transition);
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
    }
    .btn-view-odds:hover {
        background: #b02a37;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
    }

    .team-content-container {
        max-width: 1200px;
        margin: 3rem auto;
        padding: 0;
        min-height: 50vh;
    }

    /* Target the injected HTML styling */
    .stat-container {
        animation: fadeIn 0.5s ease-out;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 2rem;
        overflow-x: auto;
    }
    .stat-container table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
    .table-preds {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        display: block;
    }
    .table-preds table {
        min-width: 850px;
        width: 100% !important;
    }
    .stat-container th { background: var(--bg-elevated); padding: 1rem; text-align: left; font-weight: 700; color: var(--text-muted); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; border-bottom: 2px solid var(--border-color); }
    .stat-container td { padding: 1rem; border-bottom: 1px solid var(--border-color); color: var(--text-primary); font-weight: 500; }
    .stat-container tr:last-child td { border-bottom: none; }
    .stat-container tr:hover td { background: rgba(220, 53, 69, 0.02); }
    
    /* Formatting results table columns with glassmorphism */
    .result-badge {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border-radius: 8px;
        font-weight: 800;
        font-size: 0.85rem;
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }
    .result-w {
        background: rgba(40, 167, 69, 0.15) !important;
        color: #28a745 !important;
        border: 1px solid rgba(40, 167, 69, 0.3) !important;
        box-shadow: 0 4px 10px rgba(40, 167, 69, 0.05);
    }
    .result-l {
        background: rgba(220, 53, 69, 0.15) !important;
        color: #dc3545 !important;
        border: 1px solid rgba(220, 53, 69, 0.3) !important;
        box-shadow: 0 4px 10px rgba(220, 53, 69, 0.05);
    }
    .result-t {
        background: rgba(108, 117, 125, 0.15) !important;
        color: #6c757d !important;
        border: 1px solid rgba(108, 117, 125, 0.3) !important;
        box-shadow: 0 4px 10px rgba(108, 117, 125, 0.05);
    }

    .stat-container a { color: var(--accent); text-decoration: none; }
    .stat-container a:hover { text-decoration: underline; }

    /* Custom styling for injected team profile pages (Pitching & Leaders) */
    .team-container {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 16px;
        padding: 1.75rem !important;
        margin-bottom: 1.5rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    }
    
    .team-container h6.fw-bold {
        font-size: 1.25rem;
        font-weight: 800 !important;
        color: var(--text-primary);
        border-bottom: 2px solid var(--border-color);
        padding-bottom: 0.75rem;
        margin-top: 0;
        margin-bottom: 1.5rem;
        letter-spacing: 0.5px;
    }
    
    .atswins-text-muted {
        color: var(--text-muted) !important;
    }
    
    /* Pitching specific formatting */
    .team-container div[class*="flex-column"] > .p-2 {
        background: var(--bg-elevated);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 1rem 1.25rem !important;
        margin: 0.4rem;
        transition: var(--transition);
    }
    .team-container div[class*="flex-column"] > .p-2:hover {
        transform: translateY(-2px);
        border-color: var(--accent);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.04);
    }
    
    .team-container div[class*="flex-column"] > .p-2 h4 {
        font-size: 1.75rem;
        font-weight: 800 !important;
        color: var(--text-primary);
        margin: 0 !important;
        display: flex;
        align-items: baseline;
    }
    
    .team-container div[class*="flex-column"] > .p-2 .atswins-text-muted {
        font-size: 0.85rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* Leaders cards formatting */
    .team-leader {
        background: var(--bg-elevated);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 1.25rem !important;
        margin-bottom: 1.25rem;
        transition: var(--transition);
    }
    .team-leader:hover {
        transform: translateY(-3px);
        border-color: var(--accent);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    }
    
    .team-leader h6.fw-bold {
        font-size: 0.95rem;
        color: var(--accent);
        text-transform: uppercase;
        letter-spacing: 1.2px;
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0.75rem;
        font-weight: 700 !important;
    }
    
    .team-leader img {
        border-radius: 50%;
        border: 2px solid var(--border-color);
        object-fit: cover;
        background: var(--bg-card);
        padding: 2px;
        transition: var(--transition);
    }
    .team-leader:hover img {
        border-color: var(--accent);
        transform: scale(1.05);
    }
    
    .team-leader .flex-fill h6 {
        font-size: 1.1rem;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 0.5rem;
    }
    
    .team-leader .flex-fill h6 small {
        font-weight: 500;
    }
    
    .team-leader h1.fw-bold {
        font-size: 2.25rem !important;
        font-weight: 850 !important;
        color: var(--text-primary);
        margin: 0 !important;
        line-height: 1.1;
    }
    
    /* Supporting metrics styling (OBP, SLG, AVG, etc.) */
    .team-leader div[class*="justify-content-end"] > div {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 8px;
        padding: 0.35rem 0.65rem !important;
        font-size: 0.85rem;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        margin-left: 0.5rem;
    }
    
    .team-leader div[class*="justify-content-end"] .fw-bold {
        color: var(--accent);
        margin-right: 0.25rem;
    }

    /* Donut chart layout */
    .pred-pct-container, .sim-pct-container {
        margin: 1.5rem 0 2.5rem;
    }
    
    .pred-pct-container .chart-container, .sim-pct-container .chart-container {
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
        flex-wrap: wrap;
        gap: 1.5rem;
        padding: 1.5rem;
        background: var(--bg-elevated);
        border: 1px solid var(--border-color);
        border-radius: 16px;
    }
    
    .pred-pct-container .chart-container > div, .sim-pct-container .chart-container > div {
        flex: 1;
        min-width: 180px;
        max-width: 250px;
        display: flex;
        flex-direction: column;
        align-items: center;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        padding: 1.25rem 0.75rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
        transition: var(--transition);
    }
    
    .pred-pct-container .chart-container > div:hover, .sim-pct-container .chart-container > div:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.04);
        border-color: var(--accent);
    }
    
    .pred-pct-container .chart-container h4, .sim-pct-container .chart-container h4 {
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-primary);
        margin-bottom: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .stat-container h4.text-center.my-3.fw-bold.border.rounded.p-2 {
        background: var(--bg-elevated);
        border-color: var(--border-color) !important;
        color: var(--text-primary);
        font-size: 1.2rem;
        padding: 0.75rem !important;
        margin-top: 2rem !important;
        margin-bottom: 1.5rem !important;
        border-radius: 12px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

    @media (max-width: 992px) {
        .team-hero-content { grid-template-columns: auto 1fr; }
        .next-game-card { display: none; }
    }
    @media (max-width: 768px) {
        .team-hero-content { 
            grid-template-columns: auto 1fr; 
            gap: 1rem;
            text-align: left;
        }
        .team-hero-logo, .team-avatar-dynamic {
            width: 60px;
            height: 60px;
            font-size: 1.5rem;
        }
        .team-hero-info h1 {
            font-size: 1.5rem;
        }
        .team-hero-info h1 span {
            font-size: 1.1rem !important;
        }
        .desktop-name { display: none; }
        .mobile-name { display: inline; }
        
        .record-row { justify-content: flex-start; gap: 0.75rem; }
        .team-record { font-size: 0.9rem; }
        .momentum-badge { width: 18px; height: 18px; font-size: 0.6rem; }

        .team-nav { padding: 0 1rem; }
        .btn-view-odds { display: none; }
        .team-content-container { padding-left: 1rem; padding-right: 1rem; }
    }
