#lobby {
    color: #282828;
}

#video_preview {
    /*width: 740px;*/
    transform: scaleX(-1);
    height: 555px;
    background-color: #202124;
    border-radius: 8px;
}

.container {
    max-width: 1200px;
    margin: auto;
    padding: 0 15px;
    box-sizing: border-box;
}

.video_preview_control {
    border: 1px solid #fff;
    border-radius: 50%;
    padding: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.video_preview_control:hover {
    background-color: rgba(255, 255, 255, 0.5);
}

.video_preview_control_off {
    background-color: #ea4336;
    border: 1px solid #ea4336;
}

.video_preview_control_off:hover {
    background-color: #bf3126;
    border: 1px solid #bf3126;
}

input {
    border-radius: 12px;
    padding: 10px 20px;
    height: 48px;
    font-family: intro, sans-serif !important;
    transition: transform .3s ease, background-color .3s ease, color .3s ease;
    color: #1f2732;
    font-size: 17px;
    letter-spacing: -.528px;
    box-sizing: border-box;
    border: 1px solid #282828;
}

input:focus {
    /*border: 2px solid #ff0000;*/
}

.ls_button {
    background-color: #3bd671;
    border-radius: 12px;
    padding: 10px 20px;
    height: 48px;
    box-shadow: 0 22px 40px 0 rgba(22, 205, 99, .18);
    border: none;
    cursor: pointer;
    font-family: intro, sans-serif !important;
    transition: transform .3s ease, background-color .3s ease, color .3s ease;
    text-transform: uppercase;
    color: #1f2732;
    font-size: 17px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: -.528px;
    box-sizing: border-box;
}

/* --- Стили для лобби --- */
.lobby_header {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lobby_header_time {
    font-size: 24px;
}

.lobby_content {
    margin-top: 100px;
    display: flex;
    gap: 30px;
    align-items: center;
}

.lobby_video_section {
    flex-shrink: 0; /* Предотвращает сжатие блока с видео */
}

.lobby_join_section {
    display: flex;
    justify-content: center;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* --- Адаптация под мобильные устройства --- */
@media (max-width: 1200px) {
    .lobby_content {
        flex-direction: column;
        margin-top: 30px;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .lobby_header {
        flex-direction: column;
        gap: 20px;
    }

    .lobby_video_section {
        width: 100%;
        max-width: 500px;
    }

    #video_preview {
        width: 100%;
        height: auto;
    }

    .lobby_join_section {
        text-align: center;
    }

    .lobby_join_section div:first-child {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .lobby_header_time {
        font-size: 20px;
    }
}

/* --- Стили для выбора устройств --- */
.lobby_device_controls {
    display: flex;
    gap: 30px;
    margin-top: 20px;
    justify-content: center;
    align-items: stretch;
}

.lobby_device_group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
    position: relative;
}

.lobby_device_header {
    display: flex;
    align-items: center;
    font-weight: 500;
    padding: 8px;
    border-radius: 10px;
    justify-content: center;
    cursor: pointer;
    border: 1px solid transparent;
}

.lobby_device_header:hover {
    border-color: #5f6368;
}

.lobby_device_header:has(.lobby_device_select_body:hover) {
    border-color: transparent;
}

.lobby_device_select_body {
    background-color: #EEE;
    position: absolute;
    left: 0;
    bottom: 50px;
    box-shadow: 0 3px 5px -1px rgba(0, 0, 0, .2), 0 6px 10px 0 rgba(0, 0, 0, .14), 0 1px 18px 0 rgba(0, 0, 0, .12);
    border-radius: 5px;
    padding: 10px;
    display: none;
    z-index: 1;
}

.lobby_device_header img {
    height: 20px;
    margin-top: 2px;
}

.lobby_device_select {
    background-color: #3c4043;
    border: 1px solid #5f6368;
    border-radius: 6px;
    color: #e3e3e3;
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.lobby_device_select:hover {
    border-color: #8ab4f8;
}

.lobby_device_select:focus {
    outline: none;
    border-color: #8ab4f8;
    box-shadow: 0 0 0 2px rgba(138, 180, 248, 0.2);
}

.lobby_device_select option {
    background-color: #3c4043;
    color: #e3e3e3;
}

/* Адаптивность для выбора устройств */
@media (max-width: 768px) {
    .lobby_device_controls {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .lobby_device_group {
        min-width: 250px;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .lobby_device_group {
        min-width: auto;
    }

    .lobby_device_select {
        font-size: 16px; /* Предотвращает zoom на iOS */
    }
}