html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    font-family: sans-serif;
    background-color: #000;
    color: white;
    overflow: hidden;
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
}

#remoteVideo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#localVideo {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 20vw;
    max-width: 180px;
    height: 15vh;
    max-height: 150px;
    border: 2px solid white;
    border-radius: 10px;
    z-index: 10;
    /* ЗЕРКАЛЬНОЕ ОТОБРАЖЕНИЕ ТОЛЬКО ДЛЯ ЛОКАЛЬНОГО ПРОСМОТРА */
    transform: scaleX(-1);
    object-fit: cover;
    cursor: pointer;
}

/* Таймер под локальным видео - прозрачный фон */
.timer {
    position: absolute;
    top: calc(20px + 15vh + 10px);
    left: 20px;
    width: 20vw;
    max-width: 180px;
    background-color: transparent;
    color: #4CAF50;
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 16px;
    font-weight: bold;
    z-index: 15;
}

.timer.warning {
    color: #f44336;
}

/* Остальные стили без изменений... */

.controls {
    position: absolute;
    top: 20px;
    left: calc(20px + 20vw + 10px);
    max-left: calc(20px + 180px + 10px);
    display: flex;
    flex-direction: row;
    gap: 10px;
    z-index: 20;
}

.control-button {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.control-button:active {
    transform: scale(0.95);
}

.status-notifications {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    text-align: center;
}

.status-notification {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    margin: 5px 0;
    font-size: 14px;
    backdrop-filter: blur(5px);
}

.status-audio-muted {
    border-left: 4px solid #f44336;
}

.status-video-off {
    border-left: 4px solid #ff9800;
}

.status-connected {
    border-left: 4px solid #4CAF50;
}

/* Стили для постоянных уведомлений о статусе собеседника (ПЕРЕМЕЩЕНЫ ВНИЗ СПРАВА) */
.persistent-notifications {
    position: absolute;
    bottom: 70px;
    right: 20px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.persistent-notification {
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 15px;
    margin: 5px 0;
    font-size: 14px;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.persistent-notification.audio-muted {
    border-left: 4px solid #f44336;
}

.persistent-notification.video-off {
    border-left: 4px solid #ff9800;
}

.persistent-notification.hidden {
    display: none;
}

/* Стили для кнопки обновления */
.reload-button {
    padding: 12px 24px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.3s;
}

.reload-button:hover {
    background-color: #45a049;
}

/* Стили для мобильных уведомлений (ПЕРЕМЕЩЕНЫ ВНИЗ) */
.mobile-alert {
    position: fixed;
    bottom: 100px;
    left: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px;
    z-index: 1000;
    text-align: center;
    border-radius: 8px;
    font-size: 14px;
}

/* Стили для блокировки премиум */
.premium-blocked {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    font-family: sans-serif;
    text-align: center;
}

.premium-message {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ff9800;
    font-weight: bold;
}

.premium-timer {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 30px;
}
