/* =========================================================
   GRILLE SUPÉRIEURE RECONSTRUITE
   Aucune ancienne classe pv-card n’est réutilisée.
========================================================= */

.cdv-profile-overview {
    display: grid;

    grid-template-columns:
        minmax(250px, 1.15fr)
        repeat(3, minmax(175px, 1fr));

    grid-template-areas:
        "portrait winrate verse customs"
        "portrait soloq record teammate";

    gap: 16px;

    margin:
        0 0 46px;
}


/* =========================================================
   CARTES
   replay-metric-card réutilise exactement la surface
   graphique des cartes de la section replay.
========================================================= */

.cdv-profile-overview > .replay-metric-card {
    min-width: 0;
    min-height: 184px;
    height: auto;

    margin: 0;
    padding: 22px;

    transform: none !important;
    translate: none !important;
    rotate: none !important;
    scale: none !important;

    cursor: default !important;

    transition:
        border-color .22s ease,
        box-shadow .22s ease !important;
}

.cdv-profile-overview > .replay-metric-card:hover {
    transform: none !important;
    translate: none !important;
    rotate: none !important;
    scale: none !important;
}


/* =========================================================
   POSITION DES CARTES
========================================================= */

.cdv-summary-portrait {
    grid-area: portrait;
}

.cdv-summary-winrate {
    grid-area: winrate;
}

.cdv-summary-verse {
    grid-area: verse;
}

.cdv-summary-customs {
    grid-area: customs;
}

.cdv-summary-soloq {
    grid-area: soloq;
}

.cdv-summary-record {
    grid-area: record;
}

.cdv-summary-teammate {
    grid-area: teammate;
}


/* =========================================================
   TYPOGRAPHIE COMMUNE
========================================================= */

.cdv-summary-label {
    margin-bottom: 17px;

    color:
        rgba(
            220,
            213,
            235,
            .42
        );

    font-size: 9px;
    font-weight: 900;
    letter-spacing: .16em;
    line-height: 1.25;

    text-transform: uppercase;
}

.cdv-summary-value {
    color: #f7f5ff;

    font-size:
        clamp(
            30px,
            3vw,
            44px
        );

    font-weight: 950;
    line-height: 1;

    letter-spacing: -.045em;
}

.cdv-summary-value.gold {
    color: #f2ce82;
}

.cdv-summary-value.blue {
    color: #58d4ff;
}

.cdv-summary-detail {
    margin-top: 13px;

    color:
        rgba(
            220,
            213,
            235,
            .38
        );

    font-size: 9px;
    font-weight: 800;
    letter-spacing: .07em;
    line-height: 1.45;

    text-transform: uppercase;
}


/* =========================================================
   PORTRAIT
========================================================= */

.cdv-summary-portrait {
    display: flex;

    flex-direction: column;

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

    text-align: center;
}

.cdv-summary-avatar {
    width: 126px;
    height: 126px;

    overflow: hidden;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            rgba(108, 82, 225, .24),
            rgba(20, 22, 35, .95)
        );

    box-shadow:
        0 0 0 1px
        rgba(
            170,
            150,
            255,
            .20
        ),

        0 20px 45px
        rgba(
            0,
            0,
            0,
            .36
        );
}

.cdv-summary-avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.cdv-summary-avatar-fallback {
    width: 100%;
    height: 100%;

    display: grid;

    place-items: center;

    color: #ffffff;

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

.cdv-summary-player-name {
    margin-top: 20px;

    color: #ffffff;

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

    letter-spacing: -.025em;
}

.cdv-summary-player-role {
    margin-top: 8px;

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

    font-size: 9px;
    font-weight: 850;
    letter-spacing: .14em;

    text-transform: uppercase;
}


/* =========================================================
   WINRATE
========================================================= */

.cdv-summary-ratio-track {
    width: 100%;
    height: 7px;

    display: flex;

    overflow: hidden;

    margin-top: 18px;

    border-radius: 999px;

    background:
        rgba(
            255,
            255,
            255,
            .055
        );
}

.cdv-summary-ratio-track .wins {
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #6685ff,
            #58d4ff
        );
}

.cdv-summary-ratio-track .losses {
    height: 100%;

    background:
        linear-gradient(
            90deg,
            #8d789d,
            #ba8caa
        );
}


/* =========================================================
   SOLOQ
========================================================= */

.cdv-summary-soloq-content {
    display: flex;

    align-items: center;

    gap: 15px;
}

.cdv-summary-emblem {
    width: 73px;
    height: 73px;

    flex:
        0 0 73px;

    display: grid;

    place-items: center;
}

.cdv-summary-emblem img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: contain;
}

.cdv-summary-emblem-empty {
    width: 58px;
    height: 58px;

    display: grid;

    place-items: center;

    border-radius: 16px;

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

    background:
        rgba(
            255,
            255,
            255,
            .04
        );

    font-size: 22px;
    font-weight: 900;
}

.cdv-summary-rank-mode {
    color:
        rgba(
            220,
            213,
            235,
            .38
        );

    font-size: 8px;
    font-weight: 900;
    letter-spacing: .13em;

    text-transform: uppercase;
}

.cdv-summary-rank-name {
    margin-top: 5px;

    color: #f7f5ff;

    font-size: 18px;
    font-weight: 950;
    line-height: 1.05;
}

.cdv-summary-rank-lp {
    margin-top: 8px;

    color: #58d4ff;

    font-size: 10px;
    font-weight: 900;
}


/* =========================================================
   BILAN
========================================================= */

.cdv-summary-record-values {
    display: grid;

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

    gap: 9px;
}

.cdv-summary-record-stat {
    min-width: 0;

    padding:
        13px 8px;

    border:
        1px solid
        rgba(
            151,
            139,
            202,
            .10
        );

    border-radius: 12px;

    text-align: center;

    background:
        rgba(
            8,
            10,
            23,
            .24
        );
}

.cdv-summary-record-stat strong {
    display: block;

    color: #f6f4ff;

    font-size: 24px;
    font-weight: 950;
    line-height: 1;
}

.cdv-summary-record-stat.win strong {
    color: #58d4ff;
}

.cdv-summary-record-stat.loss strong {
    color: #aab2c4;
}

.cdv-summary-record-stat.mvp strong {
    color: #f2ce82;
}

.cdv-summary-record-stat span {
    display: block;

    margin-top: 8px;

    color:
        rgba(
            220,
            213,
            235,
            .36
        );

    font-size: 7px;
    font-weight: 900;
    letter-spacing: .10em;

    text-transform: uppercase;
}


/* =========================================================
   TEAMMATE
========================================================= */

.cdv-summary-teammate-content {
    display: flex;

    align-items: center;

    gap: 14px;
}

.cdv-summary-teammate-avatar {
    width: 63px;
    height: 63px;

    flex:
        0 0 63px;

    overflow: hidden;

    display: grid;

    place-items: center;

    border-radius: 50%;

    color: #ffffff;

    background:
        rgba(
            102,
            82,
            188,
            .18
        );

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

.cdv-summary-teammate-avatar img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.cdv-summary-teammate-name {
    color: #f7f5ff;

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

.cdv-summary-teammate-count {
    margin-top: 8px;

    color: #58d4ff;

    font-size: 10px;
    font-weight: 900;
}

.cdv-summary-teammate-count span {
    margin-left: 4px;

    color:
        rgba(
            220,
            213,
            235,
            .38
        );

    font-size: 8px;
    letter-spacing: .08em;

    text-transform: uppercase;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .cdv-profile-overview {
        grid-template-columns:
            repeat(
                2,
                minmax(
                    0,
                    1fr
                )
            );

        grid-template-areas:
            "portrait portrait"
            "winrate verse"
            "customs soloq"
            "record teammate";
    }

    .cdv-summary-portrait {
        min-height:
            275px !important;
    }
}

@media (max-width: 650px) {

    .cdv-profile-overview {
        grid-template-columns: 1fr;

        grid-template-areas:
            "portrait"
            "winrate"
            "verse"
            "customs"
            "soloq"
            "record"
            "teammate";
    }

    .cdv-profile-overview
    >
    .replay-metric-card {
        min-height: 160px;
    }
}
