.video-container{
flex: 1 1 auto;
background: #000;
/* border-radius: 0 8px 8px 0; */
display: flex;
justify-content: center;
align-items: center;
max-width:75%;
background: #000;
position: relative;
}
.video-container video{
max-width:100%;
object-fit: contain;
}
.advanced-video-player-wrapper{
min-width: fit-content !important;
display: flex;
gap: 0;
align-items: flex-start;
border: 1px solid #ccc;
border-radius: 8px;
overflow: hidden;
flex-direction: column;
}
.advanced-playlist {
    display: flex;
    flex-direction: column;
    min-width: 25%;
    max-width: 25%;
    list-style: none;
    padding: 0;
    margin: 0;
    background: #f9f9f9;
    min-height: -webkit-fill-available;
    height: var(--video-height, 420px);
    box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: -ms-autohiding-scrollbar;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
}
.advanced-playlist::-webkit-scrollbar {
  width: 1px;
  transition: width 160ms ease;
}
.advanced-playlist::-webkit-scrollbar-track {
  background: transparent;
}
.advanced-playlist::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.18);
  border-radius: 999px;
  min-height: 24px;
}
.advanced-playlist:hover::-webkit-scrollbar,
.advanced-playlist:focus-within::-webkit-scrollbar {
  width: 8px;
}
.advanced-playlist:hover::-webkit-scrollbar-thumb,
.advanced-playlist:focus-within::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.30);
}
.advanced-playlist {
  scrollbar-color: rgba(0,0,0,0.10) transparent;
}
.advanced-playlist:hover,
.advanced-playlist:focus-within {
  scrollbar-color: rgba(0,0,0,0.30) transparent;
}
.advanced-playlist-item{
display: flex;
/* flex:1 1 auto; */
align-items: center;
padding: 5px;
height: 66px;
min-height: 66px;
cursor: pointer;
border-bottom: 1px solid #ddd;
transition: background 0.3s ease, color 0.3s ease;
}
.advanced-playlist-item:hover{
background: #ececec;
}
.advanced-playlist-item.active{
background: #dfefff;
border-left: 3px solid #0073e6;
}
.playlist-thumbnail{
flex-shrink: 0;
width: 50px;
height: 40px;
margin-right: 5px;
margin-left: 5px;
overflow: hidden;
border-radius: 15px;
}
.playlist-thumbnail img{
width: 100%;
height: 100%;
object-fit: cover;
}
.playlist-info {
    flex-grow: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow-x: hidden;
}
.playlist-title {
    font-size: 14px;
    color: #333;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-wrap: break-word;
}
.playlist-duration {
    font-size: 12px;
    color: #777;
    margin-left: 10px;
    flex-shrink: 0;
}
.video-player-container{
min-width: -webkit-fill-available !important;
display: flex;
justify-content: space-between;
gap: 0px;
height: auto;
}
.plyr--video {
    width: -webkit-fill-available !important;
}
.video-details-box{
margin-top: 0;
background-color: #f9f9f9;
padding: 20px;
border-radius: 8px;
display: none;
width: 100%;
border-style:none;
border-top-width:0px;
border-top-left-radius:0px;
border-top-right-radius:0px;
border-width:1px;
border-color:#e0e0e0;
box-shadow:0px 2px 50px -6px rgba(0,0,0,0.28);
}
.download-link{
display: inline-block;
background-color: #ff8c00;
color: white;
font-weight: bold;
padding: 12px 20px;
border-radius: 5px;
text-decoration: none;
transition: background-color 0.3s ease;
text-align: center;
}
.video-description{
font-size: 16px;
color: #333;
line-height: 1.5;
margin-top: 10px;
border-top-style:solid;
border-top-width:1px;
border-top-color:#d1d1d1;
padding-top:20px;
}
.video-details-box .download-link,.video-details-box .video-description{
margin-bottom: 10px;
}
.advanced-playlist-section{
min-height: 60px;
    align-content: center;
padding: 10px;
background-color: #ffecd1;
border-radius: 5px;
font-weight: bold;
font-size: 14px;
color: #333;
}
#video-download-link:hover{
color:#ffffff;
background-color:#f18603;
}
/* 1200px and smaller screen sizes */
@media (max-width: 1200px) {
    .advanced-video-player-wrapper {
        flex-direction: column;
    }
    .advanced-video-player-wrapper .advanced-playlist {
        overflow-y: auto;
        width: 100%;
        order: -1;
max-width:100%;
min-width:100px;
    }
    .advanced-video-player-wrapper .video-container {
        width: 100%;
max-width:100%;
    }
 .video-player-container{
flex-direction:column;
flex:1 1 0%;
}
.advanced-playlist-item {
min-height:50px;
}
}
/* 520px and smaller screen sizes */
@media (max-width:520px){
.video-description{
font-size: 15px;
}
.video-details-box{
padding: 10px;
}
#video-download-link{
font-size:15px;
width:100% !important;
}
.elementor .playlist-thumbnail{
width:35px;
height:28px;
border-radius:10px;
}
}
.advanced-playlist-item .playlist-thumbnail{
position: relative;
}
.video-number{
position: absolute;
text-align:center;
top: 15px;
right: -1px;
background-color: rgba(255, 255, 255, 0.363);
min-width: 40px;
color: #333;
font-size: 15px;
padding: 4px;
border-radius: 50px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
font-weight: bold;
z-index: 10;
}
/* 1200px and smaller screen sizes */
@media (max-width:1200px){
.video-number{
min-width: 34px;
font-size: 14px;
}
}
/* 520px and smaller screen sizes */
@media (max-width:520px){
.video-number{
top: 10px;
right: -2px;
padding: 2px;
min-width: 32px;
}
}
/*
.advanced-playlist {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.advanced-playlist::-webkit-scrollbar { display: none; }
*/
.video-container {
    position: relative; /* Essential for absolute child */
}
.no-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(60 8 82 / 85%);
    color: #cea8d9;
    padding: 20px;
    border-radius: 12px 0px 0px 0px;
    text-align: center;
    z-index: 10;
    font-size: 18px;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.no-video-overlay.active {
    opacity: 1;
}
/* استایل لودر جدید */
.video-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.video-loader.active {
    opacity: 1;
}
.video-loader::before {
    content: '';
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}