/* Video thumbnail container styles */
.custom-video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* The actual video element */
.custom-video-container video {
    width: 100%;
    display: block;
}

/* Thumbnail overlay */
.thumbnail-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Dark overlay gradient */
.thumbnail-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.4) 100%);
    transition: all 0.3s ease;
}

/* Play button */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    z-index: 3;
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    border-left: 24px solid #ff0000;
    margin-left: 5px;
}

/* Video information */
.video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 25px;
    z-index: 3;
}

.video-title {
    font-family: 'Spartan', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.video-description {
    font-family: 'Spartan', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 5px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    max-width: 80%;
}

/* Duration badge */
.duration-badge {
    position: absolute;
    bottom: 85px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    z-index: 3;
}

/* Hover effects */
.thumbnail-wrapper:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
    background-color: #ff0000;
}

.thumbnail-wrapper:hover .play-button::after {
    border-left-color: white;
}

.thumbnail-wrapper:hover::after {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.3) 60%);
}

/* Hide the thumbnail when playing */
.hidden {
    display: none;
}