.nrfi-team-splits-app,
.nrfi-team-splits-app * {
    box-sizing: border-box;
}

.nrfi-team-splits-app {
    --nrfi-bg: #06101c;
    --nrfi-panel: #101a2b;
    --nrfi-panel-2: #0d1829;
    --nrfi-border: #203754;
    --nrfi-border-soft: rgba(124, 169, 217, 0.22);
    --nrfi-text: #eef6ff;
    --nrfi-muted: #a9c4e6;
    --nrfi-green: #20f08a;
    --nrfi-red: #ff4d79;
    --nrfi-yellow: #ffd84d;
    --nrfi-blue: #75d9ff;
    --nrfi-orange: #ffb84c;
    --nrfi-pink: #ff8f9b;
    --nrfi-shadow: 0 18px 40px rgba(0, 0, 0, .28);
    width: 100%;
    color: var(--nrfi-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.nrfi-splits-shell {
    background:
        radial-gradient(circle at top left, rgba(0, 148, 255, .13), transparent 32%),
        radial-gradient(circle at top right, rgba(0, 255, 137, .08), transparent 28%),
        var(--nrfi-bg);
    border: 1px solid var(--nrfi-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--nrfi-shadow);
}

.nrfi-splits-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(4, 12, 22, .82);
    border-bottom: 1px solid var(--nrfi-border-soft);
}

.nrfi-splits-nc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(0, 195, 99, .95), rgba(4, 56, 98, .95));
    color: #dfffea;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .5px;
    border: 1px solid rgba(56, 255, 151, .45);
}

.nrfi-splits-brand {
    font-weight: 900;
    letter-spacing: .3px;
    color: #fff;
}

.nrfi-splits-status {
    margin-left: auto;
    color: var(--nrfi-muted);
    font-size: 11px;
}

.nrfi-splits-titlebar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 14px;
    background: linear-gradient(90deg, #ffbd18, #ffd23d 45%, #ffbd18);
    color: #07111d;
    font-weight: 950;
    letter-spacing: .3px;
    font-size: clamp(16px, 1.7vw, 23px);
    border-bottom: 2px solid rgba(0, 0, 0, .52);
    text-align: center;
}

.nrfi-splits-table-wrap {
    width: 100%;
    overflow-x: auto;
    background: var(--nrfi-panel-2);
    padding: 0;
}

.nrfi-splits-table {
    width: 100%;
    min-width: 1280px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    color: var(--nrfi-text);
    font-size: 11px;
}

.nrfi-splits-table th,
.nrfi-splits-table td {
    padding: 6px 6px;
    border-right: 1px solid rgba(159, 197, 241, .22);
    border-bottom: 1px solid rgba(159, 197, 241, .18);
    white-space: nowrap;
    text-align: center;
}

.nrfi-splits-table th:first-child,
.nrfi-splits-table td:first-child {
    border-left: 0;
}

.nrfi-splits-table thead tr:first-child th {
    position: sticky;
    top: 0;
    z-index: 3;
    color: #07111d;
    font-weight: 950;
    letter-spacing: .25px;
    text-transform: uppercase;
    font-size: 11px;
}

.nrfi-splits-table thead tr:nth-child(2) th {
    position: sticky;
    top: 32px;
    z-index: 4;
    color: #07111d;
    background: #78dfff;
    font-weight: 900;
    font-size: 11px;
    text-transform: none;
}

.nrfi-splits-table .group-team {
    background: #ffbf13;
}

.nrfi-splits-table .group-batting {
    background: #73dbff;
}

.nrfi-splits-table .group-game {
    background: #ff9aa0;
}

.nrfi-splits-table .team-head {
    background: #ffbf13 !important;
    width: 118px;
    min-width: 118px;
    max-width: 118px;
}

.nrfi-splits-table tbody tr:nth-child(odd) td {
    background: rgba(17, 29, 48, .92);
}

.nrfi-splits-table tbody tr:nth-child(even) td {
    background: rgba(12, 23, 40, .92);
}

.nrfi-splits-table tbody tr:hover td {
    background: rgba(28, 52, 82, .98);
}

.nrfi-team-cell {
    width: 118px;
    min-width: 118px;
    max-width: 118px;
    text-align: left !important;
    font-weight: 900;
    color: #f7fbff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nrfi-team-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex: 0 0 20px;
    background: radial-gradient(circle at 35% 25%, #ffffff, #d9e8f9 52%, #9cb4cb 100%);
    border-radius: 50%;
    padding: 2px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.38), 0 0 12px rgba(255,255,255,.22);
}

.nrfi-team-name {
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 86px;
}

.nrfi-streak {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 950;
    border: 1px solid rgba(255,255,255,.16);
}

.nrfi-streak-nrfi {
    color: #07111d;
    background: linear-gradient(180deg, rgba(111, 255, 176, 1), rgba(39, 217, 125, 1));
}

.nrfi-streak-yrfi {
    color: #07111d;
    background: linear-gradient(180deg, rgba(255, 141, 159, 1), rgba(255, 78, 117, 1));
}

.nrfi-pct {
    font-weight: 950;
}

.nrfi-pct-elite { color: var(--nrfi-green); }
.nrfi-pct-good { color: #8effbc; }
.nrfi-pct-mid { color: var(--nrfi-yellow); }
.nrfi-pct-low { color: var(--nrfi-red); }
.nrfi-pct-na { color: var(--nrfi-muted); }

.nrfi-record {
    font-weight: 850;
    color: #f4f8ff;
}

.nrfi-splits-loading,
.nrfi-splits-error,
.nrfi-splits-empty {
    padding: 28px;
    color: var(--nrfi-muted);
    font-weight: 800;
}

.nrfi-splits-error {
    color: var(--nrfi-red);
}

.nrfi-splits-footer-note {
    padding: 10px 14px;
    color: var(--nrfi-muted);
    font-size: 11px;
    border-top: 1px solid var(--nrfi-border-soft);
}

@media (max-width: 760px) {
    .nrfi-splits-topbar {
        padding: 10px 12px;
    }
    .nrfi-splits-titlebar {
        font-size: 15px;
        padding: 10px 8px;
    }
    .nrfi-splits-table {
        min-width: 1180px;
        font-size: 11px;
    }
    .nrfi-splits-table th,
    .nrfi-splits-table td {
        padding: 6px 6px;
    }
}
