.video-block {
    position: relative;
    width: 100%;
    padding-top: 127.5%;
    overflow: hidden;
    background: #000;
}

.video--wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.video-block iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    max-width: none !important;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-block .video-poster-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    transition: opacity 0.4s ease;
}

/* Base Button Styles */
.video-block .custom-play-btn,
.video-block .custom-pause-btn,
.video-block .custom-mute-btn,
.video-block .custom-unmute-btn {
    position: absolute;
    background: var(--color-11);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background 0.3s ease, opacity 0.3s ease;
    padding: 0;
    z-index: 2;
    overflow: hidden;
}

.video-block .custom-play-btn:hover,
.video-block .custom-pause-btn:hover,
.video-block .custom-mute-btn:hover,
.video-block .custom-unmute-btn:hover {
    background: var(--color-11);
}
/* Sound Buttons Positioning */
.video-block .custom-mute-btn,
.video-block .custom-unmute-btn {
    bottom: 20px;
    right: 20px;
}

.video-block .custom-play-btn::before,
.video-block .custom-pause-btn::before,
.video-block .custom-mute-btn::before,
.video-block .custom-unmute-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    /* transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); */
    transition: width 0.6s cubic-bezier(0.25, 0.33, 0.3, 1.07);
    will-change: width;
    background: var(--color-12);
    z-index: -1;
}

.video-block .custom-play-btn:hover::before,
.video-block .custom-pause-btn:hover::before,
.video-block .custom-mute-btn:hover::before,
.video-block .custom-unmute-btn:hover::before {
    width: 100%;
}

/* Play/Pause Toggle Logic */
.video-block .custom-pause-btn { display: none; }
.video-block .custom-play-btn { display: flex; }

.video-block.is-playing .custom-play-btn { display: none; }
.video-block.is-playing .custom-pause-btn { display: flex; }

/* Show pause only on hover when playing */
.video-block.is-playing .custom-pause-btn {
    opacity: 0;
    pointer-events: none;
}

.video-block.is-playing:hover .custom-pause-btn {
    opacity: 1;
    pointer-events: auto;
}

/* Sound Toggle Logic */
.video-block .custom-unmute-btn { display: none; }
.video-block .custom-mute-btn { display: flex; }

.video-block.is-muted .custom-mute-btn { display: none; }
.video-block.is-muted .custom-unmute-btn { display: flex; }

/* Global Poster Logic */
.video-block.is-playing .video-poster-img {
    opacity: 0;
    pointer-events: none;
}
@media (min-width: 769px) {
    .video-block {
        padding-top: 96.774%;
    }
    .video-block .custom-play-btn,
    .video-block .custom-pause-btn {
        width: 64px;
        height: 64px;
    }
}

@media (min-width: 992px) {
    .video-block {
        padding-top: 56.25%;
    }
}