/* Enhanced audio description banner, linked by the watch pages and the video quiz pages. */
#enhancedAudioDescriptionVideoOverlay {
	position: absolute;
	height: auto;
	min-height: 62px;
	width: max-content;
	max-width: min(90vw, 420px);
	right: 30px;
	display: flex;
	flex-direction: column;
	background-color: #232323;
	border: 1px solid #303030;
	box-shadow: 0px 0px 20px 4px #00000040;
	gap: 5px;
	padding: 4px;
	box-sizing: border-box;
	border-radius: 10px !important;
	z-index: 1001;
}

#enhancedAudioDescriptionVideoOverlay .audioDescriptionOverlayTitleContainer {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	background-color: #131313;
	gap: 6px;
	padding: 4px 8px;
	border-radius: 6px !important;
}

.audioDescriptionOverlayTitleContainer  .audioDescriptionOverlayTitle {
	font-weight: 500 !important;
	color: #9D9D9D;
	font-size: 12px;
	line-height: 1.2;
	white-space: normal;
	overflow-wrap: anywhere;
}

#enhancedAudioDescriptionVideoOverlay .ead-control-btn {
	background-color: #3A3A3A;
	border: none;
	cursor: pointer;
	padding: 0px 6px;
	min-height: 22px;
	width: 100%;
	border-radius: 5px !important;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
}

#enhancedAudioDescriptionVideoOverlay .ead-control-btn img {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	pointer-events: none;
}

.audioDescriptionOverlayControls {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	align-items: center;
	gap: 4px;
	width: 100%;
}

#enhancedAudioDescriptionVideoOverlay .ead-speed-wrapper {
	position: relative;
	display: flex;
}

#eadSpeedMenu {
	position: absolute;
	right: 0;
	bottom: calc(100% + 8px);
	min-width: 96px;
	max-height: 50vh;
	overflow-y: auto;
	margin: 0;
	padding: 4px;
	list-style: none;
	background-color: #1F1F1F;
	border: 1px solid #303030;
	border-radius: 8px !important;
	box-shadow: 0px 0px 20px 4px #00000040;
	z-index: 2;
}

#eadSpeedMenu .ead-speed-option {
	padding: 6px 12px;
	border-radius: 4px !important;
	color: #FFFFFF;
	font-size: 12px;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
}

#eadSpeedMenu .ead-speed-option:hover,
#eadSpeedMenu .ead-speed-option:focus {
	background-color: #2E2E2E;
	outline: none;
}

#eadSpeedMenu .ead-speed-option:focus-visible {
	outline: 2px solid #FFFFFFB3;
	outline-offset: -2px;
}

#eadSpeedMenu .ead-speed-option[aria-checked="true"] {
	background-color: #3A3A3A;
	font-weight: 600;
}

#enhancedAudioDescriptionVideoOverlay .ead-control-btn:hover,
#enhancedAudioDescriptionVideoOverlay .ead-control-btn:focus,
#enhancedAudioDescriptionVideoOverlay .ead-control-btn[aria-expanded="true"] {
	color: #FFFFFF;
	background-color: #555555;
}

#enhancedAudioDescriptionVideoOverlay .ead-control-btn:focus-visible {
	outline: 2px solid #FFFFFFB3;
	outline-offset: 2px;
}

.requestEadPlaybarButton {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.requestEadPlaybarButton .requestEadPlaybarIcon {
	display: block;
}

.requestEadPlaybarButton.requestEadProcessing .requestEadPlaybarIcon {
	opacity: 0.75;
}

.requestEadPlaybarButton.requestEadLimit .requestEadPlaybarIcon {
	opacity: 0.6;
}

.requestEadPlaybarButton .requestEadProcessingDot {
	display: none;
	position: absolute;
	right: 6px;
	top: 6px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #F5B82E;
	box-shadow: 0 0 0 2px #232323;
	animation: requestEadPulse 1.4s ease-in-out infinite;
}

.requestEadPlaybarButton.requestEadProcessing .requestEadProcessingDot {
	display: block;
}

.requestEadPanel {
	display: flex;
	flex-direction: column;
	gap: 5px;
	box-sizing: border-box;
	padding: 4px;
	font-family: Inter, sans-serif;
	text-align: left;
}

.requestEadPopover {
	position: absolute;
	right: 12px;
	bottom: calc(100% + 12px);
	width: 320px;
	max-width: calc(100vw - 32px);
	background: #232323;
	border: 1px solid #303030;
	border-radius: 10px !important;
	box-shadow: 0 0 20px 4px rgba(0, 0, 0, 0.25);
	z-index: 1000;
	cursor: default;
}

.requestEadMenuPanel {
	width: 100%;
}

.requestEadPanelHeader {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 4px 8px;
	background: #131313;
	border-radius: 6px !important;
} 

.requestEadPanelHeading {
	color: #9D9D9D;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
}

.requestEadPanelBack {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 6px !important;
	background: none;
	color: #B6B6B6;
	cursor: pointer;
}

.requestEadPanelBack:hover,
.requestEadPanelBack:focus-visible {
	background: #3A3A3A;
	color: #fff;
}

.requestEadPanelBackArrow {
	width: 8px;
	height: 8px;
	border-left: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	margin-left: 3px;
}

.requestEadPanelBody {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 8px 8px 4px;
}

.requestEadPanelRow {
	display: flex;
	align-items: center;
	gap: 10px;
}

.requestEadPanelRowTop {
	align-items: flex-start;
}

.requestEadPanelColumn {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.requestEadPanelTitle {
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
}

.requestEadPanelText {
	color: #B6B6B6;
	font-size: 12px;
	line-height: 16px;
}

.requestEadWarning {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	border-radius: 50%;
	background: #F5B82E;
	color: #131313;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
}

.requestEadSpinner {
	display: inline-block;
	flex: 0 0 auto;
	width: 12px;
	height: 12px;
	box-sizing: border-box;
	border: 2px solid #B6B6B6;
	border-top-color: transparent;
	border-radius: 50%;
	animation: requestEadSpin 0.8s linear infinite;
}

.requestEadProgress {
	position: relative;
	height: 4px;
	margin-top: 8px;
	border-radius: 2px !important;
	background: #3A3A3A;
	overflow: hidden;
}

.requestEadProgress span {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 40%;
	border-radius: 2px !important;
	background: #0B6F85;
	animation: requestEadSlide 1.6s ease-in-out infinite;
}

.requestEadPanelButton {
	align-self: center;
	width: auto;
	height: 36px;
	padding: 0 16px;
	margin: 8px 0;
	border: 1px solid #0B6F85;
	border-radius: 6px !important;
	background: #0B6F85;
	color: #fff;
	font-family: Inter, sans-serif;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.requestEadPanelButton:hover {
	background: #0A5F72;
	border-color: #0A5F72;
}

.requestEadPanelButton:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

.requestEadPanelButton:disabled {
	background: #3A3A3A;
	border-color: #3A3A3A;
	color: #9D9D9D;
	cursor: default;
}

#requestEad-menuitem .menu-icon-img,
#enhancedAudio-menuitem .menu-icon-img {
	width: 18px;
	height: 18px;
	margin: -1px;
	flex-shrink: 0;
}

#requestEad-menuitem.requestEadMenuRowRequest .menuitem-content-text {
	color: #fff;
	font-weight: 600;
}

#requestEad-menuitem.requestEadMenuRowProcessing .menuitem-content-text::before {
	content: "";
	display: inline-block;
	width: 7px;
	height: 7px;
	margin-right: 6px;
	border-radius: 50%;
	background: #F5B82E;
	vertical-align: middle;
}

@keyframes requestEadSpin {
	to {
		transform: rotate(360deg);
	}
}

@keyframes requestEadPulse {
	0%, 100% {
		opacity: 1;
	}
	50% {
		opacity: 0.35;
	}
}

@keyframes requestEadSlide {
	0% {
		left: -40%;
	}
	100% {
		left: 100%;
	}
}

.requestEadVisuallyHidden {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.requestEadPlaybarButton .requestEadProcessingDot,
	.requestEadSpinner,
	.requestEadProgress span {
		animation: none;
	}

	.requestEadProgress span {
		left: 0;
		width: 100%;
	}
}

/* How far the current description clip has played. */
.ead-progress {
	height: 4px;
	margin: 0 2px 2px;
	border-radius: 2px;
	overflow: hidden;
	background-color: #3a3a3a;
	pointer-events: none;
}
.ead-progress span {
	display: block;
	height: 100%;
	border-radius: 2px;
	width: 0;
	background-color: #0B6F85;
	transition: width 0.25s linear;
}
@media (prefers-reduced-motion: reduce) {
	.ead-progress span {
		transition: none;
	}
}

/* The AD logo on the description banner is white, not the blue gradient. */
#enhancedAudioDescriptionVideoOverlay img[src*="ADIconNew"] {
	filter: brightness(0) invert(1);
}