/* Base Styles & Resets */

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html, body {
	height: 100%;
}

html {
	font-size: 100%;
}

body {
	font: 400 16px 'Open Sans', sans-serif;
	font-size: 14px;
	color: #fff;
	display: flex;
	flex-direction: column;
	background-color: transparent;
}

img {
	/* Makes the image responsive */
	height: 100%;
	width: auto;
}

ul {
	list-style: none;
}

a {
	color: inherit;
	text-decoration: none;
}

.policy {
	font-size: 0.7em;
	font-weight:100;
	float: right;
	position: relative;
	bottom: 4px;
	opacity: 0.6;
}

/* Main Layout */

.logo {
	position: absolute;
	top: 1px;
	right: 16px;
	width: 70px;
	overflow: hidden;
	color: #fff;
}

	.logo g path {
		fill: #fff;
	}

main {
	width: 100%;
	background-color: transparent;
	border-radius: 1rem;
	background-image: url(/img/smartpod-background.jpg);
	background-size: cover;
	min-width: 270px;
}

/* Episode */

.episode {
	padding: 16px 16px 0 16px;
	position: relative;
	height: 190px;
	overflow: hidden;
	min-width: 224px;
}

	.episode .podcast-name {
		font-size: 16px;
		font-weight: 400;
		margin-top: 26px;
		max-height: 24px;
		overflow: hidden;
	}

	.episode .title {
		margin-top: 6px;
		font-size: 18px;
		font-weight: 600;
		max-height: 72px;
		overflow: hidden;
	}

	.episode .content {
		display: flex;
	}

	.episode .image-container {
		height: 120px;
	}

		.episode .image-container img {
			border-radius: .5rem;
		}

	.episode .info {
		padding-left: 1rem;
	}

	.episode .publish-date {
		font-size: 12px;
		font-weight: 600;
		margin-top: 0.2rem;
	}

	.episode .player {
		position: absolute;
		left: 0px;
		right: 16px;
		bottom: 6px;
		--plyr-color-main: #fff;
		--plyr-audio-controls-background: transparent;
		--plyr-audio-control-background-hover: rgba(255, 255, 255, .3);
		--plyr-audio-control-color: #fff;
	}

		.episode .player .plyr__controls__item.plyr__volume {
			display: none;
		}

.playlist {
	max-height: 0px;
	overflow-x: hidden;
	overflow-y: scroll;
	position: relative;
}

	.playlist table {
		width: 100%;
		border-spacing: 0;
		border-collapse: collapse;
	}

		.playlist table td {
			border-top: 1px solid #fff;
			padding: 4px 0 4px 0;
			margin: 0;
			cursor: pointer;
		}

			.playlist table td.date {
				padding-left: 16px;
				width: 96px;
			}

			.playlist table td.title {
				overflow: hidden;
				white-space: nowrap;
				text-overflow: ellipsis;
				word-break: normal;
				max-width: 100px;
			}

			.playlist table td.play {
				width:30px;
			}

		.playlist table tr {
			background-color: rgba(255, 255, 255, .8);
			color: #000;
		}

			.playlist table tr:hover {
				background-color: rgba(255, 255, 255, .5);
				color: #fff;
			}

				.playlist table tr:hover .play-button {
					border-color: transparent transparent transparent #fff;
				}

			.playlist table tr.selected {
				background-color: rgba(255, 255, 255, .5);
				color: #fff;
			}

				.playlist table tr.selected .play-button {
					border-color: transparent transparent transparent #fff;
				}

	.playlist .play-button-container {
		width: 20px;
		height: 20px;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.playlist .play-button {
		border: 0;
		background: transparent;
		box-sizing: border-box;
		width: 0;
		height: 16px;
		border-color: transparent transparent transparent #404040;
		transition: 100ms all ease;
		cursor: pointer;
		border-style: solid;
		border-width: 8px 0 8px 12px;
		margin-left: 3px;
	}

/* IE 10+ */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
	.episode .player .plyr__controls {
		background-color: transparent;
	}

	.episode .player .plyr__control svg {
		fill:#fff;
	}

	.episode .player .plyr__time--current {
		color:#fff;
	}
}

@media only screen and (min-width: 350px) {
	.episode .image-container {
		height: 160px;
	}

	.episode .player {
		left: 175px;
	}

	.playlist table td.title {
		max-width: 200px;
	}
}

@media only screen and (min-width: 500px) {
	.logo {
		width: 100px;
	}

	.episode .player .plyr__controls__item.plyr__volume {
		display: flex;
	}
}