/* ==================================================
   JETBET — SHARED PLAYER PROFILE V14
================================================== */

.player-profile-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(3,5,9,.90);
    backdrop-filter: blur(8px);
}

.player-profile-overlay.hidden { display: none; }

.player-profile-panel {
    width: min(1340px,100%);
    max-height: calc(100vh - 28px);
    overflow-x: hidden;
    overflow-y: auto;
    border: 1px solid #283141;
    border-radius: 18px;
    background: #090d14;
    box-shadow: 0 30px 100px rgba(0,0,0,.60);
}

.player-profile-hero {
    min-height: 300px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(
            108deg,
            color-mix(in srgb,var(--profile-primary) 86%,#0f141d) 0%,
            color-mix(in srgb,var(--profile-primary) 48%,#0f141d) 52%,
            #0a0f16 100%
        );
}

.player-profile-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(5,8,13,.02),
            rgba(5,8,13,.08) 55%,
            rgba(5,8,13,.34)
        );
    pointer-events: none;
}

.player-profile-hero-layout {
    min-height: 300px;
    padding: 38px 44px;
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns:
        minmax(350px,1.2fr)
        minmax(300px,.8fr)
        270px;
    align-items: center;
    gap: 30px;
}

.player-profile-teamline {
    margin-bottom: 9px;
    color: rgba(255,255,255,.80);
    font-size: 12px;
    font-weight: 800;
}

.player-profile-name {
    margin: 0;
    color: #fff;
    font-size: clamp(42px,5vw,60px);
    font-weight: 950;
    line-height: .98;
    letter-spacing: -.045em;
}

.player-profile-bio-line {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px 0;
    color: rgba(255,255,255,.74);
    font-size: 11px;
    font-weight: 650;
}

.player-profile-bio-line span {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.player-profile-bio-line span:not(:last-child)::after {
    content: "·";
    margin: 0 11px;
    color: rgba(255,255,255,.34);
}

.profile-hero-career {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 11px;
    background: rgba(255,255,255,.13);
    backdrop-filter: blur(6px);
}

.profile-hero-stat {
    min-height: 82px;
    padding: 15px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(8,12,18,.60);
}

.profile-hero-stat strong {
    color: #fff;
    font-size: 23px;
    font-weight: 900;
    line-height: 1;
}

.profile-hero-stat span {
    margin-top: 7px;
    color: rgba(255,255,255,.58);
    font-size: 10px;
    font-weight: 700;
}

.profile-hero-stat strong.summary-positive { color: #42d7a0; }
.profile-hero-stat strong.summary-negative { color: #ff6f80; }

.profile-hero-visual-space { width: 270px; }

.player-profile-team-logo {
    position: absolute;
    right: 155px;
    top: 50%;
    width: 225px;
    height: 225px;
    transform: translateY(-50%);
    object-fit: contain;
    opacity: .095;
    z-index: 0;
    pointer-events: none;
}

.player-profile-headshot {
    position: absolute;
    right: 22px;
    bottom: 0;
    width: 260px;
    height: 270px;
    object-fit: contain;
    object-position: bottom;
    z-index: 2;
    pointer-events: none;
    filter: drop-shadow(-18px 8px 24px rgba(0,0,0,.30));
}

.player-profile-close {
    position: absolute;
    top: 19px;
    right: 19px;
    z-index: 10;
    width: 40px;
    height: 40px;
    padding: 0;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px;
    background: rgba(5,7,11,.58);
    color: #fff;
    font-size: 21px;
    cursor: pointer;
}

.player-profile-close:hover {
    background: rgba(5,7,11,.82);
}

.player-profile-body {
    padding: 16px 30px 26px;
}

.profile-matrix-actions {
    min-height: 32px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.profile-advanced-toggle {
    height: 29px;
    padding: 0 11px;
    border: 1px solid #2c3545;
    border-radius: 7px;
    background: #101620;
    color: #91a0b8;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
}

.profile-advanced-toggle:hover {
    border-color: #47536b;
    color: #fff;
}

.profile-advanced-toggle.is-active {
    border-color: #7653f4;
    background: rgba(124,88,255,.10);
    color: #fff;
}

.profile-matrix-shell {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 5px;
    scrollbar-width: thin;
    scrollbar-color: #39455a transparent;
}

.profile-matrix-shell::-webkit-scrollbar { height: 7px; }
.profile-matrix-shell::-webkit-scrollbar-track { background: transparent; }
.profile-matrix-shell::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #39455a;
}

#profile-stat-matrix {
    width: max-content;
    min-width: 0;
}

.profile-matrix-header,
.profile-matrix-row {
    display: grid;
    grid-template-columns:
        112px
        repeat(
            var(--season-count),
            var(--season-column-width)
        );
    width: max-content;
}

.profile-matrix-header {
    height: 43px;
    border-bottom: 1px solid #293242;
}

.profile-matrix-corner {
    position: sticky;
    left: 0;
    z-index: 5;
    background: #090d14;
}

.profile-season-header {
    min-width: 0;
    padding: 2px 2px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    border-left: 1px solid #151c27;
}

.profile-season-header img {
    width: 17px;
    height: 17px;
    object-fit: contain;
}

.profile-season-header span {
    color: #a6b1c4;
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

button.profile-season-header {
    width: auto;
    border-top: 0;
    border-right: 0;
    border-bottom: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.profile-season-header.is-multi-team:hover,
.profile-season-header.is-multi-team.is-expanded {
    background: rgba(128,92,255,.08);
}

.profile-season-header small {
    color: #6f7d93;
    font-size: 6px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.profile-season-header.is-expanded small {
    color: #a992ff;
}

.profile-season-splits-panel {
    width: 100%;
    min-width: 100%;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #252f40;
    border-radius: 9px;
    background: #0b1018;
}

.profile-season-splits-heading {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 8px;
}

.profile-season-splits-heading strong {
    color: #fff;
    font-size: 10px;
}

.profile-season-splits-heading span {
    color: #74839a;
    font-size: 8px;
    font-weight: 700;
}

.profile-season-splits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 7px;
}

.profile-season-split-card {
    min-width: 0;
    padding: 8px;
    border: 1px solid #1e2735;
    border-radius: 7px;
    background: #0d131d;
}

.profile-season-split-card.is-total {
    border-color: rgba(128,92,255,.36);
    background: rgba(128,92,255,.06);
}

.profile-season-split-team {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 7px;
}

.profile-season-split-team img {
    width: 19px;
    height: 19px;
    object-fit: contain;
}

.profile-season-split-team strong {
    color: #dce4f1;
    font-size: 9px;
}

.profile-season-split-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.profile-season-split-stats div {
    min-width: 0;
}

.profile-season-split-stats span {
    display: block;
    color: #66758d;
    font-size: 6px;
    font-weight: 800;
    white-space: nowrap;
}

.profile-season-split-stats strong {
    display: block;
    margin-top: 2px;
    color: #e8edf6;
    font-size: 9px;
}

.profile-matrix-row {
    min-height: 27px;
    border-bottom: 1px solid #151c27;
}

.profile-stat-name {
    min-height: 27px;
    position: sticky;
    left: 0;
    z-index: 4;
    padding: 0 9px;
    border: 0;
    border-right: 1px solid #212a38;
    background: #090d14;
    color: #8190a8;
    font: inherit;
    font-size: 9px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
}

.profile-stat-name:hover {
    color: #fff;
    background: #0d131c;
}

.profile-stat-name.is-active {
    color: #fff;
    background: #101621;
}

.profile-stat-name.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 2px;
    border-radius: 0 3px 3px 0;
    background: #805cff;
}

.profile-stat-cell {
    min-height: 27px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #151c27;
    background: rgba(42,190,136,var(--heat-alpha,0));
}

.profile-stat-value {
    position: relative;
    z-index: 3;
    color: #d9e0eb;
    font-size: 10px;
    font-weight: 650;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.profile-matrix-row.is-active {
    min-height: 62px;
    background: #0c121b;
}

.profile-matrix-row.is-active .profile-stat-name {
    min-height: 62px;
}

.profile-stat-cell-active {
    min-height: 62px;
    overflow: hidden;
    align-items: flex-start;
    padding-top: 8px;
    background: #0c121b;
}

.profile-stat-cell-active::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 7px;
    height: 1px;
    background: #253042;
}

.profile-active-bar {
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: min(23px,44%);
    transform: translateX(-50%);
    border-radius: 5px 5px 1px 1px;
    background:
        linear-gradient(
            to top,
            color-mix(in srgb,var(--bar-color) 82%,#0f141d),
            color-mix(in srgb,var(--bar-color) 58%,#fff)
        );
    opacity: .96;
    z-index: 1;
}

.profile-stat-cell-active .profile-stat-value {
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.rank-top-five {
    font-style: italic;
}

.rank-top-three {
    font-weight: 950;
}

.rank-leader {
    font-weight: 950;
    font-style: italic;
}

.player-card,
.table-shell tbody tr {
    cursor: pointer;
}

.player-profile-loading {
    min-height: 420px;
    display: grid;
    place-items: center;
    color: #76829a;
    font-size: 12px;
}

.player-profile-error {
    min-height: 260px;
    padding: 50px;
    display: grid;
    place-items: center;
    color: #ff7886;
    text-align: center;
}

.profile-empty-state {
    min-height: 160px;
    display: grid;
    place-items: center;
    color: #76829a;
    font-size: 12px;
}

@media (max-width:1080px) {
    .player-profile-hero-layout {
        grid-template-columns:
            minmax(330px,1fr)
            minmax(250px,.8fr)
            210px;
        gap: 20px;
    }

    .profile-hero-visual-space {
        width: 210px;
    }

    .player-profile-headshot {
        width: 220px;
        height: 230px;
    }

    .player-profile-team-logo {
        right: 120px;
        width: 185px;
        height: 185px;
    }
}

@media (max-width:800px) {
    .player-profile-overlay {
        padding: 6px;
    }

    .player-profile-panel {
        max-height: calc(100vh - 12px);
    }

    .player-profile-hero {
        min-height: 445px;
    }

    .player-profile-hero-layout {
        min-height: 445px;
        padding: 24px 20px;
        grid-template-columns: 1fr;
        align-content: start;
        gap: 18px;
    }

    .profile-hero-visual-space {
        display: none;
    }

    .player-profile-identity {
        max-width: calc(100% - 100px);
    }

    .profile-hero-career {
        width: min(410px,100%);
    }

    .player-profile-headshot {
        right: 0;
        width: 185px;
        height: 195px;
    }

    .player-profile-team-logo {
        right: 96px;
        top: auto;
        bottom: 18px;
        width: 140px;
        height: 140px;
        transform: none;
    }

    .player-profile-body {
        padding: 14px 10px 22px;
    }

    .profile-matrix-header,
    .profile-matrix-row {
        grid-template-columns:
            100px
            repeat(
                var(--season-count),
                var(--season-column-width)
            );
    }
}


/* ==================================================
   PROFILE REG / POST
================================================== */

.profile-matrix-actions {
    justify-content: space-between;
    gap: 12px;
}

.profile-season-type-toggle {
    display: inline-flex;
    align-items: center;

    padding: 2px;

    border: 1px solid #2c3545;
    border-radius: 8px;

    background: #0d121b;
}

.profile-season-type-button {
    height: 27px;
    min-width: 48px;

    padding: 0 11px;

    border: 0;
    border-radius: 6px;

    background: transparent;
    color: #7787a2;

    font: inherit;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .06em;

    cursor: pointer;
}

.profile-season-type-button:hover {
    color: #fff;
}

.profile-season-type-button.is-active {
    background: rgba(124,88,255,.14);

    box-shadow:
        inset 0 0 0 1px #7653f4;

    color: #fff;
}

/* ==================================================
   JETBET SHARED PLAYER PROFILE V20 - UNIVERSAL CLAUDE MATCH
================================================== */
.player-profile-overlay {
    padding: 10px;
    align-items: flex-start;
    overflow: auto;
}
.player-profile-panel {
    width: min(1520px, calc(100vw - 20px));
    max-height: calc(100vh - 20px);
    margin: 0 auto;
    border-radius: 18px;
}
.player-profile-hero {
    min-height: 192px;
    background: linear-gradient(106deg,
        color-mix(in srgb, var(--profile-primary) 84%, #101722) 0%,
        color-mix(in srgb, var(--profile-primary) 30%, #0c1118) 56%,
        #090d14 100%);
}
.player-profile-hero::after {
    background: linear-gradient(90deg, rgba(5,8,13,.02), rgba(5,8,13,.10) 58%, rgba(5,8,13,.34));
}
.player-profile-hero-layout {
    min-height: 192px;
    padding: 16px 18px 14px 18px;
    grid-template-columns: 156px minmax(0,1fr) 292px;
    gap: 18px;
    align-items: center;
}
.player-profile-avatar-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.player-profile-avatar-medallion {
    width: 136px;
    height: 136px;
    border-radius: 50%;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,.12));
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 10px 28px rgba(0,0,0,.28);
}
.player-profile-avatar-medallion::before {
    content: "";
    position: absolute;
    width: 128px;
    height: 128px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(8,12,18,.95);
    pointer-events: none;
}
.player-profile-avatar,
.player-profile-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.player-profile-avatar {
    object-fit: cover;
    object-position: center top;
    background: rgba(8,12,18,.88);
}
.player-profile-avatar-fallback {
    display: grid;
    place-items: center;
    background: rgba(8,12,18,.92);
    color: rgba(255,255,255,.78);
    font-size: 34px;
    font-weight: 900;
}
.player-profile-identity {
    position: relative;
    z-index: 2;
    min-width: 0;
}
.player-profile-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.player-profile-inline-team-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex: 0 0 auto;
}
.player-profile-teamline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 8px;
    color: rgba(255,255,255,.88);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .03em;
}
.player-profile-meta-dot {
    color: rgba(255,255,255,.48);
}
.player-profile-name {
    margin: 0;
    color: #fff;
    font-size: clamp(34px, 4vw, 56px);
    font-weight: 950;
    line-height: .97;
    letter-spacing: -.045em;
}
.player-profile-bio-line {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 0;
    color: rgba(255,255,255,.78);
    font-size: 12px;
    font-weight: 700;
}
.player-profile-bio-line span {
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.player-profile-bio-line span:not(:last-child)::after {
    content: "\00B7";
    margin: 0 10px;
    color: rgba(255,255,255,.32);
}
.player-profile-draft-line {
    margin-top: 4px;
    color: rgba(255,255,255,.85);
    font-size: 12px;
    font-weight: 800;
}
.player-profile-jb-logo {
    width: 52px;
    height: 30px;
    display: block;
    object-fit: contain;
    object-position: right center;
    margin-left: auto;
    margin-bottom: 10px;
}
.player-profile-hero-side {
    position: relative;
    z-index: 2;
    min-width: 0;
}
.player-profile-team-logo {
    position: absolute;
    left: 245px;
    top: 50%;
    width: 360px;
    height: 220px;
    transform: translateY(-50%);
    opacity: .14;
    z-index: 0;
    object-fit: contain;
    pointer-events: none;
    filter: saturate(.9);
}
.profile-hero-career {
    width: 100%;
    max-width: 292px;
    margin-left: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 14px;
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(6px);
}
.profile-hero-stat {
    min-height: 72px;
    padding: 14px 16px 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(6,10,16,.72);
}
.profile-hero-stat.is-featured {
    background: color-mix(in srgb, var(--profile-primary) 70%, #151c28);
}
.profile-hero-stat strong {
    color: #fff;
    font-size: 19px;
    font-weight: 950;
    line-height: 1;
}
.profile-hero-stat span {
    margin-top: 6px;
    color: rgba(255,255,255,.72);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.profile-hero-stat strong.summary-positive { color: #53e0af; }
.profile-hero-stat strong.summary-negative { color: #ff7e8b; }
.player-profile-headshot,
.profile-hero-visual-space,
.profile-data-layout,
.profile-matrix-column,
.profile-player-rail,
.profile-player-rail-logo,
.profile-player-rail-headshot-shell,
.profile-player-rail-headshot,
.profile-player-rail-fallback,
.profile-player-rail-meta,
.profile-player-rail-dot,
.profile-player-rail-number {
    display: none !important;
}
.player-profile-body {
    padding: 12px 20px 18px;
}
.profile-matrix-actions {
    min-height: 34px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.profile-season-type-toggle {
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border: 1px solid #2c3545;
    border-radius: 10px;
    background: #0d121b;
}
.profile-season-type-button {
    height: 32px;
    min-width: 58px;
    padding: 0 14px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #8594ad;
    font: inherit;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    cursor: pointer;
}
.profile-season-type-button:hover { color: #fff; }
.profile-season-type-button.is-active {
    background: rgba(124,88,255,.16);
    box-shadow: inset 0 0 0 1px #7653f4;
    color: #fff;
}
.profile-advanced-toggle {
    height: 32px;
    padding: 0 15px;
    border: 1px solid #39455a;
    border-radius: 10px;
    background: #101620;
    color: #a4b1c6;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}
.profile-advanced-toggle:hover { border-color: #57657f; color: #fff; }
.profile-advanced-toggle.is-active {
    border-color: #7653f4;
    background: rgba(124,88,255,.12);
    color: #fff;
}
.profile-matrix-shell {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #232c3b;
    border-radius: 15px;
    background: #0b1018;
    scrollbar-width: thin;
    scrollbar-color: #3d4960 transparent;
}
.profile-matrix-shell::-webkit-scrollbar { height: 8px; }
.profile-matrix-shell::-webkit-scrollbar-track { background: transparent; }
.profile-matrix-shell::-webkit-scrollbar-thumb { background: #3d4960; border-radius: 999px; }
#profile-stat-matrix {
    min-width: 100%;
}
.profile-matrix-header,
.profile-matrix-row {
    display: grid;
    grid-template-columns: 118px repeat(var(--season-count), minmax(var(--season-column-width), 1fr)) 110px;
    min-width: 100%;
    width: max-content;
}
.profile-matrix-header {
    height: 64px;
    background: #0d131c;
    border-bottom: 1px solid #263041;
}
.profile-matrix-corner {
    position: sticky;
    left: 0;
    z-index: 6;
    display: flex;
    align-items: center;
    padding: 0 18px;
    background: #0d131c;
}
.profile-matrix-corner span,
.profile-career-header {
    color: #7f8ea8;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
}
.profile-season-header {
    min-width: 0;
    padding: 8px 6px 9px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-left: 1px solid #18212d;
    background: #0d131c;
}
.profile-season-header img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}
.profile-season-header .profile-season-year,
.profile-season-header span {
    color: #ecf1f8;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.05;
    white-space: nowrap;
}
.profile-season-header small {
    color: #71819c;
    font-size: 10px;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}
button.profile-season-header {
    border: 0;
    font: inherit;
    cursor: pointer;
}
.profile-season-header.is-multi-team:hover,
.profile-season-header.is-multi-team.is-expanded {
    background: rgba(128,92,255,.08);
}
.profile-season-header.is-expanded small { color: #a992ff; }
.profile-career-header {
    position: sticky;
    right: 0;
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #263041;
    background: #111824;
}
.profile-matrix-row {
    min-height: 40px;
    border-bottom: 1px solid #18212d;
    background: #0b1018;
}
.profile-stat-name {
    min-height: 40px;
    position: sticky;
    left: 0;
    z-index: 5;
    padding: 0 18px;
    border: 0;
    border-right: 1px solid #1f2835;
    background: #0b1018;
    color: #8e9bb2;
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    text-align: left;
    cursor: pointer;
    white-space: nowrap;
}
.profile-stat-name:hover { color: #fff; background: #101722; }
.profile-stat-name.is-active { color: #fff; background: #111824; }
.profile-stat-name.is-active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #805cff;
}
.profile-stat-cell {
    min-height: 40px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #18212d;
    background: #0b1018 !important;
}
.profile-stat-value {
    position: relative;
    z-index: 3;
    color: #eef2f8;
    font-size: 11px;
    font-weight: 750;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.profile-stat-value.is-career-high {
    color: #3fe1af;
    font-weight: 950;
}
.profile-matrix-row.is-active {
    min-height: 72px;
    background: #111824;
}
.profile-matrix-row.is-active .profile-stat-name {
    min-height: 72px;
    background: #111824;
}
.profile-stat-cell-active {
    min-height: 72px;
    overflow: hidden;
    align-items: flex-start;
    padding-top: 10px;
    background: #111824 !important;
}
.profile-stat-cell-active::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 1px;
    background: #2a3547;
}
.profile-active-bar {
    position: absolute;
    left: 50%;
    bottom: 11px;
    width: min(36px, 50%);
    transform: translateX(-50%);
    border-radius: 6px 6px 1px 1px;
    background: linear-gradient(to top,
        color-mix(in srgb, var(--bar-color) 84%, #0d141f),
        color-mix(in srgb, var(--bar-color) 55%, #ffffff));
    opacity: .98;
    z-index: 1;
}
.profile-stat-cell-active .profile-stat-value {
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}
.profile-career-cell {
    min-height: 40px;
    position: sticky;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #263041;
    background: #131c29;
}
.profile-career-cell.is-active {
    min-height: 72px;
    background: #182131;
}
.profile-career-value {
    color: #fff;
    font-size: 11px;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.rank-top-five { font-style: italic; }
.rank-top-three { font-weight: 950; }
.rank-leader { font-style: italic; font-weight: 950; }
.profile-season-splits-panel {
    width: 100%;
    min-width: 100%;
    margin-top: 10px;
    padding: 12px;
    border-top: 1px solid #252f40;
    background: #0b1018;
}
.profile-season-splits-heading {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}
.profile-season-splits-heading strong { color: #fff; font-size: 12px; }
.profile-season-splits-heading span { color: #74839a; font-size: 10px; font-weight: 700; }
.profile-season-splits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}
.profile-season-split-card {
    min-width: 0;
    padding: 10px;
    border: 1px solid #1e2735;
    border-radius: 9px;
    background: #0d131d;
}
.profile-season-split-card.is-total {
    border-color: rgba(128,92,255,.36);
    background: rgba(128,92,255,.06);
}
.profile-season-split-team {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.profile-season-split-team img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.profile-season-split-team strong { color: #dce4f1; font-size: 10px; }
.profile-season-split-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}
.profile-season-split-stats span {
    display: block;
    color: #66758d;
    font-size: 8px;
    font-weight: 800;
    white-space: nowrap;
}
.profile-season-split-stats strong {
    display: block;
    margin-top: 3px;
    color: #e8edf6;
    font-size: 10px;
}
.player-card,
.table-shell tbody tr { cursor: pointer; }
.player-profile-loading {
    min-height: 320px;
    display: grid;
    place-items: center;
    color: #76829a;
    font-size: 13px;
}
.player-profile-error {
    min-height: 220px;
    padding: 42px;
    display: grid;
    place-items: center;
    color: #ff7886;
    text-align: center;
}
.profile-empty-state {
    min-height: 130px;
    display: grid;
    place-items: center;
    color: #76829a;
    font-size: 12px;
}
@media (max-width: 1180px) {
    .player-profile-hero-layout {
        grid-template-columns: 142px minmax(0,1fr) 260px;
        gap: 14px;
    }
    .player-profile-avatar-medallion { width: 124px; height: 124px; }
    .player-profile-avatar-medallion::before { width: 116px; height: 116px; }
    .profile-hero-career { max-width: 260px; }
    .player-profile-team-logo { left: 210px; width: 310px; height: 205px; }
}
@media (max-width: 900px) {
    .player-profile-panel {
        width: min(100vw - 10px, 100%);
        max-height: calc(100vh - 10px);
    }
    .player-profile-hero {
        min-height: 240px;
    }
    .player-profile-hero-layout {
        min-height: 240px;
        padding: 14px;
        grid-template-columns: 120px minmax(0,1fr);
        grid-template-areas:
            "avatar side"
            "identity identity";
        align-items: center;
    }
    .player-profile-avatar-wrap { grid-area: avatar; }
    .player-profile-identity { grid-area: identity; }
    .player-profile-hero-side {
        grid-area: side;
        align-self: start;
    }
    .player-profile-avatar-medallion { width: 106px; height: 106px; }
    .player-profile-avatar-medallion::before { width: 98px; height: 98px; }
    .player-profile-name { font-size: clamp(28px, 7vw, 40px); }
    .player-profile-bio-line,
    .player-profile-draft-line,
    .player-profile-teamline { font-size: 11px; }
    .player-profile-team-logo {
        left: 120px;
        width: 260px;
        height: 170px;
    }
    .profile-hero-career {
        max-width: 230px;
    }
    .profile-hero-stat {
        min-height: 60px;
        padding: 11px 12px;
    }
    .player-profile-body { padding: 10px; }
    .profile-matrix-header,
    .profile-matrix-row {
        grid-template-columns: 104px repeat(var(--season-count), minmax(var(--season-column-width), 1fr)) 92px;
    }
    .profile-stat-name,
    .profile-matrix-corner { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 640px) {
    .player-profile-overlay { padding: 4px; }
    .player-profile-panel { max-height: calc(100vh - 8px); }
    .player-profile-hero { min-height: 280px; }
    .player-profile-hero-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "side"
            "avatar"
            "identity";
        gap: 12px;
        justify-items: start;
    }
    .player-profile-hero-side { width: 100%; }
    .player-profile-jb-logo { margin-left: 0; }
    .profile-hero-career {
        max-width: none;
        margin-left: 0;
    }
    .player-profile-avatar-wrap { justify-content: flex-start; }
    .player-profile-team-logo {
        left: auto;
        right: -40px;
        width: 220px;
        height: 160px;
    }
    .profile-matrix-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==================================================
   JETBET SHARED PLAYER PROFILE V21 - COMPACT FIT
================================================== */
.player-profile-overlay {
    padding: 5vh 12px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.player-profile-panel {
    width: min(1240px, 74vw);
    max-height: 90vh;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
}
.player-profile-hero,
.player-profile-hero-layout { min-height: 158px; }
.player-profile-hero-layout {
    grid-template-columns: 126px minmax(0, 1fr) 236px;
    padding: 12px 26px 11px 17px;
    gap: 14px;
}
.player-profile-avatar-medallion { width: 112px; height: 112px; }
.player-profile-avatar-medallion::before { width: 104px; height: 104px; }
.player-profile-name { font-size: clamp(27px, 3vw, 41px); }
.player-profile-meta-row { margin-bottom: 5px; }
.player-profile-teamline { font-size: 11px; }
.player-profile-bio-line { margin-top: 7px; font-size: 10px; }
.player-profile-draft-line { margin-top: 3px; font-size: 10px; }
.player-profile-team-logo { left: 182px; width: 300px; height: 172px; opacity: .12; }
.player-profile-jb-logo { width: 44px; height: 25px; margin-bottom: 5px; }
.profile-hero-career { max-width: 236px; }
.profile-hero-stat { min-height: 55px; padding: 9px 11px; }
.profile-hero-stat strong { font-size: 17px; }
.profile-hero-stat span { margin-top: 4px; font-size: 8px; }
.player-profile-close { top: 7px; right: 7px; width: 27px; height: 27px; font-size: 16px; }
.player-profile-body { padding: 8px 14px 12px; }
.profile-matrix-actions { min-height: 28px; margin-bottom: 6px; }
.profile-season-type-button { height: 25px; min-width: 44px; font-size: 10px; padding: 0 9px; }
.profile-advanced-toggle { height: 27px; font-size: 10px; padding: 0 10px; }
.profile-matrix-shell { border-radius: 11px; }
.profile-matrix-header,
.profile-matrix-row {
    grid-template-columns: 106px repeat(var(--season-count), minmax(var(--season-column-width), 1fr)) 93px;
    min-width: 100%;
    width: max(100%, calc(199px + var(--season-count) * var(--season-column-width)));
}
.profile-matrix-header { height: 47px; }
.profile-matrix-corner { padding: 0 12px; }
.profile-matrix-corner span, .profile-career-header { font-size: 9px; }
.profile-season-header { padding: 4px 3px; gap: 2px; }
.profile-season-header img { width: 13px; height: 13px; }
.profile-season-header span, .profile-season-header .profile-season-year { font-size: 10px; }
.profile-season-header small { font-size: 8px; }
.profile-matrix-row, .profile-stat-cell, .profile-stat-name, .profile-career-cell { min-height: 31px; }
.profile-stat-name { padding: 0 12px; font-size: 10px; }
.profile-stat-value, .profile-career-value { font-size: 10px; }
.profile-matrix-row.is-active,
.profile-matrix-row.is-active .profile-stat-name,
.profile-stat-cell-active,
.profile-career-cell.is-active { min-height: 52px; }
.profile-stat-cell-active { padding-top: 6px; }
.profile-stat-cell-active::after { bottom: 6px; }
.profile-active-bar { bottom: 7px; width: min(28px, 46%); max-height: 28px; }
.profile-stat-cell-active .profile-stat-value { font-size: 10px; }
@media (max-width: 1000px) {
    .player-profile-panel { width: min(96vw, 1240px); max-height: 94vh; }
    .player-profile-overlay { padding: 3vh 6px; }
}
@media (max-width: 640px) {
    .player-profile-overlay { padding: 4px; }
    .player-profile-panel { width: calc(100vw - 8px); max-height: calc(100vh - 8px); }
    .player-profile-hero, .player-profile-hero-layout { min-height: 0; }
    .player-profile-hero-layout {
        grid-template-columns: 92px minmax(0,1fr);
        grid-template-areas: "avatar identity" "side side";
        gap: 8px; padding: 10px;
    }
    .player-profile-avatar-medallion { width: 84px; height: 84px; }
    .player-profile-avatar-medallion::before { width: 76px; height: 76px; }
    .player-profile-name { font-size: 24px; }
    .player-profile-hero-side { display: flex; align-items: center; gap: 10px; }
    .player-profile-jb-logo { margin: 0; }
    .profile-hero-career { max-width: none; flex: 1; }
    .profile-hero-stat { min-height: 42px; padding: 6px; }
    .profile-hero-stat strong { font-size: 13px; }
    .profile-hero-stat span { font-size: 7px; }
    .player-profile-bio-line span { white-space: normal; }
    .player-profile-body { padding: 6px; }
    .profile-matrix-header, .profile-matrix-row {
        grid-template-columns: 88px repeat(var(--season-count), minmax(var(--season-column-width), 1fr)) 75px;
        width: max(100%, calc(163px + var(--season-count) * var(--season-column-width)));
    }
}

/* ==================================================
   JETBET V23 - SHARED PLAYER PROFILE VISUAL REBALANCE
   Restores headshot scale, readable selected-stat bars.
================================================== */
.player-profile-overlay {
    padding: 3vh 14px;
    align-items: center;
    justify-content: center;
}
.player-profile-panel {
    width: min(1370px, 82vw);
    max-height: 94vh;
    margin: auto;
    overflow-x: hidden;
    overflow-y: auto;
}
.player-profile-hero {
    min-height: 208px;
    isolation: isolate;
}
.player-profile-hero-layout {
    min-height: 208px;
    grid-template-columns: 180px minmax(225px, 1fr) minmax(190px, 235px) minmax(125px, 175px);
    align-items: center;
    gap: 16px;
    padding: 16px 20px 12px 14px;
}
.player-profile-team-logo {
    position: absolute;
    left: -92px;
    top: 50%;
    width: 435px;
    height: 315px;
    transform: translateY(-50%);
    opacity: .20;
    z-index: 0;
    object-fit: contain;
    pointer-events: none;
}
.player-profile-avatar-wrap {
    grid-column: 1;
    grid-row: 1;
    z-index: 3;
    align-self: center;
    justify-self: center;
}
.player-profile-avatar-medallion {
    position: relative;
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,.48);
    padding: 3px;
    background: rgba(7,12,20,.50);
    box-shadow: 0 12px 30px rgba(0,0,0,.23);
}
.player-profile-avatar-medallion::before { display: none; }
.player-profile-avatar {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 20%;
    background: rgba(8,12,18,.60);
}
.player-profile-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}
.player-profile-identity {
    grid-column: 2;
    grid-row: 1;
    z-index: 3;
}
.player-profile-name {
    font-size: clamp(30px, 3.2vw, 45px);
    line-height: 1.04;
}
.player-profile-teamline { font-size: 12px; }
.player-profile-bio-line { font-size: 11px; }
.player-profile-draft-line { font-size: 11px; }
.player-profile-hero-side { display: contents; }
.profile-hero-career {
    grid-column: 3;
    grid-row: 1;
    z-index: 3;
    width: 100%;
    max-width: 235px;
    margin: 0 auto;
}
.profile-hero-stat { min-height: 61px; padding: 11px 12px; }
.profile-hero-stat strong { font-size: 19px; }
.profile-hero-stat span { font-size: 9px; }
.player-profile-jb-logo {
    grid-column: 4;
    grid-row: 1;
    z-index: 3;
    width: min(100%,160px);
    height: 82px;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}
.player-profile-close { top: 10px; right: 10px; z-index: 12; }
.player-profile-body { padding: 13px 17px 17px; }
.profile-matrix-actions { min-height: 33px; margin-bottom: 10px; }
.profile-matrix-header,
.profile-matrix-row {
    grid-template-columns: 118px repeat(var(--season-count), minmax(var(--season-column-width), 1fr)) 104px;
    width: max(100%, calc(222px + var(--season-count) * var(--season-column-width)));
    min-width: 100%;
}
.profile-matrix-header { height: 57px; }
.profile-matrix-row,
.profile-stat-name,
.profile-stat-cell,
.profile-career-cell { min-height: 38px; }
.profile-matrix-row.is-active,
.profile-matrix-row.is-active .profile-stat-name,
.profile-stat-cell-active,
.profile-career-cell.is-active { min-height: 76px; }
.profile-stat-name { font-size: 11px; }
.profile-stat-value, .profile-career-value { font-size: 11px; }
.profile-stat-value.is-career-high,
.profile-stat-cell-active .profile-stat-value.is-career-high { color: #3fe1af; }
.profile-stat-cell-active {
    position: relative;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}
.profile-stat-cell-active .profile-stat-value {
    position: absolute;
    top: 9px;
    left: 0;
    right: 0;
    z-index: 4;
    text-align: center;
    line-height: 16px;
    font-size: 12px;
}
.profile-active-bar {
    bottom: 10px;
    height: min(var(--bar-height, 28px),28px);
    max-height: 28px;
    width: min(34px,48%);
    z-index: 2;
}
.profile-stat-cell-active::after { bottom: 9px; }
/* Shorter screens preserve all core rows when possible, while staying readable. */
@media (max-height: 790px) and (min-width: 901px) {
    .player-profile-hero, .player-profile-hero-layout { min-height: 178px; }
    .player-profile-avatar-medallion { width: 145px; height: 145px; }
    .profile-hero-stat { min-height: 52px; padding: 8px 11px; }
    .player-profile-jb-logo { height: 71px; }
    .profile-matrix-header { height: 49px; }
    .profile-matrix-row, .profile-stat-name, .profile-stat-cell, .profile-career-cell { min-height: 33px; }
    .profile-matrix-row.is-active,
    .profile-matrix-row.is-active .profile-stat-name,
    .profile-stat-cell-active,
    .profile-career-cell.is-active { min-height: 65px; }
    .player-profile-body { padding-top: 9px; padding-bottom: 11px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
    .player-profile-panel { width: min(94vw, 1000px); }
    .player-profile-hero-layout {
        grid-template-columns: 145px minmax(180px,1fr) 195px 105px;
        gap: 10px;
    }
    .player-profile-avatar-medallion { width: 138px; height: 138px; }
    .player-profile-name { font-size: clamp(27px,3vw,38px); }
}
@media (max-width: 900px) {
    .player-profile-panel { width: 96vw; max-height: 94vh; }
    .player-profile-hero-layout {
        grid-template-columns: 125px minmax(0,1fr) 125px;
        grid-template-rows: auto auto;
        grid-template-areas: none;
        gap: 12px;
        min-height: 250px;
        padding: 14px;
    }
    .player-profile-hero { min-height: 250px; }
    .player-profile-avatar-wrap { grid-column: 1; grid-row: 1; }
    .player-profile-avatar-medallion { width: 120px; height: 120px; }
    .player-profile-identity { grid-column: 2 / 4; grid-row: 1; }
    .profile-hero-career { grid-column: 1 / 3; grid-row: 2; max-width: 230px; margin: 0; }
    .player-profile-jb-logo { grid-column: 3; grid-row: 2; width: 105px; height: 58px; }
    .player-profile-team-logo { left: -65px; width: 280px; height: 240px; }
}
@media (max-width: 560px) {
    .player-profile-hero-layout { grid-template-columns: 98px minmax(0,1fr); }
    .player-profile-avatar-medallion { width: 94px; height: 94px; }
    .player-profile-identity { grid-column: 2; grid-row: 1; }
    .profile-hero-career { grid-column: 1 / 3; grid-row: 2; }
    .player-profile-jb-logo { grid-column: 2; grid-row: 2; width: 75px; justify-self: end; }
}


/* ==================================================
   JETBET V24 - CUTOUT HERO / NO MEDALLION (ALL LEAGUES)
================================================== */
.player-profile-hero {
    min-height: 208px;
    overflow: hidden;
}
.player-profile-hero-layout {
    min-height: 208px;
    grid-template-columns: 210px minmax(180px, 1fr) minmax(180px, 230px) minmax(115px, 165px);
    padding: 12px 20px 0 0;
    gap: 16px;
}
.player-profile-avatar-wrap {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    justify-self: stretch;
    position: relative;
    z-index: 3;
    width: 100%;
    height: 196px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
}
.player-profile-avatar-medallion {
    position: relative;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}
.player-profile-avatar-medallion::before { display: none; }
.player-profile-avatar {
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 5px 9px rgba(0,0,0,.18));
}
.player-profile-avatar-fallback {
    width: 112px;
    height: 112px;
    margin: auto auto 0;
    border-radius: 50%;
}
.player-profile-identity { grid-column: 2; grid-row: 1; }
.player-profile-inline-team-logo { display: none !important; }
.player-profile-meta-row { gap: 0; }
.player-profile-team-logo {
    left: -95px;
    top: 50%;
    width: 510px;
    height: 310px;
    opacity: .19;
    transform: translateY(-50%);
    object-fit: contain;
}
.player-profile-name { font-size: clamp(28px, 3vw, 43px); }
.profile-hero-career { grid-column: 3; grid-row: 1; }
.player-profile-jb-logo { grid-column: 4; grid-row: 1; }
@media (max-height: 790px) and (min-width: 901px) {
    .player-profile-hero, .player-profile-hero-layout { min-height: 185px; }
    .player-profile-avatar-wrap { height: 176px; }
    .player-profile-team-logo { width: 440px; height: 270px; }
}
@media (max-width: 1100px) and (min-width: 901px) {
    .player-profile-hero-layout {
        grid-template-columns: 175px minmax(160px,1fr) 195px 105px;
        gap: 10px;
    }
    .player-profile-avatar-wrap { height: 185px; }
    .player-profile-team-logo { left: -95px; width: 425px; height: 275px; }
}
@media (max-width: 900px) {
    .player-profile-hero, .player-profile-hero-layout { min-height: 250px; }
    .player-profile-hero-layout {
        grid-template-columns: 145px minmax(0,1fr) 120px;
        grid-template-rows: auto auto;
        padding: 10px 12px 0 0;
        gap: 10px;
    }
    .player-profile-avatar-wrap { grid-column: 1; grid-row: 1; height: 175px; }
    .player-profile-identity { grid-column: 2 / 4; grid-row: 1; }
    .profile-hero-career { grid-column: 1 / 3; grid-row: 2; }
    .player-profile-jb-logo { grid-column: 3; grid-row: 2; }
    .player-profile-team-logo { left: -75px; width: 310px; height: 245px; }
}
@media (max-width: 560px) {
    .player-profile-hero-layout { grid-template-columns: 105px minmax(0,1fr); }
    .player-profile-avatar-wrap { height: 145px; }
    .player-profile-identity { grid-column: 2; grid-row: 1; }
    .profile-hero-career { grid-column: 1 / 3; grid-row: 2; }
    .player-profile-jb-logo { grid-column: 2; grid-row: 2; }
    .player-profile-team-logo { left: -100px; width: 270px; }
}

/* JETBET V25 - RESULTS-SCOPED PROFILE NAVIGATION */
.profile-nav-controls {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin: 0 auto;
    font-variant-numeric: tabular-nums;
}
.profile-nav-controls[hidden] { display: none !important; }
.profile-nav-button {
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border: 1px solid #344056;
    border-radius: 8px;
    background: #121926;
    color: #f2f4fc;
    font: inherit;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}
.profile-nav-button:hover:not(:disabled) { background: #28213d; border-color: #805cff; }
.profile-nav-button:disabled { opacity: .28; cursor: default; }
.profile-nav-button:focus-visible { outline: 2px solid #9678ff; outline-offset: 2px; }
.profile-nav-counter { min-width: 46px; text-align: center; color: #95a2b9; font-size: 11px; font-weight: 800; }
@media (max-width: 520px) {
    .profile-matrix-actions { flex-wrap: wrap; }
    .profile-nav-controls { order: 3; flex: 0 0 100%; }
}

/* JETBET V26 - EXTERNAL PROFILE NAVIGATION */
.profile-nav-controls { display: none !important; }
.profile-nav-outside { pointer-events: none; }
.profile-nav-side {
    pointer-events: auto;
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1007;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    max-width: 240px;
    padding: 12px 7px;
    border: none;
    background: none;
    color: #c9d2e5;
    font: inherit;
    cursor: pointer;
    transition: color .16s ease;
}
.profile-nav-side[hidden] { display: none !important; }
.profile-nav-side:disabled { opacity: .45; cursor: wait; }
.profile-nav-side-prev { left: 0; }
.profile-nav-side-next { right: 0; }
.profile-nav-side-arrow {
    display: grid;
    place-items: center;
    width: 38px;
    height: 44px;
    border: 1px solid rgba(145,159,182,.22);
    border-radius: 12px;
    background: rgba(15,21,31,.65);
    font-size: 33px;
    line-height: 1;
    transition: border-color .16s ease, background .16s ease;
}
.profile-nav-side:hover:not(:disabled) .profile-nav-side-arrow {
    border-color: #8368fa;
    background: rgba(71,52,122,.40);
}
.profile-nav-side-label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    max-width: 100%;
    text-align: center;
    line-height: 1.25;
}
.profile-nav-side-label small {
    color: #7786a1;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .09em;
}
.profile-nav-side-label strong {
    color: #e2e7f4;
    font-size: 11px;
    font-weight: 800;
    overflow-wrap: anywhere;
    max-width: 100%;
}
.profile-nav-side:focus-visible { outline: 2px solid #8c70ff; outline-offset: -3px; border-radius: 12px; }
@media (max-width: 1050px) {
    .profile-nav-side-label strong { font-size: 10px; }
    .profile-nav-side-arrow { width: 30px; height: 36px; font-size: 27px; }
}
@media (max-width: 720px) {
    .profile-nav-side-label { display: none; }
    .profile-nav-side { padding: 5px 0; }
    .profile-nav-side-arrow { width: 25px; height: 34px; font-size: 25px; background: rgba(15,21,31,.88); }
}

/* JETBET V33 — unobtrusive Totals / Per Game toggle */
.v33-mode-toggle { display:inline-flex;align-items:center;gap:2px;padding:3px;border:1px solid #2b3445;border-radius:10px;background:#101722;margin-left:auto; }
.v33-mode-toggle button { border:0;border-radius:7px;padding:6px 9px;background:transparent;color:#91a0b8;font-size:10px;font-weight:800;line-height:1.1;font-family:inherit;letter-spacing:.04em;cursor:pointer; }
.v33-mode-toggle button.is-active {background:#282144;color:#e3dcff;}
.v33-mode-toggle button:focus-visible {outline:2px solid #ad94ff;}
#profile-advanced-toggle[hidden]{display:none!important;}
@media(max-width:680px){.v33-mode-toggle{margin-left:0}.v33-mode-toggle button{padding:6px 7px;font-size:9px}}
