/**
 * Native MP3 Audio Player Styles — Mobisig Theme
 */

.mobi-audio-wrapper {
	width: 100%;
	max-width: 640px;
	margin-inline: auto;
	font-family: inherit;
}

.mobi-audio-header {
	margin-bottom: 24px;
	text-align: center;
}

.mobi-audio-subtitle {
	display: block;
	margin-bottom: 8px;
	color: var(--mobi-inner-red, #e20d19);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
}

.mobi-audio-title {
	margin: 0;
	color: var(--mobi-inner-ink, #0f1c2c);
	font-size: clamp(24px, 3vw, 32px);
	font-weight: 800;
	letter-spacing: -.03em;
}

.mobi-audio-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 32px 28px;
	background: #dcdcdc;
	border-radius: 4px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}

/* Light / Card Container Variants */
.mobi-audio-wrapper--dark .mobi-audio-list {
	background: #192534;
}

.mobi-audio-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mobi-audio-item__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.mobi-audio-item__title {
	color: #333;
	font-size: 14px;
	font-weight: 800;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.mobi-audio-wrapper--dark .mobi-audio-item__title {
	color: #e2e8f0;
}

/* Player Bar */
.mobi-audio-player {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	height: 48px;
	padding: 0 16px;
	background: #242424;
	border-radius: 2px;
	color: #fff;
	user-select: none;
}

.mobi-audio-play-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	transition: transform .15s ease, color .15s ease, background-color .15s ease;
}

.mobi-audio-play-btn:hover {
	color: var(--mobi-inner-red, #e20d19);
	transform: scale(1.1);
}

.mobi-audio-play-btn:focus-visible {
	outline: 2px solid var(--mobi-inner-red, #e20d19);
	outline-offset: 2px;
}

.mobi-audio-time {
	color: #a0a0a0;
	font-family: monospace, monospace;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .05em;
	white-space: nowrap;
}

/* Timeline Seek Bar */
.mobi-audio-timeline {
	position: relative;
	display: flex;
	flex: 1;
	align-items: center;
	height: 6px;
	background: #444;
	border-radius: 3px;
	cursor: pointer;
}

.mobi-audio-progress {
	position: absolute;
	top: 0;
	left: 0;
	height: 100%;
	background: var(--mobi-inner-red, #e20d19);
	border-radius: 3px;
	pointer-events: none;
	transition: width .1s linear;
}

.mobi-audio-seek {
	position: absolute;
	top: -6px;
	left: 0;
	z-index: 2;
	width: 100%;
	height: 18px;
	margin: 0;
	background: transparent;
	border: 0;
	cursor: pointer;
	opacity: 0;
	appearance: none;
	-webkit-appearance: none;
}

.mobi-audio-timeline:hover .mobi-audio-progress {
	background: #ff2a37;
}

/* Volume controls */
.mobi-audio-volume {
	position: relative;
	display: flex;
	align-items: center;
}

.mobi-audio-mute-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	background: transparent;
	border: 0;
	color: #ccc;
	cursor: pointer;
	transition: color .15s ease;
}

.mobi-audio-mute-btn:hover {
	color: #fff;
}

.mobi-audio-volume-popover {
	display: flex;
	align-items: center;
	width: 60px;
	margin-left: 4px;
}

.mobi-audio-volume-slider {
	width: 100%;
	height: 4px;
	margin: 0;
	accent-color: #fff;
	background: #555;
	border-radius: 2px;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.mobi-audio-volume-slider::-webkit-slider-thumb {
	width: 10px;
	height: 10px;
	background: #fff;
	border-radius: 50%;
	appearance: none;
	-webkit-appearance: none;
}

.mobi-audio-volume-slider::-moz-range-thumb {
	width: 10px;
	height: 10px;
	background: #fff;
	border: 0;
	border-radius: 50%;
}

@media (max-width: 540px) {
	.mobi-audio-list {
		padding: 20px 16px;
	}

	.mobi-audio-player {
		gap: 10px;
		padding: 0 12px;
	}

	.mobi-audio-volume-popover {
		width: 45px;
	}
}
