.dsap-player {
	display: flex;
	gap: 16px;
	align-items: center;
	max-width: 600px;
	padding: 16px;
	border-radius: 12px;
	margin: 0 auto 16px;
}

.dsap-grid {
	display: grid;
	gap: 14px;
	max-width: 700px;
	margin: 0 auto;
}

.dsap-grid .dsap-player {
	max-width: none;
	margin: 0;
}

.dsap-cover {
	flex: 0 0 auto;
	width: 72px;
	height: 72px;
	border-radius: 10px;
	overflow: hidden;
}

.dsap-player--compact .dsap-cover {
	width: 56px;
	height: 56px;
}

.dsap-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.dsap-info {
	flex: 1 1 auto;
	min-width: 0;
}

.dsap-title {
	font-weight: 700;
	font-size: 1.05em;
	margin-bottom: 2px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dsap-caption {
	font-size: 0.85em;
	opacity: 0.8;
	margin-bottom: 8px;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}

.dsap-controls {
	display: flex;
	align-items: center;
	gap: 10px;
}

.dsap-play-btn {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	min-width: 40px;
	min-height: 40px;
	border-radius: 50%;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	padding: 0;
}

.dsap-icon-play,
.dsap-icon-pause {
	pointer-events: none;
}

.dsap-progress-wrap {
	flex: 1 1 auto;
	cursor: pointer;
	padding: 8px 0;
}

.dsap-progress-bar {
	height: 4px;
	border-radius: 2px;
	overflow: hidden;
	position: relative;
}

.dsap-progress-fill {
	height: 100%;
	width: 0%;
	transition: width 0.1s linear;
}

.dsap-time {
	flex: 0 0 auto;
	font-size: 0.75em;
	font-variant-numeric: tabular-nums;
	min-width: 40px;
	text-align: right;
}

.dsap-speed {
	flex: 0 0 auto;
	font-size: 0.75em;
	padding: 2px 4px;
	border-radius: 4px;
	border: 1px solid rgba(0, 0, 0, 0.15);
	background: transparent;
}

/* Card layout: large cover on top, everything stacked and centered —
   suited to a single featured recording rather than a browsable list. */
.dsap-layout-card {
	flex-direction: column;
	text-align: center;
	max-width: 360px;
}

.dsap-layout-card .dsap-cover {
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	border-radius: 12px;
}

.dsap-layout-card .dsap-title {
	white-space: normal;
	font-size: 1.2em;
	margin-top: 8px;
}

.dsap-layout-card .dsap-caption {
	-webkit-line-clamp: 4;
}

.dsap-layout-card .dsap-controls {
	justify-content: center;
}

@media (max-width: 480px) {
	.dsap-player {
		flex-wrap: wrap;
		gap: 10px;
	}

	.dsap-info {
		width: 100%;
	}
}
