.vimeo-player {
    position: relative;
    /* Mobiel: grote touch targets (≥48px) */
    --vimeo-toolbar-offset: 0.75rem;
    --vimeo-toolbar-btn-width: 3rem;
    --vimeo-toolbar-btn-height: 3rem;
    --vimeo-toolbar-icon-width: 2.5rem;
    --vimeo-toolbar-icon-height: 2.75rem;
    --vimeo-play-size: 3rem;
}

/* Keep interaction on our custom controls, not inside the iframe DOM. */
.vimeo-player iframe {
    pointer-events: none;
}

/* Slagschaduw van de toolbar-iconen. Vervangt de SVG <filter> uit Figma:
   die had een document-uniek id nodig, terwijl de icon-partials per player
   herhaald worden (dubbele id's = invalide HTML). Waarden komen 1-op-1 uit
   de Figma-filter: offset 4/4, stdDeviation 5 (≈ blur 10px), zwart 15%. */
.vimeo-player__icon-shadow {
    filter: drop-shadow(4px 4px 10px rgba(0, 0, 0, 0.15));
}

.vimeo-player__toolbar {
    position: absolute;
    top: var(--vimeo-toolbar-offset);
    right: var(--vimeo-toolbar-offset);
    z-index: 30;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    pointer-events: none;
}

.vimeo-player__toolbar-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: var(--vimeo-toolbar-btn-width);
    height: var(--vimeo-toolbar-btn-height);
    min-width: var(--vimeo-toolbar-btn-width);
    min-height: var(--vimeo-toolbar-btn-height);
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    flex-shrink: 0;
    background: transparent;
    line-height: 0;
    -webkit-tap-highlight-color: transparent;
}

.vimeo-player__toolbar-btn[hidden] {
    display: none;
}

.vimeo-player__toolbar-btn > svg {
    display: block;
    width: var(--vimeo-toolbar-icon-width);
    height: var(--vimeo-toolbar-icon-height);
    flex-shrink: 0;
    pointer-events: none;
}

/* Audio: stacked glyphs, same box as pause */
.vimeo-player__audio .vimeo-player__sound-glyph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.vimeo-player__audio .vimeo-player__sound-glyph svg {
    display: block;
    width: var(--vimeo-toolbar-icon-width);
    height: var(--vimeo-toolbar-icon-height);
}

.vimeo-player__sound-glyph--off {
    visibility: hidden;
    opacity: 0;
}

.vimeo-player.is-muted .vimeo-player__sound-glyph--on {
    visibility: hidden;
    opacity: 0;
}

.vimeo-player.is-muted .vimeo-player__sound-glyph--off {
    visibility: visible;
    opacity: 1;
}

.vimeo-player__toggle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 30;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--vimeo-play-size);
    height: var(--vimeo-play-size);
    min-width: var(--vimeo-play-size);
    min-height: var(--vimeo-play-size);
    border: 0;
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    background: #f26b52;
    color: #fff;
    -webkit-tap-highlight-color: transparent;
}

.vimeo-player__toggle[hidden] {
    display: none;
}

/* Hide play button during loading for autoplay players (before JS binds). */
[data-vimeo-autoplay="1"]:not([data-vimeo-controls-bound]) .vimeo-player__toggle {
    display: none;
}

/* Desktop: Figma-verhouding (34×37 icon, 15px offset) */
@media (min-width: 768px) {
    .vimeo-player {
        --vimeo-toolbar-offset: 0.9375rem;
        --vimeo-toolbar-btn-width: 2.125rem;
        --vimeo-toolbar-btn-height: 2.3125rem;
        --vimeo-toolbar-icon-width: 2.125rem;
        --vimeo-toolbar-icon-height: 2.3125rem;
        --vimeo-play-size: 2.5rem;
    }

    .vimeo-player__toggle .vimeo-player__icon-play svg {
        width: 14px;
        height: 17px;
    }
}

@media (max-width: 767px) {
    .vimeo-player__toggle .vimeo-player__icon-play svg {
        width: 18px;
        height: 22px;
    }
}
