.profile__video-trigger,
.medic__visit[data-doctor-video-src] {
    border: 0;
    cursor: pointer;
    appearance: none;
}

.medic__visit[data-doctor-video-src] {
    background: transparent;
    color: inherit;
    text-align: inherit;
    border: .0625rem solid #72969f;
}

.profile__video-play {
    position: relative;
    display: block;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border: 1px solid currentColor;
    border-radius: 50%;
}

.profile__video-play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 52%;
    transform: translate(-50%, -50%);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 7px solid currentColor;
}

.doctor-video-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.doctor-video-modal_open {
    display: flex;
}

.doctor-video-modal__overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(8, 20, 19, 0.72);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.doctor-video-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 540px);
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    padding: 24px;
    overflow: auto;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(8, 20, 19, 0.28);
}

.doctor-video-modal__title {
    margin: 0 52px 20px 0;
    font-size: 24px;
    line-height: 1.2;
}

.doctor-video-modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f2f5f4;
    cursor: pointer;
}

.doctor-video-modal__close::before,
.doctor-video-modal__close::after {
    content: "";
    position: absolute;
    top: 17px;
    left: 10px;
    width: 16px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.doctor-video-modal__close::before {
    transform: rotate(45deg);
}

.doctor-video-modal__close::after {
    transform: rotate(-45deg);
}

.doctor-video-modal__frame {
    width: 100%;
    aspect-ratio: 9 / 16;
    overflow: hidden;
    border-radius: 16px;
    background: #111;
}

.doctor-video-modal__video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.doctor-video-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .doctor-video-modal {
        padding: 12px;
    }

    .doctor-video-modal__dialog {
        width: min(100%, 420px);
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
        padding: 16px;
        border-radius: 18px;
    }

    .doctor-video-modal__title {
        margin-bottom: 14px;
        font-size: 20px;
    }

    .doctor-video-modal__close {
        top: 12px;
        right: 12px;
    }
}