/**
 * Adata_VideoWidget
 * Responsive, mobile-friendly styling for the video embed widget.
 */

.adata-video-widget {
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.5rem;
}

.adata-video-frame {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    border-radius: 6px;
}

.adata-video-frame .adata-video-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Aspect ratio padding-top trick (works everywhere, incl. older mobile browsers) */
.adata-video-ratio-16-9 { padding-top: 56.25%; }
.adata-video-ratio-4-3  { padding-top: 75%; }
.adata-video-ratio-1-1  { padding-top: 100%; }
.adata-video-ratio-21-9 { padding-top: 42.85%; }

.adata-video-title {
    margin: 0.75rem 0 0.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.3;
}

.adata-video-description {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

/* Fallback shown when a source is configured but the video can't be resolved */
.adata-video-unavailable {
    padding: 1rem 1.25rem;
    background: #f6f6f6;
    border: 1px dashed #cfcfcf;
    border-radius: 6px;
    color: #666;
    font-size: 0.95rem;
    text-align: center;
}

@media (max-width: 480px) {
    .adata-video-title {
        font-size: 1rem;
    }
    .adata-video-description {
        font-size: 0.875rem;
    }
    .adata-video-unavailable {
        font-size: 0.875rem;
    }
}
