/* ==========================================================
   ZIAJA VIDEO SLIDER - ELEMENTOR
========================================================== */

.ziaja-video-slider {
    position: relative;

    width: 100%;
    max-width: 100%;

    overflow: hidden;

    padding-bottom: 30px;

    touch-action: pan-y;
}


/* ==========================================================
   WRAPPER
========================================================== */

.ziaja-video-slider
.swiper-wrapper {
    align-items: stretch;
}


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

.ziaja-video-slider
.swiper-slide {
    height: auto;

    user-select: none;

    -webkit-user-select: none;
}


/* ==========================================================
   CARD
========================================================== */

.ziaja-video-card {
    position: relative;

    width: 100%;

    aspect-ratio: .72 / 1;

    overflow: hidden;

    border-radius: 6px;

    background: #eeeeee;

    transform: translateZ(0);
}




/* ==========================================================
   IMAGE COVER
   "Lớp phủ hình ảnh"
========================================================== */

.ziaja-video-cover-wrap {
    position: absolute;

    inset: 0;

    z-index: 3;

    overflow: hidden;

    background: inherit;

    pointer-events: none;

    opacity: 1;
    visibility: visible;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}


.ziaja-video-cover {
    position: absolute;

    inset: 0;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    object-fit: cover;
    object-position: center;

    transform: translateZ(0);

    backface-visibility: hidden;
}


/*
 * Sau lần đầu video bắt đầu phát,
 * ẩn lớp phủ và giữ frame video thật.
 */
.ziaja-video-card.is-video-started
.ziaja-video-cover-wrap {
    opacity: 0;

    visibility: hidden;
}


/*
 * iOS/Safari:
 * đảm bảo ảnh phủ được paint ngay,
 * không chờ video metadata.
 */
@media (max-width: 767px) {

    .ziaja-video-cover-wrap {
        transform: translateZ(0);

        -webkit-transform: translateZ(0);
    }


    .ziaja-video-cover {
        transform: translate3d(0, 0, 0);

        -webkit-transform: translate3d(0, 0, 0);
    }

}


/* ==========================================================
   HTML5
========================================================== */

.ziaja-video {
    position: absolute;

    inset: 0;

    z-index: 1;

    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;

    background: #eeeeee;

    object-fit: cover;
    object-position: center;

    opacity: 0;

    backface-visibility: hidden;

    transform: translateZ(0);

    transition:
        opacity .25s ease;
}


.ziaja-video.is-ready {
    opacity: 1;
}


/* ==========================================================
   EMBED
========================================================== */

.ziaja-embed-player {
    position: absolute;

    inset: 0;

    display: block;

    width: 100% !important;
    height: 100% !important;

    margin: 0;
    padding: 0;

    border: 0;

    background: #000000;
}


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

.ziaja-video-loading {
    position: absolute;

    inset: 0;

    z-index: 2;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #eeeeee;

    pointer-events: none;

    transition:
        opacity .2s ease,
        visibility .2s ease;
}


.ziaja-video-loading.is-hidden {
    opacity: 0;

    visibility: hidden;
}


.ziaja-video-loading span {
    width: 25px;
    height: 25px;

    border:
        2px
        solid
        rgba(0, 0, 0, .14);

    border-top-color:
        #111111;

    border-radius: 50%;

    animation:
        ziajaElementorVideoLoading
        .75s
        linear
        infinite;
}


@keyframes ziajaElementorVideoLoading {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


/* ==========================================================
   ERROR
========================================================== */

.ziaja-video-error {
    position: absolute;

    inset: 0;

    z-index: 4;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: #eeeeee;

    color: #666666;

    font-family:
        "Inter",
        sans-serif;

    font-size: 13px;

    line-height: 1.5;

    text-align: center;
}


.ziaja-video-error:not([hidden]) {
    display: flex;
}


/* ==========================================================
   CUSTOM CONTROLS
========================================================== */

.ziaja-video-controls {
    position: absolute;

    right: 12px;
    bottom: 13px;

    z-index: 10;

    display: flex;

    align-items: center;

    gap: 8px;
}


.ziaja-video-btn {
    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 28px;

    width: 28px !important;
    height: 28px !important;

    min-width: 28px !important;
    min-height: 28px !important;

    margin: 0 !important;
    padding: 0 !important;

    border:
        1px
        solid
        rgba(20, 20, 20, .70) !important;

    border-radius: 50% !important;

    background:
        rgba(255, 255, 255, .92) !important;

    color: #111111 !important;

    box-shadow: none !important;

    cursor: pointer;

    transition:
        transform .18s ease,
        background-color .18s ease !important;
}


.ziaja-video-btn:hover {
    transform: scale(1.06);
}


.ziaja-video-btn:active {
    transform: scale(.94);
}


/* ==========================================================
   PLAY
========================================================== */

.ziaja-play-symbol {
    display: block;

    width: 0;
    height: 0;

    margin-left: 2px;

    border-top:
        5px
        solid
        transparent;

    border-bottom:
        5px
        solid
        transparent;

    border-left:
        8px
        solid
        #111111;
}


/* ==========================================================
   PAUSE
========================================================== */

.ziaja-pause-symbol {
    position: relative;

    display: block;

    width: 9px;
    height: 11px;
}


.ziaja-pause-symbol::before,
.ziaja-pause-symbol::after {
    position: absolute;

    top: 0;

    width: 2px;
    height: 11px;

    background: #111111;

    content: "";
}


.ziaja-pause-symbol::before {
    left: 1px;
}


.ziaja-pause-symbol::after {
    right: 1px;
}


/* ==========================================================
   SOUND
========================================================== */

.ziaja-muted-symbol,
.ziaja-volume-symbol {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    width: 16px;
    height: 16px;

    font-family:
        Arial,
        sans-serif;

    font-size: 16px;

    line-height: 1;
}


/* ==========================================================
   SCROLLBAR
========================================================== */

.ziaja-video-scrollbar {
    position: absolute !important;

    left: 0 !important;
    right: 0 !important;

    bottom: 0 !important;

    width: 100% !important;
    height: 14px !important;

    border-radius: 0 !important;

    background: transparent !important;

    cursor: pointer;

    touch-action: none;
}


.ziaja-video-scrollbar::before {
    position: absolute;

    left: 0;
    right: 0;

    top: 5px;

    height: 4px;

    background: #a7a7a7;

    content: "";

    pointer-events: none;
}


.ziaja-video-scrollbar
.swiper-scrollbar-drag {
    position: relative;

    z-index: 2;

    height: 14px !important;

    border-radius: 0 !important;

    background: transparent !important;

    cursor: grab;

    will-change: transform;
}


.ziaja-video-scrollbar
.swiper-scrollbar-drag::before {
    position: absolute;

    left: 0;
    right: 0;

    top: 5px;

    height: 4px;

    background: #111111;

    content: "";

    pointer-events: none;
}


.ziaja-video-scrollbar
.swiper-scrollbar-drag:active {
    cursor: grabbing;
}


/* ==========================================================
   EDITOR
========================================================== */

.elementor-editor-active
.ziaja-video-slider {
    min-height: 100px;
}
