.myvideo {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background-color: #000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin: 15px;
}


.myvideo iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important; 
    height: 100% !important;
    border: 0;
    z-index: 1; 
}


.myvideo::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.5) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-30deg);
    z-index: 10; 
    pointer-events: none; 
}


.myvideo:hover::after {
    animation: shine 0.8s ease-in-out;
}

.myvideo::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255, 0.2);
    opacity: 0;
    z-index: 5;
    transition: opacity 0.3s;
    pointer-events: none;
}

.myvideo:hover::before {
    opacity: 1;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}


.myvideo:hover iframe {
    filter: brightness(1.1);
    transition: 0.3s;
}