.devypl-yt *{
    box-sizing:border-box;
}

.devypl-main{
    width:100%;
    margin-bottom:20px;
}

.devypl-main iframe{
    width:100%;
    aspect-ratio:16/9;
    height:auto;
    border:none;
    border-radius:12px;
}

.devypl-item{
    cursor:pointer;
    padding:8px;
    border:1px solid #eee;
    border-radius:8px;
    margin-bottom:5px;
    transition:.3s;
    background:#fff;
}

.devypl-item:hover{
    border-color:var(--theme-color);
}

.devypl-item.active{
    border:2px solid var(--theme-color);
}

.devypl-item img{
    width:100%;
    border-radius:6px;
    display:block;
}

.devypl-item p{
    font-size:13px;
    min-height:36px;
    overflow:hidden;
    margin-top:8px;
    line-height:1.4;
}

/* ================= VERTICAL ================= */

.devypl-yt.vertical{
    display:flex;
    gap:20px;
}

.devypl-yt.vertical .devypl-main{
    width:70%;
}

.devypl-yt.vertical .devypl-list{
    width:30%;
    overflow:auto;
    max-height:450px;
}

.devypl-yt.vertical .devypl-list::-webkit-scrollbar{
    width:6px;
}

.devypl-yt.vertical .devypl-list::-webkit-scrollbar-thumb{
    background:var(--theme-color);
    border-radius:20px;
}

/* ================= HORIZONTAL ================= */

.devypl-yt.horizontal .devypl-main{
    width:100%;
}

.devypl-yt.horizontal .devypl-list{
    margin-top:20px;
    position:relative;
}

/* ================= GRID ================= */

.devypl-yt.grid .devypl-main{
    width:100%;
}

/* ================= OWL NAV ================= */

.devypl-yt .owl-nav{
    position:absolute;
    top:50%;
    left:0;
    width:100%;
    transform:translateY(-50%);
    display:flex;
    justify-content:space-between;
    pointer-events:none;
}

.devypl-yt .owl-nav button{
    pointer-events:auto;
    width:42px;
    height:42px;
    border-radius:50% !important;
    background:#fff !important;
    color:#333 !important;
    border:none !important;
    box-shadow:0 4px 12px rgba(0,0,0,0.15);
    display:flex !important;
    align-items:center;
    justify-content:center;
    transition:all 0.3s ease;
}

.devypl-yt .owl-nav button:hover{
    background:var(--theme-color) !important;
    color:#fff !important;
    transform:scale(1.1);
}

.devypl-yt .owl-prev{
    margin-left:-20px;
}

.devypl-yt .owl-next{
    margin-right:-20px;
}

.devypl-yt .owl-nav button span{
    font-size:20px;
    font-weight:bold;
}

/* ================= POPUP ================= */

.devypl-popup{
    display:none;
    position:fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,.85);
    z-index:9999;
}

.devypl-popup-content{
    width:80%;
    max-width:800px;
    margin:60px auto;
    position:relative;
}

.devypl-popup iframe{
    width:100%;
    aspect-ratio:16/9;
    height:auto;
    border:none;
    border-radius:12px;
}

.devypl-close{
    position:absolute;
    top:-40px;
    right:0;
    color:#fff;
    font-size:30px;
    cursor:pointer;
}

/* ================= RESPONSIVE ================= */

@media(max-width:768px){

    .devypl-yt.vertical{
        flex-direction:column;
    }

    .devypl-yt.vertical .devypl-main,
    .devypl-yt.vertical .devypl-list{
        width:100%;
    }

    .devypl-popup-content{
        width:95%;
    }

    .devypl-yt .owl-prev{
        margin-left:0;
    }

    .devypl-yt .owl-next{
        margin-right:0;
    }

}