/*  media-library.css */

/* Search & Filter Controls */
.controls {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

#searchInput, #tagFilter {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Loading Spinner */
.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid var(--primary-red);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Latest Episode Hero Styles */
#latest-episode-hero {
    max-width: 1000px;
    margin: 0 auto 50px;
    background: var(--pure-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 6px solid var(--primary-blue);
}

.hero-container {
    display: flex;
    flex-wrap: wrap;
    text-align: left;
}

.hero-video { flex: 1.5; min-width: 300px; }
.hero-video img { width: 100%; height: 100%; object-fit: cover; display: block; }

.hero-text { flex: 1; padding: 40px; display: flex; flex-direction: column; justify-content: center; }

.hero-label { 
    color: var(--primary-red); 
    font-weight: 800; 
    letter-spacing: 1px; 
    font-size: 0.8rem; 
    margin-bottom: 10px; 
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* Video Gallery Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* Individual Card Styling */
.video-card {
    background: var(--pure-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-info {
    padding: 15px;
}

.video-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.video-meta {
    font-size: 0.85rem;
    color: #666;
}

