.video-container{
	flex: 3;
	background: #000;
	/* border-radius: 0 8px 8px 0; */
	display: flex;
	justify-content: center;
	align-items: center;
	max-width:75%;
	background: #000;
}

.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;
	max-width:25%;
	flex: 1;
	list-style: none;
	padding: 0;
	margin: 0;
	background: #f9f9f9;
	max-height: 586px;
	overflow-y: auto;
	box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.1);
}

.advanced-playlist-item{
	display: flex;
	flex:1 1 0%;
	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;
}

.playlist-title{
	font-size: 14px;
	color: #333;
	flex-grow: 1;
}

.playlist-duration{
	font-size: 12px;
	color: #777;
	margin-left: 10px;
}

.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{
	padding: 10px;
	background-color: #ffecd1;
	border-radius: 5px;
	font-weight: bold;
	font-size: 16px;
	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 {
        max-height: 326px; /* ارتفاع ثابت برای پلی‌لیست */
        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){

	.advanced-video-player-wrapper .advanced-playlist{
		max-height:185px;
	}
	
	.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;
		
	}
}
@media (max-width:1865px){

	.advanced-playlist{
		height:571px;
	}
	
}

@media (max-width:1602px){

	.advanced-playlist{
		height:526px;
	}
	
}

/* 1439px and smaller screen sizes */
@media (max-width:1439px){

	.advanced-playlist{
		height:468px;
	}
	
}


.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;
	}	
}