/* ============================================================
   LARYOK VIDEOS MODULE
============================================================ */


/* ============================================================
   LOADING OVERLAY
============================================================ */

.videos-loading-overlay {

    position: fixed;

    inset: 0;

    z-index: 9998;

    background: #000;

    display: none;

    align-items: center;

    justify-content: center;

    flex-direction: column;

    gap: 16px;

    color: #fff;
}


.videos-loading-overlay.active {

    display: flex;

}


.videos-loading-spinner {

    width: 42px;

    height: 42px;

    border: 4px solid rgba(255,255,255,0.25);

    border-top-color: #fff;

    border-radius: 50%;

    animation:
        videosSpinner 0.8s linear infinite;

}


.videos-loading-text {

    font-size: 14px;

    opacity: 0.8;

}


@keyframes videosSpinner {

    to {
        transform: rotate(360deg);
    }

}



/* ============================================================
   VIDEOS MODULE
============================================================ */

.videos-module {

    position: fixed;

    inset: 0;

    z-index: 9999;

    background: #000;

    display: none;

}


.videos-module.active {

    display: block;

}



/* ============================================================
   VIDEOS CONTAINER
============================================================ */

.videos-container {

    width: 100%;

    height: 100dvh;

    overflow-y: auto;

    overflow-x: hidden;

    scroll-snap-type: y mandatory;

    scroll-behavior: smooth;

    -webkit-overflow-scrolling: touch;

    overscroll-behavior-y: contain;

}


.videos-container::-webkit-scrollbar {

    display: none;

}



/* ============================================================
   VIDEO SLIDE
============================================================ */

.video-slide {

    position: relative;

    width: 100%;

    height: 100dvh;

    flex-shrink: 0;

    scroll-snap-align: start;

    scroll-snap-stop: always;

    background: #000;

    overflow: hidden;

}



/* ============================================================
   VIDEO
============================================================ */

.video-module-player {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;

    background: #000;

}



/* ============================================================
   PRODUCT INFORMATION
============================================================ */

.video-module-info {

    position: absolute;

    left: 18px;

    right: 100px;

    bottom: 92px;

    z-index: 20;

    color: #fff;

    text-shadow:
        0 2px 8px rgba(0,0,0,0.8);

    pointer-events: none;

}


.video-module-product-name {

    font-size: 20px;

    font-weight: 700;

    margin-bottom: 6px;

}


.video-module-product-description {

    font-size: 14px;

    line-height: 1.4;

    opacity: 0.95;

}



/* ============================================================
   LIKEBAR
============================================================ */

.likebar {

    position: absolute;

    right: 12px;

    bottom: 105px;

    z-index: 30;

    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 15px;

}


.likebar-button {

    width: 52px;

    min-height: 52px;

    padding: 4px;

    border: none;

    background: transparent;

    color: #fff;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 3px;

    cursor: pointer;

    text-shadow:
        0 2px 8px rgba(0,0,0,0.9);

}


.likebar-icon {

    font-size: 27px;

    line-height: 1;

}


.likebar-label {

    font-size: 10px;

    line-height: 1;

    font-weight: 600;

}



/* ============================================================
   MINI INDEXBAR
============================================================ */

.videos-indexbar {

    position: absolute;

    left: 50%;

    bottom: 0;

    transform: translateX(-50%);

    width: min(650px, 100%);

    height: 58px;

    z-index: 100;

    display: flex;

    align-items: center;

    justify-content: space-around;

    background: rgba(0,0,0,0.72);

    backdrop-filter: blur(12px);

    -webkit-backdrop-filter: blur(12px);

    border-top:
        1px solid rgba(255,255,255,0.12);

}


.videos-indexbar-item {

    width: 20%;

    height: 100%;

    border: none;

    background: transparent;

    color: rgba(255,255,255,0.65);

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 3px;

    font-size: 9px;

    cursor: pointer;

}


.videos-indexbar-item.active {

    color: #fff;

    font-weight: 700;

}


.videos-indexbar-icon {

    width: 21px;

    height: 21px;

    display: flex;

    align-items: center;

    justify-content: center;

}


.videos-indexbar-icon img {

    width: 20px;

    height: 20px;

    display: block;

}



/* ============================================================
   DESKTOP
============================================================ */

@media (min-width: 700px) {

    .videos-module {

        background: #000;

    }


    .videos-container {

        width: min(650px, 100%);

        margin: 0 auto;

    }


    .videos-indexbar {

        border-radius:
            14px 14px 0 0;

    }

}



/* ============================================================
   MOBILE SAFE AREA
============================================================ */

@supports (padding-bottom: env(safe-area-inset-bottom)) {

    .videos-indexbar {

        padding-bottom:
            env(safe-area-inset-bottom);

        height:
            calc(
                58px +
                env(safe-area-inset-bottom)
            );

    }


    .likebar {

        bottom:
            calc(
                105px +
                env(safe-area-inset-bottom)
            );

    }


    .video-module-info {

        bottom:
            calc(
                92px +
                env(safe-area-inset-bottom)
            );

    }

}