/* CTLG Phase 113 - Schützenprofil Statistik */

.player-stats-panel {
    position: relative;
    overflow: hidden;
}

.player-stats-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 100% 0, rgba(234,176,50,.13), transparent 34%),
        radial-gradient(circle at 0 100%, rgba(255,48,48,.08), transparent 38%);
    pointer-events: none;
}

.player-stats-panel > * {
    position: relative;
    z-index: 1;
}

.player-stats-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.player-stats-head h2 {
    margin: 0;
}

.player-stats-season {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid rgba(234,176,50,.34);
    background: rgba(234,176,50,.10);
    color: #ffd56d;
    font-weight: 1000;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.player-stats-empty {
    display: grid;
    gap: 10px;
    padding: 22px;
    border-radius: 22px;
    border: 1px dashed rgba(255,255,255,.16);
    background: rgba(255,255,255,.035);
    color: #d9d9d9;
}

.player-stats-empty i {
    color: #ffd56d;
    font-size: 26px;
}

.player-stats-empty strong {
    color: #ffffff;
    font-size: 20px;
}

.player-stat-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.player-stat-kpis > div {
    min-height: 92px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.10);
    background:
        radial-gradient(circle at 100% 0, rgba(234,176,50,.12), transparent 45%),
        rgba(0,0,0,.22);
}

.player-stat-kpis span,
.player-stat-position > span,
.player-stat-rounds span {
    display: block;
    color: #bfc5cf;
    font-size: 12px;
    font-weight: 1000;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.player-stat-kpis strong {
    display: block;
    margin-top: 7px;
    color: #ffd56d;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1;
    font-weight: 1000;
}

.player-stat-position {
    display: grid;
    gap: 10px;
    margin: 14px 0;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(234,176,50,.24);
    background: rgba(234,176,50,.06);
}

.player-stat-position > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.player-stat-position b {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.11);
    background: rgba(0,0,0,.28);
    color: #ffffff;
    font-weight: 1000;
}

.player-stat-rounds {
    display: grid;
    gap: 10px;
}

.player-stat-rounds > div {
    display: grid;
    grid-template-columns: 42px minmax(0, .75fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 13px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.035);
}

.player-stat-rounds i {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: rgba(234,176,50,.12);
    color: #ffd56d;
}

.player-stat-rounds strong {
    color: #ffffff;
    font-weight: 1000;
}

.player-stat-rounds em {
    grid-column: 3;
    color: #aaa;
    font-style: normal;
    font-size: 13px;
}

.player-stat-details {
    margin-top: 14px;
    border-top: 1px solid rgba(255,255,255,.10);
    padding-top: 14px;
}

.player-stat-details summary {
    cursor: pointer;
    color: #ffd56d;
    font-weight: 1000;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.player-stat-match-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

.player-stat-match-list a {
    display: grid;
    gap: 3px;
    padding: 12px 14px;
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,.09);
    background: rgba(0,0,0,.24);
    text-decoration: none;
    color: #ffffff;
}

.player-stat-match-list a:hover {
    border-color: rgba(234,176,50,.34);
}

.player-stat-match-list span,
.player-stat-match-list em {
    color: #aaa;
    font-style: normal;
    font-size: 13px;
}

@media (max-width: 900px) {
    .player-stat-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .player-stat-rounds > div {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .player-stat-rounds em {
        grid-column: 2;
    }
}

@media (max-width: 560px) {
    .player-stats-head {
        display: grid;
    }

    .player-stat-kpis {
        grid-template-columns: 1fr;
    }

    .player-stat-rounds > div {
        align-items: start;
    }
}


/* CTLG Phase 118 - Statistik verständlicher */
.player-stat-position > span {
    color: #ffd56d;
}
.player-stat-position div {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
}
.player-stat-position b {
    justify-content: center;
    font-size: 16px;
}
.player-stat-rounds > div {
    grid-template-columns: 42px minmax(140px,.55fr) minmax(0,1.35fr);
}
.player-stat-rounds strong {
    font-size: clamp(17px,1.5vw,22px);
    line-height: 1.25;
}
.player-stat-rounds em {
    margin-top: 4px;
}
.player-stat-rounds span {
    color: #ffd56d;
}
@media (max-width: 700px) {
    .player-stat-position div {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
    .player-stat-rounds > div {
        grid-template-columns: 42px minmax(0,1fr);
    }
    .player-stat-rounds strong,
    .player-stat-rounds em {
        grid-column: 2;
    }
}


/* CTLG Phase 131 - Schützenprofil: Statistik volle Breite, Erfolge/Ziele entfernt */
.player-stats-full-row {
    grid-template-columns: 1fr !important;
}

.player-stats-wide {
    grid-column: 1 / -1;
}

.player-stats-wide .player-stats-head {
    align-items: center;
    margin-bottom: 24px;
}

.player-stats-wide .player-stat-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.player-stats-wide .player-stat-kpis > div {
    min-height: 112px;
}

.player-stats-wide .player-stat-kpis span {
    font-size: 13px;
}

.player-stats-wide .player-stat-kpis strong {
    font-size: clamp(42px, 4.2vw, 68px);
}

.player-stats-wide .player-stat-position {
    margin-top: 18px;
    margin-bottom: 18px;
}

.player-stats-wide .player-stat-position div {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.player-stats-wide .player-stat-position b {
    min-height: 44px;
    font-size: 18px;
}

.player-stats-wide .player-stat-rounds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.player-stats-wide .player-stat-rounds > div {
    min-height: 118px;
}

.player-stats-wide .player-stat-rounds > div:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

@media (max-width: 1000px) {
    .player-stats-wide .player-stat-kpis,
    .player-stats-wide .player-stat-position div,
    .player-stats-wide .player-stat-rounds {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .player-stats-wide .player-stat-rounds > div:last-child:nth-child(odd) {
        grid-column: auto;
    }
}

@media (max-width: 620px) {
    .player-stats-wide .player-stats-head {
        display: grid;
    }

    .player-stats-wide .player-stat-kpis,
    .player-stats-wide .player-stat-position div,
    .player-stats-wide .player-stat-rounds {
        grid-template-columns: 1fr;
    }

    .player-stats-wide .player-stat-kpis > div {
        min-height: 96px;
    }

    .player-stats-wide .player-stat-rounds > div {
        min-height: auto;
    }
}
