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

.mv-widget-latest-audio {
	display: grid;

	width: 100%;
	max-width: none;

	box-sizing: border-box;

	gap: 10px;
}


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

.mv-widget-latest-audio .mv-widget-header {
	padding-bottom: 9px;

	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: 800;
	line-height: 1.25;
	letter-spacing: -.02em;
}


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

.mv-latest-audio-list {
	display: grid;

	gap: 0;
}


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

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

.mv-latest-audio-link {
	position: relative;
	isolation: isolate;

	display: grid;
	grid-template-columns: 36px minmax(0, 1fr) 12px;
	align-items: center;

	gap: 9px;

	min-width: 0;

	padding: 8px 4px;

	overflow: hidden;

	border-bottom: 1px solid var(--mv-border);
	border-radius: 0;

	color: var(--mv-text);

	text-decoration: none;

	transition:
		background-color .15s ease,
		color .15s ease;
}

.mv-latest-audio-item:last-child .mv-latest-audio-link {
	border-bottom: 0;
}

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

	position: absolute;
	z-index: 0;

	inset: 0 0 0 48px;

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

	filter: grayscale(1);

	opacity: .07;

	pointer-events: none;

	transition: opacity .15s ease;
}

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

.mv-latest-audio-link:hover {
	background: #fffaf7;
	color: var(--mv-primary);
}

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


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

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

	width: 36px;
	height: 36px;

	border: 1px solid var(--mv-border);
	border-radius: 0;

	background: #fffaf7;

	color: var(--mv-primary);

	font-size: 14px;

	flex-shrink: 0;

	transition:
		border-color .15s ease,
		background-color .15s ease;
}

.mv-latest-audio-link:hover .mv-latest-audio-icon {
	border-color: #c5bbb5;

	background: #fffdfb;
}


/* ==========================================================
   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: var(--mv-muted);
}


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

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

	color: var(--mv-muted);

	font-size: 9px;

	opacity: .45;

	transition:
		color .15s ease,
		opacity .15s ease,
		transform .15s 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: 12px;

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

	background: #fffaf7;

	color: var(--mv-muted);

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

	text-align: center;
}
