/*---------------------------------------------------------------
	bootstrap custom
---------------------------------------------------------------*/
.dropdown-menu {
	overflow:hidden;
}
.dropdown-menu .dropdown-item {
	cursor:pointer;
}

iframe {border: 0;}
/*---------------------------------------------------------------
	Collapse, Collapsing
---------------------------------------------------------------*/
.collapse-btn {
	cursor:pointer;
	border:none !important;
	outline:none !important;
	box-shadow: none !important;
	padding: 10 px;
}
.collapse-hide {
	height:0;
	transform: scaleY(0);
	opacity:0;
	transition: all 0.3s;
}
.collapse-show {
	height:auto;
	transform: scaleY(1);
	opacity:1;
	transition: all 0.3s;
}
@media screen and (max-width:768px) {
	.collapse-hide-auto {
		height:0;
		transform: scaleY(0);
		opacity:0;
		transition: all 0.3s;		
	}
}

/*---------------------------------------------------------------
	hide, show, ...
---------------------------------------------------------------*/
.show {
	display:block;
}
.hide {
	display:none;
}
@media screen and (max-width:768px) {
	.show-auto {
		display:block;
	}
	.hide-auto {
		display:none;
	}
	.hide-auto-i {
		display:none !important;
	}
}

/*---------------------------------------------------------------
	hover
---------------------------------------------------------------*/
.hover:hover {
	cursor:pointer;
	transition:transform 0.5s;
}
.hover:hover {
	transform:scale(1.1, 1.1);	
}

/*---------------------------------------------------------------
	input-box
---------------------------------------------------------------*/
.input-box {
	display:flex;
	justify-content:space-between;
	align-items:center;
	width:100%;
	height:36px;
	padding:0 10px;
	background-color:#6c757d2e;
	border:1px solid rgb(240, 240, 240);
	border-radius:100px;
}
.input-box input {
	width:100%;
	height:100%;
	background-color:transparent;
	border:none;
	outline:none;
	box-shadow:none;
}
.input-box button {
	display: flex;
	align-items: center;
	justify-content: end;
	width:36px;
	height:100%;
	border:none;
	background-color:transparent;
	box-shadow:none;
	font-size:1.5rem;
	color:var(--bs-gray);
}
.input-box button.send:before {
	content:'\27A4';
	display: flex;
	align-items: center;
}

/*---------------------------------------------------------------
	avatar
---------------------------------------------------------------*/
.avatar {
	width:45px;
	height:45px;
	border-radius:100%;
	object-fit: cover;
	object-position: center;
	margin-right:10px;
}

/*---------------------------------------------------------------
	information
---------------------------------------------------------------*/
.inormation {
	display:flex;
	align-items:center;
	padding:10px 28px 10px 0;
	color:#666;
	width:100%;
	border-top:1px solid #c3c4c5;
	border-bottom:1px solid #c3c4c5;
	margin-bottom:10px;
	font-size:1rem;
}
.inormation:before {
	display:flex;
	align-items:center;	
	content:'\1f6c8';
	width:24px;
	height:24px;
	margin-right:5px;
	color:#ccc;
	font-size:1.5rem;
}

/*---------------------------------------------------------------
	videoPage
---------------------------------------------------------------*/

/* toolsBar. only device */
.videoPage .toolsBar{
	display:none;
	align-items:center;
	justify-content:space-between;
	width:100%;
	height:36px;
	background-color: #000;
	color: #fff;
	font-size:1.5rem;
	border-radius:8px 8px 0px 0px;
}
.videoPage .toolsBar .btn{
	border: none !important;
	box-shadow: none !important;
	color: #fff;
	font-size: 1.2rem;
	display: flex;
	align-items: center;
}
.videoPage .toolsBar .btn.dropdown-toggle::after {
    display: none;
    padding: 0;
    margin: 0;
    vertical-align: unset;
    content: "";
    border:none;
}
	
.videoPage .btn-following {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
	flex-wrap: nowrap;
	-moz-box-pack: center;
	justify-content: center;
	overflow: hidden;
	cursor: pointer;
	padding: 5px 10px;
	border: 1px solid transparent;
	outline: currentcolor none medium;
	border-radius: .25rem !important;
	white-space: nowrap;
	font-size: 0.9em;
	color: var(--bs-white) !important;
	background-color: var(--red) !important;
	height:32px;
}

.videoPage .btn-follow {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
	flex-wrap: nowrap;
	-moz-box-pack: center;
	justify-content: center;
	overflow: hidden;
	cursor: pointer;
	padding: 5px 10px;
	border: 1px solid transparent;
	outline: currentcolor none medium;
	border-radius: .25rem !important;
	white-space: nowrap;
	font-size: 0.9em;
	color: var(--bs-white) !important;
	background-color: var(--bs-green) !important;
	height:32px;
}

/* primary */

.videoPage .layer-primary {
	float: right;
	width: calc(100% - 400px);
	padding-left: 1.5em;	
}
.videoPage .layer-primary .player-container {
	position: relative;
	width: 100%;
	z-index: 6;
	background-color: rgb(0, 0, 0);
	padding-top: 0%;
}
.videoPage .layer-primary .player-container video {
	position: absolute !important;
	width: 100% !important;
	height: 100% !important;
	top:0px !important;
	left:0px !important;
}
.videoPage .layer-primary .player-container iframe {
	/*position: absolute !important;*/
	position: inherit;
	height: 80vh;
	width: 100% !important;
	top:0px !important;
	left:0px !important;
}

/* FOR DESKTOP >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */
.videoPage .layer-primary .details-desktop {
	margin-top:1rem;
}
.videoPage .layer-primary .details-desktop .details-header {
	display: flex;
	-moz-box-align: center;
	align-items: center;
	-moz-box-pack: justify;
	justify-content: space-between;
	width: 100%;
	position: relative;
	direction: rtl;
	overflow: visible;
}
.videoPage .layer-primary .details-desktop .details-header h1 {
	font-size: 1.2rem;
	font-weight: 400;
	text-align: right;
	line-height: 1.8;
	margin: 0px;
	font-family:IRANSansWeb2, IRANSansWeb;
}
.videoPage .layer-primary .details-desktop .details-header span {
	font-size: 0.9rem;
	text-align: left;
	display: flex;
	-moz-box-align: center;
	align-items: center;
	color: rgb(72, 75, 98);
	fill: rgb(72, 75, 98);
}
.videoPage .layer-primary .details-desktop .details-body {
	position: relative;
	display: flex;
	justify-content:space-between;
	align-items: center;
	width: 100%;
	margin-top: 1em;
	padding-bottom: 1em;
}
.videoPage .layer-primary .details-desktop .details-body p {
	text-align: left;
	line-height: 1.8;
	margin: 0px;
	padding: 1rem;
	font-size: 1rem;
	text-align: justify;
}
.videoPage .layer-primary .details-desktop .details-body .btn {
	color: var(--bs-gray-dark);
	display:inline-block;
	border:none !important;
	box-shadow:none !important;
	border-radius:15px;
	transition: background-color 0.5s;
}
.videoPage .layer-primary .details-desktop .details-body .btn:hover {
	background-color:#eee;
}
.videoPage .layer-primary .details-desktop .details-body .btn {
	font-weight:bold;
}
.videoPage .layer-primary .details-desktop .details-other {
	display:flex;
	align-items:center;
	font-size:0.8rem;
	color:var(--bs-gray);
}
.videoPage .layer-primary .details-desktop .details-other span {
	margin: 0 10px;
}
.videoPage .layer-primary .details-desktop .details-other span i {
	padding: 0 5px;
}

/* FOR DEVICE >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> */
.videoPage .layer-primary .details-device {
	display:none;
	margin-top:1rem;
}
.videoPage .layer-primary .details-device .details-header {
	display: flex;
	-moz-box-align: center;
	align-items: flex-start;
	-moz-box-pack: justify;
	justify-content: space-between;
	width: 100%;
	position: relative;
	direction: rtl;
	overflow: visible;
	direction:ltr;
}
.videoPage .layer-primary .details-device .details-header h1 {
	font-size: 1.2rem;
	font-weight: bold;
	text-align: left;
	line-height: 1.8;
	margin: 0px;
	padding-left: 1em;	
}
.videoPage .layer-primary .details-device .details-header span {
	font-size: 0.9rem;
	text-align: left;
	display: flex;
	-moz-box-align: center;
	align-items: center;
	color: rgb(72, 75, 98);
	fill: rgb(72, 75, 98);
}
.videoPage .layer-primary .details-device .details-body {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content:space-between;
	align-items: center;
	width: 100%;
	margin-top: 0;
	padding-bottom: 0;
}
.videoPage .layer-primary .details-device .details-body p {
	text-align: left;
	line-height: 1.8;
	margin: 0px;
	padding: 0.9rem;
	font-size: 0.9rem;
	text-align: justify;
}
.videoPage .layer-primary .details-device .details-body .btn {
	color: var(--bs-gray-dark);
	display:inline-block;
	border:none !important;
	box-shadow:none !important;
	border-radius:25px;
	transition: background-color 0.5s;
}
.videoPage .layer-primary .details-device .details-body .btn:hover {
	background-color:#eee;
}
.videoPage .layer-primary .details-device .details-other {
	display: flex;
	align-items: center;
	font-size: 0.8rem;
	color: var(--bs-gray);
	flex-wrap: wrap;
	justify-content: space-between;
	line-height: 3;
}
.videoPage .layer-primary .details-device .details-other span {
	margin: 0 10px;
}
.videoPage .layer-primary .details-device .details-other span i {
	padding: 0 5px;
}

.videoPage .layer-primary .comments .comments-form {
	display:flex;
	justify-content:space-between;
	align-items:center;
	width:100%;
}
.videoPage .layer-primary .comments .comments-list {
	display:flex;
	flex-direction:column;
	justify-content:space-between;
	align-items:center;
	width:100%;
	margin-top:10px;
}
.videoPage .layer-primary .comments .comments-list li {
	display:flex;
	align-items:center;
	width:100%;
	padding:10px 0;
	border-top:1px solid #eee;
	font-size:0.9rem;
	color:var(--bs-gray-dark);
}
.videoPage .layer-primary .comments .comments-list li:last-child {
	border-bottom:1px solid #eee;
}
.videoPage .layer-primary .comments .comments-list li p {
	color:var(--bs-dark);
}
.videoPage .layer-primary .header {
	display:flex;
	justify-content:space-between;
	align-items:center;
	padding: 10px 0;
	font-size:1rem;
}

/*secondary*/

.videoPage .layer-secondary {
	float: left;
	width: 400px;	
}
.videoPage .layer-secondary .header {
	display:flex;
	justify-content:space-between;
	align-items:center;
	padding: 10px 0;
	font-size:1rem;
}

@media screen and (max-width:768px) {
	.videoPage .layer-primary {
		float: unset;
		width: 100%;
		padding-left: 0;	
	}
	.videoPage .layer-secondary {
		float: unset;
		width: 100%;
	}
	.videoPage .layer-primary .details-desktop {
		display:none;
	}
	.videoPage .layer-primary .details-device {
		display:block;
	}
	.videoPage .layer-primary .details-device .details-header h1 {
		font-size: 0.9rem;
	}
	.videoPage .toolsBar {
		/*display:flex;*/
		display: none;
	}
	
	/* video full width */
	.videoPage .container-fluid {
		padding:0;
	}
	.videoPage .layer-primary .details-device {
		padding: 0 5px;
	}
	.videoPage .layer-primary .comments{
		padding: 0 5px;
	}	
}

/*---------------------------------------------------------------
	videoSimilar
---------------------------------------------------------------*/
.videoSimilar {
	display:flex;
	justify-content:space-between;
	align-items:center;
	width:100%;
	min-height:90px;
	border-top: 1px solid #eee;
	padding: 10px 0;
	cursor:pointer;
	font-family: "microsoft-sans-serif";
}
.videoSimilar:first-child {
	border-top: none;
}
.videoSimilar:last-child {
	border-bottom: 1px solid #eee;
}
.videoSimilar .poster {
	position:relative;
	width:40%;
	height:100%;
	background-size:contain;
	background-position:center;
	background-repeat:no-repeat;
	border-radius:8px;
	overflow:hidden;
	transition: all 0.5s;
}
.videoSimilar .poster:hover {
	box-shadow: 1px 1px 3px 0.1px #aaa;
	transform:scale(1.1,1.1);
}
.videoSimilar .poster img {
	width:100%;
	height:100%;
	object-fit:contain;
	object-position:center;
}
.videoSimilar .poster video, .videoSimilar .poster iframe {
	width:100%;
	height:100%;
	object-fit:contain;
	object-position:center;
}
.videoSimilar .poster .duration {
	position: absolute;
	left: 5px;
	bottom: 5px;
	z-index: 2;
	background-color: rgba(0, 0, 0, 0.6);
	padding: 2px 5px;
	color: #fff;
	font-size: 11px;
	border-radius: 5px;
}
.videoSimilar .content {
	width:calc(60% - 10px);
	height:100%;
}
.videoSimilar .content .title {
	display: block;
	font-weight: bold;
	font-size:0.7rem;
	color: rgb(72, 75, 98);
	line-height: 1.8em;
	max-height: 3.8em;
	white-space: normal;
	overflow-wrap: break-word;
	overflow: hidden;
	font-family: "IRANSansWeb2", IRANSansWeb2, "IRANSansWeb", IRANSansWeb;
}
.videoSimilar .content .name {
	display: inline-block;
	vertical-align: middle;
	max-width: 90%;
	color:var(--bs-gray);
	font-size:0.8rem;	
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	
}
.videoSimilar .content .details {
	display: flex;
	align-items:center;
	color:var(--bs-gray);
	font-size:0.8rem;
	padding:10px 0;
}
.videoSimilar .content .details * {
	margin-right: 8px;
}

.videoPage .channel {
	display:flex;
	align-items:center;
}
.videoPage .channel img {
	width:45px;
	height:45px;
	border-radius:100%;
}
.videoPage .channel div  {
	display:flex;
	flex-direction:column;
	justify-content:space-between;
	margin: 0 10px;
}
.videoPage .channel small  {
	color:var(--bs-gray);
}

/*---------------------------------------------------------------
	dark-theme
---------------------------------------------------------------*/
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6,
body.dark-theme span,
body.dark-theme p,
body.dark-theme a,
body.dark-theme i
{
	color:#eee !important;
}
body.dark-theme .videoPage .layer-primary .details-desktop .details-body .btn,
body.dark-theme .videoPage .layer-primary .details-device .details-body .btn{
	color:#ccc !important;
}
body.dark-theme .videoPage .layer-primary .details-desktop .details-body .btn:hover,
body.dark-theme .videoPage .layer-primary .details-device .details-body .btn:hover{
	background-color:#444!important;
}
body.dark-theme .videoPage .layer-primary .comments .comments-list li {
	border-top: 1px solid #222 !important;
}
body.dark-theme .videoPage .layer-primary .comments .comments-list li:last-child {
	border-bottom: 1px solid #222 !important;
}
body.dark-theme .videoSimilar {
	border-top: 1px solid #222 !important;
}
body.dark-theme .videoSimilar:last-child {
	border-top: 1px solid #222 !important;
}
body.dark-theme .dropdown-menu {
	background-color: #444 !important;
}
body.dark-theme .dropdown-item:hover {
	background-color:#222;
	color:#ccc;
}
@media screen and (min-width:768px) {
	body.dark-theme .videoPage .layer-primary .player-container {
		border: 1px solid #222;
	}
	
}
@media screen and (max-width:768px) {

	.videoPage .layer-primary .player-container iframe {
		height: 60vh !important;
	}
}
@media screen and (max-width:450px) {

	.videoPage .layer-primary .player-container iframe {
		height: 45vh !important;
	}
}