/**
 * Frontend-Ausgabe der Diskografie.
 *
 * Erbt Schrift und Farben vom Theme (currentColor), damit die Ausgabe sich in
 * Ashe Pro einfügt statt ein zweites Design daneben zu stellen. Alle Abstände
 * und Flächen laufen über Variablen und sind im Customizer-CSS überschreibbar.
 */

.sdisco-facts,
.sdisco-tracklist,
.sdisco-links,
.sdisco-embed,
.sdisco-grid {
	--sdisco-gap: 1rem;
	--sdisco-radius: 8px;
	--sdisco-line: color-mix(in srgb, currentColor 18%, transparent);
	--sdisco-surface: color-mix(in srgb, currentColor 5%, transparent);
}

/* ── Fakten (Jahr, Label, Besetzung) ─────────────────────────────────── */

.sdisco-facts {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.4rem var(--sdisco-gap);
	margin: 2rem 0;
	padding: 0;
}

.sdisco-facts dt {
	margin: 0;
	font-weight: 700;
}

.sdisco-facts dd {
	margin: 0;
}

/* ── Streaming- und Shop-Links ───────────────────────────────────────── */

.sdisco-links ul {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	margin: 1.5rem 0;
	padding: 0;
	list-style: none;
}

.sdisco-links li {
	margin: 0;
}

.sdisco-link {
	display: inline-block;
	padding: 0.5rem 1.1rem;
	border: 1px solid currentColor;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.4;
}

.sdisco-link:hover {
	background: var(--sdisco-surface);
}

.sdisco-link:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

/* ── Tracklist ───────────────────────────────────────────────────────── */

.sdisco-tracklist {
	margin: 2.5rem 0;
}

.sdisco-tracklist h2 {
	margin-bottom: 0.8rem;
}

.sdisco-tracklist ol {
	margin: 0;
	padding-left: 1.6rem;
}

.sdisco-track {
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--sdisco-line);
}

.sdisco-track:last-child {
	border-bottom: 0;
}

.sdisco-track-title {
	font-weight: 600;
}

.sdisco-lyrics summary {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
	align-items: baseline;
	cursor: pointer;
}

.sdisco-lyrics summary:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 3px;
}

.sdisco-lyrics-hint {
	font-size: 0.8em;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	opacity: 0.7;
}

.sdisco-lyrics-body {
	margin: 0.8rem 0 1.2rem;
	padding: 1rem 1.2rem;
	border-left: 3px solid var(--sdisco-line);
	background: var(--sdisco-surface);
	border-radius: 0 var(--sdisco-radius) var(--sdisco-radius) 0;
	line-height: 1.7;
}

/* ── Einbettung (Bandcamp o. Ä.) ─────────────────────────────────────── */

.sdisco-embed {
	margin: 2rem 0;
}

.sdisco-embed iframe {
	max-width: 100%;
	border: 0;
}

/* ── Übersicht per [discography] ─────────────────────────────────────── */

.sdisco-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: calc(var(--sdisco-gap) * 1.5);
	margin: 2rem 0;
	padding: 0;
	list-style: none;
}

.sdisco-grid-item {
	margin: 0;
}

.sdisco-grid-item > a {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
	text-decoration: none;
}

.sdisco-grid-item > a:focus-visible {
	outline: 3px solid currentColor;
	outline-offset: 4px;
}

.sdisco-grid-cover img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--sdisco-radius);
}

.sdisco-grid-title {
	font-weight: 700;
	line-height: 1.3;
}

.sdisco-grid-year {
	font-size: 0.85em;
	opacity: 0.75;
}

/* Ältere Browser ohne color-mix bekommen sichtbare, nicht transparente Kanten. */
@supports not (color: color-mix(in srgb, currentColor 10%, transparent)) {
	.sdisco-track,
	.sdisco-lyrics-body {
		border-color: rgba(128, 128, 128, 0.35);
	}

	.sdisco-lyrics-body,
	.sdisco-link:hover {
		background: rgba(128, 128, 128, 0.08);
	}
}
