.aeml-player {
	position: fixed;
	bottom: 20px;
	z-index: 99999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.aeml-pos-right {
	right: 20px;
}

.aeml-pos-left {
	left: 20px;
}

.aeml-toggle {
	background: var( --aeml-color, #6d3fc0 );
	color: #fff;
	border: none;
	border-radius: 30px;
	padding: 10px 18px;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba( 0, 0, 0, 0.25 );
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 6px;
}

.aeml-toggle .dashicons {
	line-height: 1;
}

.aeml-panel {
	margin-top: 10px;
	width: 300px;
	max-height: 70vh;
	overflow-y: auto;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 6px 24px rgba( 0, 0, 0, 0.2 );
	padding: 14px;
	color: #23282d;
}

.aeml-resume-banner {
	background: #f5f0ff;
	border: 1px solid var( --aeml-color, #6d3fc0 );
	border-radius: 6px;
	padding: 8px 10px;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 13px;
}

.aeml-master-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.aeml-master-row label {
	font-size: 12px;
	white-space: nowrap;
}

.aeml-channel h4 {
	margin: 12px 0 6px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #666;
}

.aeml-track {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 0;
}

.aeml-track-toggle {
	background: #eee;
	border: none;
	border-radius: 50%;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	flex: 0 0 auto;
}

.aeml-track-toggle.is-playing {
	background: var( --aeml-color, #6d3fc0 );
	color: #fff;
}

.aeml-track-title {
	flex: 1 1 auto;
	font-size: 13px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aeml-track-volume {
	width: 70px;
}

.aeml-esterna {
	margin-top: 14px;
	border-top: 1px solid #eee;
	padding-top: 10px;
}

.aeml-esterna h4 {
	margin: 0 0 6px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #666;
}

.aeml-esterna-controls {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 6px;
	font-size: 12px;
}

.aeml-esterna-titolo {
	flex: 1 1 auto;
	text-align: center;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding: 0 6px;
}

#areacorsi-mixer-zone.aeml-loading {
	opacity: 0.6;
	transition: opacity 0.15s ease;
}

@media ( max-width: 480px ) {
	.aeml-panel {
		width: calc( 100vw - 40px );
	}
}
