/**
 * Podcast Block Styles
 */

.pyrum-podcasts-wrapper {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.pyrum-podcast-player {
	margin: 0;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid #000;
}

.pyrum-podcast-player:last-child,
.pyrum-podcast-player--no-border {
	border-bottom: none;
}

/* Header: Titel links, Datum rechts */
.pyrum-podcast-header {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 2rem;
	margin-bottom: 1.5rem;
}

.pyrum-podcast-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
}

.pyrum-podcast-date {
	font-size: 1rem;
	color: #666;
	white-space: nowrap;
}

/* Audio Player */
.pyrum-podcast-audio {
	width: 100%;
	margin-bottom: 1rem;
}

/* Content: TOC + Download */
.pyrum-podcast-content {
	display: flex;
	gap: 2rem;
	align-items: flex-start;
}

/* Inhaltsverzeichnis (TOC): erste Hälfte links, zweite Hälfte rechts */
.pyrum-podcast-toc {
	flex: 1;
	display: flex;
	gap: 1.5rem;
}

.pyrum-podcast-toc-col {
	flex: 1;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.pyrum-podcast-toc-col li {
	margin: 0;
	padding: 0;
}

.pyrum-podcast-toc-item {
	display: flex;
	gap: 0.75rem;
	align-items: baseline;
	width: 100%;
	padding: 0.25rem;
	background: transparent;
	border: none;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.2s;
	border-radius: 4px;
	font-size: 1rem;
}

.pyrum-podcast-toc-item:hover {
	background-color: #f0f0f0;
}

.pyrum-podcast-toc-time {
	font-weight: 600;
	color: #0C6632;
	font-variant-numeric: tabular-nums;
	min-width: 3rem;
	text-align: right;
}

.pyrum-podcast-toc-text {
	flex: 1;
	color: #000;
}

/* Download */
.pyrum-podcast-download {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 0.5rem;
	flex-shrink: 0;
	align-self: flex-end;
}

.pyrum-podcast-download-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: #0C6632;
	text-decoration: underline;
}

.pyrum-podcast-download-link:hover {
	text-decoration: none;
}

.pyrum-podcast-download-link svg,
.pyrum-podcast-download-icon {
	width: 20px;
	height: 20px;
}

/* Weitere Podcasts (Aufklapp-Bereich) */
.pyrum-podcast-more-toggle {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 0.5rem;
	color: #0C6632;
	text-decoration: underline;
	cursor: pointer;
	list-style: none;
}

.pyrum-podcast-more-toggle::-webkit-details-marker {
	display: none;
}

.pyrum-podcast-more-toggle:hover {
	text-decoration: none;
}

.pyrum-podcast-more-label-open {
	display: none;
}

.pyrum-podcast-more[open] .pyrum-podcast-more-label-open {
	display: inline;
}

.pyrum-podcast-more[open] .pyrum-podcast-more-label-closed {
	display: none;
}

.pyrum-podcast-more-content {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	margin-top: 2rem;
	text-align: left;
}

/* Responsive: Mobile */
@media (max-width: 768px) {
	.pyrum-podcast-header {
		flex-direction: column;
		gap: 0.5rem;
		align-items: flex-start;
	}

	.pyrum-podcast-content {
		flex-direction: column;
	}

	.pyrum-podcast-toc {
		flex-direction: column;
		gap: 0;
	}
}
