/* ===== VIDEOS GRID - RESPONSIVE ===== */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.thumbnail-container {
    position: relative;
    overflow: hidden;
}

.thumbnail-container img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* ===== RESPONSIVE VIDEOS GRID ===== */
@media screen and (max-width: 992px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 10px;
    }
}

@media screen and (max-width: 576px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 8px;
    }

    .video-card {
        border-radius: 12px;
    }

    .video-card h3 {
        font-size: 1rem !important;
    }

    .video-card p {
        font-size: 0.85rem !important;
    }
}

/* ===== VIDEO DETAIL PAGE - RESPONSIVE ===== */
.video-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.video-detail-container video {
    width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    background: #000;
}

@media screen and (max-width: 768px) {
    .video-detail-container {
        padding: 10px;
    }

    .video-detail-container video {
        max-height: 50vh;
        border-radius: 8px;
    }
}

@media screen and (max-width: 480px) {
    .video-detail-container video {
        max-height: 40vh;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-muted { color: #718096; }
.mt-2 { margin-top: 10px; }
.mt-3 { margin-top: 15px; }
.mt-4 { margin-top: 20px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 15px; }
.mb-4 { margin-bottom: 20px; }

/* ===== Fix for video.html header ===== */
.video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8f9fa;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.video-header h2 {
    margin: 0;
    font-size: 1.3rem;
}

@media screen and (max-width: 480px) {
    .video-header {
        padding: 12px 15px;
        flex-direction: column;
        align-items: flex-start;
    }

    .video-header h2 {
        font-size: 1.1rem;
    }
}