/* ─── Blog Post Audio Player ─── */

.laforma-audio-player {
	margin: 24px 0 32px;
	border-radius: 12px;
	background: linear-gradient(135deg, #f8f6f3 0%, #f0ece6 100%);
	border: 1px solid #e8e2da;
	overflow: hidden;
	transition: box-shadow 0.3s ease;
}

.laforma-audio-player:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.laforma-audio-player__inner {
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 20px 24px;
}

/* ── Header: icon + label ── */

.laforma-audio-player__header {
	display: flex;
	align-items: center;
	gap: 12px;
}

.laforma-audio-player__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #C69160;
	color: #fff;
	box-shadow: 0 2px 8px rgba(198, 145, 96, 0.3);
}

.laforma-audio-player__icon svg {
	display: block;
}

.laforma-audio-player__label {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* Hide native audio element */
.laforma-audio-player__audio {
	display: none;
}

/* ── Custom controls row ── */

.laforma-audio-player__controls {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Play / Pause button — large touch target */
.laforma-audio-player__play {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: none;
	background: #C69160;
	color: #fff;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background 0.2s, transform 0.15s;
	box-shadow: 0 2px 8px rgba(198, 145, 96, 0.3);
	padding: 0;
}

.laforma-audio-player__play:active {
	transform: scale(0.93);
}

.laforma-audio-player__play:hover {
	background: #b07d4f;
}

.laforma-audio-player__play svg {
	display: block;
	pointer-events: none;
}

/* Time labels */
.laforma-audio-player__time {
	flex-shrink: 0;
	font-size: 13px;
	font-weight: 500;
	color: #666;
	font-variant-numeric: tabular-nums;
	min-width: 36px;
	text-align: center;
	user-select: none;
}

/* Progress bar — outer touch area */
.laforma-audio-player__progress {
	flex: 1;
	position: relative;
	height: 30px;          /* large touch target */
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	display: flex;
	align-items: center;
}

/* Visible background track (unfilled) */
.laforma-audio-player__progress-track {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 6px;
	background: #c4b9ac;
	border-radius: 3px;
	pointer-events: none;
}

/* Filled portion */
.laforma-audio-player__progress-bar {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 6px;
	width: 0;
	background: #C69160;
	border-radius: 3px;
	pointer-events: none;
	z-index: 1;
}

/* Speed button */
.laforma-audio-player__speed {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 32px;
	border-radius: 6px;
	border: 1px solid #d4ccc3;
	background: #fff;
	color: #555;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background 0.15s, border-color 0.15s;
	padding: 0 8px;
}

.laforma-audio-player__speed:hover {
	background: #f5f0eb;
	border-color: #C69160;
	color: #C69160;
}

/* ─── Responsive ─── */

@media (max-width: 600px) {
	.laforma-audio-player__inner {
		padding: 16px 18px;
		gap: 12px;
	}

	.laforma-audio-player__icon {
		width: 44px;
		height: 44px;
	}

	.laforma-audio-player__icon svg {
		width: 20px;
		height: 20px;
	}

	.laforma-audio-player__label {
		font-size: 13px;
	}

	.laforma-audio-player__play {
		width: 44px;
		height: 44px;
	}

	.laforma-audio-player__time {
		font-size: 12px;
		min-width: 32px;
	}

	.laforma-audio-player__progress {
		height: 36px;     /* even larger touch target on mobile */
	}
}
