/* Self-Hosted Autoplayer – stili */
.shap {
	--shap-bg: transparent;
	--shap-fg: #fff;
	--shap-accent: #fff;
	width: 100%;
	box-sizing: border-box;
	margin: 1.5em auto;
	font-family: inherit;
	color: var(--shap-fg);
	background: var(--shap-bg);
	border-radius: 0;
	overflow: hidden;
}

.shap-stage {
	position: relative;
}

.shap-media {
	display: block;
	width: 100%;
}

.shap--audio .shap-stage {
	padding: 12px 12px 0;
}

.shap--align-left  { margin-left: 0; }
.shap--align-right { margin-right: 0; }

/* Proporzioni video: impostate dallo shortcode tramite variabili CSS. */
.shap--video .shap-media {
	background: #000;
	height: auto;
	aspect-ratio: var(--shap-ratio, 16 / 9);
	object-fit: var(--shap-fit, contain);
	max-height: var(--shap-maxh, none);
}

.shap-start,
.shap-unmute {
	position: absolute;
	z-index: 2;
	border: 0;
	cursor: pointer;
	font: inherit;
	color: #fff;
	background: var(--shap-accent);
	border-radius: 999px;
	padding: .6em 1.2em;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
}

.shap-start {
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.shap--audio .shap-start {
	position: static;
	transform: none;
	display: block;
	margin: 8px auto 0;
}

.shap-unmute {
	top: 12px;
	right: 12px;
	font-size: .9em;
}

.shap--audio .shap-unmute {
	position: static;
	display: block;
	margin: 8px auto 0;
}

.shap-start[hidden],
.shap-unmute[hidden] {
	display: none;
}

.shap-bar {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 12px;
}

.shap-bar button {
	flex: none;
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 1.2em;
	cursor: pointer;
	padding: 4px 6px;
	line-height: 1;
}

.shap-bar button:hover,
.shap-bar button:focus-visible {
	color: var(--shap-accent);
}

.shap-title {
	flex: 1;
	min-width: 0;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	font-weight: 600;
}

.shap-list {
	list-style: decimal inside;
	margin: 0;
	padding: 0 12px 12px;
	max-height: 260px;
	overflow-y: auto;
	border-top: 1px solid rgba(255, 255, 255, .12);
}

.shap-list li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.shap-list button {
	border: 0;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	padding: 8px 4px;
	width: calc(100% - 2em);
}

.shap-list button:hover,
.shap-list button.is-active {
	color: var(--shap-accent);
}

.shap-list button.is-active {
	font-weight: 700;
}
