
/* Video Player Etc */
.video-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.video-thumbnail {
    width: 100%;
    display: block;
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 60px;
    color: white;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 15px 20px;
    text-align: center;
    line-height: 60px;
    user-select: none;
    opacity: 1; /* Ensure it starts visible */
    transition: opacity 0.4s ease-in-out; /* Smooth fade effect */
}

.play-icon.hidden {
    opacity: 0;
} /* Hide the play icon */
/* The main container for the default thumbnail */
.video-thumbnail-default {
    background-color: #2c3e50; /* A dark, neutral blue */
    background-image: linear-gradient(45deg, rgba(0,0,0,0.1) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.1) 75%, rgba(0,0,0,0.1)),
                      linear-gradient(45deg, rgba(0,0,0,0.1) 25%, transparent 25%, transparent 75%, rgba(0,0,0,0.1) 75%, rgba(0,0,0,0.1));
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    width: 100%;
    color: #ecf0f1;
    display: flex;
    justify-content: center;
    align-items: center;
    /* This ensures the placeholder has the same aspect ratio as a 16:9 video */
    aspect-ratio: 16 / 9;
    height: auto;
}

/* A semi-transparent overlay to make text more readable */
.thumbnail-overlay-content {
    background: rgba(0, 0, 0, 0.3);
    padding: 20px 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 80%;
}

.thumbnail-title {
    font-size: 1.5em;
    margin: 0 0 10px 0;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.thumbnail-description {
    font-size: 1em;
    margin: 0;
    opacity: 0.9;
}

/* Ensure the wrapper can contain a real image or the default block */
.video-wrapper {
    width: 100%;
    /* This can prevent layout shifts if the image is slow to load */
    aspect-ratio: 16 / 9;
    background-color: #000;
}