/* Artikelvideos in der Galerie – Star Piercing */

.spav-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: transparent;
}

.spav-frame video.spav-video,
.spav-frame iframe.spav-iframe {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 0;
    background: transparent;
}

.spav-frame video.spav-video {
    cursor: pointer;
}

/* Ton-Knopf bei Autoplay */
.spav-sound {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55) no-repeat center / 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4V5z'/%3E%3Cline x1='23' y1='9' x2='17' y2='15'/%3E%3Cline x1='17' y1='9' x2='23' y2='15'/%3E%3C/svg%3E");
    cursor: pointer;
    z-index: 2;
}

.spav-sound.is-on {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H2v6h4l5 4V5z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7'/%3E%3Cpath d='M19 5a10 10 0 0 1 0 14'/%3E%3C/svg%3E");
}

/* YouTube/Vimeo: Platzhalter, Laden erst beim Klick */
.spav-embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: #111 center / cover no-repeat;
    cursor: pointer;
}

.spav-embed-note {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 8px 12px;
    font-size: 12px;
    line-height: 1.3;
    color: #fff;
    background: rgba(0, 0, 0, .55);
}

/* Play-Symbol */
.spav-play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .6);
    pointer-events: none;
}

.spav-play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -12px 0 0 -7px;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent #fff;
}

/* Vorschaubild in der Thumbnail-Leiste */
.spav-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #111;
    cursor: pointer;
}

.spav-thumb img,
.spav-thumb video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.spav-thumb .spav-play {
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
}

.spav-thumb .spav-play::after {
    margin: -6px 0 0 -3px;
    border-width: 6px 0 6px 10px;
}

/* Fallback ohne Slider */
.spav-static .spav-slide {
    margin-top: 1rem;
}
