.madex-audio-player,
.madex-audio-engine {
	--madex-primary: #8b5cf6;
	--madex-accent: #d946ef;
	--madex-bg: #0a0b10;
	--madex-surface: #141620;
	--madex-surface-strong: #1a1d29;
	--madex-text: #ffffff;
	--madex-muted: #9ea1b1;
	--madex-border: rgba(255, 255, 255, 0.1);
	--madex-player-height: 104px;
	--madex-radius: 18px;
	--madex-waveform-base: rgba(255, 255, 255, 0.22);
	--madex-waveform-progress-start: #8b5cf6;
	--madex-waveform-progress-end: #d946ef;
	box-sizing: border-box;
}

.madex-audio-player *,
.madex-audio-player *::before,
.madex-audio-player *::after,
.madex-audio-engine *,
.madex-audio-engine *::before,
.madex-audio-engine *::after {
	box-sizing: border-box;
}

/* Commercial player with waveform, expanded view, and listener queue. */
.madex-audio-player {
	position: relative;
	z-index: 20;
	width: 100%;
	min-height: var(--madex-player-height);
	border-top: 1px solid var(--madex-border);
	background: linear-gradient(135deg, rgba(24, 20, 38, 0.98), rgba(8, 9, 14, 0.99) 46%, rgba(14, 10, 27, 0.99));
	box-shadow: 0 -18px 45px rgba(0, 0, 0, 0.3);
	color: var(--madex-text);
	font-family: inherit;
	-webkit-font-smoothing: antialiased;
}

.madex-audio-player::before {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 12% 0%, rgba(139, 92, 246, 0.18), transparent 34%), radial-gradient(circle at 88% 100%, rgba(217, 70, 239, 0.09), transparent 26%);
	content: "";
	pointer-events: none;
}

.madex-audio-player--sticky {
	position: fixed;
	left: 0;
	right: 0;
	z-index: 99990;
}

.madex-audio-player--sticky-bottom {
	bottom: 0;
}

.madex-audio-player--sticky-top {
	top: 0;
	border-top: 0;
	border-bottom: 1px solid var(--madex-border);
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

body.admin-bar .madex-audio-player--sticky-top {
	top: 32px;
}

body.madex-audio-has-sticky-bottom {
	padding-bottom: 0;
}

.madex-audio-dock-spacer {
	display: block;
	width: 100%;
	height: calc(var(--madex-player-height, 104px) + 12px);
	min-height: 0;
	pointer-events: none;
}

body.madex-audio-has-sticky-top {
	padding-top: var(--madex-player-height);
}

.madex-audio-player__media {
	display: none;
}

.madex-audio-player__shell {
	position: relative;
	display: grid;
	grid-template-columns: minmax(220px, 0.95fr) minmax(360px, 1.5fr) minmax(220px, 0.95fr);
	align-items: center;
	gap: clamp(18px, 2.4vw, 42px);
	width: min(100%, 1800px);
	min-height: var(--madex-player-height);
	margin: 0 auto;
	padding: 14px clamp(18px, 3vw, 54px);
}

.madex-audio-player__track {
	display: flex;
	align-items: center;
	min-width: 0;
	gap: 14px;
}

.madex-audio-player__artwork-wrap {
	position: relative;
	flex: 0 0 68px;
	width: 68px;
	height: 68px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.85), rgba(217, 70, 239, 0.5) 62%, rgba(10, 11, 16, 0.9));
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.madex-audio-player__artwork,
.madex-audio-player__artwork-fallback {
	width: 100%;
	height: 100%;
}

.madex-audio-player__artwork {
	display: block;
	object-fit: cover;
}

.madex-audio-player__artwork-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.9);
}

.madex-audio-player__artwork-fallback svg {
	width: 28px;
	height: 28px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.madex-audio-player__meta {
	min-width: 0;
}

.madex-audio-player__title,
.madex-audio-player__artist {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.madex-audio-player__title {
	margin: 0 0 5px;
	color: var(--madex-text);
	font-size: 14px;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.25;
}

.madex-audio-player__artist {
	color: var(--madex-muted);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.25;
}

.madex-audio-player__center {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-width: 0;
	gap: 7px;
}

.madex-audio-player__transport {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
}

.madex-audio-player button {
	font: inherit;
}

.madex-audio-player__icon-button,
.madex-audio-player__play {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	padding: 0;
	border: 0;
	background: transparent;
	color: #d8d9e0;
	cursor: pointer;
	transition: color 160ms ease, background-color 160ms ease, transform 160ms ease, opacity 160ms ease;
}

.madex-audio-player__icon-button {
	width: 36px;
	height: 36px;
	border-radius: 50%;
}

.madex-audio-player__icon-button:hover,
.madex-audio-player__icon-button:focus-visible {
	background: rgba(255, 255, 255, 0.07);
	color: #fff;
	outline: none;
}

.madex-audio-player__icon-button.is-active,
.madex-audio-player__icon-button[aria-pressed="true"].madex-audio-player__mode-button {
	color: #b793ff;
}

.madex-audio-player__icon-button svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.madex-audio-player__play {
	width: 44px;
	height: 44px;
	margin: 0 3px;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
	color: #090a0e;
}

.madex-audio-player__play:hover,
.madex-audio-player__play:focus-visible {
	transform: scale(1.045);
	outline: none;
}

.madex-audio-player__play svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
	stroke: none;
}

.madex-audio-player__play [data-madex-play-icon] {
	transform: translateX(1px);
}

.madex-audio-player__timeline {
	display: grid;
	grid-template-columns: 36px minmax(80px, 1fr) 36px;
	align-items: center;
	gap: 9px;
	width: 100%;
}

.madex-audio-player__time {
	color: #858898;
	font-size: 10px;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	text-align: center;
}

.madex-audio-player__waveform {
	position: relative;
	width: 100%;
	height: 28px;
	min-width: 80px;
	border-radius: 8px;
	overflow: hidden;
}

.madex-audio-player__waveform-canvas {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	opacity: 0;
	pointer-events: none;
	transition: opacity 180ms ease;
}

.madex-audio-player__waveform-fallback {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 3px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
	transform: translateY(-50%);
	pointer-events: none;
}

.madex-audio-player__waveform.is-loading .madex-audio-player__waveform-fallback {
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(139, 92, 246, 0.35), rgba(255, 255, 255, 0.12));
	background-size: 200% 100%;
	animation: madex-waveform-loading 1.4s linear infinite;
}

.madex-audio-player__waveform.is-ready .madex-audio-player__waveform-canvas {
	opacity: 1;
}

.madex-audio-player__waveform.is-ready .madex-audio-player__waveform-fallback {
	opacity: 0;
}

.madex-audio-player__waveform .madex-audio-player__progress {
	position: absolute;
	inset: 0;
	z-index: 2;
	width: 100%;
	height: 100%;
}

.madex-audio-player__waveform.is-loading .madex-audio-player__progress,
.madex-audio-player__waveform.is-ready .madex-audio-player__progress {
	opacity: 0;
}

.madex-audio-player__waveform:focus-within {
	box-shadow: 0 0 0 2px rgba(183, 147, 255, 0.62);
}

@keyframes madex-waveform-loading {
	0% {
		background-position: 100% 0;
	}
	100% {
		background-position: -100% 0;
	}
}

.madex-audio-player input[type="range"] {
	margin: 0;
	padding: 0;
	accent-color: var(--madex-primary);
	cursor: pointer;
}

.madex-audio-player__progress,
.madex-audio-player__volume input[type="range"] {
	width: 100%;
	height: 18px;
	background: transparent;
}

.madex-audio-player__progress::-webkit-slider-runnable-track,
.madex-audio-player__volume input[type="range"]::-webkit-slider-runnable-track {
	height: 3px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
}

.madex-audio-player__progress::-webkit-slider-thumb,
.madex-audio-player__volume input[type="range"]::-webkit-slider-thumb {
	width: 11px;
	height: 11px;
	margin-top: -4px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	-webkit-appearance: none;
}

.madex-audio-player__progress::-moz-range-track,
.madex-audio-player__volume input[type="range"]::-moz-range-track {
	height: 3px;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.2);
}

.madex-audio-player__progress::-moz-range-progress,
.madex-audio-player__volume input[type="range"]::-moz-range-progress {
	height: 3px;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--madex-primary), var(--madex-accent));
}

.madex-audio-player__progress::-moz-range-thumb,
.madex-audio-player__volume input[type="range"]::-moz-range-thumb {
	width: 11px;
	height: 11px;
	border: 0;
	border-radius: 50%;
	background: #fff;
}

.madex-audio-player__utility {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	min-width: 0;
	gap: 4px;
}

.madex-audio-player__volume {
	width: min(92px, 9vw);
	min-width: 58px;
}

.madex-audio-player__track-position {
	min-width: 46px;
	margin-right: 2px;
	color: #777a89;
	font-size: 10px;
	font-variant-numeric: tabular-nums;
	text-align: right;
}

.madex-audio-player__repeat-one {
	position: absolute;
	right: 4px;
	bottom: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: var(--madex-primary);
	color: #fff;
	font-size: 7px;
	font-weight: 800;
	line-height: 1;
}

.madex-audio-player__error {
	position: absolute;
	right: clamp(18px, 3vw, 54px);
	bottom: calc(100% + 10px);
	max-width: min(440px, calc(100vw - 32px));
	padding: 10px 13px;
	border: 1px solid rgba(248, 113, 113, 0.25);
	border-radius: 10px;
	background: rgba(70, 12, 18, 0.96);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
	color: #fecaca;
	font-size: 12px;
}

.madex-audio-player.is-buffering .madex-audio-player__artwork-wrap::after {
	position: absolute;
	inset: 0;
	background: rgba(7, 8, 12, 0.42);
	content: "";
}

.madex-audio-engine-notice {
	padding: 12px 14px;
	border-left: 4px solid #8b5cf6;
	background: #f6f4ff;
}

/* Diagnostic engine shell retained for support and testing. */
.madex-audio-engine {
	display: grid;
	grid-template-columns: minmax(160px, 1fr) auto minmax(220px, 2fr) minmax(100px, 0.6fr);
	align-items: center;
	gap: 16px;
	width: 100%;
	padding: 16px;
	border: 1px solid var(--madex-border);
	border-radius: var(--madex-radius);
	background: var(--madex-bg);
	color: var(--madex-text);
	font: inherit;
}

.madex-audio-engine__media {
	display: none;
}

.madex-audio-engine__meta {
	min-width: 0;
}

.madex-audio-engine__title,
.madex-audio-engine__artist {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.madex-audio-engine__title {
	font-size: 14px;
}

.madex-audio-engine__artist,
.madex-audio-engine__status,
.madex-audio-engine__time {
	color: var(--madex-muted);
	font-size: 12px;
}

.madex-audio-engine__transport,
.madex-audio-engine__timeline,
.madex-audio-engine__volume {
	display: flex;
	align-items: center;
	gap: 8px;
}

.madex-audio-engine__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid var(--madex-border);
	border-radius: 50%;
	background: var(--madex-surface);
	color: var(--madex-text);
	cursor: pointer;
}

.madex-audio-engine__button:hover,
.madex-audio-engine__button:focus-visible {
	border-color: var(--madex-primary);
	outline: none;
}

.madex-audio-engine__button--primary {
	border-color: var(--madex-primary);
	background: var(--madex-primary);
}

.madex-audio-engine__timeline input[type="range"],
.madex-audio-engine__volume input[type="range"] {
	accent-color: var(--madex-primary);
}

.madex-audio-engine__timeline {
	min-width: 0;
}

.madex-audio-engine__progress {
	width: 100%;
	min-width: 120px;
}

.madex-audio-engine__status {
	grid-column: 1 / -1;
	min-height: 18px;
}

.madex-audio-engine__error {
	grid-column: 1 / -1;
	padding: 10px 12px;
	border-radius: 8px;
	background: rgba(220, 38, 38, 0.14);
	color: #fecaca;
}

@media (max-width: 1080px) {
	.madex-audio-player__shell {
		grid-template-columns: minmax(190px, 0.85fr) minmax(320px, 1.5fr) auto;
		gap: 18px;
		padding-right: 20px;
		padding-left: 20px;
	}

	.madex-audio-player__queue-hook,
	.madex-audio-player__track-position {
		display: none;
	}
}

@media (max-width: 760px) {
	.madex-audio-player,
	.madex-audio-engine {
		--madex-player-height: 86px;
	}

	body.admin-bar .madex-audio-player--sticky-top {
		top: 46px;
	}

	.madex-audio-player__shell {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 10px;
		min-height: 86px;
		padding: 10px 12px;
	}

	.madex-audio-player__track {
		grid-column: 1;
		grid-row: 1;
		gap: 10px;
	}

	.madex-audio-player__artwork-wrap {
		flex-basis: 54px;
		width: 54px;
		height: 54px;
		border-radius: 10px;
	}

	.madex-audio-player__title {
		font-size: 13px;
	}

	.madex-audio-player__artist {
		font-size: 11px;
	}

	.madex-audio-player__center {
		grid-column: 2;
		grid-row: 1;
		gap: 0;
	}

	.madex-audio-player__transport {
		gap: 1px;
	}

	.madex-audio-player__mode-button,
	.madex-audio-player__timeline,
	.madex-audio-player__utility {
		display: none;
	}

	.madex-audio-player__icon-button {
		width: 32px;
		height: 32px;
	}

	.madex-audio-player__play {
		width: 42px;
		height: 42px;
		margin: 0;
	}
}

@media (max-width: 420px) {
	.madex-audio-player__shell {
		padding-right: 8px;
		padding-left: 8px;
	}

	.madex-audio-player__artwork-wrap {
		flex-basis: 48px;
		width: 48px;
		height: 48px;
	}

	.madex-audio-player__icon-button[data-madex-action="previous"] {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.madex-audio-player__icon-button,
	.madex-audio-player__play,
	.madex-audio-player__waveform-canvas {
		transition: none;
	}

	.madex-audio-player__waveform.is-loading .madex-audio-player__waveform-fallback {
		animation: none;
	}
}

@media (max-width: 820px) {
	.madex-audio-engine {
		grid-template-columns: 1fr;
	}

	.madex-audio-engine__timeline,
	.madex-audio-engine__volume {
		width: 100%;
	}

	.madex-audio-engine__volume input[type="range"] {
		width: 100%;
	}
}

.madex-audio-player [hidden] {
	display: none !important;
}

.madex-audio-player__queue-hook:disabled {
	opacity: 0.42;
	cursor: default;
}

/* Immersive expanded player. */
.madex-audio-player__mobile-expand {
	display: none;
	align-items: center;
	justify-content: center;
	flex: 0 0 34px;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.06);
	color: #d8d9e0;
	cursor: pointer;
}

.madex-audio-player__mobile-expand svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

body.madex-audio-expanded-open {
	overflow: hidden;
}

body.madex-audio-expanded-open .madex-audio-player {
	z-index: 100100;
}

.madex-audio-expanded {
	position: fixed;
	inset: 0;
	z-index: 100200;
	display: flex;
	align-items: stretch;
	justify-content: stretch;
	padding: clamp(12px, 1.8vw, 28px);
	background: rgba(2, 3, 8, 0.84);
	isolation: isolate;
}

.madex-audio-expanded__backdrop {
	position: absolute;
	inset: 0;
	z-index: -2;
	background: radial-gradient(circle at 16% 10%, rgba(139, 92, 246, 0.2), transparent 32%), radial-gradient(circle at 82% 82%, rgba(217, 70, 239, 0.13), transparent 30%), rgba(3, 4, 10, 0.92);
	backdrop-filter: blur(20px);
}

.madex-audio-expanded__surface {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(100%, 1580px);
	height: 100%;
	min-height: 0;
	margin: 0 auto;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.11);
	border-radius: clamp(18px, 2vw, 30px);
	background: linear-gradient(145deg, rgba(22, 19, 36, 0.98), rgba(8, 10, 18, 0.985) 44%, rgba(11, 8, 20, 0.99));
	box-shadow: 0 32px 100px rgba(0, 0, 0, 0.58);
}

.madex-audio-expanded__surface::after {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 28%, rgba(0, 0, 0, 0.18));
	content: "";
	pointer-events: none;
}

.madex-audio-expanded__ambient {
	position: absolute;
	inset: -12%;
	z-index: -1;
	overflow: hidden;
	opacity: 0.18;
	filter: blur(74px) saturate(1.35);
	transform: scale(1.08);
	pointer-events: none;
}

.madex-audio-expanded__ambient img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.madex-audio-expanded__header {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px clamp(22px, 3vw, 44px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.madex-audio-expanded__brand,
.madex-audio-expanded__header-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.madex-audio-expanded__brand {
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.17em;
}

.madex-audio-expanded__brand-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 10px;
	background: linear-gradient(135deg, #8b5cf6, #d946ef);
	box-shadow: 0 9px 24px rgba(139, 92, 246, 0.28);
}

.madex-audio-expanded__brand-mark svg,
.madex-audio-expanded__close svg,
.madex-audio-expanded__control svg,
.madex-audio-expanded__small-button svg,
.madex-audio-expanded__track-thumb svg {
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.madex-audio-expanded__brand-mark svg {
	width: 17px;
	height: 17px;
}

.madex-audio-expanded__position {
	color: #8e91a1;
	font-size: 11px;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.madex-audio-expanded__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.055);
	color: #e7e8ed;
	cursor: pointer;
	transition: background-color 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.madex-audio-expanded__close:hover,
.madex-audio-expanded__close:focus-visible {
	border-color: rgba(255, 255, 255, 0.25);
	background: rgba(255, 255, 255, 0.11);
	outline: none;
	transform: rotate(4deg);
}

.madex-audio-expanded__close svg {
	width: 19px;
	height: 19px;
}

.madex-audio-expanded__layout {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.72fr);
	min-height: 0;
	flex: 1;
}

.madex-audio-expanded__stage {
	display: flex;
	align-items: center;
	align-content: center;
	justify-content: center;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	padding: clamp(26px, 4vw, 64px);
	overflow-y: auto;
}

.madex-audio-expanded__artwork-frame {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(34vh, 340px, 68vw);
	aspect-ratio: 1;
	margin-bottom: clamp(22px, 3vh, 34px);
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: clamp(20px, 2vw, 28px);
	background: linear-gradient(145deg, rgba(139, 92, 246, 0.9), rgba(217, 70, 239, 0.42) 58%, rgba(12, 13, 20, 0.96));
	box-shadow: 0 34px 80px rgba(0, 0, 0, 0.42), 0 0 70px rgba(139, 92, 246, 0.11);
}

.madex-audio-expanded__artwork,
.madex-audio-expanded__artwork-fallback {
	width: 100%;
	height: 100%;
}

.madex-audio-expanded__artwork {
	display: block;
	object-fit: cover;
}

.madex-audio-expanded__artwork-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, 0.92);
}

.madex-audio-expanded__artwork-fallback svg {
	width: 72px;
	height: 72px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.25;
}

.madex-audio-expanded__meta {
	width: min(100%, 760px);
	margin: 0 auto 24px;
	text-align: center;
}

.madex-audio-expanded__eyebrow {
	margin: 0 0 8px;
	color: #a98cf6;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.19em;
	line-height: 1.2;
}

.madex-audio-expanded__title {
	margin: 0;
	color: #fff;
	font-size: clamp(28px, 3vw, 52px);
	font-weight: 760;
	letter-spacing: -0.045em;
	line-height: 1.04;
	text-wrap: balance;
}

.madex-audio-expanded__artist {
	margin: 9px 0 0;
	color: #c2c4ce;
	font-size: clamp(14px, 1.25vw, 19px);
	font-weight: 550;
}

.madex-audio-expanded__album {
	margin: 7px 0 0;
	color: #777b8c;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.madex-audio-expanded__timeline {
	width: min(100%, 780px);
	margin: 0 auto 20px;
}

.madex-audio-expanded__wave-row {
	display: grid;
	grid-template-columns: 42px minmax(120px, 1fr) 42px;
	align-items: center;
	gap: 12px;
}

.madex-audio-expanded__time {
	color: #7d8192;
	font-size: 11px;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.madex-audio-expanded__waveform {
	position: relative;
	height: 72px;
	min-width: 120px;
	overflow: hidden;
	border-radius: 14px;
}

.madex-audio-expanded__waveform-canvas,
.madex-audio-expanded__waveform-fallback,
.madex-audio-expanded__waveform .madex-audio-expanded__progress {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.madex-audio-expanded__waveform-canvas {
	display: block;
	opacity: 0;
	pointer-events: none;
	transition: opacity 180ms ease;
}

.madex-audio-expanded__waveform-fallback {
	top: 50%;
	height: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
	transform: translateY(-50%);
	pointer-events: none;
}

.madex-audio-expanded__waveform.is-loading .madex-audio-expanded__waveform-fallback {
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), rgba(139, 92, 246, 0.42), rgba(217, 70, 239, 0.35), rgba(255, 255, 255, 0.1));
	background-size: 220% 100%;
	animation: madex-waveform-loading 1.4s linear infinite;
}

.madex-audio-expanded__waveform.is-ready .madex-audio-expanded__waveform-canvas {
	opacity: 1;
}

.madex-audio-expanded__waveform.is-ready .madex-audio-expanded__waveform-fallback {
	opacity: 0;
}

.madex-audio-expanded__waveform .madex-audio-expanded__progress {
	position: absolute;
	inset: 0;
	height: 100%;
}

.madex-audio-expanded__waveform.is-loading .madex-audio-expanded__progress,
.madex-audio-expanded__waveform.is-ready .madex-audio-expanded__progress {
	opacity: 0;
}

.madex-audio-expanded__waveform:focus-within {
	box-shadow: 0 0 0 2px rgba(183, 147, 255, 0.62);
}

.madex-audio-expanded__progress {
	z-index: 2;
	width: 100%;
	height: 24px;
	margin: 0;
	padding: 0;
	background: transparent;
	accent-color: var(--madex-primary);
	cursor: pointer;
}

.madex-audio-expanded__progress:not([hidden])::-webkit-slider-runnable-track,
.madex-audio-expanded__volume-row input[type="range"]::-webkit-slider-runnable-track {
	height: 4px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.18);
}

.madex-audio-expanded__progress::-webkit-slider-thumb,
.madex-audio-expanded__volume-row input[type="range"]::-webkit-slider-thumb {
	width: 13px;
	height: 13px;
	margin-top: -4.5px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	-webkit-appearance: none;
}

.madex-audio-expanded__transport {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 11px;
	margin-bottom: 18px;
}

.madex-audio-expanded__control,
.madex-audio-expanded__play,
.madex-audio-expanded__small-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: #dfe0e6;
	cursor: pointer;
	transition: transform 160ms ease, background-color 160ms ease, color 160ms ease;
}

.madex-audio-expanded__control {
	width: 48px;
	height: 48px;
	border-radius: 50%;
}

.madex-audio-expanded__control:hover,
.madex-audio-expanded__control:focus-visible,
.madex-audio-expanded__small-button:hover,
.madex-audio-expanded__small-button:focus-visible {
	background: rgba(255, 255, 255, 0.07);
	color: #fff;
	outline: none;
}

.madex-audio-expanded__control.is-active,
.madex-audio-expanded__control[aria-pressed="true"].madex-audio-mode-button {
	color: #b793ff;
}

.madex-audio-expanded__control svg,
.madex-audio-expanded__small-button svg {
	width: 21px;
	height: 21px;
}

.madex-audio-expanded__play {
	width: 66px;
	height: 66px;
	margin: 0 4px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32), 0 0 34px rgba(139, 92, 246, 0.12);
	color: #08090d;
}

.madex-audio-expanded__play:hover,
.madex-audio-expanded__play:focus-visible {
	outline: none;
	transform: scale(1.055);
}

.madex-audio-expanded__play svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
	stroke: none;
}

.madex-audio-expanded__play [data-madex-play-icon] {
	transform: translateX(1px);
}

.madex-audio-expanded__volume-row {
	display: grid;
	grid-template-columns: 40px minmax(100px, 220px);
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.madex-audio-expanded__small-button {
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

.madex-audio-expanded__volume-row input[type="range"] {
	width: 100%;
	height: 22px;
	margin: 0;
	padding: 0;
	background: transparent;
	accent-color: var(--madex-primary);
	cursor: pointer;
}

.madex-audio-expanded__playlist {
	min-width: 0;
	min-height: 0;
	padding: clamp(24px, 3vw, 42px);
	overflow-y: auto;
	border-left: 1px solid rgba(255, 255, 255, 0.075);
	background: rgba(5, 6, 12, 0.39);
}

.madex-audio-expanded__playlist-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.madex-audio-expanded__playlist-header h3 {
	margin: 0;
	color: #fff;
	font-size: 21px;
	font-weight: 720;
	letter-spacing: -0.025em;
}

.madex-audio-expanded__playlist-header > span {
	color: #737788;
	font-size: 11px;
	font-weight: 650;
}

.madex-audio-expanded__track-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.madex-audio-expanded__track-button {
	display: grid;
	grid-template-columns: 26px 50px minmax(0, 1fr) auto;
	align-items: center;
	gap: 11px;
	width: 100%;
	padding: 9px 10px;
	border: 1px solid transparent;
	border-radius: 14px;
	background: transparent;
	color: #d9dae1;
	text-align: left;
	cursor: pointer;
	transition: background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.madex-audio-expanded__track-button:hover,
.madex-audio-expanded__track-button:focus-visible {
	border-color: rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.045);
	outline: none;
}

.madex-audio-expanded__track-button.is-current {
	border-color: rgba(139, 92, 246, 0.25);
	background: linear-gradient(90deg, rgba(139, 92, 246, 0.13), rgba(217, 70, 239, 0.055));
}

.madex-audio-expanded__track-number,
.madex-audio-expanded__track-duration {
	color: #727687;
	font-size: 10px;
	font-variant-numeric: tabular-nums;
	font-weight: 650;
}

.madex-audio-expanded__track-number {
	text-align: center;
}

.madex-audio-expanded__track-button.is-current .madex-audio-expanded__track-number {
	color: #b793ff;
}

.madex-audio-expanded__track-thumb {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	overflow: hidden;
	border-radius: 10px;
	background: linear-gradient(135deg, rgba(139, 92, 246, 0.72), rgba(217, 70, 239, 0.35));
	color: #fff;
}

.madex-audio-expanded__track-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.madex-audio-expanded__track-thumb svg {
	width: 19px;
	height: 19px;
}

.madex-audio-expanded__track-copy {
	min-width: 0;
}

.madex-audio-expanded__track-copy strong,
.madex-audio-expanded__track-copy small {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.madex-audio-expanded__track-copy strong {
	margin-bottom: 4px;
	color: #edeef2;
	font-size: 12px;
	font-weight: 680;
}

.madex-audio-expanded__track-copy small {
	color: #777b8b;
	font-size: 10px;
	font-weight: 520;
}

.madex-audio-expanded__queue-note {
	margin: 18px 2px 0;
	color: #5f6372;
	font-size: 10px;
	line-height: 1.5;
}

@media (max-width: 1040px) {
	.madex-audio-expanded__layout {
		grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
	}

	.madex-audio-expanded__stage {
		padding: 28px;
	}

	.madex-audio-expanded__artwork-frame {
		width: min(29vh, 280px, 56vw);
	}

	.madex-audio-expanded__playlist {
		padding: 28px 22px;
	}
}

@media (max-width: 760px) {
	.madex-audio-player__mobile-expand {
		display: inline-flex;
	}

	.madex-audio-player__track {
		min-width: 0;
	}

	.madex-audio-player__meta {
		flex: 1 1 auto;
	}

	.madex-audio-expanded {
		padding: 0;
	}

	.madex-audio-expanded__surface {
		border: 0;
		border-radius: 0;
	}

	.madex-audio-expanded__header {
		padding: 14px 16px;
	}

	.madex-audio-expanded__brand {
		font-size: 10px;
	}

	.madex-audio-expanded__brand-mark {
		width: 29px;
		height: 29px;
		border-radius: 9px;
	}

	.madex-audio-expanded__position {
		display: none;
	}

	.madex-audio-expanded__close {
		width: 38px;
		height: 38px;
	}

	.madex-audio-expanded__layout {
		display: block;
		overflow-y: auto;
	}

	.madex-audio-expanded__stage {
		min-height: auto;
		padding: 24px 18px 30px;
		overflow: visible;
	}

	.madex-audio-expanded__artwork-frame {
		width: min(54vw, 270px);
		margin-bottom: 22px;
		border-radius: 22px;
	}

	.madex-audio-expanded__title {
		font-size: clamp(27px, 8vw, 38px);
	}

	.madex-audio-expanded__meta {
		margin-bottom: 18px;
	}

	.madex-audio-expanded__waveform {
		height: 56px;
	}

	.madex-audio-expanded__wave-row {
		grid-template-columns: 34px minmax(80px, 1fr) 34px;
		gap: 7px;
	}

	.madex-audio-expanded__control {
		width: 42px;
		height: 42px;
	}

	.madex-audio-expanded__play {
		width: 60px;
		height: 60px;
	}

	.madex-audio-expanded__playlist {
		min-height: 330px;
		padding: 26px 16px 40px;
		border-top: 1px solid rgba(255, 255, 255, 0.075);
		border-left: 0;
	}
}

@media (max-width: 420px) {
	.madex-audio-player__mobile-expand {
		width: 32px;
		height: 32px;
	}

	.madex-audio-expanded__stage {
		padding-right: 14px;
		padding-left: 14px;
	}

	.madex-audio-expanded__transport {
		gap: 4px;
	}

	.madex-audio-expanded__control {
		width: 39px;
		height: 39px;
	}

	.madex-audio-expanded__play {
		width: 56px;
		height: 56px;
		margin: 0 2px;
	}

	.madex-audio-expanded__track-button {
		grid-template-columns: 42px minmax(0, 1fr) auto;
		gap: 10px;
	}

	.madex-audio-expanded__track-number {
		display: none;
	}

	.madex-audio-expanded__track-thumb {
		width: 42px;
		height: 42px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.madex-audio-expanded__close,
	.madex-audio-expanded__control,
	.madex-audio-expanded__play,
	.madex-audio-expanded__track-button,
	.madex-audio-expanded__waveform-canvas {
		transition: none;
	}

	.madex-audio-expanded__waveform.is-loading .madex-audio-expanded__waveform-fallback {
		animation: none;
	}
}

/* Listener queue. */
.madex-audio-player__queue-hook {
	position: relative;
}

.madex-audio-player__queue-hook:disabled {
	opacity: 1;
	cursor: pointer;
}

.madex-audio-player__queue-count,
.madex-audio-expanded__queue-button span {
	position: absolute;
	top: -4px;
	right: -5px;
	display: grid;
	place-items: center;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border: 2px solid #090a10;
	border-radius: 999px;
	background: linear-gradient(135deg, #8b5cf6, #d946ef);
	color: #fff;
	font-size: 9px;
	font-weight: 800;
	line-height: 1;
}

.madex-audio-expanded__queue-button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.09);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.05);
	color: #d8d9e0;
	cursor: pointer;
}

.madex-audio-expanded__queue-button svg,
.madex-audio-queue__close svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.8;
}

.madex-audio-expanded__track-row {
	position: relative;
	border-radius: 14px;
}

.madex-audio-expanded__track-actions {
	display: flex;
	gap: 6px;
	padding: 0 10px 8px 97px;
}

.madex-audio-expanded__track-actions button {
	padding: 5px 8px;
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 999px;
	background: rgba(255,255,255,.035);
	color: #8d91a2;
	font-size: 9px;
	font-weight: 700;
	cursor: pointer;
}

.madex-audio-expanded__track-actions button:hover,
.madex-audio-expanded__track-actions button:focus-visible {
	border-color: rgba(139,92,246,.45);
	color: #d9c8ff;
	outline: none;
}

body.madex-audio-queue-open {
	overflow: hidden;
}

.madex-audio-queue {
	position: fixed;
	inset: 0;
	z-index: 100400;
	display: flex;
	justify-content: flex-end;
	background: rgba(2, 3, 8, 0.68);
}

.madex-audio-queue__backdrop {
	position: absolute;
	inset: 0;
	backdrop-filter: blur(8px);
}

.madex-audio-queue__surface {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	width: min(500px, 100%);
	height: 100%;
	padding: 28px;
	border-left: 1px solid rgba(255,255,255,.09);
	background: linear-gradient(180deg, rgba(13,14,24,.98), rgba(6,7,13,.99));
	box-shadow: -24px 0 70px rgba(0,0,0,.38);
	color: #e9eaf0;
}

.madex-audio-queue__header,
.madex-audio-queue__header-actions,
.madex-audio-queue__now,
.madex-audio-queue__actions {
	display: flex;
	align-items: center;
}

.madex-audio-queue__header {
	justify-content: space-between;
	gap: 18px;
	padding-bottom: 20px;
	border-bottom: 1px solid rgba(255,255,255,.07);
}

.madex-audio-queue__header h2 {
	margin: 3px 0 0;
	color: #fff;
	font-size: 25px;
	line-height: 1.1;
}

.madex-audio-queue__header h2 span {
	color: #9b7cff;
}

.madex-audio-queue__header-actions {
	gap: 8px;
}

.madex-audio-queue__clear,
.madex-audio-queue__close {
	border: 1px solid rgba(255,255,255,.09);
	background: rgba(255,255,255,.045);
	color: #c7c9d3;
	cursor: pointer;
}

.madex-audio-queue__clear {
	padding: 8px 12px;
	border-radius: 999px;
	font-size: 10px;
	font-weight: 750;
}

.madex-audio-queue__clear:disabled {
	opacity: .35;
	cursor: default;
}

.madex-audio-queue__close {
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border-radius: 50%;
}

.madex-audio-queue__now {
	gap: 14px;
	margin: 20px 0 14px;
	padding: 12px;
	border: 1px solid rgba(139,92,246,.16);
	border-radius: 16px;
	background: linear-gradient(90deg, rgba(139,92,246,.09), rgba(217,70,239,.035));
}

.madex-audio-queue__now-art {
	display: grid;
	place-items: center;
	flex: 0 0 54px;
	width: 54px;
	height: 54px;
	overflow: hidden;
	border-radius: 11px;
	background: linear-gradient(135deg, rgba(139,92,246,.75), rgba(217,70,239,.45));
}

.madex-audio-queue__now-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.madex-audio-queue__now-art svg {
	width: 20px;
	height: 20px;
}

.madex-audio-queue__now > div:last-child {
	display: flex;
	min-width: 0;
	flex-direction: column;
	gap: 3px;
}

.madex-audio-queue__now small {
	color: #9576f9;
	font-size: 8px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

.madex-audio-queue__now strong,
.madex-audio-queue__now span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.madex-audio-queue__now strong { color: #f2f2f5; font-size: 13px; }
.madex-audio-queue__now span { color: #858999; font-size: 10px; }

.madex-audio-queue__empty {
	margin: auto 0;
	padding: 42px 20px;
	color: #727687;
	font-size: 12px;
	line-height: 1.6;
	text-align: center;
}

.madex-audio-queue__list {
	display: flex;
	min-height: 0;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 7px;
	margin: 0;
	padding: 0 2px 20px 0;
	overflow-y: auto;
	list-style: none;
}

.madex-audio-queue__item {
	display: grid;
	grid-template-columns: 22px 44px minmax(0,1fr) auto auto;
	align-items: center;
	gap: 9px;
	padding: 8px;
	border: 1px solid rgba(255,255,255,.055);
	border-radius: 13px;
	background: rgba(255,255,255,.025);
	cursor: grab;
}

.madex-audio-queue__item.is-dragging { opacity: .45; }
.madex-audio-queue__number,
.madex-audio-queue__duration { color: #686c7c; font-size: 9px; font-weight: 700; }
.madex-audio-queue__number { text-align: center; }

.madex-audio-queue__thumb {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	overflow: hidden;
	border-radius: 9px;
	background: linear-gradient(135deg, #6d4bd7, #9f3fc0);
	color: #fff;
}

.madex-audio-queue__thumb img { width: 100%; height: 100%; object-fit: cover; }
.madex-audio-queue__copy { min-width: 0; }
.madex-audio-queue__copy strong,
.madex-audio-queue__copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.madex-audio-queue__copy strong { margin-bottom: 3px; color: #e8e9ed; font-size: 11px; }
.madex-audio-queue__copy small { color: #767a89; font-size: 9px; }
.madex-audio-queue__actions { gap: 3px; }

.madex-audio-queue__action {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #777b8a;
	font-size: 11px;
	cursor: pointer;
}

.madex-audio-queue__action:hover,
.madex-audio-queue__action:focus-visible {
	background: rgba(139,92,246,.13);
	color: #c8b7ff;
	outline: none;
}

.madex-audio-queue__footer {
	margin: 0;
	padding-top: 14px;
	border-top: 1px solid rgba(255,255,255,.065);
	color: #5f6371;
	font-size: 9px;
	line-height: 1.5;
}

@media (max-width: 620px) {
	.madex-audio-queue__surface { width: 100%; padding: 20px 14px max(18px, env(safe-area-inset-bottom)); }
	.madex-audio-queue__item { grid-template-columns: 18px 40px minmax(0,1fr) auto; }
	.madex-audio-queue__duration { display: none; }
	.madex-audio-expanded__track-actions { padding-left: 10px; }
}

@media (prefers-reduced-motion: reduce) {
	.madex-audio-queue__surface { scroll-behavior: auto; }
}

/* Persistent playback and navigation states. */
.madex-audio-player--hydration[hidden] {
	display: none !important;
}

body.madex-audio-is-navigating {
	cursor: progress;
}

body.madex-audio-is-navigating::before {
	content: "";
	position: fixed;
	z-index: 2147483646;
	top: 0;
	left: 0;
	width: 42%;
	height: 2px;
	background: linear-gradient(90deg, #7c3aed, #d946ef);
	animation: madex-audio-navigation-progress 0.85s ease-in-out infinite alternate;
	pointer-events: none;
}

@keyframes madex-audio-navigation-progress {
	from { transform: translateX(-15%); opacity: 0.65; }
	to { transform: translateX(155%); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
	body.madex-audio-is-navigating::before {
		animation: none;
		width: 100%;
	}
}

/* Appearance customizer and reusable visual tokens. */
.madex-audio-player {
	--madex-artwork-size: 68px;
	--madex-title-size: 14px;
	--madex-artist-size: 12px;
	--madex-waveform-height: 28px;
	--madex-waveform-bar-width: 2;
	--madex-waveform-gap: 1.5;
	background: linear-gradient(135deg, var(--madex-surface), var(--madex-bg) 52%, var(--madex-bg));
}

.madex-audio-player__artwork-wrap {
	flex-basis: var(--madex-artwork-size);
	width: var(--madex-artwork-size);
	height: var(--madex-artwork-size);
	border-radius: var(--madex-radius);
}

.madex-audio-player__title { font-size: var(--madex-title-size); }
.madex-audio-player__artist { font-size: var(--madex-artist-size); }
.madex-audio-player__waveform { height: var(--madex-waveform-height); }
.madex-audio-player__icon-button.is-active,
.madex-audio-player__icon-button[aria-pressed="true"].madex-audio-player__mode-button { color: var(--madex-primary); }
.madex-audio-player__play { background: var(--madex-primary); color: #fff; }
.madex-audio-player__waveform:focus-within { box-shadow: 0 0 0 2px var(--madex-primary); }

.madex-audio-expanded__surface,
.madex-audio-queue__surface { background: var(--madex-bg); color: var(--madex-text); }
.madex-audio-expanded__playlist,
.madex-audio-queue__now { background: var(--madex-surface); }
.madex-audio-expanded__title,
.madex-audio-expanded__playlist h3,
.madex-audio-queue h2 { color: var(--madex-text); }
.madex-audio-expanded__artist,
.madex-audio-expanded__album,
.madex-audio-expanded__playlist span,
.madex-audio-queue__footer { color: var(--madex-muted); }

.madex-audio-player[data-madex-shadow="none"] { box-shadow: none; }
.madex-audio-player[data-madex-shadow="soft"] { box-shadow: 0 -18px 45px rgba(0, 0, 0, .30); }
.madex-audio-player[data-madex-shadow="strong"] { box-shadow: 0 -24px 64px rgba(0, 0, 0, .52); }
.madex-audio-player--sticky-top[data-madex-shadow="soft"] { box-shadow: 0 18px 45px rgba(0, 0, 0, .30); }
.madex-audio-player--sticky-top[data-madex-shadow="strong"] { box-shadow: 0 24px 64px rgba(0, 0, 0, .52); }

.madex-audio-player[data-madex-font="system"] { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.madex-audio-player[data-madex-font="serif"] { font-family: Georgia, "Times New Roman", serif; }
.madex-audio-player[data-madex-font="mono"] { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.madex-audio-player[data-madex-font="inherit"] { font-family: inherit; }

.madex-audio-skin--modern-light,
.madex-audio-skin--minimal {
	--madex-border: rgba(17, 24, 39, .12);
	--madex-waveform-base: rgba(17, 24, 39, .20);
}
.madex-audio-skin--modern-light::before { background: radial-gradient(circle at 12% 0%, rgba(109, 40, 217, .12), transparent 34%), radial-gradient(circle at 88% 100%, rgba(192, 38, 211, .08), transparent 26%); }
.madex-audio-skin--minimal::before { display: none; }
.madex-audio-skin--minimal { border-width: 1px; }
.madex-audio-skin--glass { background: linear-gradient(135deg, rgba(33, 24, 51, .92), rgba(21, 16, 34, .88)); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.madex-audio-skin--neon { box-shadow: 0 -16px 50px rgba(124, 58, 237, .23), 0 -2px 18px rgba(240, 0, 255, .10); }
.madex-audio-skin--neon .madex-audio-player__play { box-shadow: 0 0 22px rgba(240, 0, 255, .42); }

.madex-audio-hide-artwork .madex-audio-player__artwork-wrap,
.madex-audio-hide-artwork .madex-audio-expanded__artwork-frame,
.madex-audio-hide-artwork .madex-audio-queue__now-art { display: none; }
.madex-audio-hide-shuffle [data-madex-action="shuffle"] { display: none; }
.madex-audio-hide-repeat [data-madex-action="repeat"] { display: none; }
.madex-audio-hide-volume [data-madex-action="mute"],
.madex-audio-hide-volume .madex-audio-player__volume,
.madex-audio-hide-volume .madex-audio-expanded__volume { display: none; }
.madex-audio-hide-queue [data-madex-action="queue"],
.madex-audio-hide-queue [data-madex-queue-command] { display: none; }
.madex-audio-hide-expand [data-madex-action="expand"] { display: none; }

/* Static customizer preview helper. */
.madex-audio-player--preview { position: relative; z-index: 1; width: 100%; }
.madex-audio-player--preview .madex-audio-player__shell { grid-template-columns: minmax(180px,.9fr) minmax(300px,1.5fr) minmax(170px,.8fr); padding-inline: 22px; }
.madex-audio-player--preview .madex-audio-preview-waveform {
	display: block;
	width: 100%;
	height: 100%;
	background: repeating-linear-gradient(90deg, var(--madex-waveform-progress-start) 0 2px, transparent 2px 5px);
	-webkit-mask-image: linear-gradient(to bottom, transparent 12%, #000 12% 88%, transparent 88%);
	mask-image: linear-gradient(to bottom, transparent 12%, #000 12% 88%, transparent 88%);
	opacity: .72;
}
.madex-audio-preview-hide-artwork .madex-audio-player__artwork-wrap { display: none; }

@media (max-width: 900px) {
	.madex-audio-player--preview .madex-audio-player__shell { grid-template-columns: minmax(0,1fr) auto; }
	.madex-audio-player--preview .madex-audio-player__center { grid-column: 1 / -1; grid-row: 2; }
}
.madex-audio-expanded__waveform { height: clamp(48px, calc(var(--madex-waveform-height) * 2.4), 120px); }
.madex-audio-expanded__artwork-frame,
.madex-audio-queue__surface { border-radius: calc(var(--madex-radius) + 6px); }
.madex-audio-skin--modern-light .madex-audio-player__icon-button,
.madex-audio-skin--minimal .madex-audio-player__icon-button,
.madex-audio-skin--modern-light .madex-audio-expanded__control,
.madex-audio-skin--minimal .madex-audio-expanded__control,
.madex-audio-skin--modern-light .madex-audio-expanded__close,
.madex-audio-skin--minimal .madex-audio-expanded__close,
.madex-audio-skin--modern-light .madex-audio-expanded__queue-button,
.madex-audio-skin--minimal .madex-audio-expanded__queue-button,
.madex-audio-skin--modern-light .madex-audio-queue__close,
.madex-audio-skin--minimal .madex-audio-queue__close { color: var(--madex-text); }
.madex-audio-skin--modern-light .madex-audio-player__time,
.madex-audio-skin--minimal .madex-audio-player__time,
.madex-audio-skin--modern-light .madex-audio-expanded__time,
.madex-audio-skin--minimal .madex-audio-expanded__time { color: var(--madex-muted); }
.madex-audio-skin--modern-light .madex-audio-expanded__surface,
.madex-audio-skin--minimal .madex-audio-expanded__surface,
.madex-audio-skin--modern-light .madex-audio-queue__surface,
.madex-audio-skin--minimal .madex-audio-queue__surface { border-color: rgba(17,24,39,.12); }

/* Commerce actions. */
.madex-audio-player__purchase,
.madex-audio-expanded__purchase,
.madex-audio-expanded__track-buy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .45rem;
	border: 1px solid color-mix(in srgb, var(--madex-primary) 58%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--madex-primary) 16%, transparent);
	color: var(--madex-text);
	font: inherit;
	font-size: .75rem;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: transform .18s ease, background-color .18s ease, border-color .18s ease;
}

.madex-audio-player__purchase {
	min-height: 34px;
	padding: .5rem .72rem;
}

.madex-audio-player__purchase small,
.madex-audio-expanded__purchase small {
	color: var(--madex-muted);
	font-size: .68rem;
	font-weight: 600;
}

.madex-audio-player__purchase:hover,
.madex-audio-player__purchase:focus-visible,
.madex-audio-expanded__purchase:hover,
.madex-audio-expanded__purchase:focus-visible,
.madex-audio-expanded__track-buy:hover,
.madex-audio-expanded__track-buy:focus-visible {
	background: color-mix(in srgb, var(--madex-primary) 28%, transparent);
	border-color: var(--madex-primary);
	color: var(--madex-text);
	transform: translateY(-1px);
}

.madex-audio-expanded__purchase {
	width: fit-content;
	margin-top: .7rem;
	padding: .65rem .9rem;
}

.madex-audio-expanded__track-buy {
	padding: .42rem .62rem;
	font-size: .68rem;
}

@media (max-width: 780px) {
	.madex-audio-player__purchase {
		min-height: 30px;
		padding: .4rem .58rem;
	}

	.madex-audio-player__purchase small {
		display: none;
	}
}


/* Large-playlist progressive rendering. */
.madex-audio-expanded__load-more {
	list-style: none;
	padding: 10px 0 2px;
	text-align: center;
}
.madex-audio-expanded__load-more-button {
	min-height: 40px;
	padding: 8px 16px;
	border: 1px solid color-mix(in srgb, var(--madex-text) 16%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--madex-surface) 82%, transparent);
	color: var(--madex-text);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.madex-audio-expanded__load-more-button:hover,
.madex-audio-expanded__load-more-button:focus-visible {
	border-color: var(--madex-primary);
}


/* v1.1.0: dock minimizer, live broadcast and commercial states. */
.madex-audio-player__mobile-minimize { display: none; }
.madex-audio-hide-minimize .madex-audio-player__minimize-hook,
.madex-audio-hide-minimize .madex-audio-player__mobile-minimize,
.madex-audio-hide-minimize .madex-audio-player__minimized-launcher { display: none !important; }

.madex-audio-player__badges,
.madex-audio-expanded__badges { display: flex; align-items: center; gap: 6px; min-height: 0; }
.madex-audio-player__live-badge,
.madex-audio-player__ad-badge {
	display: inline-flex; align-items: center; justify-content: center; width: max-content;
	padding: 3px 7px; border-radius: 999px; font-size: 9px; font-weight: 900; letter-spacing: .12em; line-height: 1;
}
.madex-audio-player__live-badge { background: #e11d48; color: #fff; box-shadow: 0 0 0 3px rgba(225,29,72,.14); }
.madex-audio-player__ad-badge { background: #f59e0b; color: #17110a; }
.madex-audio-player__ad-link,
.madex-audio-expanded__ad-link { padding: 7px 10px; border: 1px solid rgba(245,158,11,.35); border-radius: 999px; color: #fbbf24; font-size: 10px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.madex-audio-expanded__ad-link { display: inline-flex; margin-top: 12px; }

.madex-audio-player.is-live .madex-audio-player__waveform,
.madex-audio-player.is-live .madex-audio-expanded__waveform,
.madex-audio-player.is-live .madex-audio-player__progress,
.madex-audio-player.is-live .madex-audio-expanded__progress { opacity: .18; pointer-events: none; }
.madex-audio-player.is-live [data-madex-action="shuffle"],
.madex-audio-player.is-live [data-madex-action="repeat"] { opacity: .35; pointer-events: none; }
.madex-audio-player.is-commercial .madex-audio-player__track-position { color: #fbbf24; }

.madex-audio-player__minimized-launcher {
	position: absolute; right: max(18px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom));
	display: inline-flex; align-items: center; gap: 10px; max-width: min(310px, calc(100vw - 32px)); min-height: 52px;
	padding: 8px 13px 8px 9px; border: 1px solid var(--madex-border); border-radius: 16px;
	background: linear-gradient(135deg, rgba(26,29,41,.98), rgba(8,9,14,.99)); box-shadow: 0 18px 46px rgba(0,0,0,.42);
	color: var(--madex-text); cursor: pointer; pointer-events: auto; text-align: left;
}
.madex-audio-player__minimized-launcher[hidden] { display: none !important; }
.madex-audio-player__minimized-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 11px; background: linear-gradient(135deg,var(--madex-primary),var(--madex-accent)); color:#fff; }
.madex-audio-player__minimized-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.madex-audio-player__minimized-copy { display:flex; flex-direction:column; min-width:0; }
.madex-audio-player__minimized-copy small { color:var(--madex-muted); font-size:8px; font-weight:800; letter-spacing:.14em; }
.madex-audio-player__minimized-copy strong { max-width:210px; overflow:hidden; color:var(--madex-text); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }

.madex-audio-player.is-minimized { min-height: 0; height: 0; border: 0; background: transparent; box-shadow: none; pointer-events: none; }
.madex-audio-player.is-minimized::before { display:none; }
.madex-audio-player.is-minimized .madex-audio-player__shell { display:none; }
.madex-audio-player.is-minimized .madex-audio-player__minimized-launcher { pointer-events:auto; }
.madex-audio-player.is-minimized .madex-audio-player__error { display:none; }

.madex-audio-player--sticky-top.is-minimized .madex-audio-player__minimized-launcher {
	top: 16px;
	bottom: auto;
}
body.admin-bar .madex-audio-player--sticky-top.is-minimized .madex-audio-player__minimized-launcher {
	top: 48px;
}
body.madex-audio-has-sticky-top.madex-audio-player-top-minimized {
	padding-top: 0;
}

/* App View styling is isolated in madex-audio-app.css. */

/* v1.4 commercial presentation */
.madex-audio-player.is-commercial .madex-audio-player__shell{border-color:rgba(217,70,239,.35)}.madex-audio-player.is-commercial .madex-audio-player__title{color:#fff}.madex-audio-player__ad-countdown{font-size:10px;font-weight:800;color:#f0a8ce}.madex-audio-expanded__ad-meta[hidden]{display:none}.madex-audio-expanded__ad-meta{color:#fff}
