/* 通话界面样式 */
.call-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.call-window {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #000;
}

.call-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.call-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.call-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
}

.call-user-name {
    font-size: 18px;
    font-weight: bold;
}

.call-status {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 5px;
}

.call-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.call-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.remote-videos-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    padding: 20px;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: auto;
    align-content: start;
}

.remote-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.remote-video-wrapper:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.02);
}

.remote-video-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}

.remote-video-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
}

.call-video-container {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#remote-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#local-video {
    position: absolute;
    bottom: 100px;
    right: 20px;
    width: 120px;
    height: 160px;
    border-radius: 10px;
    border: 2px solid white;
    object-fit: cover;
    background: #000;
}

.call-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    display: flex;
    justify-content: center;
    gap: 20px;
    z-index: 10;
}

.call-control-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.call-control-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.call-end-btn {
    background: #ff4444;
}

.call-end-btn:hover {
    background: #cc0000;
}

.call-icon {
    font-size: 24px;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .call-header {
        padding: 15px;
    }
    
    .call-avatar {
        width: 40px;
        height: 40px;
    }
    
    .call-user-name {
        font-size: 16px;
    }
    
    .call-status {
        font-size: 12px;
    }
    
    #local-video {
        width: 100px;
        height: 133px;
        bottom: 80px;
        right: 15px;
    }
    
    .call-controls {
        padding: 20px;
        gap: 15px;
    }
    
    .call-control-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

