/* ============================================================
   WATCH — the DITEX video poster and the player it becomes.
   ============================================================ */

.video-frame {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--ep-radius-2xl);
    overflow: hidden;
    box-shadow: var(--ep-mkt-shadow-card);
    background: var(--ep-surface-2);
}

.video-facade,
.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-facade { display: block; }

/* YouTube's hqdefault poster is 4:3 with letterbox bars; cover crops them. */
.video-facade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.video-facade:hover img { transform: scale(1.02); filter: brightness(0.85); }

.video-facade-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 84px;
    height: 84px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--ep-brand-cyan);
    color: var(--ep-brand-navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    padding-left: 5px; /* optically centre the triangle */
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease;
}

.video-facade:hover .video-facade-play,
.video-facade:focus-visible .video-facade-play { transform: translate(-50%, -50%) scale(1.08); }

.video-facade:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--ep-brand-cyan); }

@media (max-width: 576px) {
    .video-facade-play { width: 64px; height: 64px; font-size: 22px; }
}
