page-watch {
	background-color: rgb(15, 15, 15);
	display: block;
	overflow-y: scroll;
	overflow-x: hidden;
	padding: var(--u);
}

page-watch > div.restricted {
	z-index: 10;
	transform: translateX(100vw);
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	height: 100%;
	width: 100%;
	font-size: 2rem;
	background-color: white;
	color: black;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
}

page-watch > div.restricted.on {
	transform: none;
}

page-watch > label.button {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: center;
	padding-left: 1rem;
	padding-right: 1rem;
	gap: 1rem;
	position: absolute;
	transition-property: transform, opacity, width;
	transition-duration: 0.5s;
	top: 2rem;
	right: 5rem;
	height: var(--u-sm);
}

page-watch > label.on {
	opacity: 1;
	z-index: 9;
	pointer-events: all;
}

page-watch > label > input {
	height: 2rem;
	font-size: 1rem;
}

page-watch > label > i {
	font-family: "Material Symbols Rounded";
	font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 48;
	font-style: normal;
	font-size: 2rem;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
}

page-watch > div.viewDetails {
	opacity: 0;
	z-index: 1;
	pointer-events: none;
	background-color: rgb(15, 15, 15);
	color: white;
	transition-property: transform, opacity, width;
	transition-duration: 0.5s;
	position: fixed;
	top: 0;
	bottom: 0;
	right: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	align-content: center;
}

page-watch > div.viewDetails.on {
	opacity: 1;
	z-index: 6;
	pointer-events: all;
}

page-watch > div.viewDetails > div {
	align-content: center;
	text-align: center;
	display: grid;
	grid-template-columns: 100%;
	grid-template-rows: repeat(1, minmax(0, 1fr));
	gap: 1rem;
	overflow-y: scroll;
}

page-watch > div.viewDetails > div > div {
	grid-column: 1;
	grid-row: 1;
	align-content: center;
	padding: 2rem;
	width: min-content;
}

page-watch > div.viewDetails > div > div > div {
	position: relative;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
}

page-watch > div.viewDetails > div > div > div > video {
	aspect-ratio: 16 / 9;
	cursor: pointer;
	width: 50vw;
	height: auto;
	background-color: rgb(15, 15, 15);
}

page-watch > div.viewDetails > div > div > div > i {
	opacity: 0;
	z-index: 1;
	font-family: "Material Symbols Rounded";
	font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 48;
	font-style: normal;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	position: absolute;
	aspect-ratio: 1;
	font-size: 5.5rem;
	border-radius: 50%;
	background-color: var(--color-blue);
	color: white;
	height: 6.5rem;
	width: 6.5rem;
}

page-watch > div.viewDetails > div > div > div > i.on {
	opacity: 1;
	z-index: 6;
}

page-watch > div.viewDetails > div > div > h3 {
	font-size: 1.75rem;
	font-weight: bold;
	padding: 2rem;
	text-align: left;
	padding-left: 0;
}

page-watch > div.viewDetails > div > div > p {
	font-size: 1.25rem;
	width: 50vw;
	margin: auto;
	text-align: left;
}

page-watch > div.viewDetails > i {
	font-family: "Material Symbols Rounded";
	font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 48;
	font-style: normal;
	font-weight: bold;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	position: fixed;
	top: 0;
	right: 0;
	font-size: 2.5rem;
	height: 5rem;
	width: 5rem;
	background-color: rgb(15, 15, 15);
	color: white;
	padding: 1rem;
}

page-watch > div.viewSearch {
	display: none;
	z-index: 1;
	background-color: rgb(15, 15, 15);
	color: white;
	position: relative;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	align-content: center;
}

page-watch > div.viewSearch.on {
	display: flex;
	z-index: 5;
	pointer-events: all;
}

page-watch > div.viewSearch > div.searchMatches {
	align-content: center;
	text-align: center;
	display: grid;
	grid-template-columns: 100%;
	grid-template-rows: repeat(1, minmax(0, 1fr));
	overflow-y: scroll;
	overflow-x: hidden;
	gap: 1rem;
	height: 100%;
}

page-watch > div.viewSearch > div.searchMatches > table > thead > tr > th {
	padding-bottom: 1rem;
	border-bottom: solid 1px rgba(0, 0, 0, 0.1);
	background-color: rgb(15, 15, 15);
	color: white;
}

page-watch > div.viewSearch > div.searchMatches > table > tbody > tr {
	height: 4rem;
	font-size: 1.25rem;
}

page-watch > div.viewSearch > div.searchMatches > table > tbody > tr:hover {
	cursor: pointer;
	color: orange;
}

page-watch > div.viewSearch > i {
	font-family: "Material Symbols Rounded";
	font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 48;
	font-style: bold;
	font-size: 2.5rem;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	position: fixed;
	top: 0;
	right: 0;
	height: 5rem;
	width: 5rem;
	background-color: rgb(15, 15, 15);
	color: white;
	padding: 1rem;
}

page-watch > main {
	opacity: 0;
	z-index: 1;
	overflow-y: scroll;
	overflow-x: hidden;
	color: white;
}

page-watch > main.on {
	opacity: 1;
	z-index: 5;
}

page-watch > main > section.topPicks,
page-watch > main > section.recentlyWatched,
page-watch > main > section.genre {
	display: grid;
	grid-template-rows: min-content 15rem;
	grid-template-columns: 100%;
	gap: 1rem;
}

page-watch > main > section.featured {
	display: grid;
	grid-template-rows: repeat(2, min-content);
	grid-template-columns: 100%;
	gap: 1rem;
	grid-row: 1;
	grid-column: 1;
	padding-bottom: 3rem;
}

page-watch > main > section.featured > section > div > div {
	position: absolute;
    top: 0%;
    left: 0%;
	border-radius: var(--border-radius);
	background-color: var(--color-blue);
}

page-watch > main > section.featured > section > div > img {
	position: absolute;
	top: 3%;
	left: 1%;
	height: 18%;
}

page-watch > main > section.featured > section {
	display: grid;
	grid-template-rows: min-content;
	grid-template-columns: 1fr 1fr;
	grid-row: 2;
	grid-column: 1;
	gap: 5rem;
	overflow-y: hidden;
	padding: var(--u-4xs)
}

page-watch > main > section.featured > section > div.featuredLeft {
	grid-column: 1;
	grid-row: 1;
}

page-watch > main > section.featured > section > div.featuredRight {
	grid-column: 2;
	grid-row: 1;
}

page-watch > main > section.featured > section > div > video {
	aspect-ratio: 16 / 9;
	object-fit: fill;
	cursor: pointer;
	pointer-events: none;
	width: 100%;
	height: auto;
	pointer-events: none;
	padding-left: 0;
	border-radius: var(--border-radius);
}

page-watch > main > section > section {
	overflow-x: scroll;
}

page-watch > main > section.genre > section {
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: flex-start;
	grid-row: 2;
	grid-column: 1;
	column-gap: 4rem;
	overflow-y: hidden;
}

page-watch > main > section > section.recentlyWatched,
page-watch > main > section > section.topPicks {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-items: flex-start;
	text-align: left;
	overflow-y: hidden;
	column-gap: 4rem;
	grid-column: 1;
	grid-row: 2;
}

page-watch > main > section > section > div.videoDiv {
	height: min-content;
	width: min-content;
}

page-watch > main > section > section > div.videoDiv > video {
	aspect-ratio: 16 / 9;
	object-fit: fill;
	cursor: pointer;
	pointer-events: none;
	width: auto;
	height: 10rem;
}

page-watch > main > section.genre > h2.title,
page-watch > main > section > h2.titleTopPicks,
page-watch > main > section > h2.titleRecentlyWatched,
page-watch > main > section > h2.featuredTitle {
	font-size: 1.5rem;
	grid-row: 1;
	font-weight: bold;
	padding-left: 1%;
}

page-watch > main > section > section > div > h3 {
	font-size: 1rem;
	padding-top: 0.5rem;
	word-wrap: break-word;
	pointer-events: none;
}

page-watch > main > section > section.featured > div > h3 {
	font-size: 1.25rem;
}

page-watch > main > section > section > div > p {
	display: none;
	pointer-events: none;
}

page-watch > main > section > button.scrollLeft,
page-watch > main > section > button.scrollRight {
	font-family: "Material Symbols Rounded";
	font-variation-settings: "FILL" 0, "wght" 500, "GRAD" 0, "opsz" 48;
	font-style: normal;
	font-size: 2.5rem;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	cursor: pointer;
	z-index: 2;
	height: 5rem;
	width: 3rem;
	border-radius: 0.5rem;
	border: solid 0.2rem rgba(255, 255, 255, 0.5);
	background-color: rgb(15, 15, 15, 0.5);
	opacity: 0.5;
	color: white;
	align-self: center;
	margin-left: 0.5rem;
	margin-right: 0.5rem;
	margin-bottom: var(--u);
	grid-row: 2;
	grid-column: 1;
	transition-property: transform, opacity, width;
	transition-duration: 0.5s;
}

page-watch > main > section > button:hover {
	cursor: pointer;
	opacity: 1;
}

page-watch > main > section > button.scrollRight {
	justify-self: right;
}

.watch-page-button-playing {
	opacity: 0;
	z-index: -1;
}

page-watch > main > section.featured > section > div.jiggle {
	animation-name: jiggle;
	animation-duration: 1s;
	animation-iteration-count: 1;
	animation-timing-function: linear;
	margin-top: 1vh;
}

@keyframes jiggle {
	0%,
	100% {
		transform: rotate(-2deg);
	}
	15% {
		transform: rotate(2deg);
	}
	30% {
		transform: rotate(-2deg);
	}
	45% {
		transform: rotate(2deg);
	}
	60% {
		transform: rotate(-2deg);
	}
	75% {
		transform: rotate(2deg);
	}
	90% {
		transform: rotate(-2deg);
	}
}
