/* Video (self-hosted) - frontend.
   The stage holds the poster and the play button; on click it is replaced by
   the <video> element, so nothing here styles both states at once. */

[data-content-type="fss_video"] {
    margin-left: auto;
    margin-right: auto;
}

.fss-video-stage {
    position: relative;
    cursor: pointer;
    line-height: 0;
}

.fss-video-poster {
    display: block;
    width: 100%;
    height: auto;
}

/* Play button. min-width:0 neutralises the Luma theme's global button rule,
   which otherwise imposes a fixed min-width on any bare <button>. */
.fss-video-stage .fss-video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
    transition: background 0.2s ease;
}

.fss-video-stage .fss-video-play:hover,
.fss-video-stage .fss-video-play:focus {
    background: rgba(0, 0, 0, 0.75);
}

/* Triangle, drawn with borders so there is no image request. */
.fss-video-stage .fss-video-play::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 54%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 13px 0 13px 22px;
    border-color: transparent transparent transparent #fff;
}

.fss-video-el {
    display: block;
    width: 100%;
    height: auto;
}
