.video-gallery-section {
    padding: 60px 0;
    background: #f4f7fb;
    text-align: center;
}
.video-section-title {
    font-size: 28px;
    font-weight: 700;
    color: #111;
    margin-bottom: 10px;
    text-transform: uppercase;
}
.video-section-sub {
    font-size: 16px;
    color: #555;
    margin-bottom: 40px;
}

/* ==== VIDEO CARD ==== */
.video-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.1);
    transition: all 0.35s ease;
    cursor: pointer;
    margin-bottom: 30px;
}
.video-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.video-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}
.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.video-card:hover .video-thumb img {
    transform: scale(1.05);
}
.video-thumb .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.video-card:hover .overlay {
    opacity: 1;
}
/* Nút Play ở giữa thumbnail */
.overlay .play-btn {
    width: 64px;
    height: 64px;
    filter: drop-shadow(0 0 8px rgba(255,255,255,0.8));
    transform: scale(1);
    transition: transform 0.3s ease, filter 0.3s ease;
    animation: pulsePlay 2s infinite ease-in-out;
}

/* Khi hover thì phóng nhẹ */
.video-card:hover .play-btn {
    transform: scale(1.15);
    filter: drop-shadow(0 0 12px rgba(255,255,255,1));
}

/* Hiệu ứng nhịp tim cho nút play */
@keyframes pulsePlay {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.08);
        opacity: 0.85;
    }
}

/* Lớp overlay mờ tối khi hover */
.video-thumb .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.6));
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.video-card:hover .overlay {
    opacity: 1;
}


.video-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    padding: 12px 10px;
    background: #fff;
    margin: 0;
    transition: color 0.3s;
    height: 70px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.video-card:hover .video-title {
    color: #007bff;
}

/* ==== MODAL ==== */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.video-modal.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}
.video-modal-content {
    background: #0b0b0b;
    border-radius: 10px;
    overflow: hidden;
    max-width: 900px;
    width: 90%;
    animation: zoomIn 0.4s ease;
    box-shadow: 0 0 40px rgba(0,0,0,0.4);
}
@keyframes zoomIn {
    from {transform: scale(0.85); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* ==== MODAL HEADER ==== */
.video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #111;
    color: #fff;
    padding: 10px 16px;
}
.video-modal-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}
.close-btn {
    font-size: 22px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.close-btn:hover {
    opacity: 1;
}

/* ==== VIDEO FRAME ==== */
.video-frame-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}
.video-frame-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
    .video-modal-content { width: 95%; }
    .video-modal-title { font-size: 14px; }
    .video-section-title { font-size: 22px; }
}