/* Copyright 2026 - Herber eDevelopment - Jaroslav Herber */

h3 {
	margin: 0;
}

#epg_overview {
	display: none;
	position: fixed;
	top: 0; left: 0;
	z-index: 40;
	width: 100%;
	height: 100%;
}

	#epg_overview_frame {
		width: 100%;
		height: 100%;
		border: 0;
	}

#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;
	}


/* nav list EPG */
#epg_nav_channel_container {
	display: none;
}

#epg_download_status {
	position: absolute;
	top: 13px;
	left: 18px;
	text-shadow: 0 0.5px 1px #000, 0 2px 6px #000;
	height: 44px;
	line-height: 28px;
	padding: 8px 20px;
	overflow: hidden;
}

.e-loading {
	display: inline-block;
	padding-left: 28px;
	background: url(../../images/loading-circle.svg) no-repeat 0 50%;
	background-size: 20px;
}

#epg_download_status.e-loading {
	padding-left: 56px;
	background-size: 44px;
}

#epg_program_browser.no-epg,
#channel_info .e-loading {
	display: none;
}


#epg_nav_list_container {
	position: fixed;
	z-index: 0;
	left: 500px;
	top: 0;
	width: 800px;
	height: 100%;
	color: #fff;
	font-size: 90%;
	box-sizing: border-box;
	display: block;
	transition: opacity 0.5s;
	padding-top: 80px;
	box-sizing: border-box;
	opacity: 0;
}

	#epg_nav_list {
		height: 96%;
		overflow: hidden;
		pointer-events: none;
	}

	#epg_nav_list ul {
		margin: 0 10px;
		position: relative;
	}

		#epg_nav_list li {
			overflow: hidden;
			cursor: default;
			display: block;
			height: 50px;
			display: block;
			padding: 4px 0;
			margin: 8px 0 0 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: 880px) {
	.nav-opened #epg_nav_list_container {
		z-index: 31;
		opacity: 0.9;
	}
}

.channel-edit #epg_nav_list_container,
.advanced-nav-opened #epg_nav_list_container,
.groups-opened #epg_nav_list_container,
.xtream-info-opened #epg_nav_list_container {
	opacity: 0 !important;
}

#epg_program_browser {
	width: 100%; height: 100%;
	padding: 10px 0 0;
	overflow: hidden;
	box-sizing: border-box;
}

	#epg_program_browser p {
		margin: 0 0 12px;
	}

#epg {
	width: 100%; height: 100%;
	color: #fff;
	overflow: visible;
	position: relative;
}

#epg.smooth-move {
	transition: transform 0.4s;
}

	#epg .HR {
		display: block;
		top: 9px; left: 0;
		width: 90%;
		margin: 0 0 0 10%;
		position: absolute;
		z-index: -1;
	}

.epg-program-item {
	width: 100%; height: 100%;
	padding: 0 3% 46px;
	position: absolute;
	top: 0;
	text-align: left;
	overflow: hidden;
}

	.program-tags {
		overflow: hidden;
		max-height: 100%;
		float: right;
		max-width: 40%;
		padding: 4px 0 4px 20px;
	}

		.epg-tag {
			float: right;
			border-radius: 10px;
			padding: 6px 12px;
			margin: 0 6px 6px 0;
			background: var(--button);
			font-size: 80%;
			overflow: hidden;
			text-overflow: ellipsis;
			white-space: nowrap;
			max-width: 100%;
		}

.full-epg-desc #smart_epg {
	height: 80%;
}

.program-tags .p-arch {
	background: var(--theme-highlight);
}

.program-tags .p-arch span::before {
	content: '\25B6';
	width: 24px;
	height: 24px;
	display: inline-block;
	border: 2px solid #fff;
	border-radius: 12px;
	line-height: 21px;
	font-size: 13px;
	vertical-align: middle;
	text-align: center;
	margin: -3px 8px 0 0;
	padding-left: 2px;
	box-sizing: border-box;
}

.p-content {
	overflow: auto;
	scroll-behavior: smooth;
}

#hint_use_playlist_epg {
	display: none;
	font-size: 80%;
	text-decoration: underline;
	text-align: center;
	margin: 8px 0 12px 0;
	cursor: pointer;
}

.no-epg #epg {
	display: block;
}

.epg-chno {
	float: left;
	font-size: 30px;
	max-width: 180px;
	width: 30%;
	margin: 10px 30px 10px 0;
}

.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-icon {
	float: right;
	clear: right;
	border-radius: 8px;
	max-width: 30%; width: auto;
	max-height: 70%; height: auto;
	margin: 0 0 8px 24px;
	box-shadow: 0 0 5px rgba(249, 154, 6, 0.75);
	cursor: zoom-in;
}

.p-time {
	position: absolute;
	left: 0; right: 0; bottom: -3px;
	text-align: center;
	margin: 0 !important;
	padding-top: 20px;
}

.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-title {
	margin: 0;
}

.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;
}


/* in channel list */
.en-prog .p-i {
	float: left;
	width: 356px;
	border-radius: 8px;
	margin: 0 10px;
	position: relative;
	background: var(--theme-dark);
	height: 44px;
	line-height: 44px;
	font-style: normal;
	padding: 0 10px;
}

.en-prog .p-live {
	padding-left: 14px;
}

.en-prog .p-live::before {
	content: '\25B6';
	position: absolute;
	left: -6px;
	color: var(--theme-light);
}

.p-i b {
	font-weight: normal;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	display: block;
}

#channel_info_epg_timeline {
	background: var(--theme-light);
	height: 4px;
	border-radius: 2px;
}

	#channel_info_epg_elapsed {
		height: 8px;
		background: linear-gradient(90deg, var(--theme-moderate) 0, var(--theme-dark) 100%);
		position: relative;
		top: -2px;
		border-radius: 4px;
		box-shadow: 0 0 4px 0 rgba(255, 255, 255, 0.75);
	}

	#channel_info_epg_elapsed::after {
		content: '';
		position: absolute;
		right: -5px;
		top: -5px;
		height: 16px;
		width: 16px;
		border-radius: 10px;
		background: var(--theme-light);
		box-shadow: 0 0 8px 0 rgba(255, 255, 255, 0.75);
		border: 1px solid #fff;
	}


.channellist-right #epg_nav_list_container {
	left: auto;
	right: 500px;
}

.channellist-right #epg_nav_list li {
	left: auto;
	right: 0;
}
