/*
	this made my head hurt trying to mimic the way YouTube handles it
*/

:root {
	--video-player-config: 860px;
	--video-player-minimum-height: 480px;
	--left-gradient-color: #d7d6d6;
	--right-gradient-color: #00f3ff;
	--sidebar-background-color: rgb(115, 217, 255);
	--background-dark-color: rgba(0, 0, 0, 0.08);
	--background-slightly-darker-color: rgba(0,0,0,0.12);
	--buttons-color: rgba(0, 0, 0, 0.05);
	--buttons-hover-color: rgba(0, 0, 0, 0.1);
	--buttons-active-color: rgba(0, 0, 0, 0.2);
}

.deprecated {
	display: none !important;
}

/*
	For the main body container
*/
#main-body-page {
	margin: 0px 20px 20px 20px;
}

/*
	++++++++++++++++ watch page and recommendations ++++++++++++++++
*/
#watch-page-and-recommendations-container {
	box-sizing: border-box;
	display: flex;
	position: relative;
	margin: 0px 20px 0px 20px;
	padding-top: 60px;
}

#watch-page.page-container {
	min-width: var(--video-player-config);
	width: -webkit-fill-available;
	width: -moz-available;
	margin-top: 20px;
	margin-right: 7px;
	padding-right: 20px;
}

#video-info-page {
	min-width: 40%;
	width: 45%;
	margin: 20px 30px 0px 0px;
}

#recommendations-container {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.loading-video-skeleton {
	display: flex;
	flex-direction: row;
}

.loading-video-thumbnails {
	background: var(--buttons-hover-color);
	height: 94px;
	width: 168px;
	border-radius: 8px;
}

.video-details-skeleton {
	padding-left: 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.video-title-skeleton, .video-author-skeleton {
	background: var(--buttons-hover-color);
	width: 169px;
	height: 20px;
	border-radius: 6px;
}

/*
	---------------- watch page and recommendations ----------------
*/

body {
	margin: unset;
}

#topbar {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	position: fixed;
	z-index: 1;
	width: -webkit-fill-available;
	width: -moz-available;
	background: linear-gradient(to right, var(--left-gradient-color) , var(--right-gradient-color));
	padding: 6px 14px;
	box-shadow: 0 2px 5px rgb(0 0 0 / 26%);
}

#youtube-search-bar {
	max-width: 532px;
	min-width: 339px;
	width: -webkit-fill-available;
	width: -moz-available;
	display: flex;
	justify-content: center;
}

form > input[type=search] {
	padding: 10px 16px;
	width: 75%;
	border-radius: 20px;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-top-right-radius: 0px;
	border-bottom-right-radius: 0px;
}

form > button[type=submit] {
	padding: 6px 16px;
	border-top-right-radius: 20px;
	border-bottom-right-radius: 20px;
	border: 1px solid rgba(0, 0, 0, 0.1);
}

form > button[type=submit]:hover {
	cursor: pointer;
}

#more-settings-and-sign-in-button {
	display: flex;
}

#more-settings-and-sign-in-button > #more-button {
	background: transparent;
}

#more-settings-and-sign-in-button > #more-button:hover {
	background: var(--buttons-hover-color);
}

#more-settings-and-sign-in-button > #more-button:active {
	background: var(--buttons-active-color);
}

#sign-in-button {
	color: #065fd4;
	background: transparent;
	border: 1px solid rgba(0, 0, 0, 0.1);
}

#sign-in-button:hover {
	background: var(--buttons-hover-color);
}

#sign-in-button:active {
	background: var(--buttons-active-color);
}

.page {
	padding: 69px 0px 0px 0px;
	transition: ease-in-out .3s;
}

#sidebar-button-and-app-name-title {
	display: flex;
}

#sidebar-button {
	margin-left: unset;
	background: none;
	border: 0px;
	border-radius: 40px;
	transition: ease-in-out .1s;
}

#sidebar-button:hover {
	cursor: pointer;
	background: var(--buttons-hover-color);
}

#sidebar-button:active {
	background: var(--buttons-active-color);
}

.yt-icon {
	width: 24px;
	height: 24px;
	/* fill: white; */
}

#app-title-text {
	font-size: 20px;
	/* color: white; */
	display: flex;
	flex-direction: column;
	justify-content: center;
	font-family: Google Sans;
}

.action-buttons {
	padding: 8px 10px;
	margin: 0px 6px;
	border-radius: 20px;
	border: unset;
	background: var(--background-dark-color);
	transition: ease-in-out .3s;
}

.action-buttons:hover {
	cursor: pointer;
}

.action-buttons:active {
	transition: ease-in-out .3s;
}

#video-container {
	aspect-ratio: 16 / 9;
}

#video-player {
	min-width: var(--video-player-config);
	aspect-ratio: 16 / 9;
	width: -webkit-fill-available;
	width: -moz-available;
}

iframe {
	min-width: var(--video-player-config);
	min-height: var(--video-player-minimum-height);
	aspect-ratio: 16 / 9;
	width: -webkit-fill-available;
	width: -moz-available;
	border-radius: 16px;
}

#video.title {
	font-size: 20px;
	font-family: Google Sans;
	margin: unset;
}

#video-view-counts-and-date {
	font-family: google sans;
	margin-top: 2px;
	font-size: 14px;
}

#video-title-failed.video-title-failed-to-load {
	font-size: 20px;
	font-family: Google Sans;
}

/* i'm unsure if i should do this or not [position improvements] */
/*
#video-metadata-and-yt-channel {
	box-sizing: border-box;
	display: flex;
	justify-content: end;
	flex-direction: row;
	position: relative;
}
*/

#video-metadata-and-yt-channel {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: space-between;
}

#yt-channel-container {
	margin: 25px 0px 20px;
}

#yt-channel, #yt-channel-failed-to-load {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

#yt-channel-profile-picture-and-yt-channel-name, #yt-channel-image-and-channel-name-failed-to-load {
	display: inherit;
	align-items: inherit;
}

#yt-channel-link {
	font-family: "Google Sans";
	text-decoration: none;
	color: black;
	width: fit-content;
	max-width: 230px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#yt-channel-name-renderer {
	padding-left: 16px;
	display: flex;
	flex-direction: column;
}

#yt-channel-name {
	margin: unset;
}

#yt-channel-profile-picture {
	width: 42px;
	height: 42px;
	border-radius: 40px;
}

.yt-channel-sub-count {
	margin: unset;
	font-family: Google Sans;
	font-size: 14px;
	text-decoration: none;
	color: black;
	width: fit-content;
}

#yt-channel-failed-to-load {
	display: flex;
	align-items: center;
}

#no-yt-channel-image {
	width: 42px;
	height: 42px;
	border-radius: 40px;
	background: lightgray;
}

#no-yt-channel-name-renderer {
	padding-left: 16px;
	display: flex;
	flex-direction: column;
}

#subscribe-button-container-href {
	text-decoration: unset;
}

#subscribe-button {
	margin-left: 20px;
	padding: 10px 14px;
	background: black;
}

#subscribe-button:hover {
	background: rgba(0, 0, 0, 0.8);
}

#subscribe-button:active {
	background: rgba(0, 0, 0, 0.7);
}

#subscribe-text-renderer {
	color: white;
}

#all-buttons-container {
	display: flex;
	justify-content: flex-start;
}

#menu {
	padding: 8px 0px 8px 0px;
	margin-bottom: 16px;
}

.menu-buttons {
	display: flex;
	justify-content: center;
	flex-direction: row;
	align-items: center;
	padding: 6px 14px;
	border: 1px solid transparent;
	background-color: var(--buttons-color);
	border-radius: 20px;
	transition: .2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
	margin-left: 10px;
}

.menu-buttons:hover {
	background-color: var(--buttons-hover-color);
	border: 1px solid transparent;
	cursor: pointer;
}

.menu-buttons:active {
	border: 1px solid transparent;
	background-color: var(--buttons-active-color);
	transition: .2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.menu-buttons-text {
	font-size: 14px;
	font-family: "Roboto","Arial",sans-serif;
	font-weight: bold;
	text-overflow: ellipsis;
	overflow: hidden;
}

#like-dislike-buttons-container {
	display: flex;
	flex-direction: row;
}

#like-button {
	display: flex;
	justify-content: center;
	flex-direction: row;
	border: 1px solid transparent;
	background-color: var(--buttons-color);
	border-top-left-radius: 20px;
	border-bottom-left-radius: 20px;
	padding: 6px 14px;
	transition: .2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
	align-items: center;
}

#like-button:hover {
	background-color: var(--buttons-hover-color);
	border: 1px solid transparent;
	cursor: pointer;
}

#like-button:active {
	border: 1px solid transparent;
	background-color: var(--buttons-active-color);
}

#dislike-button {
	display: flex;
	justify-content: center;
	flex-direction: row;
	border: 1px solid transparent;
	background-color: var(--buttons-color);
	border-top-right-radius: 20px;
	border-bottom-right-radius: 20px;
	padding: 6px 14px;
	transition: .2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
	align-items: center;
}

#dislike-button:hover {
	background-color: var(--buttons-hover-color);
	border: 1px solid transparent;
	cursor: pointer;
}

#dislike-button:active {
	border: 1px solid transparent;
	background-color: var(--buttons-active-color);
}

#more-button, #voice-search-button {
	padding: 6px 6px;
	margin-right: unset;
	border-radius: 20px;
	border-right: unset;
	border: 1px solid transparent;
}

#more-button:hover {
	border: 1px solid transparent;
	cursor: pointer;
}

#more-button:active {
	border: 1px solid transparent;
}

#button-border {
	content: "";
	background: var(--buttons-hover-color);
	position: absolute;
	height: 24px;
	margin-left: -15px;
	width: 1px;
}

.button-text-style {
	margin-right: 6px;
}

#no-yt-channel-name {
	margin: unset;
	font-family: "Google Sans";
	width: fit-content;
	max-width: 230px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

#video-metadata.video-metadata-renderer {
	font-family: Google Sans;
}

#video-metadata-info {
	text-align: right;
	margin-bottom: 16px;
}

p.vote-count {
	margin: unset;
}

#statistics {
	font-family: "Google Sans";
}

#failed-to-load-views-and-date {
	font-family: "Google Sans";
}

#video-vote-counts {
	font-family: "Google Sans";
}

.video-statistics {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

.grouped-text-renderer {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-weight: 600;
}

#description-title {
	font-size: 20px;
	margin: 4px 0px;
}

#description-text {
	padding: 6px 12px;
	margin: 18px 0px 10px 0px;
	border-left: 4px solid var(--buttons-hover-color);
	border-right: 4px solid var(--buttons-hover-color);
}

#description.content {
	font-family: "Google Sans";
	margin-bottom: 26px;
}

#description-container {
	font-family: google sans;
}

#expand-description-button {
	margin: unset;
	cursor: pointer;
	font-size: 12px;
	font-weight: 500;
	padding: 2px 4px !important;
	border-radius: 4px !important;
	background: transparent;
}

#expand-description-button:hover {
	background: transparent;
}

#expand-description-button:active {
	background: var(--buttons-active-color) !important;
}

#comment-counts-and-sort-button-container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

#comment-counts {
	font-family: google sans;
	margin: unset;
}

.sort-by-button {
	font-family: google sans;
	padding: 6px 12px !important;
}

#border-top-metadata {
	/* border-bottom: 1px solid var(--buttons-active-color); */
	margin: 4px 0px 16px 0px;
}

#border-bottom-metadata {
	/* border-bottom: 1px solid var(--buttons-active-color); */
	margin: 4px 0px 26px 0px;
}

.border-bottom {
	border-bottom: 1px solid var(--buttons-active-color);
	margin: 12px 0px;
}

.nullo {
	padding: 32px 0px 32px 0px;
}

#recommendations-text {
	font-size: 25px;
}

.rounded-cards {
	background-color: rgba(0,0,0,0.05);
	padding: 16px 20px;
	border-radius: 16px;
	margin: 0px 0px 16px 0px;
}



/* sidebar source: https://www.w3schools.com/howto/howto_js_sidenav.asp */
.sidenav {
	height: 100%;
	width: 0;
	position: fixed;
	z-index: 2;
	top: 0;
	left: 0;
	background-color: var(--sidebar-background-color);
	overflow-x: hidden;
	transition: 0.5s;
	padding-top: 60px;
}

.sidenav a {
	padding: 8px 8px 8px 48px;
	text-decoration: none;
	font-size: 20px;
	color: #818181;
	display: block;
	transition: 0.3s;
	font-family: Google Sans;
}

.sidenav a:hover {
	color: black;
	text-decoration: underline;
	background: var(--background-slightly-darker-color);
	transition: 0.3s;
}

.sidenav a:active {
	color: white;
	transition: 0.3s;
}

.sidenav .closebtn {
	position: absolute;
	top: 0;
	right: 25px;
	font-size: 36px;
	margin-left: 50px;
}

#main {
	transition: margin-left .5s;
	padding: 16px;
}

@media screen and (max-height: 450px) {
	.sidenav {padding-top: 15px;}
	.sidenav a {font-size: 18px;}
}



/*
	include: YouTube's native ratio bar (unused in the original HTML watch page)
*/

/*
	taken from internal YouTube's HTML
	so funny that it's still there sitting unused, being set to hidden
	come on, bring it back natively mfs
	
	NOTE: This has been stripped off of its most YouTube references in the HTML
 */
ratio-bar-renderer {
	display: none;
}

#sentiment.like-dislike-info-renderer {
	position: absolute;
	margin-top: 42px;
	padding-top: 6px;
	/* padding-bottom: 14px; */
	cursor: help;
}

#container.like-dislike-info-renderer {
	height: 2px;
	border-radius: 20px;
	background-color: #909090;
}

#like-bar.like-dislike-info-renderer {
	width: 100%;
	background: #000;
	height: 2px;
	border-radius: 20px;
	transition: width 0.3s;
}

#tooltip {
	position: relative;
	display: inline-block;
	border-bottom: 1px dotted black;
}

#tooltip .tooltiptext {
	visibility: hidden;
	top: 12px;
	width: 230px;
	margin-left: -56px;
	background-color: #616161;
	font-family: "Google Sans";
	-webkit-font-smoothing: antialiased;
	color: #fff;
	text-align: center;
	border-radius: 100px;
	opacity: 86%;
	padding: 8px;
	
	/* Position the tooltip */
	position: absolute;
	z-index: 1;
}

#sentiment.like-dislike-info-renderer:hover .tooltiptext {
	visibility: visible;
}
