/* Music Playlist Player — frontend styles
   All classes are prefixed .mlp- to avoid clashing with Avada / theme CSS. */

.mlp-player {
	--mlp-accent: #e14a63;
	position: relative;
	max-width: 420px;
	margin: 0 auto;
	box-sizing: border-box;
	font-family: inherit;
}
.mlp-player * {
	box-sizing: border-box;
}

/* ---------- Design 1: Full player, blurred artwork background ---------- */

.mlp-design-1 {
	border-radius: 18px;
	overflow: hidden;
	background: #222;
	min-height: 520px;
}

.mlp-design-1 .mlp-bg-blur {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	filter: blur(22px) brightness(0.65) saturate(1.1);
	transform: scale(1.15);
	z-index: 0;
}

.mlp-design-1 .mlp-inner {
	position: relative;
	z-index: 1;
	padding: 40px 24px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 520px;
}

.mlp-design-1 .mlp-art {
	width: 150px;
	height: 150px;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
	margin-bottom: 22px;
	flex-shrink: 0;
}
.mlp-design-1 .mlp-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.mlp-design-1 .mlp-title {
	color: #fff;
	font-size: 18px;
	font-weight: 700;
	text-align: center;
	margin: 0 0 auto;
	padding: 0 10px;
	line-height: 1.4;
}

.mlp-design-1 .mlp-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 46px;
	margin-top: 36px;
}
.mlp-design-1 .mlp-btn {
	background: transparent;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}
.mlp-design-1 .mlp-prev .mlp-icon,
.mlp-design-1 .mlp-next .mlp-icon {
	width: 24px;
	height: 24px;
}
.mlp-design-1 .mlp-play .mlp-icon {
	width: 30px;
	height: 30px;
}
.mlp-design-1 .mlp-btn:hover {
	opacity: 0.8;
}

.mlp-design-1 .mlp-progress-row {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin-top: 30px;
}
.mlp-design-1 .mlp-time {
	color: rgba(255, 255, 255, 0.85);
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	flex-shrink: 0;
}

.mlp-design-1 .mlp-range {
	-webkit-appearance: none;
	appearance: none;
	flex: 1;
	height: 3px;
	border-radius: 3px;
	background: linear-gradient(
		to right,
		var(--mlp-accent) 0%,
		var(--mlp-accent) var(--mlp-progress, 0%),
		rgba(255, 255, 255, 0.35) var(--mlp-progress, 0%),
		rgba(255, 255, 255, 0.35) 100%
	);
	outline: none;
	cursor: pointer;
}
.mlp-design-1 .mlp-range::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 13px;
	height: 13px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
	cursor: pointer;
}
.mlp-design-1 .mlp-range::-moz-range-thumb {
	width: 13px;
	height: 13px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	cursor: pointer;
}
.mlp-design-1 .mlp-range::-moz-range-track {
	background: transparent;
}

/* ---------- Design 2: Track list ---------- */

.mlp-design-2 {
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* Album header (Design 2, "Group by Album" mode) — new, additive block. */
.mlp-design-2 .mlp-album-header {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 18px;
	background: #fff;
	border-bottom: 1px solid #eef0f3;
}
.mlp-design-2 .mlp-album-cover {
	width: 84px;
	height: 84px;
	border-radius: 10px;
	object-fit: cover;
	flex-shrink: 0;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}
.mlp-design-2 .mlp-album-info {
	flex: 1;
	min-width: 0;
}
.mlp-design-2 .mlp-album-title {
	font-size: 19px;
	font-weight: 800;
	color: #232837;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mlp-design-2 .mlp-album-artist {
	margin-top: 5px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #9aa2b1;
}

.mlp-design-2 .mlp-mini-header {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 14px 18px;
	background: #f6f7f9;
}
.mlp-design-2 .mlp-mini-header .mlp-btn {
	background: transparent;
	border: 0;
	cursor: pointer;
	color: #232837;
	flex-shrink: 0;
	display: inline-flex;
	line-height: 0;
}
.mlp-design-2 .mlp-mini-header .mlp-icon {
	width: 18px;
	height: 18px;
}
.mlp-design-2 .mlp-mini-info {
	flex: 1;
	min-width: 0;
}
.mlp-design-2 .mlp-mini-title {
	font-size: 13px;
	font-weight: 600;
	color: #232837;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mlp-design-2 .mlp-mini-progress {
	margin-top: 6px;
	height: 3px;
	border-radius: 3px;
	background: rgba(0, 0, 0, 0.08);
	overflow: hidden;
}
.mlp-design-2 .mlp-mini-progress-fill {
	height: 100%;
	width: 0%;
	background: var(--mlp-accent);
	transition: width 0.1s linear;
}

.mlp-design-2 .mlp-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.mlp-design-2 .mlp-item {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 18px;
	border-bottom: 1px solid #eef0f3;
	cursor: pointer;
	transition: background 0.15s ease;
}
.mlp-design-2 .mlp-item:last-child {
	border-bottom: 0;
}
.mlp-design-2 .mlp-item:hover {
	background: #fafafa;
}
.mlp-design-2 .mlp-item.is-active {
	background: color-mix(in srgb, var(--mlp-accent) 8%, #fff);
}

.mlp-design-2 .mlp-thumb {
	width: 56px;
	height: 56px;
	border-radius: 10px;
	object-fit: cover;
	flex-shrink: 0;
}

.mlp-design-2 .mlp-item-text {
	flex: 1;
	min-width: 0;
}
.mlp-design-2 .mlp-item-title {
	font-size: 16px;
	font-weight: 700;
	color: #232837;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mlp-design-2 .mlp-item.is-active .mlp-item-title {
	color: var(--mlp-accent);
}
.mlp-design-2 .mlp-item-subtitle {
	font-size: 13px;
	color: #9aa2b1;
	margin-top: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mlp-design-2 .mlp-item-play {
	background: transparent;
	border: 0;
	cursor: pointer;
	color: #232837;
	flex-shrink: 0;
	display: inline-flex;
	line-height: 0;
	padding: 6px;
}
.mlp-design-2 .mlp-item.is-active .mlp-item-play {
	color: var(--mlp-accent);
}
.mlp-design-2 .mlp-icon-small {
	width: 20px;
	height: 20px;
}

.mlp-icon {
	fill: currentColor;
	display: block;
}

/* Small screens */
@media (max-width: 480px) {
	.mlp-design-1 .mlp-controls {
		gap: 34px;
	}
	.mlp-design-2 .mlp-thumb {
		width: 46px;
		height: 46px;
	}
}
