/*
 * License: https://github.com/groovenectar/musiview/blob/master/LICENSE.md
 * Homepage: https://c.dup.bz
*/

.audio-container {
	position: relative;
}
.audio-container,
.audio-container audio {
	width: auto;
	height: 100%;
	max-width: 100%;
	max-height: 85vh;
	overflow: hidden;
}
.audio-container audio {
	background-color: rgba(0, 0, 0, .5);
}
.audio-container .caption > * {
	display: block;
	padding: .25rem .5rem;
}
.audio-container .caption {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 5;
	transition-duration: .25s;
	transition-property: opacity;
	background-color: rgba(0, 0, 0, .6);
	font-size: .9rem;
	color: #ddd;
	width: 100%;
}
.audio-container.has-thumbnail:hover .caption {
	opacity: 0;
}
.audio-container.has-thumbnail .caption:hover {
	opacity: 1;
}
.audio-container.playing .caption {
	font-weight: bold;
	display: flex;
	align-items: center;
}
.audio-container.playing .caption::before {
	content: '➤ ';
	animation: blinker 1s linear infinite;
}
.audio-container.playing .caption > * {
	flex: 1;
	padding-left: .25rem;
}
@keyframes blinker {
	50% {
		opacity: 0;
	}
}
#media-item .audio-container .video-js {
	width: 100%;
	height: 50vh;
}
#folder .grid .audio-container .video-js {
	width: 100%;
	height: 100%;
}
#folder .grid .audio-container {
	aspect-ratio: 1;
}
#folder .grid audio {
	width: 100%;
}
.audio-container .vjs-progress-control {
	background-size: 100% 250%;
	background-position: center;
}
.audio-container .video-js .vjs-progress-control .vjs-progress-holder {
	margin: 0;
}
