﻿.bible-video-container { /* Container for the complete video + oerlay image */
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    aspect-ratio: 16 / 9;
    background: #000;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0,0,0,0.2);
}

.aspect-16-9 { /* Container for aspect ratio of the player */
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    height: auto;
    padding-top: 56.25%;
}

.bible-video-thumbnail { /* Container for the video + overlay buttons */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
}

.bible-video-media { /* Container for the video */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: none;
    border-radius: 0;
    display: block;
    background: #000;
    margin: 0;
    padding: 0;
}

.play-button-overlay { /* Container for the overlay play button */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
}

.btr-yt-player { /* Container for actual youtube video */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1;
}

.exit-fullscreen-btn { /* Container for the overlay exit button */
    position: absolute;
    top: 16px;
    right: 20px;
    z-index: 1000;
    background: #000 !important;
    color: #fff;
    border: none;
    font-size: 2rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1; /* Ensures no extra vertical space */
    padding: 0; /* Removes default padding */
}

.bible-video-thumbnail,
#btr-yt-player {
    transition: opacity 1.5s ease;
    opacity: 1;
}

.bible-video-thumbnail.fade-out {
    opacity: 0;
    pointer-events: none;
}

#btr-yt-player.fade-in {
    opacity: 1;
    pointer-events: auto;
}

#btr-yt-player {
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 600px) {
    .bible-video-container,
    .bible-video-media,
    #btr-yt-player {
        border-radius: 16px !important;
    }
}