
.video-block {
    position: relative;
    padding: 64px 30px;
}

/* Video element styling */
.video-block video {
    display: block;
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    height: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    background-color: #000;
}

/* Placeholder styling */
.video-block .video-placeholder {
    background-color: #f0f0f0;
    border: 1px dashed #ccc;
    color: #555;
    font-size: 16px;
    text-align: center;
    padding: 30px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.video-block .video-placeholder:hover {
    background-color: #e5e5e5;
    border-color: #999;
}


/* Editor-specific styles */
.wp-block-my-theme-video-block {
    margin-top: 0;
    margin-bottom: 0;
}

/* Control icons styling */
.video-block video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Video focus state */
.video-block video:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Video wrapper effect */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Optional: Custom controls styling if you want to replace native controls */
.video-custom-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-block:hover .video-custom-controls {
    opacity: 1;
}

.video-custom-controls button {
    background: transparent;
    border: none;
    color: white;
    margin: 0 10px;
    cursor: pointer;
    padding: 5px;
}

.video-custom-controls button:hover {
    color: #0073aa;
}

/* Loading state */
.video-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.2);
}

.video-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-block {
        padding: 48px 16px;
    }
    
    .video-block video {
        width: 100% !important;
        height: auto !important;
    }

}