/* =========================================
   VIDEO GALLERY LAYOUT
========================================= */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* =========================================
   THUMBNAIL WRAPPER
========================================= */
.video-thumb-wrapper {
    display: flex;
    flex-direction: column;
    font-family: Verdana, sans-serif;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.video-thumb-wrapper.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   FLOATING NEON FILTER BAR
========================================= */
.video-filter-bar {
    position: sticky;
    top: 10px;
    z-index: 20;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 20px 0 20px;
    justify-content: flex-start;
}

.video-filter-btn {
    border: 1px solid rgba(0,255,255,0.7);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 0 8px rgba(0,255,255,0.4);
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.video-filter-btn:hover {
    background: rgba(0,255,255,0.15);
    box-shadow: 0 0 14px rgba(0,255,255,0.9);
    transform: translateY(-1px);
}

.video-filter-btn.active {
    background: rgba(0,255,255,0.25);
    box-shadow: 0 0 18px rgba(0,255,255,1);
    color: #000;

}

/* =========================================
   CATEGORY HEADING
========================================= */
.video-category-heading {
    grid-column: 1 / -1;
    font-size: 18px;
    color: #0ff;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 25px 0 5px 0;
}

/* =========================================
   THUMBNAIL BOX
========================================= */
.video-thumb {
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 0 10px rgba(0,255,255,0.35);
    min-height: 150px;
    animation: neonPulse 3s infinite ease-in-out;
}

/* Neon pulse */
@keyframes neonPulse {
    0%   { box-shadow: 0 0 10px rgba(0,255,255,0.3); }
    50%  { box-shadow: 0 0 20px rgba(0,255,255,0.7); }
    100% { box-shadow: 0 0 10px rgba(0,255,255,0.3); }
}

/* Hover glow + zoom */
.video-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0,255,255,0.9);
}

/* =========================================
   SHIMMER PLACEHOLDER
========================================= */
.video-thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
        rgba(255,255,255,0.05) 0%,
        rgba(255,255,255,0.15) 50%,
        rgba(255,255,255,0.05) 100%);
    transform: translateX(-100%);
    animation: shimmer 1.4s infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.video-thumb.loaded::before {
    display: none;
}

/* =========================================
   THUMBNAIL IMAGE (retina + lazy-load)
========================================= */
.video-thumb img {
    width: 100%;
    max-height: 150px;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    image-rendering: auto;
}

/* =========================================
   PLAY ICON + HOVER ANIMATION
========================================= */
.play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.video-thumb::after {
    content: "";
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid rgba(0,255,255,0.8);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    opacity: 0;
    box-shadow: 0 0 15px rgba(0,255,255,0.8);
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.video-thumb:hover .play-icon {
    transform: scale(1.1);
    opacity: 1;
}

.video-thumb:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* =========================================
   DURATION BADGE
========================================= */
.video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 3px 6px;
    font-size: 12px;
    border-radius: 4px;
    font-weight: bold;
    pointer-events: none;
}

/* =========================================
   OPTIONAL CATEGORY BADGE ON THUMB
========================================= */
.video-category-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.75);
    color: #0ff;
    padding: 3px 6px;
    font-size: 11px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    pointer-events: none;
}
/* =========================================
   DESCRIPTION BLOCK
========================================= */
.video-info {
    margin-top: 8px;
    padding: 5px 2px;
}

.video-title {
    font-size: 16px;
    font-weight: bold;
    color: #002366;
    margin: 0 0 4px 0;
}

.video-desc {
    font-size: 13px;
    color: #000;
    margin: 0;
    line-height: 1.4;
}

/* =========================================
   MODAL BACKDROP
========================================= */
#video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease forwards;
    z-index: 9999;
}

/* =========================================
   MODAL CONTENT
========================================= */
.video-modal-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    border-radius: 12px;
    padding: 10px;
    background: #000;
    box-shadow: 0 0 25px cyan, 0 0 50px rgba(0,255,255,0.5);
    animation: popIn 0.3s ease forwards;
}

/* Close button */
#close-modal {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #000;
    color: cyan;
    padding: 8px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 0 15px cyan;
    transition: 0.2s;
}

#close-modal:hover {
    box-shadow: 0 0 25px cyan;
}

/* Video iframe */
#modal-video-frame {
    width: 100%;
    height: 500px;
    border-radius: 10px;
}

/* =========================================
   ANIMATIONS
========================================= */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes popIn {
    from { transform: scale(0.7); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

