/* =========================================================
   HERO LARGE — COMPOSITION HORIZONTALE
========================================================= */

.player-v2-header.cdv-wide-hero {

    width: 100% !important;
    max-width: none !important;

    min-height: 280px !important;

    display: grid !important;

    grid-template-columns:
        minmax(
            220px,
            270px
        )
        minmax(
            320px,
            1fr
        )
        minmax(
            240px,
            300px
        ) !important;

    align-items: center !important;

    gap: 34px !important;

    margin:
        0 0 20px !important;

    padding:
        30px 42px !important;

    text-align: left !important;

    border-radius: 24px !important;

    background:

        radial-gradient(
            420px circle
            at
            12% 55%,

            rgba(
                var(--player-accent),
                .10
            ),

            transparent 68%
        ),

        radial-gradient(
            460px circle
            at
            88% 50%,

            rgba(
                var(--player-accent-soft),
                .095
            ),

            transparent 70%
        ),

        linear-gradient(
            120deg,

            rgba(
                10,
                12,
                27,
                .90
            ),

            rgba(
                17,
                19,
                35,
                .76
            )
            48%,

            rgba(
                8,
                10,
                24,
                .91
            )
        ) !important;

    box-shadow:

        inset
        0 1px 0
        rgba(
            255,
            255,
            255,
            .045
        ),

        0 30px 70px
        rgba(
            0,
            0,
            0,
            .30
        ),

        0 0 60px
        rgba(
            var(--player-accent),
            .04
        ) !important;
}


/* Suppression de l’ancien gros halo central. */

.player-v2-header.cdv-wide-hero::after {

    width: 520px !important;
    height: 220px !important;

    left: 50% !important;
    top: 52% !important;

    opacity: .38 !important;

    filter:
        blur(75px) !important;
}


/* =========================================================
   COLONNES DU HERO
========================================================= */

.cdv-wide-hero-left,
.cdv-wide-hero-center,
.cdv-wide-hero-right {

    position: relative;

    z-index: 3;

    min-width: 0;
}


.cdv-wide-hero-left {

    display: flex;

    align-items: center;

    gap: 18px;
}


.cdv-wide-hero-center {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    justify-content: center;

    padding:
        0 18px;

    border-left:
        1px solid
        rgba(
            var(--player-accent),
            .10
        );

    border-right:
        1px solid
        rgba(
            var(--player-accent),
            .10
        );
}


.cdv-wide-hero-right {

    display: flex;

    align-items: center;
    justify-content: center;
}


/* =========================================================
   AVATAR À GAUCHE
========================================================= */

.cdv-wide-avatar {

    position: relative;

    width: 118px;
    height: 118px;

    flex:
        0 0 118px;

    display: grid;

    place-items: center;

    overflow: hidden;

    border:
        1px solid
        rgba(
            var(--player-accent),
            .35
        );

    border-radius: 28px;

    background:
        rgba(
            8,
            10,
            24,
            .72
        );

    box-shadow:

        0 0 0 7px
        rgba(
            var(--player-accent),
            .035
        ),

        0 18px 38px
        rgba(
            0,
            0,
            0,
            .36
        ),

        0 0 34px
        rgba(
            var(--player-accent),
            .11
        );
}


.cdv-wide-avatar::after {

    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            135deg,

            rgba(
                255,
                255,
                255,
                .08
            ),

            transparent 42%
        );
}


.cdv-wide-avatar img {

    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


.cdv-wide-avatar-fallback {

    color: #ffffff;

    font-size: 32px;
    font-weight: 950;
}


.cdv-wide-profile-copy {

    min-width: 0;
}


.cdv-wide-profile-label {

    color:
        rgba(
            var(--player-accent-soft),
            .52
        );

    font-size: 7px;
    font-weight: 950;
    letter-spacing: .17em;

    text-transform: uppercase;
}


.cdv-wide-profile-role {

    margin-top: 8px;

    color: #ffffff;

    font-size: 14px;
    font-weight: 900;
    line-height: 1.25;
}


.cdv-wide-profile-record {

    margin-top: 9px;

    color:
        rgba(
            225,
            220,
            238,
            .42
        );

    font-size: 8px;
    font-weight: 850;
    line-height: 1.5;
    letter-spacing: .07em;

    text-transform: uppercase;
}


.cdv-wide-profile-record strong {

    color:
        rgb(
            var(--player-accent-soft)
        );

    font-size: 12px;
}


/* =========================================================
   IDENTITÉ CENTRALE
========================================================= */

.cdv-wide-hero-center
.player-v2-kicker {

    margin: 0 !important;

    font-size: 8px !important;
}


.cdv-wide-hero-center
.player-v2-name {

    width: 100%;

    margin:
        9px 0 11px !important;

    font-size:
        clamp(
            48px,
            5vw,
            78px
        ) !important;

    line-height: .96 !important;

    text-align: left !important;
}


.cdv-wide-hero-center
.player-v2-meta {

    width: max-content;
    max-width: 100%;

    margin: 0 !important;
}


/* =========================================================
   GRAND RANG SOLOQ À DROITE
========================================================= */

.cdv-wide-rank {

    width: 100%;

    display: grid;

    grid-template-columns:
        142px
        minmax(
            0,
            1fr
        );

    align-items: center;

    gap: 9px;
}


.cdv-wide-rank-emblem {

    position: relative;

    width: 142px;
    height: 142px;

    display: grid;

    place-items: center;
}


.cdv-wide-rank-emblem::before {

    content: "";

    position: absolute;

    inset: 22%;

    border-radius: 50%;

    background:
        rgba(
            var(--player-accent),
            .25
        );

    filter:
        blur(25px);

    animation:
        cdvWideRankAura
        4.5s
        ease-in-out
        infinite;
}


.cdv-wide-rank-emblem img {

    position: relative;

    z-index: 2;

    width: 138px !important;
    height: 138px !important;

    max-width: none !important;

    display: block;

    object-fit: contain;

    filter:
        drop-shadow(
            0 14px 25px
            rgba(
                0,
                0,
                0,
                .42
            )
        );
}


.cdv-wide-rank-empty {

    position: relative;

    z-index: 2;

    width: 92px;
    height: 92px;

    display: grid;

    place-items: center;

    border:
        1px solid
        rgba(
            var(--player-accent),
            .20
        );

    border-radius: 28px;

    color:
        rgba(
            255,
            255,
            255,
            .45
        );

    background:
        rgba(
            var(--player-accent),
            .06
        );

    font-size: 30px;
    font-weight: 950;
}


.cdv-wide-rank-copy {

    min-width: 0;
}


.cdv-wide-rank-mode {

    color:
        rgba(
            220,
            214,
            235,
            .40
        );

    font-size: 7px;
    font-weight: 950;
    letter-spacing: .15em;

    text-transform: uppercase;
}


.cdv-wide-rank-name {

    margin-top: 7px;

    color: #ffffff;

    font-size: 19px;
    font-weight: 950;
    line-height: 1.05;

    text-wrap: balance;
}


.cdv-wide-rank-lp {

    width: max-content;

    margin-top: 10px;

    padding:
        6px 9px;

    border:
        1px solid
        rgba(
            var(--player-accent),
            .18
        );

    border-radius: 999px;

    color:
        rgb(
            var(--player-accent-soft)
        );

    background:
        rgba(
            var(--player-accent),
            .07
        );

    font-size: 9px;
    font-weight: 950;
}


@keyframes cdvWideRankAura {

    0%,
    100% {

        opacity: .45;

        transform:
            scale(.90);
    }

    50% {

        opacity: 1;

        transform:
            scale(1.12);
    }
}


/* =========================================================
   NOUVELLE GRILLE INFÉRIEURE
========================================================= */

.cdv-profile-overview.cdv-wide-overview {

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        ) !important;

    grid-template-areas:
        "winrate verse customs"
        "record record teammate" !important;

    gap: 16px !important;
}


/* Avatar et SoloQ sont désormais dans le Hero. */

.cdv-profile-overview.cdv-wide-overview
>
.cdv-summary-portrait,

.cdv-profile-overview.cdv-wide-overview
>
.cdv-summary-soloq {

    display: none !important;
}


/* Toutes les cartes restantes occupent proprement la largeur. */

.cdv-profile-overview.cdv-wide-overview
>
.replay-metric-card {

    min-height: 176px !important;
}


.cdv-profile-overview.cdv-wide-overview
>
.cdv-summary-record {

    grid-area: record !important;
}


.cdv-profile-overview.cdv-wide-overview
>
.cdv-summary-record
.cdv-summary-record-values {

    grid-template-columns:
        repeat(
            3,
            minmax(
                100px,
                1fr
            )
        );

    gap: 14px;
}


.cdv-profile-overview.cdv-wide-overview
.cdv-summary-record-stat {

    min-height: 92px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;
}


/* =========================================================
   NAVIGATION PLUS DISCRÈTE
========================================================= */

.cdv-profile-quick-nav {

    margin-bottom: 22px !important;

    border-color:
        rgba(
            var(--player-accent),
            .10
        ) !important;

    background:
        rgba(
            7,
            9,
            22,
            .66
        ) !important;
}


/* =========================================================
   TABLETTE
========================================================= */

@media (max-width: 1050px) {

    .player-v2-header.cdv-wide-hero {

        grid-template-columns:
            190px
            minmax(
                280px,
                1fr
            )
            215px !important;

        gap: 22px !important;

        padding:
            28px 25px !important;
    }


    .cdv-wide-avatar {

        width: 96px;
        height: 96px;

        flex-basis: 96px;

        border-radius: 23px;
    }


    .cdv-wide-rank {

        grid-template-columns:
            105px
            minmax(
                0,
                1fr
            );
    }


    .cdv-wide-rank-emblem {

        width: 105px;
        height: 105px;
    }


    .cdv-wide-rank-emblem img {

        width: 102px !important;
        height: 102px !important;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 790px) {

    .player-v2-header.cdv-wide-hero {

        min-height: auto !important;

        grid-template-columns:
            1fr !important;

        gap: 22px !important;

        padding:
            28px 22px !important;

        text-align: center !important;
    }


    .cdv-wide-hero-left,
    .cdv-wide-hero-right {

        justify-content: center;
    }


    .cdv-wide-hero-center {

        order: -1;

        align-items: center;

        padding:
            20px 0;

        border-left: 0;
        border-right: 0;

        border-top:
            1px solid
            rgba(
                var(--player-accent),
                .09
            );

        border-bottom:
            1px solid
            rgba(
                var(--player-accent),
                .09
            );
    }


    .cdv-wide-hero-center
    .player-v2-name {

        text-align: center !important;
    }


    .cdv-wide-rank {

        width: auto;

        grid-template-columns:
            125px
            minmax(
                125px,
                1fr
            );
    }


    .cdv-wide-rank-emblem {

        width: 125px;
        height: 125px;
    }


    .cdv-wide-rank-emblem img {

        width: 122px !important;
        height: 122px !important;
    }


    .cdv-profile-overview.cdv-wide-overview {

        grid-template-columns:
            1fr !important;

        grid-template-areas:
            "winrate"
            "verse"
            "customs"
            "record"
            "teammate" !important;
    }
}


/* =========================================================
   ACCESSIBILITÉ
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .cdv-wide-rank-emblem::before {

        animation: none !important;
    }
}
