/* ==========================================================================
   Podcast Episodes - Layout CSS
   Note: font-family and text-color are NOT hardcoded here - they inherit
   from your active theme, as requested. Only LAYOUT (spacing, sizing,
   alignment) is controlled here. The wrapper is full width by default.
   ========================================================================== */

.pdcep-wrap {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.pdcep-card {
	display: flex;
	align-items: stretch;
	gap: 30px;
	width: 100%;
	box-sizing: border-box;
	background: #f5f5f5;
	padding: 25px;
	margin-bottom: 28px;
	border-radius: 2px;
}

/* ---- Image (left side) ---- */
.pdcep-image-wrap {
	flex: 0 0 300px;
	max-width: 300px;
}

.pdcep-image-wrap a {
	display: block;
	line-height: 0;
}

.pdcep-image,
.pdcep-image img {
	width: 100%;
	height: 100%;
	min-height: 340px;
	object-fit: cover;
	display: block;
}

.pdcep-image-placeholder {
	min-height: 340px;
	background: #ddd;
}

/* ---- Content (right side) ---- */
.pdcep-content {
	flex: 1 1 0%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
}

.pdcep-title {
	margin: 0 0 14px 0;
	font-weight: 700;
	font-size: 1.4em;
	line-height: 1.3;
}

.pdcep-title a {
	text-decoration: none;
	color: inherit;
}

.pdcep-title a:hover {
	text-decoration: underline;
}

/* ---- Meta row: Episode | Date | Duration ---- */
.pdcep-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	opacity: 0.6;
	font-size: 0.9em;
}

.pdcep-meta-sep {
	opacity: 0.6;
}

/* ---- Description ---- */
.pdcep-description {
	margin-bottom: 20px;
	line-height: 1.7;
}

.pdcep-description p {
	margin: 0 0 12px 0;
}

.pdcep-description p:last-child {
	margin-bottom: 0;
}

/* ---- Listen on row ---- */
.pdcep-listen {
	margin-top: auto;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.pdcep-listen-label {
	font-weight: 700;
}

.pdcep-listen-icons {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pdcep-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	flex: 0 0 26px;
	background: transparent;
	color: #8a8a8a;
	opacity: 1;
	transition: opacity 0.15s ease;
	line-height: 0;
}

.pdcep-icon svg {
	display: block;
	width: 22px;
	height: 22px;
	fill: currentColor;
}

.pdcep-icon-apple {
	color: #1c1c1e;
}

.pdcep-icon:hover {
	opacity: 0.7;
}

/* ---- Responsive: stack on small screens ---- */
@media (max-width: 700px) {
	.pdcep-card {
		flex-direction: column;
	}

	.pdcep-image-wrap {
		flex: 0 0 auto;
		max-width: 100%;
	}

	.pdcep-image,
	.pdcep-image img,
	.pdcep-image-placeholder {
		min-height: 220px;
	}
}
