/* Provision reusable Vimeo showcase player */
.pvd-video-showcase {
    --pvd-player-accent: #a2cc3a;
    --pvd-player-bg: #000;
    --pvd-player-panel: rgba(18, 24, 31, 0.88);
    --pvd-player-text: #fff;
    width: 100%;
    margin: 0;
    background: #1f2833;
}

/* Single-video pages use the complete content width without Bootstrap gutters. */
.pvd-video-row--full {
    margin-right: 0;
    margin-left: 0;
}
.pvd-video-row--full > [class*="col-"] {
    padding-right: 0;
    padding-left: 0;
}

.pvd-video-showcase *,
.pvd-video-showcase *::before,
.pvd-video-showcase *::after {
    box-sizing: border-box;
}

.pvd-video-showcase__stage {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--pvd-player-bg);
    isolation: isolate;
    cursor: pointer;
    touch-action: manipulation;
}

.pvd-video-showcase__stage:focus-visible {
    outline: 3px solid var(--pvd-player-accent);
    outline-offset: 4px;
}

.pvd-video-showcase__iframe,
.pvd-video-showcase__poster {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.pvd-video-showcase__iframe {
    z-index: 1;
    border: 0;
    pointer-events: none;
}

.pvd-video-showcase__poster {
    z-index: 2;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 1;
    visibility: visible;
    transition: opacity 240ms ease, visibility 240ms ease;
    pointer-events: none;
}

.pvd-video-showcase.is-started .pvd-video-showcase__poster {
    opacity: 0;
    visibility: hidden;
}

.pvd-video-showcase.is-switching .pvd-video-showcase__poster {
    opacity: 1;
    visibility: visible;
}

.pvd-video-showcase__big-play,
.pvd-video-showcase__button {
    appearance: none;
    border: 0;
    color: var(--pvd-player-text);
    background: rgba(0, 0, 0, 0.64);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.pvd-video-showcase__big-play:hover,
.pvd-video-showcase__button:hover {
    background: rgba(162, 204, 58, 0.94);
}

.pvd-video-showcase__big-play:focus-visible,
.pvd-video-showcase__button:focus-visible,
.pvd-video-showcase__timeline:focus-visible,
.pvd-video-showcase__choice:focus-visible {
    outline: 3px solid var(--pvd-player-accent);
    outline-offset: 3px;
}

.pvd-video-showcase__big-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 6;
    width: clamp(58px, 6vw, 78px);
    height: clamp(58px, 6vw, 78px);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.pvd-video-showcase__big-play svg {
    width: 36%;
    height: 36%;
    fill: currentColor;
}

.pvd-video-showcase.is-playing .pvd-video-showcase__big-play,
.pvd-video-showcase.is-controls-hidden .pvd-video-showcase__big-play {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0.9);
}

.pvd-video-showcase__controls {
    position: absolute;
    z-index: 7;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 10px 14px;
    color: var(--pvd-player-text);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.54));
    backdrop-filter: blur(5px);
    opacity: 1;
    transform: translateY(0);
    transition: opacity 220ms ease, transform 220ms ease;
    cursor: default;
}

.pvd-video-showcase.is-controls-hidden .pvd-video-showcase__controls {
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
}

.pvd-video-showcase__button {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.pvd-video-showcase__button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pvd-video-showcase__timeline {
    --pvd-progress: 0%;
    --pvd-buffered: 0%;
    width: 100%;
    height: 22px;
    margin: 0;
    padding: 0;
    appearance: none;
    background: transparent;
    cursor: pointer;
}

.pvd-video-showcase__timeline::-webkit-slider-runnable-track {
    height: 5px;
    border-radius: 999px;
    background: linear-gradient(to right,
        var(--pvd-player-accent) 0 var(--pvd-progress),
        rgba(255, 255, 255, 0.5) var(--pvd-progress) var(--pvd-buffered),
        rgba(255, 255, 255, 0.24) var(--pvd-buffered) 100%);
}

.pvd-video-showcase__timeline::-moz-range-track {
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(to right,
        var(--pvd-player-accent) 0 var(--pvd-progress),
        rgba(255, 255, 255, 0.5) var(--pvd-progress) var(--pvd-buffered),
        rgba(255, 255, 255, 0.24) var(--pvd-buffered) 100%);
}

.pvd-video-showcase__timeline::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    margin-top: -4.5px;
    appearance: none;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}

.pvd-video-showcase__timeline::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.45);
}

.pvd-video-showcase__time {
    min-width: 88px;
    color: #fff;
    font: 500 12px/1.2 Arial, sans-serif;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.pvd-video-showcase__loading {
    position: absolute;
    z-index: 8;
    left: 50%;
    top: 50%;
    width: 42px;
    height: 42px;
    margin: -21px 0 0 -21px;
    border: 3px solid rgba(255, 255, 255, 0.28);
    border-top-color: #fff;
    border-radius: 50%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    animation: pvd-player-spin 800ms linear infinite;
}

.pvd-video-showcase.is-buffering .pvd-video-showcase__loading,
.pvd-video-showcase.is-switching .pvd-video-showcase__loading {
    opacity: 1;
    visibility: visible;
}

.pvd-video-showcase__status {
    position: absolute;
    z-index: 9;
    left: 50%;
    top: 50%;
    max-width: calc(100% - 40px);
    padding: 10px 14px;
    color: #fff;
    background: rgba(0, 0, 0, 0.78);
    border-radius: 4px;
    transform: translate(-50%, -50%);
    font: 500 13px/1.4 Arial, sans-serif;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.pvd-video-showcase.has-error .pvd-video-showcase__status {
    opacity: 1;
    visibility: visible;
}

.pvd-video-showcase__selector {
    display: flex;
    width: min(100%, 450px);
    min-width: 0;
    margin: 0 auto;
    background: transparent;
    overflow: hidden;
}

.pvd-video-showcase__selector[hidden] {
    display: none;
}

.pvd-video-showcase__selector--single {
    width: min(100%, 120px);
}

.pvd-video-showcase__selector--single .pvd-video-showcase__choice {
    min-height: 60px;
    padding: 12px 10px;
}

.pvd-video-showcase__choice {
    position: relative;
    flex: 1 1 33.333%;
    min-width: 0;
    min-height: 48px;
    padding: 10px 16px;
    border: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    background: #1f2833;
    font: 600 11px/1.3 "Open Sans", Helvetica, Arial, sans-serif;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease;
}

.pvd-video-showcase__choice:last-child {
    border-right: 0;
}

.pvd-video-showcase__choice:hover {
    background: #283440;
}

.pvd-video-showcase__choice[aria-pressed="true"] {
    background: var(--pvd-player-accent);
    color: #fff;
}

.pvd-video-showcase__choice[aria-pressed="true"]::after {
    content: none;
}

.pvd-video-showcase__stage:fullscreen,
.pvd-video-showcase__stage:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
    background: #1f2833;
}

.pvd-video-showcase__stage:fullscreen .pvd-video-showcase__iframe,
.pvd-video-showcase__stage:-webkit-full-screen .pvd-video-showcase__iframe {
    object-fit: contain;
}

@keyframes pvd-player-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 767px) {
    .pvd-video-showcase__selector {
        width: 100%;
    }

    .pvd-video-showcase__selector--single {
        width: min(100%, 120px);
    }

    .pvd-video-showcase__selector--single .pvd-video-showcase__choice {
        min-height: 60px;
    }

    .pvd-video-showcase__controls {
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        gap: 8px;
        min-height: 54px;
        padding: 7px 9px;
    }

    .pvd-video-showcase__button {
        width: 36px;
        height: 36px;
    }

    .pvd-video-showcase__button svg {
        width: 18px;
        height: 18px;
    }

    .pvd-video-showcase__time {
        display: none;
    }

    .pvd-video-showcase__choice {
        flex: 1 1 33.333%;
        min-width: 0;
        min-height: 48px;
        padding: 9px 6px;
        text-align: center;
    }
}

@media (max-width: 420px) {
    .pvd-video-showcase__controls {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .pvd-video-showcase__mute {
        display: none;
    }
}

@media (hover: none) and (pointer: coarse) {
    .pvd-video-showcase__choice:hover,
    .pvd-video-showcase__button:hover,
    .pvd-video-showcase__big-play:hover {
        background-color: inherit;
    }

    .pvd-video-showcase__choice[aria-pressed="true"] {
        background: var(--pvd-player-accent);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pvd-video-showcase__poster,
    .pvd-video-showcase__big-play,
    .pvd-video-showcase__button,
    .pvd-video-showcase__controls,
    .pvd-video-showcase__choice {
        transition: none;
    }
}
