/* Embedded videos (EmbedService::render). Theme-agnostic: takes the theme accent when there is one. */
.zcms-embed { margin: 1.8em 0; }
.zcms-embed-play,
.zcms-embed-frame {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #111;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.zcms-embed-play { cursor: pointer; font: inherit; }
.zcms-embed--vertical .zcms-embed-play,
.zcms-embed--vertical .zcms-embed-frame {
    aspect-ratio: 9 / 16;
    width: min(100%, 360px, calc(80vh * 9 / 16));
    margin: 0 auto;
}
.zcms-embed--vertical figcaption { text-align: center; }
.zcms-embed-play img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0 !important;
    object-fit: cover;
}
.zcms-embed-play::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 62%, rgba(0, 0, 0, .6));
}
.zcms-embed-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    width: 72px;
    height: 72px;
    margin: -36px 0 0 -36px;
    border-radius: 50%;
    background: rgba(20, 20, 20, .72);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .4);
    transition: background .15s, transform .15s;
}
.zcms-embed-icon::before {
    content: "";
    position: absolute;
    left: 29px;
    top: 22px;
    border-style: solid;
    border-width: 14px 0 14px 22px;
    border-color: transparent transparent transparent #fff;
}
.zcms-embed-play:hover .zcms-embed-icon,
.zcms-embed-play:focus-visible .zcms-embed-icon {
    background: var(--z2c-accent, var(--color-primary, #3faf7a));
    transform: scale(1.06);
}
.zcms-embed-play:focus-visible { outline: 3px solid var(--z2c-accent, var(--color-primary, #3faf7a)); outline-offset: 2px; }
.zcms-embed-title {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 13px;
    z-index: 1;
    overflow: hidden;
    color: #fff;
    font-size: 1em;
    font-weight: 600;
    text-align: left;
    text-overflow: ellipsis;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
    white-space: nowrap;
}
.zcms-embed-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.zcms-embed figcaption { margin-top: .55em; font-size: .82em; opacity: .75; }
.zcms-embed figcaption a { color: inherit; }
@media (max-width: 480px) {
    .zcms-embed-icon { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
    .zcms-embed-icon::before { left: 24px; top: 18px; border-width: 12px 0 12px 19px; }
}
