/* INDEX
	1. Root
	2. Reset
	3. Structure
	4. Header
	5. Series
	6. Chapters
	7. Buttons
	8. Video Player
	9. Mobile
*/

/*  1. Root */

:root {
	--dark: #07080a;
	--blue: #408092;
	--gray: #b2c4ce;
	--orange: #FF816B;
	--light: #FFFFFF;
}

/* 2. Reset */

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

/* 3. Structure */

html,
body {
	position: relative;
	height: 100%;
	background: var(--dark);
}

body {
	background: #eee;
	font-family: Lato, sans-serif;
	font-weight: bold;
	font-size: 21px;
	line-height: 1.5;
	color: var(--light);
	margin: 0;
	padding: 0;
	overflow: hidden;
}

/* #video-cover {
	position: fixed;
	right: 0;
	bottom: 0;
	min-width: 100%;
	min-height: 100%;
  } */

.media-container {
	position: relative;
	top: 0;
	width: 100%;
	height: 100%;
	left: 0;
	overflow: hidden;
}

a {
	text-decoration: none;
	margin: 0;
	padding: 0;
	color: inherit;
}

/* 4. Header */
#share {
	position: fixed;
	top: 12px;
	right: 20px;
	text-align: right;
	z-index: 1;
}

.fa-facebook,
.fa-twitter-square,
.fa-envelope {
	color: var(--light);
	/*		text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);*/
	font-size: 25px;
	margin-left: 20px;
	opacity: 0.6;
}

.fa-facebook:hover,
.fa-twitter-square:hover,
.fa-envelope:hover,
.close:hover {
	opacity: 1;
}

#header:before {
	content: '';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;

	/* Aplica um leve degradee abaixo do cabecalho para melhorar a legibilidade dos ícones */
	background: -moz-linear-gradient(top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
	background: -webkit-linear-gradient(top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 100%);
	filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#a6000000', endColorstr='#00000000', GradientType=0);
	/* ------ */

	z-index: 1;
	width: 100%;
	height: 130px;
}

.blocks {
	position: absolute;
	margin-left: 70px;
	bottom: 60px;
	height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	z-index: 2;
}

.blocks.top {
	justify-content: flex-start;
}

.blocks.center {
	justify-content: center;
}

.blocks.bottom {
	justify-content: flex-end;
}


.brand {
	width: 270px;
	z-index: 1;
}

.brand_chapter {
	width: 270px;
	z-index: 1;
	position: fixed;
	top: 30px;
	left: 50%;
	transform: translate(-50%, -50%);
}

.heading span {
	display: block;
}

.heading .title {
	font-family: 'Flama', sans-serif;
	font-weight: 900;
	font-style: italic;
	font-size: 3rem;
	line-height: 1.1;
	color: var(--light);
	text-transform: uppercase;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.heading .subtitle {
	font-family: 'Flama', sans-serif;
	font-weight: 600;
	font-style: normal;
	font-size: 0.9rem;
	line-height: 1.5;
	margin: 0.9rem auto 1.2rem auto;
	color: var(--light);
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.heading .credits {
	font-size: 0.8rem;
	line-height: 1.5;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.text-shadow {
	text-shadow: 0px 0px 8px rgba(0, 0, 0, 0.35), 1px 1px 1px rgba(0, 0, 0, 0.5), -1px -1px 1px rgba(0, 0, 0, 0.5);
}

/* 5. Series */

#video-cover {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 100%;
	-o-object-position: bottom;
	object-position: bottom;
	-o-object-fit: cover;
	object-fit: cover;
	width: 100%;
	filter: brightness(0.5);
}

/* #video-chapter,
.video-player {
	position: absolute;
	bottom: 0;
	left: 0;
	height: 100%;
	-o-object-position: bottom;
	object-position: bottom;
	-o-object-fit: cover;
	object-fit: cover;
	width: 100%;
} */

.series-meta {
	color: white;
	-webkit-font-smoothing: antialiased;
	position: absolute;
	left: 15px;
	max-width: 225px;
	top: 0;
	width: 100%;
}

/* 6. Chapters */

.chapter_container {
	width: 100%;
	max-width: 800px;
	margin-left: 30px;
	margin-top: 30px;
	color: var(--light);
}

.chapter_wrapper {
	text-align: left;
	width: 100%;
	left: 45px;
	/*		height: 100%;*/
	bottom: initial;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-direction: column;
	flex-direction: column;
	-ms-flex-pack: center;
	justify-content: center;
	margin-bottom: 30px;
}

.play-container:before {
	opacity: 1;
	transition: opacity 0.5s;
}


.video_chapter {
	font-family: 'Flama', sans-serif;
	font-weight: 900;
	font-style: italic;
	font-size: 18px;
	text-transform: uppercase;
	-webkit-font-smoothing: antialiased;
}

.video_summary {
	font-family: 'Flama', sans-serif;
	font-weight: 500;
	font-style: normal;
	font-size: 15px;
	line-height: 1.3;
	-webkit-font-smoothing: antialiased;
	max-width: 400px;
	margin-left: 6.3%;
}

.chapter_bottom_space {
	display: none;
}

.actual_chapter_container {
	position: fixed;
	bottom: 100px;
	left: 20px;
	z-index: 2;
}

.actual_chapter {
	font-family: 'Flama', sans-serif;
	color: var(--light);
	font-weight: 900;
	font-style: italic;
	font-size: 1.125rem;
	text-transform: uppercase;
	-webkit-font-smoothing: antialiased;
	opacity: 0;
}

.actual_summary {
	font-family: 'Flama', sans-serif;
	color: var(--light);
	font-weight: 500;
	font-style: normal;
	font-size: 0.9375rem;
	line-height: 1.3;
	-webkit-font-smoothing: antialiased;
	opacity: 0;
}

.actual_animation {
	animation: fadeout 8s;
}

@keyframes fadeout {
	from {
		opacity: 1
	}

	to {
		opacity: 0
	}
}

.next_chapter_container {
	position: fixed;
	bottom: 100px;
	right: 60px;
	z-index: 2;
	text-align: right;
}

.next_chapter {
	font-family: 'Flama', sans-serif;
	color: var(--light);
	font-weight: 900;
	font-style: italic;
	font-size: 1.125rem;
	text-transform: uppercase;
	-webkit-font-smoothing: antialiased;
	opacity: 1;
}

.next_summary {
	font-family: 'Flama', sans-serif;
	color: var(--light);
	font-weight: 500;
	font-style: normal;
	font-size: 0.9375rem;
	line-height: 1.3;
	-webkit-font-smoothing: antialiased;
	opacity: 1;
}

.next_animation {
	animation: fadeout_next 4s;
}

@keyframes fadeout_next {
	from {
		opacity: 0
	}

	to {
		opacity: 1
	}
}

/* 7. Buttons */

.close {
	left: 13px;
	top: 13px;
	position: fixed;
	z-index: 2;
	width: 32px;
	height: 32px;
	opacity: 0.6;
}

.close:before,
.close:after {
	position: absolute;
	left: 15px;
	content: ' ';
	height: 28px;
	width: 3px;
	background-color: white;
}

.close:before {
	transform: rotate(45deg);
}

.close:after {
	transform: rotate(-45deg);
}

.play-container {
	width: 16px;
	height: 25px;
	float: left;
	top: 50%;
	transform: translateY(30%);
	margin-right: 20px;
}

.play-container:before {
	content: "";
	display: block;
	position: absolute;
	width: 34px;
	height: 34px;
	border-radius: 100%;
	border: 2px solid;
	border-color: var(--light);
	top: 50%;
	left: 30%;
	transform: translateX(-50%) translateY(-50%);
	opacity: 0;
}

.play-container_next {
	width: 16px;
	height: 25px;
	position: fixed;
	bottom: 109px;
	right: 20px;
	z-index: 2;
	opacity: 0;
}

.play-container_next:before {
	content: "";
	display: block;
	position: absolute;
	width: 34px;
	height: 34px;
	border-radius: 100%;
	border: 2px solid;
	border-color: var(--light);
	top: 50%;
	left: 30%;
	transform: translateX(-50%) translateY(-50%);
}

.play {
	width: 83%;
	height: 100%;
	fill: var(--light);
}

.chapter_wrapper:hover .play-container:before {
	opacity: 1;
	transition: opacity 0.5s;
}

.downArrow {
	display: none
}

/* 8. Video Player */
video::-webkit-media-controls-fullscreen-button {
	display: none;
}

video::-webkit-media-controls-overflow-button {
	display: none;
}

::cue {
	color: white;
	background-color: rgba(0, 0, 0, 0.5);
	font-size: 1.1rem;
	line-height: 1;
	white-space: nowrap;
	font-family: 'Flama', sans-serif;
}

/* 9. Mobile */

@media (max-width: 767px) {
	#share {
		display: none;
	}

	.close {
		top: 21px;
		right: 12px;
		left: auto;
	}

	.close:before,
	.close:after {
		height: 30px;
	}

	.play-container {
		height: 0.75rem;
		margin-left: 15px;
		margin-right: 20px;
		margin-bottom: 50px;
		margin-top: 10px;
	}

	.play-container:before {
		opacity: 0.8;
		border: 1px solid;
		width: 36px;
		height: 36px;
	}

	.play {
		margin-bottom: 10px;
		opacity: 0.8;
	}


	.downArrow {
		display: block;
		position: fixed;
		bottom: 2rem;
		left: 2.3rem;
		z-index: 3;
		width: 10px;
		opacity: 0.6;
	}

	.bounce {
		-moz-animation: bounce 3s infinite;
		-webkit-animation: bounce 3s infinite;
		animation: bounce 3s infinite;
	}

	@-moz-keyframes bounce {
		0%,
		20%,
		50%,
		80%,
		100% {
			-moz-transform: translateY(0);
			transform: translateY(0);
		}

		40% {
			-moz-transform: translateY(-30px);
			transform: translateY(-30px);
		}

		60% {
			-moz-transform: translateY(-15px);
			transform: translateY(-15px);
		}
	}

	@-webkit-keyframes bounce {

		0%,
		20%,
		50%,
		80%,
		100% {
			-webkit-transform: translateY(0);
			transform: translateY(0);
		}

		40% {
			-webkit-transform: translateY(-30px);
			transform: translateY(-30px);
		}

		60% {
			-webkit-transform: translateY(-15px);
			transform: translateY(-15px);
		}
	}

	@keyframes bounce {
		0%,
		20%,
		50%,
		80%,
		100% {
			-moz-transform: translateY(0);
			-ms-transform: translateY(0);
			-webkit-transform: translateY(0);
			transform: translateY(0);
		}

		40% {
			-moz-transform: translateY(-30px);
			-ms-transform: translateY(-30px);
			-webkit-transform: translateY(-30px);
			transform: translateY(-30px);
		}

		60% {
			-moz-transform: translateY(-15px);
			-ms-transform: translateY(-15px);
			-webkit-transform: translateY(-15px);
			transform: translateY(-15px);
		}
	}

	.chapter_container {
		position: absolute;
		bottom: 1rem;
		margin-left: 0;
		height: 160px;
		overflow-y: scroll;
		scroll-snap-type: y mandatory;
	}

	.degradee {
		content: '';
		/* display: block;
		position: absolute;
		bottom: 1rem; */
		/* background: -moz-linear-gradient(top, rgb(7, 8, 10) 0%, rgba(0, 0, 0, 0) 100%);
		background: -webkit-linear-gradient(top, rgba(7, 8, 10) 0%, rgba(0, 0, 0, 0) 100%);
		background: linear-gradient(to top, rgba(7, 8, 10) 0%, rgba(0, 0, 0, 0) 100%);
		filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#a6000000', endColorstr='#00000000', GradientType=0); */
		/* z-index: 1; */
		/* width: 200%;
		margin-left: -10%;
		height: 120px; */
	}

	.actual_chapter,
	.next_chapter,
	.video_chapter {
		font-size: 1rem;
	}

	.actual_summary,
	.next_summary,
	.video_summary {
		font-size: 0.85rem;
		line-height: 1.2;
	}

	.chapter_bottom_space {
		display: block;
		/* height: 80px; */
	}

	.blocks {
		width: calc(100wh - 3rem);
		margin: 3.5rem 1.5rem 2rem 1.5rem;
		bottom: 0;
		height: calc(100vh - 3.5rem);
		justify-content: flex-start !important;
	}

	.brand {
		width: 190px;
		margin-bottom: 176px;
	}

	.brand_chapter {
		width: 190px;
		z-index: 1;
		position: fixed;
		top: 37px;
		left: 119px;
	}

	.heading .title {
		font-size: 2rem;
		line-height: 1.1;
	}

	.heading .subtitle {
		font-size: 0.85rem;
		line-height: 1.2;
	}

	.heading .credits {
		font-size: 0.7rem;
	}

	#video-cover {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		left: 0;
		/* width: 100%;
		height: auto; */
		object-fit: cover;
		object-position: unset;
	}

	.series-meta {
		max-width: 450px;
		left: 50px;
		height: 100%;
		display: -ms-flexbox;
		display: flex;
		-ms-flex-direction: column;
		flex-direction: column;
		-ms-flex-pack: center;
		justify-content: center;
	}

	/* #video-chapter,
	.video-player {
		position: fixed;
		top: 72px;
		left: 0;
		height: auto;
		-o-object-position: bottom;
		object-position: bottom;
		width: 100%;
	} */
}

.plyr {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
}

.plyr__video-wrapper {
display: flex;
align-items: center;
height: 100%;
}

#header,
.actual_chapter_container {
transition: opacity 0.6s;
}

.hide {
opacity: 0;
transition: opacity 3s;
}

.next-episode {
opacity: 0;
}