/* Copyright 2024 - Herber eDevelopment - Jaroslav Herber */

/* nav list EPG */
#epg_nav_channel_container {
	display: none;
}

#epg_nav_time {
	position: absolute;
	top: 26px;
	padding: 10px;
	background: rgba(0,0,0,0.7);
	border-radius: 4px;
	left: 18px;
	font-size: 22px;
	text-shadow: 0 0.5px 1px #000, 0 2px 6px #000;
}

#epg_nav_list_container {
	position: fixed;
	z-index: 0;
	left: 500px;
	top: 0;
	width: 800px;
	height: 100%;
	color: #fff;
	font-size: 16px;
	box-sizing: border-box;
	display: block;
	opacity: 0;
	transition: opacity 0.5s;
	padding-top: 80px;
	box-sizing: border-box;
}

	#epg_nav_list {
		height: 96%;
		overflow: hidden;
	}

	#epg_nav_list ul {
		margin-left: 10px;
		position: relative;
	}

		#epg_nav_list li {
			overflow: hidden;
			display: block;
			height: 46px;
			display: block;
			padding: 2px 0;
			margin: 4px 0 4px 0;
			position: absolute;
			left: 0;
		}

#epg_nav_channel {
	padding: 24px;
	margin-left: 20px;
	height: 100%;
	box-sizing: border-box;
	background-image: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.25));
}

@media only screen and (min-width: 1000px) {
	.nav-opened #epg_nav_list_container {
		z-index: 31;
	}

	.nav-opened.epg-loaded #epg_nav_list_container {
		opacity: 0.9;
	}
}

.channel-edit #epg_nav_list_container,
.groups-opened #epg_nav_list_container {
	opacity: 0 !important;
}

/* upper border hover */
#epg_container {
	display: block;
	position: fixed;
	z-index: 25;
	top: 0;
	right: 0;
	width: 100%;
	min-height: 70px;
	max-height: 40%;
	padding: 24px;
	transform: translateY(-100%);
	transition: all 0.5s;
	overflow: hidden;
	box-sizing: border-box;
	background-image: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.25));
}

#epg {
	color: #fff;
	overflow: auto;
	padding-right: 10px;
	height: 100%;
	font-size: 16px;
	scroll-behavior: smooth;
}

	#epg .HR {
		display: block;
		top: 9px; left: 0;
		width: 90%;
		margin: 0 0 0 10%;
		position: absolute;
		z-index: -1;
	}


#epg_overview {
	background: rgba(0,0,0,0.5);
	position: fixed;
	top: 0; left: 0;
	z-index: 22;
	width: 100%;
	height: 100%;
	display: none;
	box-sizing: border-box;
	padding: 80px 16px 20px 16px;
}

#epg_overview_table {
	display: flex;

	height: 100%;
	box-sizing: border-box;
	overflow-x: hidden;
	overflow-y: scroll;
	-webkit-overflow-scrolling: touch;
}

	.epg-overview #epg_overview {
		display: block;
	}

	.epg-overview #nav {
		display: none;
	}


#epg_channels {
	font-size: 18px;
	color: #fff;
	width: 30%;
	max-width: 400px;
	min-width: 180px;
	margin: 0 2px 0 0;
}

#epg_programme {
	width: 77%;
	height: fit-content;
	overflow-x: scroll;
	font-size: 18px;
	color: #fff;
	position: relative;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
}

	#epg_overview_time {
		position: absolute;
		top: 20px;
		color: #fff;
	}

	#epg_programme .p-title,
	#epg_programme .p-desc {
		font-size: 16px;
		line-height: 24px;
	}

.e-name,
.e-prog-row {
	margin: 1px 0;
	clear: both;
	height: 46px;
	line-height: 46px;
	padding: 1px 8px;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	cursor: pointer;
}

.e-loading {
	background: #000 url(images/epg-loader.html) no-repeat 20px center;
	opacity: 0.5;
}

#epg_settings .e-loading {
	padding-left: 56px;
	padding-right: 16px;
	background-position: 10px center;
}

	.e-name {
		background: #333;
	}

	.e-prog-row {
		height: 46px;
		display: flex;
		overflow: visible;
	}

	.e-logo {
		width: 100px;
		min-width: 100px;
		text-align: center;
		background: #fff;
		padding: 0 6px;
		display: flex;
		justify-content: center;
	}

		.e-logo img {
			display: block;
			height: auto; width: auto;
			max-height: 46px; max-width: 100px;
			margin: auto;
		}

	.e-prog {
		margin-left: 20px;
		display: flex;
	}

		.p-i {
			float: left;
			position: relative;
			margin-right: 3px;
			background: #035581;
			padding: 0 8px;
			width: 8%;
			font-style: normal;
			font-size: 16px;
			transition: background 0.5s;
		}

		.p-live {
			background: green;
		}

			.p-i b {
				font-weight: normal;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
				display: block;
			}

	.p-drop {
		display: none;
		width: 600px;
		max-height: 600px;
		overflow: hidden;
		border: 2px solid #fff;
		background: #333;
		color: #fff;
		position: absolute;
		z-index: 10;
		top: 40px;
		left: 0;
		padding: 8px 16px 12px;
		white-space: normal;
		box-shadow: 0 0 5px rgba(249, 154, 6, 0.75);
	}

	.p-drop.p-up {
		top: auto;
		bottom: 40px;
	}

	#epg_overview_table .p-i:hover,
	#epg_overview_table .p-i.hover {
		background: #ff5e00;
	}

	#epg_overview_table .e-name.active {
		color: #ffca34;
	}

	#epg_overview_table .e-name.selected {
		background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(249, 154, 6, 0.75), rgba(0, 0, 0, 0));
	}

	.p-i:hover .p-drop,
	.p-i.hover .p-drop {
		display: block;
	}

#hint_use_playlist_epg {
	display: none;
	font-size: 80%;
	text-decoration: underline;
	text-align: center;
	margin: 8px 0 12px 0;
	cursor: pointer;
}

#epg_url_from_playlist {
	font-size: 70%;
	margin: 4px 0 0 12px;
	padding: 4px 0 4px 0;
	width: auto !important;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.epg-enabled #epg_container {
	transform: translateY(0);
}

.epg-enabled #epg_container.has-epg {
	height: 100%;
}

.epg-chno {
	float: left;
	font-size: 30px;
	max-width: 180px;
	width: 30%;
	margin: 10px 30px 10px 0;
}

.epg-title {

}

.epg-icon-container {
	max-width: 200px;
	width: 40%;
	float: left;
}

.epg-icon {
	max-width: 100%;
	max-height: 60px;
	margin: 0 0 6px 0;
	width: auto; height: auto;
	background: rgba(255,255,255,0.8);
	padding: 6px;
}

.p-item {
	padding: 12px 0 12px;
	margin: 0 0 1px 0;
	clear: both;
}

.p-item.short {
	padding: 12px 24px;
	cursor: pointer;
}

.p-item.short:hover,
.p-item.active {
	background: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(249, 154, 6, 0.75), rgba(0, 0, 0, 0));
}

.p-icon {
	float: right;
	max-width: 220px;
	width: 40%; height: auto;
	margin: 0 0 8px 30px;
	box-shadow: 0 0 5px rgba(249, 154, 6, 0.75);
	cursor: zoom-in;
	position: relative; top: 0; left: 0;
}

.epg-enabled .p-zoom .p-icon {
	position: fixed;
	z-index: 100;
	width: auto; height: auto;
	max-width: 90%; max-height: 90%;
	left: 50%; top: 50%;
	transform: translateX(-50%) translateY(-50%);
	margin: 0;
	cursor: zoom-out;
}

.p-body {
	max-width: 1000px;
}

.p-now, .p-after {
	font-weight: bold;
	clear: both;
	margin: 10px 0;
	position: relative;
}

	.p-title {
		margin: 0;
	}

	.p-time {
		display: block;
		margin: 4px 0 0;
		line-height: 22px;
		font-size: 13px;
	}

	.p-desc {
		margin: 12px 0 0 0;
	}

.p-item.short .p-icon,
.p-item.short .p-desc {
	display: none;
}

.p-item.active .p-icon,
.p-item.active .p-desc {
	display: block;
}

#epg_nav_channel .p-time {
	font-size: 16px;
}

/* in channel list */
.en-prog {
	/*
	line-height: 22px;
	margin-left: 10px;
	padding-left: 4px;
	position: relative;
	background: #035581 url(../images/epg-nav-loader.gif) no-repeat 16px center;
	height: 44px;
	border-radius: 0 8px 8px 0;
	*/
}

	.en-prog .p-i {
		float: left;
		width: 356px;
		border-radius: 0 8px 8px 0;
		margin: 0 8px 0 10px;
		position: relative;
		background: #035581 /*url(../images/epg-nav-loader.gif) no-repeat 16px center*/;
		height: 44px;
		line-height: 44px;
		font-size: 18px;
		padding: 0 10px 0 4px;
	}

	.en-prog .p-i:before {
		content: "";
		position: absolute;
		z-index: 2;
		top: 0;
		left: -10px;
		width: 0;
		height: 0;
		border-top: 22px solid transparent;
		border-bottom: 22px solid transparent;
		border-right: 10px solid #035581;
	}

	.en-prog .p-live:before {
		border-right: 10px solid #c99503;
	}

	/*
	.en-prog .p-live:after {
		content: "";
		position: absolute;
		z-index: 2;
		top: 0;
		right: -10px;
		width: 0;
		height: 0;
		border-top: 22px solid transparent;
		border-bottom: 22px solid transparent;
		border-left: 10px solid green;
	}
	*/


#channel_info_epg_timeline {
	background: green;
	width: 100%;
	height: 4px;
	margin: 6px 0 12px;
}

	#channel_info_epg_elapsed {
		height: 8px;
		background: linear-gradient(90deg, #c99503 0, #ff5e00 100%);
		position: relative;
		top: -2px;
		border-radius: 4px;
		box-shadow: 0 0 4px 0 rgba(255, 255, 255, 0.75);
	}
