.video-toggle-container {
  position: fixed;
  right: 20px;
  bottom: 100px;
  z-index: 1100;
  display: none; /* standaard verborgen */
}

.video-toggle-container .btn {
  background: #1db954;
  color: #fff;
  border: none;
  border-radius: 50%;
  padding: 10px 12px;
  font-size: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}



.video-popup-container {
    position: fixed;
    bottom: 92px;
    right: 20px;
    z-index: 1050;
    width: 480px;
    height: 250px;
    background-color: #000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border-radius: 8px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    overflow: hidden;
}
.video-popup-container.visible {
    display: block;
    opacity: 1;
}
.video-toggle-container {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 1100;
    transition: bottom 0.3s ease-in-out;
}
#toggle-video-btn {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease-in-out;
}
#toggle-video-btn:hover {
    transform: scale(1.1);
    color: var(--color-text-primary);
}
#youtube-player {
    position: absolute;
    width: 100%;
    height: 152%;
    top: -26%;
}

/* Zwarte overlay boven de player */
#player-blackout {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Hier komt je GIF */
    background-image: url('../img/player/background.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 10;      /* hoger dan YouTube */
    display: none;    /* standaard uit */  
}

/* Verberg YouTube aanbevelingen en pauze-overlay */
#youtube-player .ytp-pause-overlay,
#youtube-player .ytp-endscreen-content {
    display: none !important;
}


.youtube-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background-color: transparent;
}

.equalizer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    width: 20px;
    height: 15px;
}

.bar {
    width: 6px;                     /* Breedte van de balk */
    background-color: #545f65;      /* Kleur van de balken */
    animation: equalizer 1s infinite ease-in-out; /* Animatie */
}

/* Animatievertragingen voor vloeiend effect */
.bar:nth-child(1) { animation-delay: -0.3s; }
.bar:nth-child(2) { animation-delay: -0.6s; }
.bar:nth-child(3) { animation-delay: -0.9s; }

/* Keyframes voor equalizer animatie */
@keyframes equalizer {
    0%   { height: 5%; }
    50%  { height: 100%; }
    100% { height: 5%; }
}

/* Klasse voor het tijdelijk stoppen van de animatie (pauze) */
.bar-reset {
    animation: none;   /* stopt animatie */
    height: 20%;       /* laat een klein deel van de balk zichtbaar */
    opacity: 1;        /* behoud de kleur */
}


@media (max-width: 520px) {
    .video-popup-container {
        width: 95vw;
        height: auto;
        aspect-ratio: 16 / 9;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    #youtube-player {
    height: 160%!important;
    top: -30%!important; 

    }
}