/* ============================================= */
/* DIRECT CALL STYLES (прямой звонок, десктоп + мобиль) */
/* ============================================= */

/* ------ 1. Десктопный режим (по умолчанию) ------ */
.call-direct .call-container {
    background: #0a0a0a;
}

.call-direct .call-remote-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.call-direct .remote-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.call-direct .call-local-pip {
    width: 180px;
    height: 240px;
    bottom: 100px;
    right: 20px;
    border-radius: 12px;
}

/* Плейсхолдер (когда нет удалённого видео) */
.call-direct .call-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Панель управления фиксирована снизу */
.call-direct .call-controls {
    position: absolute;
    bottom: 30px;
}

/* ------ 2. Мобильный режим (max-width: 768px) ------ */
@media (max-width: 768px) {
    .call-direct .call-local-pip {
        width: 100px;
        height: 120px;
        bottom: 90px;
        right: 12px;
        border-radius: 50%;
    }

    .call-direct .placeholder-avatar {
        width: 100px;
        height: 100px;
    }
    .call-direct .placeholder-name {
        font-size: 20px;
    }
    .call-direct .placeholder-status {
        font-size: 14px;
    }

    .call-direct .call-controls {
        bottom: 20px;
        gap: 20px;
        padding: 12px;
    }
    .call-direct .call-btn {
        width: var(--call-btn-mobile-size);
        height: var(--call-btn-mobile-size);
        font-size: 20px;
    }
}

/* ------ 3. Дополнительно для очень маленьких экранов (max-width: 480px) ------ */
@media (max-width: 480px) {
    .call-direct .call-local-pip {
        width: 70px;
        height: 70px;
        bottom: 80px;
        right: 8px;
    }
    .call-direct .call-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}

/* ------ 4. Светлая тема для прямого звонка ------ */
body.light-theme .call-direct .call-container {
    background: #ffffff;
}
body.light-theme .call-direct .call-placeholder {
    background: #f0f2f5;
    color: #1e2a3a;
}
body.light-theme .call-direct .call-placeholder .placeholder-avatar {
    border-color: rgba(0, 0, 0, 0.2);
}
body.light-theme .call-direct .call-controls {
    background: rgba(255, 255, 255, 0.7);
}
body.light-theme .call-direct .call-btn {
    background: rgba(0, 0, 0, 0.1);
    color: #1e2a3a;
}
body.light-theme .call-direct .call-btn:hover {
    background: var(--primary);
    color: white;
}