/* =========================
   SHORTS TIME SCROLLBAR
========================= */

.shorts-progress-wrap {
	position: absolute;
	left: 14px;
	right: 14px;
	bottom: 5px;
	z-index: 12;
}

.shorts-progress {
	width: 100%;
	-webkit-appearance: none;
	appearance: none;
	height: 4px;
	border-radius: 999px;
	background: rgba(255,255,255,.35);
	outline: none;
	cursor: pointer;
	transition: opacity .2s ease;
}

.shorts-progress:hover {
	opacity: 1;
}

.shorts-progress::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #fff;
	border: 0;
	cursor: pointer;
}

.shorts-progress::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #fff;
	border: 0;
	cursor: pointer;
}

.shorts-progress::-moz-range-track {
	height: 4px;
	border-radius: 999px;
	background: rgba(255,255,255,.35);
}


/* =========================
   DESCRIPTION + ACTION RAIL
========================= */

.shorts-description {
	position: relative;
	z-index: 4;
	max-height: 72px;
	overflow-y: auto;
	font-size: .92rem;
	line-height: 1.45;
	pointer-events: auto;
	text-shadow: 0 1px 4px rgba(0, 0, 0, .65);
}

.shorts-description a.hash {
	position: relative;
	z-index: 5;
	color: #fff !important;
	font-weight: 800;
	text-decoration: none !important;
	border-bottom: 1px solid rgba(255, 255, 255, .55);
	cursor: pointer;
	pointer-events: auto !important;
	touch-action: manipulation;
}

.shorts-description a.hash:hover,
.shorts-description a.hash:focus {
	color: #ff3040 !important;
	border-bottom-color: currentColor;
}

.shorts-channel-row {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	margin-top: 11px;
	pointer-events: auto;
}

.shorts-channel-link {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-width: 0;
	color: #fff !important;
	font-weight: 800;
	line-height: 1.15;
	text-decoration: none !important;
	touch-action: manipulation;
}

.shorts-channel-avatar {
	display: block;
	width: 36px;
	height: 36px;
	flex: 0 0 36px;
	object-fit: cover;
	border: 2px solid rgba(255, 255, 255, .9);
	border-radius: 50%;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .32);
	transition: transform .18s ease, border-color .18s ease;
}

.shorts-channel-name {
	display: block;
	max-width: min(28vw, 190px);
	overflow: hidden;
	text-overflow: ellipsis;
	text-shadow: 0 1px 4px rgba(0, 0, 0, .85);
	white-space: nowrap;
}

.shorts-channel-link:hover .shorts-channel-avatar,
.shorts-channel-link:focus-visible .shorts-channel-avatar {
	transform: translateY(-1px);
	border-color: #ff4052;
}

.shorts-channel-link:hover .shorts-channel-name,
.shorts-channel-link:focus-visible .shorts-channel-name {
	color: #ff4052;
}

.shorts-subscribe-slot {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 1 auto;
	min-height: 34px;
	margin-top: 0;
	pointer-events: auto;
}

.shorts-subscribe-slot:empty {
	display: none;
}

.shorts-subscribe-slot > button,
.shorts-subscribe-slot > .btn,
.shorts-subscribe-slot > a {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	max-width: min(34vw, 175px);
	min-height: 34px;
	margin: 0;
	padding: 8px 15px;
	overflow: hidden;
	color: #fff !important;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	text-decoration: none !important;
	text-overflow: ellipsis;
	white-space: nowrap;
	background: #ef243700;
	border: 1px solid rgba(255, 255, 255, .32);
	border-radius: 999px;
	box-shadow: 0 7px 22px rgba(239, 36, 55, .28), inset 0 1px 0 rgba(255, 255, 255, .18);
	cursor: pointer;
	touch-action: manipulation;
	transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.shorts-subscribe-slot > button:hover,
.shorts-subscribe-slot > button:focus-visible,
.shorts-subscribe-slot > .btn:hover,
.shorts-subscribe-slot > .btn:focus-visible {
	transform: translateY(-1px);
	background: #ff3040;
}

.shorts-subscribe-slot > .btn-subscribed,
.shorts-subscribe-slot > .btn-subscribed:hover,
.shorts-subscribe-slot > .btn-subscribed:focus-visible,
.shorts-subscribe-slot > button.btn-subscribed,
.shorts-subscribe-slot > button[class*="btn-subscribed"],
.shorts-subscribe-slot > a.btn-subscribed {
	color: #ff4052 !important;
	background: transparent;
	border-color: #ff4052;
	box-shadow: 0 6px 20px rgba(255, 48, 64, .16), inset 0 0 0 1px rgba(255, 64, 82, .12);
	backdrop-filter: blur(10px) saturate(135%);
	-webkit-backdrop-filter: blur(10px) saturate(135%);
}

.shorts-subscribe-slot > .btn-subscribed:hover,
.shorts-subscribe-slot > .btn-subscribed:focus-visible,
.shorts-subscribe-slot > button.btn-subscribed:hover,
.shorts-subscribe-slot > button.btn-subscribed:focus-visible,
.shorts-subscribe-slot > a.btn-subscribed:hover,
.shorts-subscribe-slot > a.btn-subscribed:focus-visible {
	color: #ff6170 !important;
	background: rgba(255, 48, 64, .09);
	border-color: #ff6170;
}

.shorts-subscribe-slot svg {
	width: 17px;
	height: 17px;
	flex: 0 0 auto;
}

.shorts-subscribe-slot .subs-amount {
	display: none;
}

.shorts_events .icons {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin: 0 -78px 0 0;
	padding: 0 14px 18px;
}

.shorts-action {
	-webkit-appearance: none;
	appearance: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 58px;
	margin: 0;
	padding: 0;
	color: #fff !important;
	font: inherit;
	line-height: 1;
	text-align: center;
	text-decoration: none !important;
	background: transparent;
	border: 0;
	outline: 0;
	cursor: pointer;
	pointer-events: auto;
	-webkit-tap-highlight-color: transparent;
}

.shorts-action-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	color: #fff;
	background: rgba(18, 18, 18, .42);
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 50%;
	box-shadow: 0 7px 22px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .12);
	backdrop-filter: blur(10px) saturate(135%);
	-webkit-backdrop-filter: blur(10px) saturate(135%);
	transition: transform .18s ease, color .18s ease, background-color .18s ease, border-color .18s ease;
}

.shorts-action-svg {
	display: block;
	width: 23px;
	height: 23px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.shorts-action-label {
	display: block;
	max-width: 72px;
	margin-top: 5px;
	overflow: hidden;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1.15;
	text-overflow: ellipsis;
	text-shadow: 0 1px 4px rgba(0, 0, 0, .85);
	white-space: nowrap;
}

.shorts-action-label-wrap {
	display: -webkit-box;
	max-height: 2.3em;
	white-space: normal;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.shorts-action:hover .shorts-action-icon,
.shorts-action:focus-visible .shorts-action-icon {
	transform: translateY(-2px);
	background: rgba(255, 255, 255, .2);
	border-color: rgba(255, 255, 255, .42);
}

.shorts-action:active .shorts-action-icon {
	transform: scale(.92);
}

.shorts-action-like .shorts-heart-shape {
	fill: transparent;
	transition: fill .18s ease, stroke .18s ease;
}

.shorts-action-like.active .shorts-action-icon,
.shorts-action-like[liked] .shorts-action-icon {
	color: #ff3040;
	background: rgba(255, 48, 64, .16);
	border-color: rgba(255, 92, 105, .55);
	box-shadow: 0 7px 24px rgba(255, 48, 64, .22), inset 0 1px 0 rgba(255, 255, 255, .14);
}

.shorts-action-like.active .shorts-heart-shape,
.shorts-action-like[liked] .shorts-heart-shape {
	fill: currentColor;
}

.shorts-audio-icon-muted {
	display: none;
}

.shorts-audio-toggle.is-muted .shorts-audio-icon-on {
	display: none;
}

.shorts-audio-toggle.is-muted .shorts-audio-icon-muted {
	display: block;
}

.shorts-audio-toggle.is-muted .shorts-action-icon {
	color: #ff4052;
	background: rgba(255, 48, 64, .14);
	border-color: rgba(255, 92, 105, .5);
	box-shadow: 0 7px 24px rgba(255, 48, 64, .2), inset 0 1px 0 rgba(255, 255, 255, .14);
}

.shorts-action-stat {
	cursor: default;
}

@media (max-width: 967px) {
	.shorts-channel-name {
		max-width: min(32vw, 170px);
	}

	.shorts-subscribe-slot > button,
	.shorts-subscribe-slot > .btn,
	.shorts-subscribe-slot > a {
		max-width: min(36vw, 150px);
		padding-right: 13px;
		padding-left: 13px;
	}

	.shorts_events .icons {
		gap: 8px;
		margin: 0 !important;
		padding: 0 10px 16px;
	}

	.shorts-action {
		min-width: 52px;
	}

	.shorts-action-icon {
		width: 44px;
		height: 44px;
	}
}

@media (max-height: 640px) {
	.shorts-channel-row {
		gap: 8px;
		margin-top: 8px;
	}

	.shorts-channel-avatar {
		width: 32px;
		height: 32px;
		flex-basis: 32px;
	}

	.shorts-subscribe-slot > button,
	.shorts-subscribe-slot > .btn,
	.shorts-subscribe-slot > a {
		min-height: 31px;
		padding: 7px 12px;
	}

	.shorts_events .icons {
		gap: 6px;
	}

	.shorts-action-icon {
		width: 40px;
		height: 40px;
	}

	.shorts-action-svg {
		width: 21px;
		height: 21px;
	}

	.shorts-action-label {
		margin-top: 3px;
		font-size: 10px;
	}

}


/* =========================
   PLAYLIST CONTEXT
========================= */

.shorts-playlist-context {
	position: absolute;
	top: 16px;
	left: 50%;
	z-index: 30;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: min(70vw, 420px);
	padding: 9px 13px;
	border-radius: 999px;
	transform: translateX(-50%);
	box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
}

.shorts-playlist-context span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}


/* =========================
   FULLSCREEN STATE
========================= */

body.is-fullscreen .videocontainer {
	max-width: 100% !important;
	width: 100% !important;
	height: 100vh !important;
	height: 100dvh !important;
	margin: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}

body.is-fullscreen .video-staand video,
body.is-fullscreen .video-staand .mejs__container video {
	object-fit: contain !important;
	background: #000 !important;
}

body.is-fullscreen .shorts_events .info {
	display: none !important;
}

body.is-fullscreen .shorts_events .icons > * {
	display: none !important;
}

body.is-fullscreen .shorts_events .icons > .shorts-fullscreen-btn {
	display: flex !important;
}

body.is-fullscreen .shorts_events {
	inset: 0 !important;
	background: transparent !important;
	background-image: none !important;
	pointer-events: none;
}

/*
 * The mobile theme adds its readability gradient to .shorts_events itself.
 * Fullscreen stretches that layer across the entire player, so neutralise it
 * even before/without the body fullscreen class being synchronised.
 */
.videocontainer:fullscreen .shorts_events {
	background: transparent !important;
	background-image: none !important;
}

.videocontainer:-webkit-full-screen .shorts_events {
	background: transparent !important;
	background-image: none !important;
}

body.is-fullscreen .shorts_events .icons {
	position: absolute;
	top: 18px;
	right: 18px;
	bottom: auto;
	gap: 0;
	margin: 0 !important;
	padding: 0;
	pointer-events: auto;
}
