.video-panel {
    position: relative;
}
.video-container {
    position: relative;
    display: grid;
    isolation: isolate;
    margin-bottom: 0.5em;
}

.video-preview-info {
    font-size: small;
    line-height: 1;
    margin: 0;
    text-align: center;

}

@media (min-width: 992px) {
    .video-container {
        margin-bottom: 1em;
    }
    .video-preview-info {
        position: absolute;
        top: calc(100% + 5px);
        left: 0;
        right: 0;
    }
}

.video-preview.--mirror {
    transform: scaleX(-1);
}

.video-preview-container,
.video-player-container {
    display: grid;
    margin: 0 auto;
    grid-area: 1 / 1;
    transition: opacity 0.3s ease;
    position: relative;
}

.video-player-container .video-player,
.video-preview-container .video-preview {
    display: block;
    grid-area: 1 / 1;
    min-height: 180px;
    max-height: 420px;
}

.video-preview-controls {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5), transparent 3em);
}

.video-preview-controls .timestamp {
    font-size: 0.85em;
    position: absolute;
    bottom: 0.5em;
    right: 1em;
    color: white;
}

.video-response--silent-warn {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: white;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    padding: 1rem;
}
.video-response--silent-warn.--show {
    visibility: visible;
}
.video-response--silent-warn.--shown {
    opacity: 1;
}
.video-response--silent-warn .close {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
}
.video-response--silent-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.video-response--silent-buttons .btn-secondary {
    color: #1f1f1f;
}

.video-response--silent-buttons .btn-secondary:hover {
    background: #ccc;
}

/*this visibility strategy need for fix icons dribbling*/
.video-panel button.--hide {
    visibility: hidden;
    position: absolute;
}

.video-settings-modal label {
    font-weight: normal;
    font-size: small;
}
