Try changing nextElementSibling to previousElementSibling.
e.g.
function onYouTubeIframeAPIReady() {
const wrapper = cover.previousElementSibling;
const frameContainer = wrapper.querySelector(".video");
videoPlayer.addPlayer(frameContainer);
}
(function iife() {
"use strict";
function show(el) {
el.classList.remove("hide");
}
function coverClickHandler(evt) {
const wrapper = evt.currentTarget.previousElementSibling;
show(wrapper);
videoPlayer.play();
}