:root {
	--theme-color: #127940;
	--theme-color-light: #23AD61;
}

html,
body {
	display: block;
	width: 100%;
	cursor: default;
}

html {
	padding: 0px;
	margin: 0px;
	background-color: #101010;
	height: 100%;
}

body,
#contents {
	color: #EDEDED;
	caret-color: #EDEDED;
	font-family: Roboto, Verdana, Arial, Sans-Serif;
	font-size: 16px;
	padding: 0px;
	width: 100%;
	min-height: 100%;
	min-width: 360px;
	max-width: 900px;
	margin: 0 auto;
	user-select: none;
}

#contents {
	box-shadow: 0 0 4px rgba(0,0,0,.14), 0 4px 8px rgba(0,0,0,.28);
	background-color: rgba(64, 64, 64, 0.32);
}

a,
a:visited {
	color: var(--theme-color);
}

a:hover {
	color: var(--theme-color-light);
}

header {
	display: block;
	position: relative;
	height: 56px;
	background-color: var(--theme-color);
	color: #EDEDED;
	white-space: nowrap;
	padding: 0px 8px;
}

h1 {
	display: inline-block;
	max-width: 60%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding: 0px 8px;
	margin: 0px;
	line-height: 56px;
	font-size: 18px;
	font-weight: normal;
}

header button {
	float: right;
	background: rgba(0,0,0,0);
	cursor: pointer;
	color: inherit;
	transition: background 0.4s;
	margin: 0px;
	padding: 8px 28px;
	border: none;
	text-align: center;
	font-weight: normal;
	height: 100%;
	width: 56px;
	padding: 0px;
}

header button:hover,
header button:focus {
	background: rgba(0,0,0,0.1);
	transition: background 0.05s;
}

#menu-container {
	position: absolute;
	top: 50px;
	right: 8px;
	background: #2A2A2A;
	color: inherit;
	z-index: 5;
	box-shadow: 0 -4px 8px rgba(0,0,0,.28), 0 0 4px rgba(0,0,0,.4);
}

.menu-list {
	background: rgba(255,255,255,0);
	list-style-type: none;
	margin: 0px;
	padding: 0px;
}

.menu-list-item {
	padding: 12px 12px 12px 6px;
	cursor: pointer;
	transition: background 0.4s;
	outline: 0;
}

.menu-list-item:hover,
.menu-list-item:focus {
	background: rgba(255,255,255,0.1);
	transition: background 0.05s;
}

main {
	text-align: center;
	padding: 8px;
	padding-bottom: 64px;
}

main.blur {
	backdrop-filter: blur(4px);
}

.source {
	padding: 16px 0px;
	border-bottom: solid 1px #555555;
}

.source:last-child {
	border-bottom: none;
}

h2 {
	margin: 0px 8px 8px 8px;
}

.next-broadcast
{
	margin: 0px 8px 18px 8px;
	font-size: 12px;
}

.ep,
.ep:visited,
.live,
.live:visited {
	position: relative;
	display: inline-block;
	cursor: pointer;
	text-decoration: none;
	color: inherit;
	width: 156px;
	padding: 8px 8px 24px 8px;
	background: rgba(255,255,255,0);
}

.ep:hover,
.ep:focus,
.live:hover,
.live:focus {
	background: rgba(255,255,255,.1) !important;
	/* color: var(--theme-color-light); */
	color: inherit;
	text-decoration: none;
	outline: 0;
}

.ep.hidden {
	display: none;
}

.ep[data-tracklist]:not([data-tracklist="null"])::before {
	box-shadow: 0 -4px 4px rgba(0,0,0,.28), 0 0 2px rgba(0,0,0,.4);
	content: 'TRACKLIST';
	padding: 2px 4px;
	color: #FFFFFF;
	background: rgba(0,0,0,0.55);
	position: absolute;
	top: 12px;
	right: 12px;
	font-size: xx-small;
	font-weight: bold;
	border-radius: 3px;
	backdrop-filter: blur(4px);
}

.show-more {
	display: block;
	width: 90%;
	padding: 12px 8px;
	margin: 16px auto 4px auto;
	cursor: pointer;
	border: none;
	border-radius: 5px;
	color: #EDEDED;
	background: rgba(255,255,255,.1);
	outline: 0;
}

.show-more:hover,
.show-more:focus {
	background: rgba(255,255,255,.2);
}

.live.anim {
	animation: attentionlivefull 3s 8;
}

@keyframes attentionlivefull {
	0% { background-color: rgba(255,255,255,0) }
	50% { background-color: rgba(255,255,255,0.2) }
	100% { background-color: rgba(255,255,255,0) }
}

.ep img,
.live img {
	display: block;
	width: 156px;
	height: 156px;
	object-fit: cover;
	margin-bottom: 4px;
	pointer-events: none;
}

.live::before {
	box-shadow: 0 -4px 8px rgba(0,0,0,.28), 0 0 4px rgba(0,0,0,.4);
	content: 'LIVE';
	padding: 2px 4px;
	color: #FFFFFF;
	background: #D81515;
	position: absolute;
	top: 12px;
	right: 12px;
	font-size: xx-small;
	font-weight: bold;
	border-radius: 3px;
	opacity: 1;
}

.live.anim:before {
	animation: attentionlive 3s 8;
}

@keyframes attentionlive {
	0% { opacity: 1 }
	50% { opacity: 0.5 }
	100% { opacity: 1 }
}

footer {
	display: block;
	z-index: 100;
	position: fixed;
	bottom: -90px;
	width: 100%;
	max-width: 900px;
	margin: 0px;
	padding: 0px;
	white-space: nowrap;
	transition: bottom 0.3s;
	transition-timing-function: ease-in-out;
}

#playerwrapper {
	background-color: rgba(16, 16, 16, 0.96);
	backdrop-filter: blur(4px);
	box-shadow: 0 0 4px rgba(0,0,0,.14), 0 4px 8px rgba(0,0,0,.28);
}

#playerwrapper:before {
	box-shadow: 0 -4px 8px rgba(0,0,0,.28), 0 0 4px rgba(0,0,0,.14);
	content: "";
	height: 75px;
	left: 0px;
	bottom: 0px;
	position: absolute;
	width: 100%;
	pointer-events: none;
}

#seekbarwrapper {
	display: block;
	position: absolute;
	top: -18px;
	left: 0px;
	right: 0px;
	height: 30px;
	width: 100%;
	margin: 0px;
	z-index: 20;
}

#player-art {
	display: inline-block;
	vertical-align: middle;
	background-color: #1A1A1A;
	width: 71px;
	height: 71px;
	pointer-events: none;
}

footer button.player-ctrl {
	display: inline-block;
	vertical-align: middle;
	text-align: center;
	cursor: pointer;
	background: rgba(255,255,255,0);
	opacity: 0.75;
	border: none;
	width: 51px;
	height: 51px;
	margin: 5px 3px 5px 3px;
	font-size: 36px;
	color: #EDEDED;
}

footer button.player-ctrl:hover,
footer button.player-ctrl:focus {
	opacity: 1;
	outline: 0;
}

#play-pause {
	width: 61px;
	height: 61px;
	font-size: 48px;
}

#metadata {
	display: inline-block;
	vertical-align: middle;
	width: 80%;
	max-width: 600px;
	white-space: nowrap;
}

#metadata div {
	display: block;
	text-overflow: ellipsis;
	overflow: hidden;
}

#player-title {
	font-weight: bold;
}

#player-show {
	color: #919191;
	font-size: 14px;
}

#player-extra {
	color: #515151;
	font-size: 10px;
	height: 12px;
	transition: height 0.2s ease-in-out, color 0.2s ease-in-out 0.2s;
}

#player-extra:empty {
	color: #212121;
	height: 0px;
	transition: color 0.2s ease-in-out, height 0.2s ease-in-out 0.2s;
}

#player-times {
	display: block;
	position: absolute;
	right: 4px;
	top: 4px;
	color: #515151;
	font-size: 11px;
}

::-moz-selection {
	color: #FFFFFF;
	background-color: rgba(18, 121, 64, 0.99);
	text-shadow: none;
}

::selection {
	color: #FFFFFF;
	background-color: rgba(18, 121, 64, 0.99);
	text-shadow: none;
}

/* seekbar */
#progressbar-outer {
	width: 100%;
	height: 4px;
	padding: 0px;
	padding-top: 14px;
	padding-bottom: 14px;
	margin: 0px;
	white-space: nowrap;
	background-color: rgba(0,0,0,0);
	position: relative;
	cursor: default;
	overflow: hidden;
}

#progressbar-outer .progressbar-inner {
	width: 0%;
	height: inherit;
	position: absolute;
	left: 0;
	transition: 0.25s;
	transition-timing-function: linear;
	will-change: width;
}

#progressbar-outer #barbackground {
	width: 100%;
	background-color: rgba(64, 64, 64, 0.96);
	z-index: 1;
}

#progressbar-outer #progressbar {
	background-color: var(--theme-color-light);
	transition: background-color 1s;
	z-index: 3;
}

#progressbar-outer #bufferbar {
	background-color: rgba(255,255,255,0.2);
	z-index: 2;
	transition-timing-function: ease;
}

#progressbar.hovering:after {
	content: '';
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 5px;
	background-color: var(--theme-color-light);
	transition: background-color 1s;

	position: absolute;
	right: -5px;
	top: -3px;

	animation: progresshover 0.1s 1 alternate ease-in-out;
	animation-fill-mode: forwards;
}

@keyframes progresshover {
	from {

	}
	to {
		width: 16px;
		height: 16px;
		border-radius: 8px;
		right: -8px;
		top: -6px;
	}
}

@media screen and (max-width: 600px)
{
	.ep, .ep:visited, .live, .live:visited {
		width: 153px;
	}

	.ep img, .live img {
		width: 153px;
		height: 153px;
	}
}

@media screen and (max-width: 450px)
{
	#skip-next {
		display: none;
	}

	#play-pause {
		margin: 0px;
		width: 51px;
		height: 71px;
		font-size: 36px;
	}

	#player-times {
		font-size: 10px;
	}
}

#spinner {
	display: inline-block;
	width: 60px;
	height: 60px;
	padding: 0px;
	box-sizing: border-box;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;

	border: 7px solid rgba(0,0,0,0);
	border-top: 7px solid;
	border-top-color: #127940;
	transition: border-top-color 1s;
	border-radius: 30px;
	animation: spin 0.8s linear infinite;
}

#loadingtext {
	margin-top: 28px;
	font-size: 18px;
}

#loadingtext:empty {
	margin-top: 0px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}
