.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    /* padding: 20px; */
    padding: 0px;
}

.video-card {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    /* border-radius: 10px; */
    border-radius: 0px;
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* border-radius: 10px; */
    border-radius: 0px;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup.active {
    display: flex;
}

.swiper {
    width: 100%;
    max-width: 420px;
    height: 90vh;
    position: relative;
}

.swiper-slide {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.swiper-slide video {
    width: 100%;
    height: auto;
}

.product-info button {
    margin-top: 10px;
    padding: 10px 20px;
    background: #ff6b81;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
    z-index: 2000;
}

.swiper-button-prev,
.swiper-button-next {
    color: #fff;
    font-weight: bold;
}

.progress-container {
    display: flex;
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    gap: 5px;
    z-index: 1500;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: white;
    transition: none;
}

/* Video Card Start */

.video-card {
    width: 100%;
    max-width: 300px;
    margin: 10px;
}

.video-container {
    position: relative;
    /* display: inline-block; */
    width: 100%;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* Content card overlaid on bottom */
.content-card {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    padding: 8px;
    box-sizing: border-box;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);

    z-index: 2;
    /* above video */
    background: rgba(255, 255, 255, 0.95);
    /* avoid transparent flicker */
}

/* Thumbnail Image */
.content-card img {
    width: 50px !important;
    height: 50px !important;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Text container */
.content-card .info {
    /* margin-left: 8px; */
    margin-left: 0px;
    flex-grow: 1;
    overflow: hidden;
}

.content-card p {
    /* margin: 4px 0 !important; */
    margin: 0 2 0 0 !important;
}

/* Title text */
/* .content-card .title {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
} */

.content-card .title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2em;
}

@media (max-width: 600px) {
    .content-card {
        bottom: 6px;
        left: 6px;
        right: 6px;
        padding: 6px;
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px;
    }

    .content-card img {
        width: 40px !important;
        height: 40px !important;
    }

    .content-card .title {
        font-size: 12px;
        line-height: 1.1em;
        -webkit-line-clamp: 2;
    }

    .content-card p {
        font-size: 11px;
    }
}

/* Video Card End */


/* Video Swiper Effect Start */

.product-info {
    /* position: absolute;
    bottom: 20px;
    left: 20px;
    color: #000;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 15px;
    border-radius: 8px;
    z-index: 10;
    max-width: 80%; */
    transform: scale(0);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.product-info.show {
    transform: scale(1);
    opacity: 1;
}

/* Video Swiper Effect End */

.swiper-button-next,
.swiper-button-prev {
    color: #fff !important;
}

.video-container,
.content-card {
    /* -webkit-transform: translateZ(0); */
    /* transform: translateZ(0); */
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

/* @media (min-width: 1000px) {

    .video-grid .owl-nav .owl-next {
        right: 50px;
    }
}

@media (max-width: 768px) {

    .video-grid .owl-nav .owl-next {
        right: 40px;
    }
} */

@media (min-width: 1000px) {

    .video-grid .owl-nav .owl-next {
        right: 10px !important;
    }
}

@media (max-width: 768px) {

    .video-grid .owl-nav .owl-next {
        right: 10px !important;
    }
}