body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #000;
    overflow: hidden;
    -webkit-overflow-scrolling: touch; /* Для iOS прокрутки, если нужно */
}
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 1;
}
#remoteVideo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#localVideo {
    position: fixed;
    top: 10px;
    right: 10px;
    width: 25%;
    max-width: 150px;
    height: auto;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    z-index: 30;
}
#mainScreen {
    position: relative;
    text-align: center;
    color: #fff;
    z-index: 10;
}
#controls {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: 90%;
    max-width: 600px;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}
#connectionStatus {
    color: green;
    margin-bottom: 10px;
    font-weight: bold;
}
#callNotification {
    display: none;
    position: fixed;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 10px;
    border: 1px solid #555;
    border-radius: 5px;
    z-index: 40;
    text-align: center;
    max-width: 90%;
}
#callNotification p {
    margin: 0 0 10px 0;
    font-size: 14px;
}
#nickChangeForm {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 5px;
    max-width: 90%;
}
input, button {
    margin: 5px;
    padding: 8px;
    background-color: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 5px;
    font-size: 14px;
    flex: 1;
    min-width: 100px;
}
button {
    cursor: pointer;
}
@media screen and (max-width: 600px) {
    #localVideo {
        width: 30%;
        max-width: 120px;
        top: 5px;
        right: 5px;
    }
    #controls {
        bottom: 5px;
        width: 95%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    #callNotification {
        bottom: 90px;
        padding: 10px;
        max-width: 95%;
    }
    #callNotification p {
        font-size: 14px;
    }
    #nickChangeForm {
        flex-wrap: wrap;
        gap: 8px;
    }
    input, button {
        padding: 10px;
        font-size: 15px;
        min-width: 90px;
    }
}
@media screen and (max-width: 400px) {
    #localVideo {
        width: 25%;
        max-width: 100px;
    }
    #controls {
        gap: 6px;
    }
    #callNotification {
        bottom: 80px;
        padding: 8px;
    }
    #nickChangeForm {
        gap: 6px;
    }
    input, button {
        padding: 8px;
        font-size: 14px;
        min-width: 80px;
    }
}