/* --------------------------------//
// kwWavePLayer v1.2
// author: kwaaui.com
// --------------------------------*/
:root {
	--primary-color: rgb(32, 32, 32);
	--primary-background-color: rgb(200, 200, 200);
	--secondary-color: rgb(75, 75, 75);
	--secondary-background-color: rgb(255, 255, 255);
	--highlight-color: rgb(79, 74, 133);
	--box-shadow-color: rgba(21, 21, 21, .1);
	--disabled-button-color: rgba(130, 130, 130, .4);
	--border-radius: .25rem;
}
#kwWavePlayer *[disabled] { opacity: .2; }
#kwWavePlayer-container {
	width: 100%;
/* 	min-height: 100%; */
	display: flex;
	flex-direction: column;
	justify-content: start;
	align-items: center;
	font-weight: 300;
	color: var(--primary-color);
	background-color: transparent;
}
#kwWavePlayer-container .title { font-weight: 700; }
/* AUDIO PLAYER -------------------------------- */
/* #kwWavePlayer,#tracklist { filter: invert(); } */
#kwWavePlayer, 
#kwWavePlayer .loader,
#tracklist 
{ background: var(--secondary-background-color); } /* Set cursor color in .js file  */
#kwWavePlayer {
	width: 100%;
	max-width: 100rem;
	display: flex;
	margin: 0 .625rem 1rem;
	border-radius: var(--border-radius);
	box-shadow: 0rem 0rem 1rem 0.2rem var(--box-shadow-color)
}
#kwWavePlayer .kwwp-body {
	width: 100%;
	padding: 1rem;
}
#kwWavePlayer #info { text-wrap: nowrap; overflow-x: hidden; }
#kwWavePlayer #info div { margin-bottom: .25rem;  }
#kwWavePlayer .loader {
	pointer-events: none;
	position: absolute;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	opacity: 0;
	z-index: 10;
	letter-spacing: .2rem;
	text-transform: uppercase;
	font-size: 90%;
	transition: opacity .5s ease;
}
#kwWavePlayer .loader.active { opacity: 1; }
.waveform {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: 100%;
	min-height: 6rem;
	padding: 0.5rem 0;
}
#panel, .timecode { display: flex; justify-content: space-between; }
#controls { flex-grow: 1!important; margin: .25rem 0;}
#panel button {
	padding: .25rem .375rem;
	border: none;
	color: var(--primary-color) !important;
	background-color: transparent;
	outline: none;
	cursor: pointer;
	font-size: 1.5rem;
	opacity: .7;
	transition: opacity .3s ease;
}
#panel button:hover, #panel button:focus, #panel button:active, 
.volume-slider:hover, .volume-slider:focus, .volume-slider:active { opacity: 1; }
/* Timecode */
.timecode {
	color: var(--secondary-color);
	font-size: .875em;
}
/* Volume */
.volume {
	display: flex;
	align-items: center;
	justify-content: end;
	padding: 0 .4rem;
	max-width: 45%;
}
#volumeBtn { padding-right: 0 !important; }
#volumeIcon {
	display: flex;
	cursor: pointer;
}
#volumeIcon.bi-volume-down-fill { translate: -0.1875rem; }
#volumeIcon.bi-volume-off { translate: -0.375rem; }
.volume-slider {
	margin: 0 .125rem;
	cursor: pointer;
	width: 100%;
	height: 0.375rem;
	outline: none;
	appearance: none;
	background: transparent;
	opacity: .7;
	transition: opacity .3s ease;
/* 	background: var(--highlight-color); */
}

/* Custom volume slider */
.volume-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	height: 1.125rem;
	width: 1.125rem;
	border: none;
	border-radius: 50%;
	background: var(--primary-color);
	margin-top: -0.45rem;
}
.volume-slider::-moz-range-thumb {
	-webkit-appearance: none;
	height: 1.125rem;
	width: 1.125rem;
	border: none;
	border-radius: 50%;
	background: var(--primary-color);
}
.volume-slider::-ms-thumb {
	-webkit-appearance: none;
	height: 1.125rem;
	width: 1.125rem;
	border: none;
	border-radius: 50%;
	background: var(--highlight-color);
}
.volume-slider::-webkit-slider-runnable-track {
	width: 100%;
	height: 0.25rem;
	background-color: var(--secondary-color);
	border-radius: var(--border-radius);
}
.volume-slider::-moz-range-track {
	width: 100%;
	height: 0.25rem;
	background-color: var(--secondary-color);
	border-radius: var(--border-radius);
}
.volume-slider::-ms-track {
	background: transparent;
	border-color: transparent;
	color: transparent;
	width: 100%;
	height: 0.25rem;
	background-color: var(--secondary-color);
	border-radius: var(--border-radius);
}
/* Muted/disabled volume slider */
.volume-slider[disabled] {
	cursor: not-allowed;
}
.volume-slider[disabled]::-webkit-slider-thumb {
	background-color: var(--disabled-button-color);
}
.volume-slider[disabled]::-moz-range-thumb {
	background-color: var(--disabled-button-color);
}
.volume-slider[disabled]::-ms-thumb {
	background-color: var(--disabled-button-color);
}
.volume-slider[disabled]::-webkit-slider-runnable-track {
	background-color: var(--disabled-button-color);
}
.volume-slider[disabled]::-moz-range-track {
	background-color: var(--disabled-button-color);
}
.volume-slider[disabled]::-ms-track {
	background-color: var(--disabled-button-color);
}
#tracklist { 
	width: 100%;
	border-radius: var(--border-radius);
	padding: 1.25em;
}
#tracklist .track { 
	height: 3.5rem;
	padding: .375rem .25rem;
	font-size: .875rem;
	line-height: 1.2;
	cursor: pointer; 
	transition: all .4s ease;
}
#tracklist .artist { font-size: .8125rem;}
#tracklist .picture { 
	height: 100%;
	object-fit: contain;
/* 	filter: invert(); */
	float: inline-start;
	margin-inline-end: 0.5rem;
}
#tracklist .track:hover, #tracklist .track:focus { background: rgba(127, 127, 127, .2) }
#tracklist .track:active { background: rgba(127, 127, 127, .5) }
#tracklist .track.active { background: rgba(127, 127, 127, .3) }