/* Multi Language Video Block Styles */
.multi-language-video-block {
    position: relative;
    width: 100%;
    background-color: #f5f5f5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 0 0 2rem 0;
    overflow: hidden;
}

/* Aspect Ratio Classes */
.multi-language-video-block.aspect-ratio-16-9 {
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.multi-language-video-block.aspect-ratio-4-3 {
    padding-bottom: 75%; /* 4:3 Aspect Ratio */
}

.multi-language-video-block.aspect-ratio-21-9 {
    padding-bottom: 42.8571%; /* 21:9 Aspect Ratio */
}

.multi-language-video-block.aspect-ratio-1-1 {
    padding-bottom: 100%; /* 1:1 Aspect Ratio */
}

/* Iframe Styles */
.multi-language-video-block iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Placeholder Styles */
.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    color: #666;
    font-style: italic;
    padding: 20px;
    text-align: center;
}

/* Responsive Styles */

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-placeholder {
    padding: 2rem;
    text-align: center;
    background-color: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 8px;
}



/* Editor Styles */
.block-editor-block-list__block .multi-language-video-block {
    max-width: 100%;
}

.block-editor-block-list__block .video-placeholder {
    padding: 2rem;
    text-align: center;
    background-color: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: 4px;
    color: #666;
    font-style: italic;
}

/* Loading State */
.video-container.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
