/* Video Gallery Section */
.video-gallery-section {
    background: linear-gradient(135deg, #667eea 0%, #1b56ca 100%);
    min-height: 100vh;
    padding: 80px 20px;
    position: relative;
}

.video-gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.video-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Header Section */
.gallery-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.8s ease-out;
}

.header-content {
    display: inline-block;
}

.header-icon {
    margin-bottom: 20px;
}

.header-icon i {
    font-size: 4rem;
    color: #fff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    animation: pulse 2s infinite;
}

.gallery-title {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.gallery-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 25px 0;
    font-weight: 400;
}

.header-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #fff, transparent);
    margin: 0 auto;
    border-radius: 2px;
}

/* Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 35px;
    animation: fadeInUp 0.8s ease-out;
}

/* Video Card */
.video-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

/* Video Wrapper */
.video-wrapper {
    position: relative;
    background: #000;
    overflow: hidden;
}

.video-thumbnail {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .thumbnail-img {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.7), rgba(118, 75, 162, 0.7));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-thumbnail:hover .video-overlay {
    opacity: 1;
}

.play-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.play-button:hover {
    transform: scale(1.1);
    background: #f8f9fa;
}

.play-button i {
    font-size: 2rem;
    color: #667eea;
    margin-left: 5px;
}

.video-iframe-container {
    position: relative;
    width: 100%;
    background: #000;
}

.ratio {
    position: relative;
    width: 100%;
}

.ratio-16x9 {
    padding-bottom: 56.25%;
}

.ratio iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Video Error State */
.video-error {
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    gap: 15px;
}

.video-error i {
    font-size: 3rem;
    opacity: 0.7;
}

.video-error p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

/* Video Info */
.video-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.video-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-description {
    font-size: 0.95rem;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #ecf0f1;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #95a5a6;
    font-weight: 500;
}

.meta-item i {
    font-size: 0.8rem;
}

.watch-on-youtube {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #FF0000;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 5px;
}

.watch-on-youtube:hover {
    background: rgba(255, 0, 0, 0.1);
    color: #cc0000;
}

.watch-on-youtube i {
    font-size: 1rem;
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.empty-icon {
    font-size: 5rem;
    color: rgba(102, 126, 234, 0.3);
    margin-bottom: 25px;
}

.empty-title {
    font-size: 1.8rem;
    color: #2c3e50;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.empty-text {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin: 0;
    font-weight: 400;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .video-gallery-section {
        padding: 60px 15px;
    }

    .gallery-header {
        margin-bottom: 40px;
    }

    .gallery-title {
        font-size: 2.2rem;
    }

    .header-icon i {
        font-size: 3rem;
    }

    .gallery-subtitle {
        font-size: 1rem;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .play-button {
        width: 70px;
        height: 70px;
    }

    .play-button i {
        font-size: 1.8rem;
    }

    .video-info {
        padding: 20px;
    }

    .video-title {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .gallery-title {
        font-size: 1.8rem;
    }

    .header-icon i {
        font-size: 2.5rem;
    }

    .gallery-subtitle {
        font-size: 0.95rem;
    }

    .video-info {
        padding: 18px;
        gap: 10px;
    }

    .video-title {
        font-size: 1.05rem;
    }

    .video-description {
        font-size: 0.9rem;
    }

    .play-button {
        width: 60px;
        height: 60px;
    }

    .play-button i {
        font-size: 1.5rem;
    }

    .empty-state {
        padding: 80px 25px;
    }

    .empty-icon {
        font-size: 4rem;
    }

    .empty-title {
        font-size: 1.5rem;
    }

    .empty-text {
        font-size: 1rem;
    }

    .video-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}