/* Rangliste: Zusatz-Optik ohne Änderung an der App-Kernlogik */
#rangliste-podium {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.38fr) minmax(0, 0.92fr);
    gap: 16px;
    align-items: end;
    margin: 12px 0 22px 0;
}

.ranking-podium-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    min-height: 180px;
    border-radius: 18px;
    text-align: center;
    background-color: #09111d;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.ranking-podium-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(5, 10, 20, 0.18) 0%, rgba(6, 10, 18, 0.12) 32%, rgba(5, 10, 18, 0.62) 100%);
}

.ranking-podium-rank-1 {
    order: 2;
    min-height: 252px;
    transform: translateY(-8px);
    border-color: rgba(255, 215, 0, 0.55);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42), 0 0 20px rgba(255, 215, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    background-image: url('images/rangliste/rangliste-platz-1-bg.png');
}

.ranking-podium-rank-2 {
    order: 1;
    min-height: 206px;
    border-color: rgba(192, 192, 192, 0.34);
    background-image: url('images/rangliste/rangliste-platz-2-bg.png');
}

.ranking-podium-rank-3 {
    order: 3;
    min-height: 206px;
    border-color: rgba(205, 127, 50, 0.34);
    background-image: url('images/rangliste/rangliste-platz-3-bg.png');
}

.ranking-podium-content {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.ranking-podium-name {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.12;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.ranking-podium-rank-1 .ranking-podium-name {
    color: var(--gold);
    font-size: 1.28rem;
}

.ranking-podium-points {
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.86rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.ranking-podium-rank-1 .ranking-podium-points {
    font-size: 1rem;
}

.ranking-enhanced-player {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    width: 100%;
}

.ranking-player-main {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
}

.ranking-player-avatar {
    flex: 0 0 auto;
    font-size: 1.3rem;
    line-height: 1;
}

.ranking-player-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-player-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    flex: 0 0 auto;
    min-width: 0;
}

.ranking-player-meta .ranking-movement-icon {
    margin-left: 0 !important;
    width: 24px !important;
    height: 24px !important;
    font-size: 0.88rem !important;
    flex: 0 0 24px;
}

.ranking-form-curve {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.ranking-form-curve-empty {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0.8;
}

.ranking-form-dot {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.34);
}

.ranking-form-exact {
    color: #1a1200;
    background: radial-gradient(circle at 50% 35%, #ffe897, #d6a51b 78%);
    border-color: rgba(255, 215, 0, 0.55);
}

.ranking-form-trend {
    background: radial-gradient(circle at 50% 35%, #6fc4ff, #145da0 78%);
    border-color: rgba(111, 196, 255, 0.48);
}

.ranking-form-wrong {
    background: radial-gradient(circle at 50% 35%, #ff6b6b, #8f111f 78%);
    border-color: rgba(255, 90, 90, 0.48);
}

.ranking-form-none {
    color: rgba(255, 255, 255, 0.68);
    background: radial-gradient(circle at 50% 35%, #5d6572, #242a34 78%);
    border-color: rgba(255, 255, 255, 0.11);
}

@media (max-width: 700px) {
    #rangliste-podium {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ranking-podium-rank-1,
    .ranking-podium-rank-2,
    .ranking-podium-rank-3 {
        order: initial;
        min-height: 170px;
        transform: none;
    }

    .ranking-podium-rank-1 {
        min-height: 190px;
    }

    .ranking-podium-card {
        min-height: 170px;
    }

    .ranking-podium-content {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .ranking-enhanced-player {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .ranking-player-main {
        width: 100%;
        align-items: flex-start;
    }

    .ranking-player-name {
        white-space: normal;
        line-height: 1.22;
    }

    .ranking-player-meta {
        width: calc(100% - 34px);
        margin-left: 34px;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 7px;
    }

    .ranking-form-dot {
        width: 20px;
        height: 20px;
        font-size: 0.66rem;
    }

    .ranking-form-curve {
        justify-content: flex-start;
    }

    .ranking-player-meta .ranking-movement-icon {
        width: 22px !important;
        height: 22px !important;
        flex-basis: 22px;
    }
}

@media (max-width: 430px) {
    .ranking-table th,
    .ranking-table td {
        padding-left: 9px;
        padding-right: 9px;
    }

    .ranking-table td:first-child,
    .ranking-table th:first-child {
        width: 54px;
        white-space: nowrap;
    }

    .ranking-table td:last-child,
    .ranking-table th:last-child {
        width: 58px;
        white-space: nowrap;
    }

    .ranking-player-meta {
        width: calc(100% - 31px);
        margin-left: 31px;
    }

    .ranking-form-curve {
        gap: 4px;
    }

    .ranking-form-dot {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }
}
