/*
|--------------------------------------------------------------------------
| Bloque de video
|--------------------------------------------------------------------------
*/

.video-block-editor {
    display: grid;
    gap: 16px;
}

.video-uploader {
    position: relative;
    min-height: 190px;
    border: 2px dashed #b8c2cc;
    border-radius: 12px;
    background: #f8fafc;
    overflow: hidden;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

.video-uploader:hover,
.video-uploader.is-dragging {
    border-color: #006fd6;
    background: #eef7ff;
}

.video-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.video-empty {
    min-height: 190px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
}

.video-empty-icon {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #006fd6;
    color: #ffffff;
    font-size: 22px;
}

.video-empty-title {
    font-size: 16px;
    color: #1f2937;
}

.video-empty-text {
    color: #5f6b78;
    font-size: 14px;
}

.video-empty-limit {
    color: #7b8794;
    font-size: 12px;
}

.video-editor-preview {
    position: relative;
    padding: 14px;
    background: #111827;
}

.video-editor-player {
    display: block;
    width: 100%;
    max-height: 420px;
    border-radius: 8px;
    background: #000000;
}

.video-remove-button {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 2;
    padding: 8px 12px;
    border: 0;
    border-radius: 7px;
    background: rgba(153, 27, 27, 0.94);
    color: #ffffff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.video-remove-button:hover {
    background: #b91c1c;
}

.video-file-name {
    margin: 10px 0 0;
    color: #d1d5db;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.preview-video-block {
    margin: 24px 0;
}

.preview-video-block video {
    display: block;
    width: 100%;
    max-height: 520px;
    border-radius: 10px;
    background: #000000;
}

.preview-video-block figcaption {
    margin-top: 9px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}