/* 在线玩家列表面板 */

.online-players-content {
    position: relative;
    max-width: 460px;
    width: 94%;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    padding: 22px 22px 16px;
    text-align: left;
}

.online-players-content h2 { margin: 0 0 6px; font-size: 19px; }

.op-stats {
    font-size: 12.5px;
    line-height: 1.7;
    opacity: 0.8;
    padding: 8px 11px;
    border-radius: 9px;
    background: rgba(139, 123, 216, 0.12);
    border: 1px solid rgba(139, 123, 216, 0.22);
    margin-bottom: 10px;
}
.op-stats b { color: var(--accent, #4f8cff); font-weight: 700; }

.op-list {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 120px;
    max-height: 52vh;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-right: 2px;
}

.op-row {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 9px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13.5px;
}
.op-row.me {
    background: rgba(79, 140, 255, 0.13);
    border-color: rgba(79, 140, 255, 0.4);
}
.op-avatar {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.16);
}
.op-avatar svg { width: 26px; height: 26px; display: block; }
.op-name {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}
.op-name em { font-style: normal; opacity: 0.6; font-size: 11px; margin-left: 4px; }
.op-acc {
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 999px;
    opacity: 0.7;
    background: rgba(74, 222, 128, 0.16);
    color: #86efac;
    white-space: nowrap;
}
.op-badge {
    flex: 0 0 auto;
    font-size: 10.5px;
    padding: 2px 7px;
    border-radius: 999px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.09);
    opacity: 0.85;
}
.op-badge.playing { background: rgba(248, 113, 113, 0.18); color: #fca5a5; }
.op-badge.waiting { background: rgba(251, 191, 36, 0.18); color: #fcd34d; }
.op-badge.spectating { background: rgba(139, 123, 216, 0.22); color: #c4b5fd; }

.op-empty {
    text-align: center;
    font-size: 13px;
    opacity: 0.6;
    padding: 26px 0;
}

.op-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}
.op-foot-hint { font-size: 11.5px; opacity: 0.55; }
.op-refresh { width: auto; margin: 0; padding: 7px 16px; font-size: 13px; }

/* 右上角「在线玩家」按钮上的在线人数角标 */
.start-corner-btn .players-btn-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    box-sizing: border-box;
    border-radius: 999px;
    background: #37b24d;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.75);
}

/* 「申请联机」按钮（在线玩家行内） */
.op-invite {
    flex: 0 0 auto;
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 600;
    color: #fff;
    background: #2f9e44;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    transition: filter .16s, transform .12s;
}
.op-invite:hover { filter: brightness(1.1); }
.op-invite:active { transform: scale(.96); }
.op-invite:disabled { opacity: .5; cursor: not-allowed; }
