/**************************/
/***** Neuro-speech player overlay *****/

.neuro-speech-overlay {
	display: none;
	position: fixed;
	box-sizing: border-box;
	width: 100%;
	max-width: 1440px;
	margin: 0 auto;
	padding: 0;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 100;
	pointer-events: none;
}

.neuro-speech-wrapper {
	position: relative;
	margin: 0 auto;
	width: 100%;
	padding: 0;
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
}

.neuro-speech-container {
	position: relative;
	display: block;
	width: calc(100% * 5/7 - 24px);
	padding: 12px 12px 15px;
	margin-right: calc(100% * 2/7 + 24px);
	background-color: #f5f5f5;
	border-radius: 5px 5px 0 0;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25), 0 -2px 15px rgba(250, 250, 250, 0.8);
	text-align: center;
	pointer-events: auto;
}

@media (max-width: 1680px) {
	.neuro-speech-overlay {
		padding: 0 calc(3% - 12px);
	}

	.neuro-speech-container {
		max-width: 960px;
	}
}

@media (min-width: 1430px) {
	.neuro-speech-wrapper {
		max-width: 1370px;
	}

	.neuro-speech-container {
		width: 672px;
	}
}

@media (min-width: 1600px) {
	.neuro-speech-wrapper {
		max-width: 1440px;
	}
}

@media (min-width: 1224px) and (max-width: 1429.99px) {
	.neuro-speech-wrapper {
		max-width: 960px;
	}

	.neuro-speech-container {
		width: calc(100% * 5/7 - 24px);
		margin-right: calc(100% * 2/7 + 24px);
	}
}

@media (min-width: 1024px) and (max-width: 1223.99px) {
	.neuro-speech-wrapper {
		max-width: 960px;
	}

	.neuro-speech-container {
		width: calc(100% * 6/9);
		margin-right: calc(100% * 3/9);
	}
}

@media (max-width: 1023.99px) {
	.neuro-speech-container {
		width: 100%;
		margin: 0 auto;
	}
}

.neuro-speech-header {
	position: relative;
}

.neuro-speech-close {
	position: absolute;
	right: -5px;
	top: -5px;
	cursor: pointer;
	opacity: 0.8;
}

.neuro-speech-close:hover {
	opacity: 1;
}

.neuro-speech-body {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-content: flex-start;
	justify-content: flex-start;
}

.neuro-speech-article-info {
	width: auto;
	min-width: 100px;
	margin-right: 15px;
}

.neuro-speech-article-img {
	display: block;
	height: 65px;
	width: 100px;
	border-radius: 4px;
	overflow: hidden;
}

.neuro-speech-article-img img {
	height: 100%;
	width: auto;
}

.neuro-speech-player {
	width: 100%;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-content: flex-end;
	align-items: flex-start;
}

.neuro-speech-time {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-content: space-between;
	justify-content: space-between;
	align-items: flex-end;
	padding-top: 6px;
	font-size: 14px;
}

.neuro-speech-article-title {
	margin: 4px 0 12px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
	text-align: left;
}

/* Styles for the player controls */
.neuro-speech-controls-left {
	width: 100%;
}

.neuro-speech-controls-right {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: auto 0 2px;
}

.neuro-speech-controls-right button {
	margin: 5px;
	padding: 8px 12px;
	font-size: 14px;
	border: none;
	border-radius: 3px;
	background-color: #007bff;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s;
}

.neuro-speech-controls-right button:hover {
	background-color: #0056b3;
}

.neuro-speech-seek-bar {
	border-radius: 3px;
	overflow: hidden;
}

.neuro-speech-seek-bar {
	width: 100%;
	height: 6px;
	background-color: #ccc;
	position: relative;
}

.neuro-speech-progress {
	height: 100%;
	width: 0;
	background-color: #495a74;
}

.neuro-speech-rewind-btn,
.neuro-speech-forward-btn {
	margin: 0 15px;
	opacity: 0.8;
	cursor: pointer;
}

.neuro-speech-rewind-btn:hover,
.neuro-speech-forward-btn:hover {
	opacity: 1;
}

.neuro-speech-play-btn {
	width: 40px;
	height: 40px;
	background-color: #495a74;
	border-radius: 20px;
}

.neuro-speech-rewind-btn svg,
.neuro-speech-forward-btn svg {
	overflow: visible;
}

.neuro-speech-rewind-btn svg path,
.neuro-speech-forward-btn svg path{
	fill: #495a74;
	stroke-width: 3.17;
}

.neuro-speech-rewind-btn svg text,
.neuro-speech-forward-btn svg text{
	font-size: 16.41px;
	line-height: 1.25;
	font-family: var(--default-font);
	fill: #495a74;
	stroke: none;
	stroke-width: 0.41;
}

.neuro-speech-rewind-btn svg tspan,
.neuro-speech-forward-btn svg tspan{
	font-weight: 600;
	font-size: 19.4px;
	fill: #495a74;
	fill-opacity: 1;
	stroke-width:0.41;
}

.neuro-speech-play {
	cursor: pointer;
	width: 60%;
	height: 70%;
	top: 5px;
	left: 1px;
	position: relative;
	margin: auto;
	transform: rotate(0deg);
	transition: -webkit-clip-path 0.3s ease-in 0.1s, clip-path 0.3s ease-in 0.1s, transform 0.8s cubic-bezier(0.850, -0.250, 0.250, 1.425);
	opacity: 0.8;
}

.neuro-speech-play:before,
.neuro-speech-play:after {
	content: '';
	position: absolute;
	background: white;
	width: 100%;
	height: 100%;
	top: 1px;
	left: 1px;
	transition: inherit;
	transform: scale(0.8);
	-webkit-clip-path: polygon(10% 0, 92% 50%, 92% 50%, 10% 99%);
	clip-path: polygon(10% 0, 92% 50%, 92% 50%, 10% 99%);
}

.neuro-playing .neuro-speech-play {
	transform: rotate(-90deg) translate(-2px, -2px);
}

.neuro-playing .neuro-speech-play:before {
	-webkit-clip-path: polygon(0 9%, 100% 10%, 100% 40%, 0 40%);
	clip-path: polygon(0 9%, 100% 10%, 100% 40%, 0 40%);
}

.neuro-playing .neuro-speech-play:after {
	-webkit-clip-path: polygon(0 59%, 100% 60%, 100% 90%, 0 90%));
	clip-path: polygon(0 59%, 100% 60%, 100% 90%, 0 90%);
}

@media (max-width: 651px) {
	.neuro-speech-article-info {
		display: none;
	}

	.neuro-speech-player {
		width: 100%;
	}
}

@media (max-width: 480px) {
	.neuro-speech-rewind-btn,
	.neuro-speech-forward-btn {
		display: none;
	}

	.neuro-speech-play-btn {
		margin: auto 20px;
	}
}
