.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;
}

.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;
}

/* 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;
    }
}
