.EnchiTopShouts {
    position: relative;

    margin: 18px 0;
    padding: 0 16px 16px;

    overflow: hidden;

    background: #15151b;
    border: 1px solid #2e2e36;
    border-radius: 10px;

    box-shadow:
        0 2px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

/* Pomarańczowy pasek u góry */

.EnchiTopShouts__accent {
    position: absolute;
    top: 0;
    left: 16px;

    width: 90px;
    height: 3px;

    background: #ff7200;
    border-radius: 0 0 4px 4px;

    box-shadow: 0 0 8px rgba(255, 114, 0, 0.25);
}

/* Nagłówek */

.EnchiTopShouts__header {
    min-height: 58px;

    display: flex;
    align-items: center;
}

.EnchiTopShouts__titleArea {
    width: 100%;
}

.EnchiTopShouts__heading {
    margin: 0 0 4px;
    padding: 0;

    color: #ffffff;

    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.EnchiTopShouts__summary {
    color: #a7a7af;

    font-size: 11px;
    line-height: 1.5;
}

.EnchiTopShouts__summary strong {
    color: #ffffff;
    font-weight: 700;
}

.EnchiTopShouts__yourCount {
    margin-left: 4px;

    color: #777780;
    font-size: 10px;
}

/* Wewnętrzny panel */

.EnchiTopShouts__body {
    display: flex;
    align-items: center;
    gap: 20px;

    min-height: 100px;
    padding: 18px 24px;

    background: #0c0c0f;
    border-radius: 10px;
}

/* Ikona po lewej */

.EnchiTopShouts__icon {
    width: 60px;
    min-width: 60px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.EnchiTopShouts__trophy {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ff7200;
    background: rgba(255, 114, 0, 0.07);

    border: 1px solid rgba(255, 114, 0, 0.22);
    border-radius: 50%;

    font-size: 17px;

    box-shadow:
        0 0 10px rgba(255, 114, 0, 0.12),
        inset 0 0 8px rgba(255, 114, 0, 0.05);
}

.EnchiTopShouts__content {
    flex: 1;
    min-width: 0;
}

/* Lista użytkowników */

.EnchiTopShouts__users {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;

    width: 100%;
}

/* Pojedynczy użytkownik */

.EnchiTopShouts__user {
    position: relative;

    flex: 1 1 180px;
    min-width: 160px;
    max-width: 240px;

    display: flex;
    align-items: center;
    gap: 11px;

    padding: 10px 12px;

    background: #121216;
    border: 1px solid #25252c;
    border-radius: 8px;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.EnchiTopShouts__user:hover {
    transform: translateY(-2px);

    background: #17171c;
    border-color: #3b3b44;

    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.25);
}

/* Avatar */

.EnchiTopShouts__avatar {
    position: relative;

    width: 42px;
    height: 42px;
    min-width: 42px;
}

.EnchiTopShouts__avatar img,
.EnchiTopShouts__avatar .avatar {
    display: block;

    width: 42px !important;
    height: 42px !important;

    object-fit: cover;

    border: 2px solid #292930;
    border-radius: 50%;

    box-sizing: border-box;
}

/* Numer miejsca */

.EnchiTopShouts__rank {
    position: absolute;
    right: -3px;
    bottom: -3px;

    width: 17px;
    height: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;
    background: #34343c;

    border: 2px solid #121216;
    border-radius: 50%;

    font-size: 8px;
    font-weight: 800;
    line-height: 1;
}

/* Automatyczne numery miejsc */

.EnchiTopShouts__user:nth-child(1) .EnchiTopShouts__rank::before {
    content: "1";
}

.EnchiTopShouts__user:nth-child(2) .EnchiTopShouts__rank::before {
    content: "2";
}

.EnchiTopShouts__user:nth-child(3) .EnchiTopShouts__rank::before {
    content: "3";
}

.EnchiTopShouts__user:nth-child(n+4) .EnchiTopShouts__rank::before {
    content: "•";
}

/* Pierwsze miejsce */

.EnchiTopShouts__user:nth-child(1) {
    border-color: rgba(243, 204, 0, 0.28);
}

.EnchiTopShouts__user:nth-child(1) .EnchiTopShouts__avatar img,
.EnchiTopShouts__user:nth-child(1) .EnchiTopShouts__avatar .avatar {
    border-color: #f3cc00;
    box-shadow: 0 0 10px rgba(243, 204, 0, 0.22);
}

.EnchiTopShouts__user:nth-child(1) .EnchiTopShouts__rank {
    color: #171717;
    background: #f3cc00;
}

/* Drugie miejsce */

.EnchiTopShouts__user:nth-child(2) {
    border-color: rgba(195, 195, 195, 0.2);
}

.EnchiTopShouts__user:nth-child(2) .EnchiTopShouts__avatar img,
.EnchiTopShouts__user:nth-child(2) .EnchiTopShouts__avatar .avatar {
    border-color: #c3c3c3;
}

.EnchiTopShouts__user:nth-child(2) .EnchiTopShouts__rank {
    color: #171717;
    background: #c3c3c3;
}

/* Trzecie miejsce */

.EnchiTopShouts__user:nth-child(3) {
    border-color: rgba(146, 37, 37, 0.3);
}

.EnchiTopShouts__user:nth-child(3) .EnchiTopShouts__avatar img,
.EnchiTopShouts__user:nth-child(3) .EnchiTopShouts__avatar .avatar {
    border-color: #a94444;
}

.EnchiTopShouts__user:nth-child(3) .EnchiTopShouts__rank {
    background: #922525;
}

/* Informacje o użytkowniku */

.EnchiTopShouts__userInfo {
    min-width: 0;
    flex: 1;
}

.EnchiTopShouts__username {
    margin: 0 0 5px;
    padding: 0;

    overflow: hidden;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.EnchiTopShouts__username a {
    text-decoration: none;
}

.EnchiTopShouts__username a:hover {
    text-decoration: none;

    filter: brightness(1.2);
}

/* Liczba wpisów */

.EnchiTopShouts__shouts {
    display: flex;
    align-items: center;
    gap: 5px;

    color: #92929a;

    font-size: 10px;
    line-height: 1.3;
}

.EnchiTopShouts__shouts i {
    color: #ff7200;
    font-size: 11px;
}

.EnchiTopShouts__shouts strong {
    color: #d7d7dc;
    font-weight: 700;
}

/* Kolory pucharów pierwszych miejsc */

.EnchiTopShouts__user:nth-child(1) .EnchiTopShouts__shouts i {
    color: #f3cc00;
}

.EnchiTopShouts__user:nth-child(2) .EnchiTopShouts__shouts i {
    color: #c3c3c3;
}

.EnchiTopShouts__user:nth-child(3) .EnchiTopShouts__shouts i {
    color: #a94444;
}

/* Tablet */

@media screen and (max-width: 900px) {
    .EnchiTopShouts__user {
        max-width: none;
        flex-basis: calc(50% - 10px);
    }
}

/* Telefon */

@media screen and (max-width: 650px) {
    .EnchiTopShouts {
        padding-right: 10px;
        padding-left: 10px;
    }

    .EnchiTopShouts__accent {
        left: 10px;
    }

    .EnchiTopShouts__body {
        align-items: flex-start;
        gap: 12px;

        padding: 14px;
    }

    .EnchiTopShouts__icon {
        display: none;
    }

    .EnchiTopShouts__users {
        flex-direction: column;
    }

    .EnchiTopShouts__user {
        width: auto;
        max-width: none;
        min-width: 0;
        flex-basis: auto;
    }

    .EnchiTopShouts__yourCount {
        display: block;

        margin-top: 2px;
        margin-left: 0;
    }
}