/* Music Player Modal */
.music-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.music-modal.active {
	opacity: 1;
	visibility: visible;
}

.music-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: transparent;
	backdrop-filter: none;
}

.music-modal-content {
	position: relative;
	z-index: 10001;
	width: 85%;
	max-width: 600px;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border-radius: 20px;
	padding: 2rem;
	box-shadow: 0 8px 32px 0 rgba(74, 157, 126, 0.3);
	border: 1px solid rgba(255, 255, 255, 0.18);
	transform: scale(0.9);
	transition: transform 0.5s ease-in-out;
}

.music-modal.active .music-modal-content {
	transform: scale(1);
}

.close-modal {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: rgba(45, 107, 83, 0.3);
	border: 2px solid rgba(45, 107, 83, 0.5);
	color: #2d6b53;
	font-size: 2rem;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	z-index: 10002;
	line-height: 1;
	font-weight: bold;
}

.close-modal:hover {
	background: rgba(45, 107, 83, 0.5);
	transform: rotate(90deg);
	border-color: rgba(45, 107, 83, 0.7);
}

/* Vinyl Player Styles */
#wrap {
	background-color: transparent;
	width: 100%;
	height: 300px;
	position: relative;
	margin-bottom: 1.5rem;
}

#album {
	position: relative;
	margin: 0 auto;
	height: 280px;
	width: 280px;
	max-height: 280px;
	max-width: 280px;
}

#cover {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	background-image: url('../audio/cover.jpg');
	background-size: cover;
	background-position: center;
	box-shadow: 5px 0 20px 0 rgba(0, 0, 0, 0.6), inset 0 0 10px 5px rgba(255, 255, 255, 0.2), inset 0 0 4px 2px rgba(0, 0, 0, 0.2);
	border-radius: 4px;
	transition: transform 0.8s ease;
}

#cover::before {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 10;
	width: 100%;
	height: 100%;
	background-image: url('http://i.imgur.com/i0fMWpe.jpg');
	background-size: 100% 100%;
	border-radius: 4px;
	mix-blend-mode: screen;
	opacity: 0.5;
	content: '';
}

#cover::after {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 20;
	width: 100%;
	height: 100%;
	background-image: url('https://orig06.deviantart.net/0124/f/2013/136/6/7/texture_326_by_sirius_sdz-d65gs3s.jpg');
	background-size: 100% 100%;
	border-radius: 4px;
	mix-blend-mode: screen;
	opacity: 0.2;
	content: '';
}

#vinyl {
	position: absolute;
	top: 2.5%;
	left: 2.5%;
	z-index: 0;
	width: 95%;
	height: 95%;
	display: block;
	background-image: url('https://gallery.yopriceville.com/var/resizes/Free-Clipart-Pictures/Music-PNG/Gramophone_Vinyl_LP_Record_PNG_Transparent_Clip_Art_Image.png?m=1462983196');
	background-size: 106% 106%;
	background-position: center;
	box-shadow: 0 0 20px 4px rgba(0, 0, 0, 0.6);
	border-radius: 50%;
	transition: left 0.8s ease, opacity 0.5s ease, transform 0.5s ease;
}

#vinyl.spinning {
	animation: spinThat 5s linear infinite;
}

#vinyl.playing {
	left: 50%;
}

#vinyl.hidden {
	left: 2.5%;
	opacity: 0.3;
	transform: scale(0.95);
}

#cover.expanded {
	transform: scale(1.05);
}

#vinyl::before {
	position: absolute;
	top: 2.5%;
	left: 2.5%;
	z-index: 10;
	width: 95%;
	height: 95%;
	background-image: url('http://www.designresourcebox.com/ths/diverse/blacktextures/82267467.jpg');
	background-size: 100% 100%;
	border-radius: 50%;
	mix-blend-mode: screen;
	opacity: 0.3;
	content: '';
}

#print {
	position: absolute;
	top: 33%;
	left: 33%;
	height: 34%;
	width: 34%;
	box-shadow: inset 0 0 0 5px rgba(150, 150, 150, 0.5);
	background-image: url('../audio/cover.jpg');
	background-size: cover;
	background-position: center;
	border-radius: 50%;
}

@keyframes spinThat {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* Music Controls */
.music-controls {
	text-align: center;
	color: white;
}

.now-playing {
	font-size: 1.3rem;
	color: #2d6b53;
	margin-bottom: 0.5rem;
	font-weight: 700;
	text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.track-title {
	font-size: 1.1rem;
	color: #2d6b53;
	margin-bottom: 1.5rem;
	font-weight: 600;
	text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
}

.control-buttons {
	display: flex;
	justify-content: center;
	gap: 1.5rem;
	margin-bottom: 1.5rem;
}

.control-btn {
	background: rgba(45, 107, 83, 0.4);
	border: 2px solid rgba(45, 107, 83, 0.6);
	border-radius: 50%;
	width: 55px;
	height: 55px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	color: #2d6b53;
}

.control-btn:hover {
	background: rgba(45, 107, 83, 0.6);
	transform: scale(1.1);
	border-color: rgba(45, 107, 83, 0.8);
}

.control-btn.play-pause {
	width: 70px;
	height: 70px;
	background: rgba(45, 107, 83, 0.5);
}

.control-btn svg {
	width: 30px;
	height: 30px;
}

.control-btn.play-pause svg {
	width: 40px;
	height: 40px;
}

.play-icon {
	display: block;
}

.pause-icon {
	display: none;
}

.control-btn.playing .play-icon {
	display: none;
}

.control-btn.playing .pause-icon {
	display: block;
}

/* Progress Bar */
.progress-container {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
}

.time-current,
.time-total {
	font-size: 0.9rem;
	color: #2d6b53;
	font-weight: 600;
	min-width: 40px;
}

.progress-bar {
	flex: 1;
	height: 6px;
	-webkit-appearance: none;
	appearance: none;
	background: rgba(74, 157, 126, 0.2);
	border-radius: 10px;
	outline: none;
	cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 16px;
	height: 16px;
	background: #4a9d7e;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 0 10px rgba(74, 157, 126, 0.8);
}

.progress-bar::-moz-range-thumb {
	width: 16px;
	height: 16px;
	background: #4a9d7e;
	border-radius: 50%;
	cursor: pointer;
	border: none;
	box-shadow: 0 0 10px rgba(74, 157, 126, 0.8);
}

/* Volume Control */
.volume-container {
	display: flex;
	align-items: center;
	gap: 1rem;
	justify-content: center;
}

.volume-icon {
	width: 24px;
	height: 24px;
	color: #4a9d7e;
}

.volume-slider {
	width: 150px;
	height: 6px;
	-webkit-appearance: none;
	appearance: none;
	background: rgba(74, 157, 126, 0.2);
	border-radius: 10px;
	outline: none;
	cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 14px;
	height: 14px;
	background: #4a9d7e;
	border-radius: 50%;
	cursor: pointer;
}

.volume-slider::-moz-range-thumb {
	width: 14px;
	height: 14px;
	background: #4a9d7e;
	border-radius: 50%;
	cursor: pointer;
	border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
	.music-modal-content {
		width: 95%;
		padding: 1.5rem;
	}

	#album {
		height: 240px;
		width: 240px;
	}

	#wrap {
		height: 240px;
	}

	.control-btn {
		width: 45px;
		height: 45px;
	}

	.control-btn.play-pause {
		width: 60px;
		height: 60px;
	}

	.volume-slider {
		width: 100px;
	}
}
