/*
|--------------------------------------------------------------------------
| Bloque de YouTube
|--------------------------------------------------------------------------
*/

.youtube-block-editor {
    display: grid;
    gap: 14px;
}

.youtube-validation-message {
    margin: -4px 0 0;
    padding: 9px 12px;
    border-radius: 7px;
    font-size: 13px;
    line-height: 1.4;
}

.youtube-validation-message.is-error {
    background: #fef2f2;
    color: #991b1b;
}

.youtube-validation-message.is-success {
    background: #ecfdf5;
    color: #166534;
}

.youtube-editor-preview {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #000000;
}

.youtube-editor-preview.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 2px dashed #b8c2cc;
    background: #f8fafc;
}

.youtube-preview-placeholder {
    max-width: 420px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.youtube-editor-iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

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

.preview-youtube-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
    background: #000000;
}

.preview-youtube-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

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