/* Стили звонков и блоков с видео */

.call-invite__avatars img{
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.call-invite.is-ended {
    opacity: 0.9;
}

.call-invite__ended {
    font-size: 16px;
    font-weight: 700;
    color: white;
}

.call-invite.is-ended .call-invite__avatars {
    display: none;
}

.call-invite.is-ended .call-invite__join-btn {
    display: none;
}

.call-invite__join-btn{
    background: rgba(234, 140, 249, 1.0);
}

.tile__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.18);
}

.tile__avatar-wrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
}

.remote-video-block {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.remote-video-watch-btn {
    align-self: flex-start;
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: 600;
}

.remote-video-status {
    font-size: 13px;
    opacity: 0.8;
}

.remote-video-status--error {
    color: #d9534f;
}

.remote-video-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
}

.remote-video-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
}

.remote-video-modal__dialog {
    position: absolute;
    inset: 5% 5%;
    background: #111;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.remote-video-modal__close {
    align-self: flex-end;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.remote-video-modal__title {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.remote-video-modal__player {
    width: 100%;
    height: 100%;
    max-height: calc(100% - 48px);
    background: #000;
    border-radius: 12px;
}

@media (max-width: 1000px) and (orientation: portrait) {
    .call__stage{
        max-width: 100%;
    }

    .call__topbar{
        flex-wrap: wrap;
    }
}

.group-call-channels-modal.hidden {
    display: none !important;
}

.group-call-channels-modal {
    position: fixed;
    inset: 0;
    z-index: 1000010;
}

.group-call-channels-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 10, 18, 0.72);
}

.group-call-channels-modal__sheet {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100vw - 24px));
    max-height: min(82vh, 760px);
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(90, 118, 152, 0.7);
    background: rgb(36 49 65);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    color: white;
}

.group-call-channels-modal__sheet--editor {
    width: min(620px, calc(100vw - 24px));
}

.group-call-channels-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.group-call-channels-modal__title {
    font-size: 1.15rem;
    font-weight: 700;
}

.group-call-channels-modal__subtitle {
    margin-top: 4px;
    color: #bfd0e4;
    font-size: 0.92rem;
}

.group-call-channels-modal__close {
    width: auto;
    min-width: 40px;
    padding: 8px 10px;
    border: none;
    border-radius: 10px;
    background: #343c63;
    color: white;
    cursor: pointer;
}

.group-call-channels-modal__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.group-call-channel-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
    padding: 12px;
    border: 1px solid rgba(90, 118, 152, 0.65);
    border-radius: 16px;
    background: rgba(17, 24, 35, 0.7);
}

.group-call-channel-card__main {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
    padding: 0;
}

.group-call-channel-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.group-call-channel-card__meta {
    margin-top: 4px;
    font-size: 0.9rem;
    color: #bfd0e4;
    overflow: hidden;
    text-overflow: ellipsis;
}

.group-call-channel-card__people {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
}

.group-call-channel-card__avatar {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255,255,255,0.14);
}

.group-call-channel-card__more {
    color: #d7e4f1;
    font-size: 0.95rem;
    font-weight: 700;
}

.group-call-channel-card__status {
    margin-left: auto;
    max-width: 100%;
    font-size: 0.88rem;
    color: #8fe3aa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.group-call-channel-card__edit {
    width: auto;
    min-width: 110px;
    flex-shrink: 0;
    padding: 10px 14px;
    border: none;
    border-radius: 12px;
    background: #343c63;
    color: white;
    cursor: pointer;
}

.group-call-channels-modal__create,
.group-call-channels-modal__save {
    margin-top: 14px;
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
    background: #343c63;
    color: white;
    cursor: pointer;
}

.group-call-channels-modal__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.group-call-channels-modal__field input {
    width: 100%;
    border: 1px solid rgba(90, 118, 152, 0.75);
    border-radius: 12px;
    background: rgba(17, 24, 35, 0.7);
    color: white;
    padding: 12px;
}

.group-call-channels-modal__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.group-call-channel-chip {
    width: auto;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(90, 118, 152, 0.55);
    background: rgba(17, 24, 35, 0.7);
    color: white;
    cursor: pointer;
}

.group-call-channel-chip.is-selected {
    border-color: #55d88a;
    box-shadow: inset 0 0 0 1px #55d88a;
}

.group-call-channels-empty {
    padding: 18px 12px;
    text-align: center;
    color: #bfd0e4;
    border-radius: 16px;
    background: rgba(17, 24, 35, 0.55);
}

@media (max-width: 1000px) {
    .group-call-channels-modal__sheet {
        top: auto;
        left: 50%;
        bottom: 10px;
        transform: translateX(-50%);
        width: calc(100vw - 12px);
        max-height: 82vh;
        border-radius: 18px;
    }

    .group-call-channel-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .group-call-channel-card__status {
        margin-left: 0;
    }

    .group-call-channel-card__edit {
        width: 100%;
    }
}
