.mfp-player {
	--mfp-bg: #14131f;
	--mfp-bg-2: #1e1c2e;
	--mfp-accent: #7c5cff;
	--mfp-accent-2: #ff5c8a;
	--mfp-text: #f4f3fb;
	--mfp-muted: #9d99b8;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, "Vazirmatn", sans-serif;
	background: linear-gradient(145deg, var(--mfp-bg) 0%, var(--mfp-bg-2) 100%);
	color: var(--mfp-text);
	border-radius: 20px;
	padding: 22px;
	max-width: 640px;
	margin: 32px 0;
	box-shadow: 0 12px 40px rgba(20, 19, 31, 0.35);
	position: relative;
	overflow: hidden;
}

.mfp-player::before {
	content: "";
	position: absolute;
	top: -60px;
	inset-inline-end: -60px;
	width: 220px;
	height: 220px;
	background: radial-gradient(circle, var(--mfp-accent) 0%, transparent 70%);
	opacity: 0.25;
	pointer-events: none;
}

.mfp-player-top {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 18px;
	position: relative;
	z-index: 1;
}

.mfp-cover-wrap {
	position: relative;
	width: 76px;
	height: 76px;
	flex-shrink: 0;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.mfp-cover {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mfp-bars {
	position: absolute;
	bottom: 6px;
	inset-inline-start: 6px;
	display: flex;
	align-items: flex-end;
	gap: 2px;
	height: 16px;
	opacity: 0;
	transition: opacity 0.2s;
}

.mfp-player.mfp-playing .mfp-bars {
	opacity: 1;
}

.mfp-bars span {
	width: 3px;
	background: var(--mfp-accent-2);
	border-radius: 2px;
	animation: mfp-bar-bounce 1s ease-in-out infinite;
}
.mfp-bars span:nth-child(1) { animation-delay: 0s; }
.mfp-bars span:nth-child(2) { animation-delay: 0.15s; }
.mfp-bars span:nth-child(3) { animation-delay: 0.3s; }
.mfp-bars span:nth-child(4) { animation-delay: 0.1s; }
.mfp-bars span:nth-child(5) { animation-delay: 0.25s; }

@keyframes mfp-bar-bounce {
	0%, 100% { height: 4px; }
	50% { height: 16px; }
}

.mfp-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.mfp-eyebrow {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--mfp-accent-2);
	font-weight: 600;
}

.mfp-title {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--mfp-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mfp-duration {
	font-size: 12px;
	color: var(--mfp-muted);
}

.mfp-controls {
	display: flex;
	align-items: center;
	gap: 10px;
	position: relative;
	z-index: 1;
	flex-wrap: wrap;
}

.mfp-btn {
	background: rgba(255, 255, 255, 0.06);
	border: none;
	color: var(--mfp-text);
	border-radius: 999px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.15s ease, background 0.15s ease;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
}

.mfp-btn:hover {
	background: rgba(255, 255, 255, 0.14);
	transform: translateY(-1px);
}

.mfp-skip-back,
.mfp-skip-fwd {
	width: 38px;
	height: 38px;
}

.mfp-playpause {
	width: 48px;
	height: 48px;
	background: linear-gradient(135deg, var(--mfp-accent), var(--mfp-accent-2));
}

.mfp-playpause svg {
	width: 20px;
	height: 20px;
	fill: #fff;
}

.mfp-progress-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	min-width: 160px;
}

.mfp-time-current,
.mfp-time-total {
	font-size: 11px;
	color: var(--mfp-muted);
	min-width: 34px;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.mfp-progress-track {
	position: relative;
	flex: 1;
	height: 6px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	cursor: pointer;
}

.mfp-progress-fill {
	position: absolute;
	inset-inline-start: 0;
	top: 0;
	bottom: 0;
	width: 0%;
	background: linear-gradient(90deg, var(--mfp-accent), var(--mfp-accent-2));
	border-radius: 999px;
}

.mfp-progress-handle {
	position: absolute;
	top: 50%;
	inset-inline-start: 0%;
	width: 12px;
	height: 12px;
	background: #fff;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.mfp-speed-btn {
	width: 42px;
	height: 34px;
	font-size: 12px;
}

.mfp-download {
	width: 34px;
	height: 34px;
	font-size: 15px;
}

.mfp-playlist {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-height: 220px;
	overflow-y: auto;
	position: relative;
	z-index: 1;
}

.mfp-playlist-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border-radius: 10px;
	cursor: pointer;
	transition: background 0.15s ease;
	font-size: 13px;
}

.mfp-playlist-item:hover {
	background: rgba(255, 255, 255, 0.05);
}

.mfp-playlist-item.active {
	background: rgba(124, 92, 255, 0.18);
}

.mfp-playlist-num {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
	color: var(--mfp-muted);
	flex-shrink: 0;
}

.mfp-playlist-item.active .mfp-playlist-num {
	background: var(--mfp-accent);
	color: #fff;
}

.mfp-playlist-speaker {
	font-weight: 600;
	color: var(--mfp-text);
}

@media (max-width: 480px) {
	.mfp-progress-wrap {
		order: 10;
		width: 100%;
		flex-basis: 100%;
	}
}
