/* ===== 好友视频通话浮层样式 ===== */

/* 聊天头部「📹 视频通话」按钮 */
.btn-video-call {
    margin-left: auto;
    padding: 4px 12px;
    border: none;
    border-radius: 16px;
    background: #5a67d8;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
}
.btn-video-call:hover:not(:disabled) { background: #4c51bf; }
.btn-video-call:disabled {
    background: #cbd5e0;
    color: #718096;
    cursor: not-allowed;
}

/* 通话中全屏浮层 */
.call-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: #000;
}
.call-remote {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}
/* 自己小画面：右下角 */
.call-local {
    position: absolute;
    right: 16px;
    bottom: 96px;
    width: 120px;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, .6);
    background: #1a202c;
    z-index: 2;
}
.call-topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 14px 18px;
    color: #fff;
    font-size: 15px;
    background: linear-gradient(rgba(0, 0, 0, .55), transparent);
    z-index: 2;
}
.call-controls {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 2;
}
.call-ctl {
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .22);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}
.call-ctl:hover { background: rgba(255, 255, 255, .35); }
.call-ctl.off { background: rgba(0, 0, 0, .5); opacity: .8; }
/* 红色挂断按钮 */
.call-ctl.call-hangup { background: #e53e3e; }
.call-ctl.call-hangup:hover { background: #c53030; }

/* ===== 语音通话全屏浮层：深色底 + 中央头像/昵称/状态 + 底部圆形按钮（复用 .call-ctl） ===== */
.voice-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: #171923;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.voice-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 0;
}
.voice-avatar .mp-avatar {
    width: 96px;
    height: 96px;
    font-size: 42px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .12);
}
.voice-name { color: #fff; font-size: 20px; font-weight: 600; }
.voice-status { color: rgba(255, 255, 255, .72); font-size: 14px; letter-spacing: 1px; }
.voice-controls {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 0 0 56px;
}

/* 呼叫中 / 来电 居中浮窗 */
.call-dialog-mask {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .45);
}
.call-dialog {
    background: #fff;
    border-radius: 14px;
    padding: 28px 36px;
    text-align: center;
    min-width: 260px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
}
.call-dialog-icon { font-size: 40px; margin-bottom: 10px; }
.call-dialog-text { font-size: 16px; color: #2d3748; margin-bottom: 18px; }
.call-dialog-btns { display: flex; justify-content: center; gap: 14px; }
.call-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
}
.call-btn-accept { background: #38a169; }
.call-btn-accept:hover { background: #2f855a; }
.call-btn-reject { background: #e53e3e; }
.call-btn-reject:hover { background: #c53030; }

/* 轻提示 */
.call-toast {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5000;
    max-width: 80vw;
    padding: 10px 18px;
    border-radius: 8px;
    background: rgba(0, 0, 0, .78);
    color: #fff;
    font-size: 14px;
}
