﻿#video-call {
    position: relative;
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 4 / 3;
    margin: 0 auto;
    background: #000;
    overflow: hidden;
    border-radius: 4px;
}

    /* Solo participant */
    #video-call.solo-participant #remote-videos {
        display: none;
    }

    #video-call.solo-participant #local-video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        max-width: none;
        min-width: 0;
        aspect-ratio: auto;
        border: none;
        border-radius: 0;
    }

    /* Once someone joins */
    #video-call.in-call #remote-videos {
        display: grid;
    }

    #video-call.in-call #local-video {
        position: absolute;
        right: 15px;
        bottom: 15px;
        width: 22%;
        max-width: 200px;
        min-width: 120px;
        aspect-ratio: 4 / 3;
        border: 1px solid white;
        border-radius: 4px;
        overflow: hidden;
        background: #000;
        box-shadow: 0 4px 15px rgba(0,0,0,.4);
        z-index: 10;
    }

#remote-videos {
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0px, 1fr));
    gap: 6px;
    background: #000;
    overflow: hidden;
}

    #remote-videos video {
        width: auto !important;
        height: 100% !important;
        max-width: 100%;
        max-height: 100%;
        display: block;
        object-fit: contain !important;
        background: #000;
    }

.participant-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.participant-name {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 8px;
    background: rgba(0,0,0,.6);
    color: white;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial;
    pointer-events: none;
}

#local-video {
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 22%;
    max-width: 200px;
    min-width: 120px;
    aspect-ratio: 4 / 3;
    border: 1px solid white;
    border-radius: 4px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 15px rgba(0,0,0,.4);
    z-index: 10;
}

    #local-video video {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: contain;
        background: #000;
        transform: scaleX(-1);
    }

#waiting-message {
    display: none;
    position: absolute;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    padding: 8px 14px;
    background: rgba(0, 0, 0, .65);
    color: white;
    border-radius: 6px;
    font-size: 25px;
    z-index: 15;
    pointer-events: none;
}

#video-call.solo-participant #waiting-message {
    display: block;
}

.video-status-alert {
    display: none;
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    margin: 0;
    cursor: pointer;
    font-size: 16px;
}
