/* --- GENERAL STYLES --- */
.vu-container {
/*     max-width: 900px; */
    margin: 0 auto;
    text-align: center;
    font-family: "Poppins", sans-serif;
    padding: 20px;
}

.vu-container h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.vu-container p.vu-desc {
    color: #555;
    font-size: 1rem;
    margin-bottom: 15px;
}

.vu-main-btn {
    background: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 25px;
    transition: background 0.3s;
}
.vu-main-btn:hover {
    background: #005c87;
}

/* --- FEATURE SECTION --- */
.vu-feature-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

/* --- FEATURED VIDEO --- */
.vu-feature-video {
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.vu-feature-video video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px 12px 0 0;
}

#vu-main-title {
    background: #111;
    color: #fff;
    font-size: 1.2rem;
    padding: 10px;
    border-radius: 0 0 12px 12px;
    text-align: left;
}

/* --- SIDE PLAYLIST UNDERNEATH --- */
.vu-side-playlist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    width: 100%;
}

.vu-video-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #f8f8f8;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.vu-video-card video {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    display: block;
}

.vu-video-card h4 {
    font-size: 0.95rem;
    padding: 8px;
    text-align: left;
    background: #fff;
    color: #333;
    border-top: 1px solid #eee;
}

.vu-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* --- LOCKED STATE --- */
.vu-video-card.locked {
    opacity: 0.6;
    pointer-events: none;
}

.vu-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
}

.vu-overlay.hidden {
    display: none;
}

/* ===== FORCE DESKTOP-LIKE GRID ON MOBILE ===== */
@media (max-width: 768px) {

    .vu-side-playlist {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px;
    }

    .vu-video-card video {
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .vu-video-card {
        min-width: 0;
    }
	.vu-overlay {
    font-size: 8px;
	}
}


/* Keep native controls attribute on the featured video, but visually reduce clutter.
   Note: browser behaviors differ; this CSS hides many controls in WebKit-based browsers.
*/

.vu-feature-video video {
    /* Keep controls attribute in HTML; do not remove it. */
    width: 100%;
    height: auto;
}

/* Hide timeline / time / volume in WebKit (visual only) */
.vu-feature-video video::-webkit-media-controls-timeline,
.vu-feature-video video::-webkit-media-controls-current-time-display,
.vu-feature-video video::-webkit-media-controls-time-remaining-display,
.vu-feature-video video::-webkit-media-controls-mute-button,
.vu-feature-video video::-webkit-media-controls-volume-slider,
.vu-feature-video video::-webkit-media-controls-fullscreen-button,
.vu-feature-video video::-webkit-media-controls-download-button,
.vu-feature-video video::-webkit-media-controls-seek-back-button,
.vu-feature-video video::-webkit-media-controls-seek-forward-button {
    display: none !important;
}

/* Keep small play/pause control visible; fallback for non-webkit browsers:
   we can't fully control native chrome in all browsers via CSS; consider a custom control
   if you need identical cross-browser behavior. */
.vu-feature-video video::-webkit-media-controls-play-button {
    display: inline-block !important;
}

/* Prevent 'controls' from being removed via CSS hacks by keeping the element interactive */
.vu-feature-video video {
    pointer-events: auto;
}
