/* =========================================================
   Videocall module — scoped to .vc-wrap
   ========================================================= */
.vc-wrap {
    --vc-bg:     #0d0d12;
    --vc-card:   #16161f;
    --vc-panel:  #1e1e2a;
    --vc-border: #2a2a38;
    --vc-text:   #f0f0f5;
    --vc-muted:  #8888a0;
    --vc-input:  rgba(0,0,0,.25);

    background:    var(--vc-card);
    border:        1px solid var(--vc-border);
    border-radius: 20px;
    overflow:      hidden;
    box-shadow:    0 20px 40px rgba(0,0,0,.4);
    max-width:     800px;
    margin:        40px auto;
    color:         var(--vc-text);
    font-family:   'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
.vc-wrap *, .vc-wrap *::before, .vc-wrap *::after { box-sizing: border-box; }

/* ── Шапка ── */
.vc-wrap .vc-header {
    display: flex; align-items: center; gap: 15px;
    padding: 20px 25px;
    border-bottom: 1px solid var(--vc-border);
    background: rgba(255,255,255,.02);
}
.vc-wrap .vc-icon {
    width: 48px; height: 48px; border-radius: 14px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,.2);
}
.vc-wrap .vc-header-text { flex: 1; }
.vc-wrap .vc-title   { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.vc-wrap .vc-subtitle { font-size: 13px; color: var(--vc-muted); margin: 0; }

/* ── Тело ── */
.vc-wrap .vc-body { padding: 25px; }

/* ── Панель выбора сети ── */
.vc-wrap .vc-network-panel {
    margin-bottom: 25px;
    background: var(--vc-input);
    padding: 8px;
    border-radius: 18px;
    border: 1px solid var(--vc-border);
}
.vc-wrap .vc-route-tabs {
    position: relative; display: flex;
    background: rgba(0,0,0,.25); border-radius: 14px;
    padding: 5px; gap: 5px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,.2);
}
.vc-wrap .vc-route-slider {
    position: absolute; top: 5px; bottom: 5px; left: 5px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,.3);
    transition: left .4s cubic-bezier(.34,1.15,.64,1), width .4s cubic-bezier(.34,1.15,.64,1);
    z-index: 1; pointer-events: none;
}
.vc-wrap .vc-route-tab {
    flex: 1; position: relative; z-index: 2;
    padding: 12px 10px; border: none; background: transparent;
    color: var(--vc-muted); font-weight: 600; cursor: pointer;
    border-radius: 10px; font-size: 13px; font-family: inherit;
    transition: color .3s;
}
.vc-wrap .vc-route-tab:disabled { opacity: .5; cursor: not-allowed; }
.vc-wrap .vc-route-tab.active   { color: #fff; }

.vc-wrap .vc-network-desc {
    padding: 14px 10px 5px;
    font-size: 13px; color: var(--vc-muted); line-height: 1.6; text-align: center;
}
.vc-wrap .vc-pro-wrap {
    padding: 0 10px 10px;
    display: flex; align-items: center; gap: 10px;
}
.vc-wrap .vc-pro-wrap i { color: var(--vc-muted); flex-shrink: 0; }
.vc-wrap .vc-pro-wrap input {
    flex: 1; background: rgba(0,0,0,.2); border: 1px solid var(--vc-border);
    color: #fff; padding: 11px 14px; border-radius: 12px; font-size: 14px;
    outline: none; font-family: inherit;
    transition: border-color .2s;
}
.vc-wrap .vc-pro-wrap input:focus { border-color: #a855f7; }

/* ── Ввод комнаты ── */
.vc-wrap .vc-room-row { display: flex; gap: 10px; margin-bottom: 14px; }
.vc-wrap #vc-room-id {
    flex: 1; background: var(--vc-input); border: 1px solid var(--vc-border);
    color: #fff; padding: 15px; border-radius: 14px; font-size: 20px;
    text-align: center; letter-spacing: 6px; font-family: monospace; outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.vc-wrap #vc-room-id:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 2px rgba(168,85,247,.2);
}
.vc-wrap .vc-btn-icon {
    width: 56px; border: none; border-radius: 14px;
    background: var(--vc-panel); color: var(--vc-muted);
    font-size: 20px; cursor: pointer; transition: .2s;
}
.vc-wrap .vc-btn-icon:hover { background: var(--vc-border); color: #fff; }

/* ── Статус комнаты ── */
.vc-wrap .vc-room-status {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 13px; color: var(--vc-muted); margin-bottom: 22px; text-align: center;
}
.vc-wrap .vc-status-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #3f3f46; flex-shrink: 0; transition: .3s;
}
.vc-wrap .vc-status-dot.green  { background: #10b981; box-shadow: 0 0 8px #10b981; }
.vc-wrap .vc-status-dot.yellow { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }
.vc-wrap .vc-status-dot.red    { background: #ef4444; box-shadow: 0 0 8px #ef4444; }

/* ── Кнопки ── */
.vc-wrap .vc-call-btns { display: flex; gap: 12px; }
.vc-wrap .vc-btn {
    flex: 1; padding: 16px; border: none; border-radius: 14px;
    color: #fff; font-size: 15px; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: .2s;
}
.vc-wrap .vc-btn:disabled         { opacity: .5; cursor: not-allowed; }
.vc-wrap .vc-btn:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.vc-wrap .vc-btn-alt              { background: var(--vc-panel); }
.vc-wrap .vc-btn-alt:not(:disabled):hover { background: var(--vc-border); }
.vc-wrap .vc-btn-danger           { background: #ef4444; width: 100%; }
.vc-wrap .vc-btn-danger:not(:disabled):hover { background: #dc2626; box-shadow: 0 6px 20px rgba(239,68,68,.3); }

/* ── Сообщения ── */
.vc-wrap .vc-message {
    text-align: center; font-size: 14px; font-weight: 600;
    padding: 12px 15px; margin-bottom: 15px; border-radius: 12px;
}

/* ── Видеосетка ── */
.vc-wrap .vc-video-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px;
}
@media (max-width: 650px) {
    .vc-wrap .vc-video-grid { grid-template-columns: 1fr; }
    .vc-wrap .vc-body       { padding: 16px; }
}
.vc-wrap .vc-video-box {
    background: #000; border-radius: 16px; overflow: hidden;
    aspect-ratio: 4/3; position: relative;
    border: 1px solid var(--vc-border);
}
.vc-wrap .vc-video-box video { width: 100%; height: 100%; object-fit: cover; display: block; }

.vc-wrap .vc-video-label {
    position: absolute; top: 12px; left: 12px;
    background: rgba(0,0,0,.6); padding: 5px 12px; border-radius: 8px;
    font-size: 12px; color: #fff; font-weight: 600;
    backdrop-filter: blur(4px);
}

/* ── Управление медиа ── */
.vc-wrap .vc-media-btns {
    position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px;
    background: rgba(0,0,0,.6); padding: 6px 14px; border-radius: 20px;
}
.vc-wrap .vc-media-btns button {
    background: transparent; border: none; color: #fff;
    cursor: pointer; font-size: 16px; padding: 4px 6px;
    transition: opacity .2s;
}
.vc-wrap .vc-media-btns button:hover { opacity: .7; }

/* ── Полноэкранная кнопка ── */
.vc-wrap .vc-fullscreen-btn {
    position: absolute; top: 12px; right: 12px;
    background: rgba(0,0,0,.6); border: none; color: #fff;
    width: 34px; height: 34px; border-radius: 10px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 14px; backdrop-filter: blur(4px); transition: .2s;
}
.vc-wrap .vc-fullscreen-btn:hover { background: rgba(0,0,0,.85); }