/* PlayerList 样式 - 简化版本，兼容低级浏览器 */

/* 房间分组样式 */
.room-group {
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

/* 玩家列表项样式 */
.player-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin: 0;
    min-height: 60px;
    box-sizing: border-box;
}

.player-item:nth-child(odd) {
    background-color: rgba(100, 150, 255, 0.05);
}

.player-item:nth-child(even) {
    background-color: rgba(255, 150, 100, 0.05);
}

.player-item:nth-child(odd):hover {
    background-color: rgba(100, 150, 255, 0.1);
}

.player-item:nth-child(even):hover {
    background-color: rgba(255, 150, 100, 0.1);
}

.player-item.my-player {
    background-color: rgba(0, 120, 215, 0.1);
    border-left: 4px solid #0078d7;
}

/* 玩家信息容器 */
.player-info {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0; /* 防止flex子项溢出 */
}

.player-info>* {
    margin-right: 15px;
}

.player-info>*:last-child {
    margin-right: 0;
}

.player-details {
    display: flex;
    flex-direction: column;
}

.player-details>* {
    margin-bottom: 5px;
}

.player-details>*:last-child {
    margin-bottom: 0;
}

/* 玩家昵称 */
.player-nickname {
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px; /* 限制最大宽度 */
}

.player-nickname.my-player {
    border-bottom: 2px solid #0078d7;
    padding-bottom: 2px;
}

/* 玩家操作区域 */
.player-actions {
    display: flex;
    align-items: center;
}

.player-actions>* {
    margin-right: 12px;
}

.player-actions>*:last-child {
    margin-right: 0;
}

/* 状态标签 */
.status-badge {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: white;
    font-weight: 500;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* 观战按钮 */
.spectate-btn {
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    color: white;
    font-weight: 500;
    border: 1px solid rgba(156, 39, 176, 0.25);
    background-color: #9c27b0;
    border: none;
    cursor: pointer;
    margin: 0 10px;
}

.spectate-btn:hover {
    background-color: #7b1fa2;
}

/* 空状态提示 */
.empty-state {
    text-align: center;
    color: #888;
    padding: 20px;
    font-style: italic;
}

/* 段位说明区域 */
.rank-legend {
    margin-top: 20px;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.rank-legend-title {
    color: white;
    font-weight: bold;
    margin-bottom: 10px;
    text-align: center;
}

.rank-legend-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 12px;
}

.rank-legend-content>* {
    margin-right: 15px;
    margin-bottom: 5px;
}

.rank-item {
    font-weight: 500;
}