/* ==========================================================
   Block — Ultimi Audio Condivisi
   ========================================================== */

.mv-widget-latest-audio {
	display: grid;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	gap: 12px;
}


/* ==========================================================
   Header
   ========================================================== */

.mv-widget-latest-audio .mv-widget-header {
	padding-bottom: 10px;
	border-bottom: 1px solid var(--mv-border);
}

.mv-widget-latest-audio .mv-widget-header h3 {
	margin: 0;

	color: var(--mv-text);

	font-size: 16px;
	font-weight: 850;
	line-height: 1.25;
	letter-spacing: -.02em;
}


/* ==========================================================
   Lista
   ========================================================== */

.mv-latest-audio-list {
	display: grid;
	gap: 4px;
}


/* ==========================================================
   Audio
   ========================================================== */

.mv-latest-audio-item {
	min-width: 0;
}

.mv-latest-audio-link {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr) 12px;
	align-items: center;
	gap: 9px;

	min-width: 0;
	padding: 7px 8px;

	border-radius: 8px;

	color: var(--mv-text);
	text-decoration: none;

	transition:
		background-color .16s ease,
		color .16s ease;
	position: relative;
	isolation: isolate;
	overflow: hidden;
}

.mv-latest-audio-link::before {
	content: "";

	position: absolute;
	z-index: 0;

	top: 0;
	right: 0;
	bottom: 0;
	left: 53px;

	background-image: var(--mv-audio-waveform);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100% 80%;

	filter: brightness(0);

	opacity: .10;

	pointer-events: none;

	transition: opacity .16s ease;
}

.mv-latest-audio-icon,
.mv-latest-audio-content,
.mv-latest-audio-arrow {
	position: relative;
	z-index: 1;
}

.mv-latest-audio-link:hover::before {
	opacity: .38;
}

.mv-latest-audio-link:hover {
	background: rgba(66, 185, 146, .08);
	color: #176747;
}


/* ==========================================================
   Icona
   ========================================================== */

.mv-latest-audio-icon {
	display: grid;
	place-items: center;

	width: 36px;
	height: 36px;

	border-radius: 9px;

	background: rgba(66, 185, 146, .09);

	color: var(--mv-primary);
	font-size: 14px;

	flex-shrink: 0;
}


/* ==========================================================
   Testo
   ========================================================== */

.mv-latest-audio-content {
	display: grid;
	gap: 3px;

	min-width: 0;
}

.mv-latest-audio-title {
	display: block;

	min-width: 0;

	overflow: hidden;

	color: inherit;

	font-size: 12px;
	font-weight: 750;
	line-height: 1.3;

	text-overflow: ellipsis;
	white-space: nowrap;
}

.mv-latest-audio-meta {
	display: flex;
	align-items: center;
	gap: 7px;

	min-width: 0;

	color: var(--mv-muted);

	font-size: 10px;
	font-weight: 500;
	line-height: 1.2;
}

.mv-latest-audio-meta span {
	min-width: 0;

	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mv-latest-audio-meta span + span::before {
	content: "•";
	margin-right: 7px;

	color: #a8afb4;
}


/* ==========================================================
   Freccia
   ========================================================== */

.mv-latest-audio-arrow {
	justify-self: end;

	color: var(--mv-muted);

	font-size: 9px;
	opacity: .45;

	transition:
		color .16s ease,
		opacity .16s ease,
		transform .16s ease;
}

.mv-latest-audio-link:hover
.mv-latest-audio-arrow {
	color: var(--mv-primary);
	opacity: 1;

	transform: translateX(2px);
}


/* ==========================================================
   Link finale
   ========================================================== */

.mv-latest-audio-more {
	display: inline-flex;
	align-items: center;

	width: fit-content;
	margin-top: 2px;

	color: var(--mv-primary);

	font-size: 11px;
	font-weight: 700;
	line-height: 1.2;

	text-decoration: none;
}

.mv-latest-audio-more:hover {
	text-decoration: underline;
}


/* ==========================================================
   Stato vuoto
   ========================================================== */

.mv-widget-latest-audio .mv-widget-empty {
	margin: 0;
	padding: 14px;

	border: 1px dashed var(--mv-border);
	border-radius: 10px;

	background: var(--mv-bg);

	color: var(--mv-muted);

	font-size: 12px;
	line-height: 1.5;

	text-align: center;
}
