@import "./import.css";
/*---------------------------
ranking
----------------------------*/
.ranking_content {
    width: 100%;
    margin-bottom: 1rem;
}

.guide_message {
    text-align: left;
    color: var(--site-gray-color);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.nodata_message {
    width: calc(100% - 2rem);
    background: repeating-linear-gradient(
        45deg,
        #ffffff,
        #ffffff 2px,
        #f8f9fa 2px,
        #f8f9fa 4px
    );
    padding: 4rem 1.25rem;
    margin: 1rem auto;
    border-radius: 4px;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
}

.nodata_message::before {
    content: "⚠️";
    font-size: 1.1rem;
    margin-right: 0.5rem;
    opacity: 0.8;
}

@media screen and (max-width: 640px) {
    .ranking_content {
        margin-bottom: 1rem;
    }

    .guide_message {
        padding: 0 0.25rem;
    }
    
    .nodata_message {
        margin: 0.75rem auto;
        padding: 3rem 1rem;
        font-size: 0.9rem;
    }
    
    .nodata_message::before {
        font-size: 1rem;
        margin-right: 0.4rem;
    }
}

/* ランキング内部 */
.ranking_list {
    list-style: none;
}

/* .ranking_list:not(:has(.nodata)) {
    border-bottom: 1px dotted var(--site-off-white-color);
} */

.ranking_list > li {
    border-bottom: 1px dotted var(--site-off-white-color);
}

.ranking_list > li:last-child {
    border-bottom: none;
}

.ranking_list_item {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0.5rem 1.5rem;
    gap: 1.5rem;
    transition: .2s;
}

.ranking_list_item:hover {
    transform: scale(1.01);
}

.rank_number {
    text-align: center;
    line-height: 30px;
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: #333;
    background-color: #e6e9ed;
    flex-shrink: 0;
}

.rank_number.first {
    color: #fff;
    background-image: linear-gradient(135deg, #f3e867, #f9d162, #a98522, #876c20, #b89942, #ffff91);
    border: 1px solid #a98522;
    background-color: none;
}

.rank_number.second {
    color: #fff;
    background-image: linear-gradient(135deg, #ececec, #bbbbbb, #a0a0a0, #797979, #a2a1a1, #d4d4d4);
    border: 1px solid #a0a0a0;
    background-color: none;
}

.rank_number.third {
    color: #fff;
    background-image: linear-gradient(135deg, #fe9c37, #da9356, #ab6b36, #9f643a, #d18764, #ffd6ac);
    border: 1px solid #ab6b36;
    background-color: none;
}

.rank_player_photo {
    width: 80px;
    height: 80px;
}

.rank_player_photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 2px;
}

.rank_player_info {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.rank_player_info .player {
    width: 45%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
}

.rank_player_info .player .player_info {
    padding: 6px 8px;
    background-color: var(--site-off-white-color);
    border-radius: 2px;
    color: var(--site-gray-color);
    min-width: fit-content;
}

.rank_player_info .player .player_info span {
    padding: 0 2px;
}

.rank_player_info .player .player_name {
    font-weight: 600;
}

.rank_player_info .emblem {
    width: 55%;
    display: flex;
    align-items: center;
    justify-self: flex-start;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 400;
}

.rank_player_info .emblem img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.rank_player_info .emblem .team {
    text-align: left;
    width: auto;
    font-size: 1rem;
}

.point_block {
    width: fit-content;
}

.point {
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
}

.point span {
    font-size: 1.7rem;
    margin-right: 4px;
    color: #222;
}

.point br {
    display: none;
}

@media screen and (max-width: 768px) {
    .ranking_list_item {
        gap: 1rem;
        padding: 0.5rem 1rem;
    }

    .rank_player_photo {
        width: 64px;
        height: 64px;
    }

    .point br {
        display: inline-block;
    }
}

@media screen and (max-width: 640px) {
    .ranking_list_item {
        gap: 1.1rem;
        padding: 0.6rem 1.1rem;
    }

    .rank_number {
        width: 26px;
        height: 26px;
        line-height: 24px;
        font-size: 0.8rem;
    }

    .rank_player_photo {
        width: 56px;
        height: 56px;
    }

    .rank_player_info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .rank_player_info .player {
        font-size: 0.9rem;
        width: 100%;
    }

    .rank_player_info .player .player_info {
        display: none;
    }

    .rank_player_info .emblem {
        font-size: 0.7rem;
        width: 100%;
        gap: 6px;
    }

    .rank_player_info .emblem img {
        width: 28px;
        height: 28px;
    }

    .rank_player_info .emblem .team {
        font-size: 0.7rem;
        line-height: 1rem;
    }

    .point {
        font-size: 0.65rem;
        line-height: 1rem;
        font-weight: normal;
    }

    .point span {
        font-size: 1.3rem;
        line-height: 1.2;
        font-weight: bold;
        margin-right: 0;
    }
}