/* Estilos para el thumbnail del video */
.product-video-thumb {
    position: relative;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.product-video-thumb:hover,
.product-video-thumb.selected {
    border-color: #555;
}
.product-video-thumb img {
    width: 100%;
    height: auto;
    display: block;
}
.product-video-thumb .play-icon-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-video-thumb .play-icon-overlay img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Estilos para el modal del video */
#product-video-modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}
#product-video-modal-content {
    position: relative;
    background-color: #000;
    margin: 5% auto;
    padding: 0;
    width: 80%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
}
#product-video-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}
#product-video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}
#product-video-modal-close:hover {
    color: #ccc;
}