/*
 * Godly WC Video - Frontend Styles
 * Version: 2.4.1
 */
.godly-wc-video-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    margin: 2em auto;
    width: 100%;
}

.godly-wc-video-title {
    font-weight: 700;
    margin-bottom: 0.75em;
    color: #1a1a1a;
    line-height: 1.2;
}

.godly-wc-video-container {
    margin: 0;
    padding: 0;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    background-color: #000;
    width: 100%;
}

.godly-wc-video-player-element {
    display: block;
    border: none;
    outline: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* The content of the description, which can be a p, span, or strong tag */
.godly-wc-video-description-content {
    margin-top: 1.5em;
    font-size: 1em;
    color: #555;
    line-height: 1.7;
}

/* Ensure subsequent paragraphs within the description also have margin */
.godly-wc-video-description-content + .godly-wc-video-description-content {
    margin-top: 1em;
}

/* Fallback for aspect-ratio in older browsers (using padding hack) */
.godly-wc-video-container {
    position: relative;
}
.godly-wc-video-container::before {
    content: "";
    display: block;
    padding-top: calc(100% / (16/9));  /* Default 16:9, overridden by widget */
}
.godly-wc-video-container .godly-wc-video-player-element {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Modern browsers use aspect-ratio */
@supports (aspect-ratio: 16/9) {
    .godly-wc-video-container {
        aspect-ratio: var(--aspect-ratio, 16/9);  /* Use CSS var from widget */
        position: relative;
    }
    .godly-wc-video-container::before {
        padding-top: 0;  /* Disable padding hack */
    }
}