/**
 * Suno Music Player — v2.0.5
 * Spotify-style compact embed card.
 */

.smp-wrap {
	--_a: var(--smp-accent, #C8FF00);
	display: block;
	max-width: 500px;
	margin: 1.25em auto;
	border-radius: 12px;
	overflow: hidden;
	opacity: 0;
	animation: smpIn 0.35s ease forwards;
}

.smp-wrap iframe {
	display: block;
	width: 100%;
	border: 0;
	min-height: 80px;
}

/* Playlist top line */
.smp-pl-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 32px;
	padding: 0 12px;
	background: #000;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 12px;
	-webkit-font-smoothing: antialiased;
}

.smp-pl-label {
	color: rgba(255,255,255,0.4);
	display: flex;
	align-items: center;
	gap: 5px;
}

.smp-pl-label svg {
	width: 12px;
	height: 12px;
	fill: currentColor;
}

.smp-pl-open {
	color: var(--_a);
	text-decoration: none;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 3px;
	min-height: 32px;
	-webkit-tap-highlight-color: transparent;
}

.smp-pl-open:hover {
	opacity: 0.8;
}

.smp-pl-open svg {
	width: 11px;
	height: 11px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Playlist scrollable area */
.smp-pl-tracks {
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scrollbar-color: rgba(255,255,255,0.08) transparent;
}

.smp-pl-tracks::-webkit-scrollbar { width: 3px; }
.smp-pl-tracks::-webkit-scrollbar-track { background: transparent; }
.smp-pl-tracks::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.smp-pl-tracks .smp-pl-item + .smp-pl-item {
	border-top: 1px solid rgba(255,255,255,0.04);
}

/* Debug */
.smp-debug {
	background: rgba(0,0,0,0.7);
	border: 1px solid rgba(200,255,0,0.2);
	border-radius: 8px;
	padding: 6px 10px;
	margin-bottom: 6px;
	font: 11px/1.5 "SF Mono", Consolas, monospace;
	color: #888;
	overflow-x: auto;
	word-break: break-all;
}

.smp-error {
	padding: 12px 14px;
	font: 14px/1.4 -apple-system, sans-serif;
	color: #f66;
}

/* Animation */
@keyframes smpIn {
	from { opacity: 0; transform: translateY(6px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.smp-wrap { animation: none; opacity: 1; }
}
