/* Gedeelde videospeler (geestdrift, bat, wwf, personal brand) */
.video-card {
    position: relative;
    width: min(100%, 18rem);
    aspect-ratio: 9 / 16;
    background-color: #000;
    overflow: hidden;
    font-family: "komet", sans-serif;
    font-size: 0.9rem;
}

.video-card.vc-landscape {
    width: min(100%, 56rem);
    aspect-ratio: 16 / 9;
}

.video-card.vc-large {
    width: min(100%, 22rem);
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

/* Fullscreen: hele scherm vullen en video niet bijsnijden */
.video-card:fullscreen,
.video-card:-webkit-full-screen {
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
}

.video-card:fullscreen video,
.video-card:-webkit-full-screen video {
    object-fit: contain;
}

.vc-controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.5rem 0.75rem 0.75rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0));
}

.vc-row {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.vc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    color: white;
    flex-shrink: 0;
}

.vc-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.vc-btn svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: currentColor;
}

.vc-play {
    background-color: rgba(31, 31, 31, 0.85);
    width: 2.5rem;
    height: 2.5rem;
}

.vc-time {
    margin-left: 0.5rem;
    margin-right: auto;
    color: white;
    font-style: normal;
    white-space: nowrap;
}

/* Volume: pil met slider die uitklapt bij hover */
.vc-volume {
    display: flex;
    align-items: center;
    border-radius: 9999px;
    transition: background-color 0.2s;
}

.vc-volume:hover,
.vc-volume:focus-within {
    background-color: rgba(31, 31, 31, 0.9);
}

.vc-volume .vc-btn:hover {
    background-color: transparent;
}

.vc-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 0;
    opacity: 0;
    height: 1.25rem;
    margin: 0;
    background: transparent;
    cursor: pointer;
    transition: width 0.2s, opacity 0.2s, margin 0.2s;
}

.vc-volume:hover .vc-slider,
.vc-volume:focus-within .vc-slider {
    width: 4.5rem;
    opacity: 1;
    margin-left: 0.75rem;
}

.vc-slider::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 9999px;
    background: linear-gradient(to right, #fff var(--vol, 100%), rgba(255, 255, 255, 0.35) var(--vol, 100%));
}

.vc-slider::-moz-range-track {
    height: 4px;
    border-radius: 9999px;
    background: linear-gradient(to right, #fff var(--vol, 100%), rgba(255, 255, 255, 0.35) var(--vol, 100%));
}

.vc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    margin-top: -4px;
    border-radius: 50%;
    background: #fff;
}

.vc-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 50%;
    background: #fff;
}

.vc-progress {
    position: relative;
    height: 0.9rem;
    margin-top: 0.4rem;
    cursor: pointer;
    touch-action: none;
}

.vc-progress::before,
.vc-bar {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    height: 4px;
    margin-top: -2px;
    border-radius: 9999px;
}

.vc-progress::before {
    right: 0;
    background-color: rgba(255, 255, 255, 0.4);
}

.vc-bar {
    width: 0;
    background-color: #fff;
}

.vc-menu-wrap {
    position: relative;
}

.vc-menu {
    position: absolute;
    right: 0;
    bottom: 2.75rem;
    display: none;
    flex-direction: column;
    min-width: 12rem;
    max-height: 70vh;
    overflow-y: auto;
    background-color: #262626;
    border-radius: 0.5rem;
    padding: 0.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.vc-menu.open {
    display: flex;
}

.vc-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.55rem 0.9rem;
    border-radius: 0.35rem;
    color: white;
    font-style: normal;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
}

.vc-item:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.vc-item svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: currentColor;
    flex-shrink: 0;
}

.vc-item .vc-value {
    margin-left: auto;
    padding-left: 1rem;
    opacity: 0.6;
}

.vc-speeds {
    display: none;
    flex-direction: column;
}

.vc-speeds.open {
    display: flex;
}

.vc-speeds .vc-item {
    padding-left: 2.75rem;
}

.vc-speeds .vc-item.active {
    color: #2a85d6;
}
