/*	Lecteur MP3 
	**************/

.mp3player {
	display: block;
	position: relative;
	background: linear-gradient(0deg, rgba(20, 27, 36, 0.50) 0%, rgba(22, 36, 53, 0.50) 100%);
	padding: 10px;
	border-radius: 10px;
	user-select: none;
	text-align: center;
}

.mp3player .mp3player-text {
	display: inline-block;
	text-align: center;
	margin: 0 10px;
	line-height: 24px;
	vertical-align: top;
	text-shadow: 2px 2px 2px rgba(0, 0, 0, 1);
	font-weight: bold;
}
.mp3player-tags-track {
	padding: 5px;
	width: calc(100% - 40px);
	color: #afc6db;
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 4px;
	/* border-bottom: 1px solid #999; */
}
.mp3player-text #artist {
	font-size: 1.4em;
}

.mp3player #trackTime {
	font-weight: normal;
}

.mp3player #elapsed {
	font-weight: normal;
}

.mp3-info {
	display: grid;
	grid-template-columns: auto 6ch;
	min-width: 300px;
	color: #85b2db;
	padding: 0 10px;
}
.mp3-duration {
	margin: 0 20px;
}

.mp3player-list {
	display: inline-block;
	min-height: 200px;
	max-height: calc(100vh - 640px);
	background: rgba(80,120,140, 0.0);
	overflow: hidden visible;
	text-align: left;
	scrollbar-width: thin;
	scrollbar-color: rgb(48, 75, 102) rgba(255,255,255,0);
}

/* Chrome, Edge, and Safari */
.mp3player-list::-webkit-scrollbar {
	width: 16px;
}
.mp3player-list::-webkit-scrollbar-track {
	background: rgba(255,255,255,0);
}
.mp3player-list::-webkit-scrollbar-thumb {
	background-color: #263c51;
	border-radius: 10px;
	border: 3px solid #869a83;
}

.mp3player-items {
	display: block;
	padding: 5px 5px;
	font-size: 13px;
	font-weight: bold;
}

.mp3player-items-sel {
	background: rgba(40,60,80, 0.5);
	color: rgba(255, 255, 255, 1);
	border-bottom: solid 1px #999;
}

.mp3player-items-context {
	border: solid 1px #393 !important;
	border-radius: 4px;
}

.btn_mp3player {
	vertical-align: middle;
	color: rgba(255, 255, 255, 1);
	cursor: pointer;
	margin: 5px 5px;
	padding: 4px;
	border-radius: 20px;
	background: rgba(80,120,140, 0.5);
	box-shadow: 2px 2px 4px rgba(20,20,20, 0.8);
}

.btn_mp3player:hover {
	filter: hue-rotate(160deg) brightness(100%) contrast(100%);
}

.btn_mp3player:active {
	filter: hue-rotate(160deg) brightness(118%) contrast(119%);
}

input.trackmp3 {
	width: 300px !important;
	margin: 10px 0 0 0 !important;
	box-shadow: 2px 2px 4px rgba(20,20,20, 0.8);
}

#divVolume {
	height: 20px;
}

#volumeMP3 {
	height: 16px;
	padding: 0;
	background: rgba(120,130,140, 0.8);
	background-image: url("/img/bg-vol.png");
	transition: 0.5s ease-in-out;
}

#volumeMP3::-moz-range-thumb {
	height: 16px;
	border: 0;
	background-color: #263c51;
}
#volumeMP3::-moz-range-track {
	height: 16px;
	background: rgba(120,130,140, 0.8);
	background-image: url("/img/bg-vol.png");
}


#volumeMP3::-webkit-slider-thumb {
	height: 16px;
	border: 0;
	background-color: #263c51;
	margin:-1px 0 0 0;
}

#volumeMP3::-webkit-slider-runnable-track  {
	height: 16px;
	background: rgba(120,130,140, 0.8);
	background-image: url("/img/bg-vol.png");	
}


/* Overlay pour BoxInfoMP3 */
#BoxInfoMP3Overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 1000;
	cursor: pointer;
}

#BoxInfoMP3 {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1002;
	padding: 10px;
	background: rgba(20, 30, 40, 0.8);
	border: solid 1px rgba(100,120,140, 0.8);
	border-radius: 10px;
	text-align: left;
	color: #999;
	text-shadow: 2px 2px 2px #000;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	min-width: 350px;
}

/* Quand on drag, on désactive le transform */
#BoxInfoMP3.dragging {
	transform: none;
}

.TitleBoxInofMP3 {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	background: rgba(40, 50, 60, 0.8);
	margin-bottom: 5px;
	padding: 5px 10px;
	color: rgba(255, 255, 255, 1);
	font-size: 18px;
	font-weight: bold;
	border-radius: 5px;
	cursor: grab;
	user-select: none;
	-webkit-user-select: none;
	-moz-user-select: none;
}

.TitleBoxInofMP3:active {
	cursor: grabbing;
}

.TitleBoxInofMP3 span:first-child {
	pointer-events: none;
}

.TitleBoxInofMP3 span:nth-child(even) {
	cursor: pointer;
	color: #C66;
}

.TitleBoxInofMP3 span:nth-child(even):hover {
	color: #F88;
}

#BoxInfoMP3 li{
	display: grid;
	grid-template-columns: 100px 220px 30px;
}

#BoxInfoMP3 li>span:nth-child(odd) {
	font-weight: normal;	
}

#BoxInfoMP3 li>span:nth-child(even) {
	color: #FFF;
}

a.cell_music {
	display: block;
	padding: 4px 4px;
	width: calc(100% - 4px);
	min-width: 320px;
	
}

.show-cover {
	position:absolute;
	top: 10px;
	left: 10px;
	display: block;
	transform: rotate(90deg);
}
.show-cover .cover-svg {
	color: rgba(100,120,140, 0.8);
	width: 32px;
	height: 32px;
	cursor: pointer;
	transition: transform 0.3s ease;
}
.show-cover .cover-svg:hover {
	color: rgba(116, 152, 161, 0.8);
}
.show-cover .cover-svg:active {
	color: rgba(169, 187, 206, 0.8);
}
.show-cover .cover-svg.active {
    transform: rotate(90deg);
}