/* public/css/call/call-group.css */
.call-group .call-container {
    background: #1e1e2f;
}

.call-group .call-content {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* Сетка видео с анимацией появления */
.call-group .videos-grid {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.call-group .video-tile {
    position: relative;
    background: #2a2a3a;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.call-group .video-tile:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Имя участника с анимацией появления */
.call-group .participant-label {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 13px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: opacity 0.2s;
}

.call-group .participant-label .badge {
    background: var(--primary);
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
}

/* Полноэкранная кнопка */
.call-group .fullscreen-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, transform 0.1s;
}

.call-group .video-tile:hover .fullscreen-btn {
    opacity: 1;
}

.fullscreen-btn:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.7);
}

/* Панель участников (анимированная) */
.call-group .participants-panel {
    width: 320px;
    background: var(--call-participant-panel-bg, rgba(30, 30, 47, 0.95));
    backdrop-filter: blur(12px);
    border-left: 1px solid var(--call-glass-border);
    padding: 20px;
    overflow-y: auto;
    color: white;
    animation: slideInRight 0.25s ease;
}

.call-group .participants-panel h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
}

.participant-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--call-participant-item-border, rgba(255,255,255,0.05));
}

.participant-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.muted-icon, .video-off-icon {
    font-size: 12px;
    color: #ff9800;
}

.role-badge {
    background: var(--call-participant-role-bg, #3a3a4a);
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 20px;
}

/* Запросы на вступление */
.join-requests-section {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--call-glass-border);
}

.section-title {
    font-size: 12px;
    opacity: 0.7;
    margin-bottom: 8px;
}

/* Шапка группового звонка */
.call-group .call-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(12px);
    color: white;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.call-group .call-title {
    font-size: 18px;
    font-weight: 500;
}

.call-duration {
    margin-left: 12px;
    font-size: 14px;
    opacity: 0.7;
    font-family: monospace;
}

.header-buttons {
    display: flex;
    gap: 12px;
}

.btn-icon {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: background 0.2s, transform 0.1s;
}

.btn-icon:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.participants-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.request-badge {
    background: #ff9800;
}

/* Анимации */
@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .call-group .videos-grid {
        grid-template-columns: 1fr;
        padding: 8px;
    }
    .call-group .participants-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-height: 60vh;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
        transition: transform 0.3s;
    }
    .call-group .participants-panel.open {
        transform: translateY(0);
    }
    .call-group .call-header {
        padding: 8px 16px;
    }
}

/* Светлая тема */
body.light-theme .call-group .call-container {
    background: #ffffff;
}
body.light-theme .call-group .call-header {
    background: rgba(0, 0, 0, 0.05);
    color: #1e2a3a;
}
body.light-theme .call-group .participants-panel {
    background: rgba(255, 255, 255, 0.95);
    color: #1e2a3a;
}