/**
 * SwissCase Product Video – Styles
 * ─────────────────────────────────
 */

/* ── Video-Slide in der Galerie ────────────────────────────────── */
.scpv-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Seitenverhältnis */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 4px;
}

.scpv-video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scpv-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── Play-Button (YouTube-Style) ──────────────────────────────── */
.scpv-play-button {
    position: relative;
    z-index: 2;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.scpv-play-button:hover {
    transform: scale(1.1);
}

.scpv-play-button:hover .scpv-play-bg {
    fill: #FF0000;
    opacity: 1;
}

.scpv-play-bg {
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

/* ── iframe-Container ─────────────────────────────────────────── */
.scpv-iframe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.scpv-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Galerie-Thumbnail (klein, unten in FlexSlider-Navigation) ─── */

/* Dunkles Overlay damit der Play-Button gut sichtbar ist */
.scpv-has-play .scpv-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    pointer-events: none;
    z-index: 1;
    transition: background 0.2s ease;
}

.scpv-has-play:hover .scpv-thumb-overlay {
    background: rgba(0, 0, 0, 0.15);
}

/* YouTube-Style SVG Play-Button auf dem Thumbnail */
.scpv-has-play .scpv-play-icon-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: auto;
    pointer-events: none;
    z-index: 2;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.4));
    transition: transform 0.2s ease;
}

.scpv-has-play:hover .scpv-play-icon-small {
    transform: translate(-50%, -50%) scale(1.1);
}

/* ── Galerie-Slide: sicherstellen, dass der Video-Slide korrekt sitzt ── */
.scpv-video-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.scpv-video-slide a {
    pointer-events: none; /* Lightbox-Link deaktivieren für Video */
}
