/* Videos Header */
.videos-header-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.videos-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    opacity: 0.95;
}

.videos-header-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="play" width="25" height="25" patternUnits="userSpaceOnUse"><polygon points="8,6 18,12 8,18" fill="white" opacity="0.03"/></pattern></defs><rect width="100" height="100" fill="url(%23play)"/></svg>');
}

.videos-header-content {
    padding: 1.5rem;
    z-index: 2;
}

.video-icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.video-icon-wrapper i {
    font-size: 1.5rem;
    color: white;
}

/* Video Cards */
.video-card {
    position: relative;
    border-radius: 14px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.video-card-inner {
    padding: 1.25rem;
    position: relative;
    z-index: 2;
}

.video-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 85, 104, 0.05), rgba(45, 55, 72, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 14px;
}

.video-card:hover .video-glow {
    opacity: 1;
}

/* Video Thumbnail */
.video-thumbnail-wrapper {
    flex-shrink: 0;
}

.video-thumbnail {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.thumbnail-image {
    width: 140px;
    height: 79px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.video-card:hover .thumbnail-image {
    transform: scale(1.05);
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.play-button {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.play-button i {
    font-size: 1.2rem;
    color: #2d3748;
    margin-left: 2px;
}

.video-card:hover .play-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.video-card:hover .play-button {
    transform: scale(1.1);
    background: white;
}

.duration-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.quality-indicator {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #2d3748;
    padding: 2px 4px;
    border-radius: 4px;
    font-size: 0.7rem;
}

.video-thumbnail-placeholder {
    width: 140px;
    height: 79px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e0);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    font-size: 1.5rem;
}

/* Video Content */
.video-content {
    min-width: 0;
}

.channel-info {
    margin-bottom: 0.75rem;
}

.channel-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 0.5rem;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.channel-details {
    flex-grow: 1;
}

.channel-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #4a5568;
    display: block;
}

.video-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.25rem;
}

.upload-date,
.view-count {
    font-size: 0.75rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.video-title {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.3;
}

.video-link {
    color: #2d3748;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-link:hover {
    color: #4a5568;
}

.video-description {
    color: #718096;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.engagement-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    font-size: 0.75rem;
    color: #718096;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.watch-indicator {
    font-size: 0.8rem;
    color: #4a5568;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

/* CTA Section */
.videos-cta {
    margin-top: 2rem;
    padding: 2rem 0;
}

.cta-content {
    max-width: 400px;
    margin: 0 auto;
}

.cta-title {
    color: #2d3748;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cta-subtitle {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.videos-cta-button {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    color: white;
    padding: 0.9rem 1.75rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    box-shadow: 0 8px 25px rgba(74, 85, 104, 0.25);
}

.videos-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(74, 85, 104, 0.35);
    color: white;
}

.videos-cta-button i {
    transition: transform 0.2s;
}

.videos-cta-button:hover i {
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .videos-header-content {
        padding: 1.25rem;
    }
    
    .video-icon-wrapper {
        width: 45px;
        height: 45px;
    }
    
    .video-icon-wrapper i {
        font-size: 1.3rem;
    }
    
    .video-card-inner {
        padding: 1rem;
    }
    
    .video-card-inner .d-flex {
        flex-direction: column;
    }
    
    .video-thumbnail-wrapper {
        margin-right: 0 !important;
        margin-bottom: 1rem;
        align-self: center;
    }
    
    .thumbnail-image,
    .video-thumbnail-placeholder {
        width: 200px;
        height: 113px;
    }
    
    .engagement-stats {
        gap: 0.75rem;
    }
    
    .watch-indicator {
        margin-left: 0;
    }
    
    .videos-cta {
        margin-top: 1.5rem;
        padding: 1.5rem 0;
    }
}


.video-card {
    animation: slideInRight 0.5s ease-out;
}

.video-card:nth-child(2) { animation-delay: 0.1s; }
.video-card:nth-child(3) { animation-delay: 0.2s; }
.video-card:nth-child(4) { animation-delay: 0.3s; }
.video-card:nth-child(5) { animation-delay: 0.4s; }


.video-card:hover .play-button {
    animation: pulse 2s ease-in-out infinite;
}