/* 排行榜标题和列表 */
#leaderboard-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #4CAF50;
}

#leaderboard-list {
    list-style-type: none;
    max-height: 300px;
    overflow-y: auto;
}

/* 排行榜项目样式 */
.leaderboard-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    margin-bottom: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: background-color 0.3s;
}

.leaderboard-item:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* 排名特殊样式 */
.rank-1 { 
    background: linear-gradient(90deg, rgba(255, 217, 0,0.6), rgba(255, 215, 0, 0.1));
    border-left: 4px solid gold;
}
.rank-2 { 
    background: linear-gradient(90deg, rgba(192, 192, 192,0.6), rgba(192, 192, 192, 0.1));
    border-left: 4px solid silver;
}
.rank-3 { 
    background: linear-gradient(90deg, rgba(255, 149, 44,0.6), rgba(205, 127, 50, 0.1));
    border-left: 4px solid #cd7f32;
}

/* 玩家信息组件 */
.player-info {
    display: block;
    width:100px;
    white-space: nowrap;
    align-items: center;
}

.rank-number {
    font-weight: bold;
    font-size: 18px;
    margin-right: 15px;
    min-width: 30px;
    text-align: center;
}

.player-name {
    font-size: 16px;
}



.player-score {
    font-size: 18px;
    font-weight: bold;
    color: #f7ffbc;
}

.current-player {
    border: 4px solid #ffffff;
}

/* 控制按钮 */
#leaderboard-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.leaderboard-btn {
    padding: 8px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.leaderboard-btn:hover {
    background-color: #3d8d41;
}

.leaderboard-btn:disabled {
    background-color: #666;
    cursor: not-allowed;
}

/* 消息和状态组件 */
#loading-message, #error-message {
    text-align: center;
    padding: 20px;
    font-style: italic;
    color: #aaa;
}

#error-message {
    color: #ff6b6b;
}

.update-time {
    display: block;
    width:100px;
    text-align: left;
    font-size: 12px;
    color: #aaa;
    margin-top: 10px;
}