/* ==========================================================================
   abcBIM — podcast.css
   Episode feature block (homepage #podcast + podcast archive hero), podcast
   archive and single episode. Loaded on the front page and podcast views.
   Reuses base.css: .episode-list, .episode-row, .media-frame, .watch-pill,
   .placeholder, .btn, .chip, .section-head, .empty-state.
   ========================================================================== */

/* ---------- Episode feature ---------- */
.episode-feature {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(28px, 4vw, 56px);
	align-items: center;
}

/* Design spacing when the feature follows a section head or the platform row. */
.section-head + .episode-feature,
.podcast-platforms + .episode-feature {
	margin-top: 48px;
}

.episode-feature__art {
	position: relative;
	flex: 0 1 440px;
	min-width: min(260px, 100%);
	aspect-ratio: 1 / 1;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	padding: 24px;
	border: 0;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: repeating-linear-gradient(135deg, var(--c-green) 0 10px, var(--c-green-2) 10px 20px);
	color: var(--c-d-accent);
	font-family: var(--f-sans);
	text-align: left;
	cursor: pointer;
	transition: filter 0.15s ease;
}

.episode-feature__art:hover,
.episode-feature__art:focus-visible {
	filter: brightness(1.08);
}

.episode-feature__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.episode-feature__ep,
.episode-feature__note {
	position: relative;
	z-index: 1;
	font-family: var(--f-mono);
	line-height: 1.4;
	color: var(--c-d-accent);
}

.episode-feature__ep {
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

/* Keep the label legible on top of a photo. */
.episode-feature__art.has-img .episode-feature__ep {
	background: rgba(0, 0, 0, 0.35);
	padding: 5px 9px;
	border-radius: 4px;
}

.episode-feature__note {
	font-size: 11px;
	background: rgba(0, 0, 0, 0.25);
	padding: 5px 9px;
	border-radius: 4px;
}

.episode-feature__play {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 1;
	transform: translate(-50%, -50%);
	width: 84px;
	height: 84px;
	border-radius: 999px;
	background: var(--c-sand);
	color: var(--c-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	line-height: 1;
	padding-left: 5px;
	box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
}

.episode-feature__info {
	flex: 1 1 400px;
	min-width: 0;
}

.episode-feature__meta {
	font-family: var(--f-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.episode-feature__title {
	margin: 16px 0 0;
	font-family: var(--f-serif);
	font-weight: 400;
	font-size: clamp(30px, 3vw, 44px);
	line-height: 1.08;
	letter-spacing: -0.015em;
	text-wrap: balance;
}

.episode-feature__title a {
	color: var(--c-ink);
}

.episode-feature__title a:hover {
	color: var(--c-green);
}

.episode-feature__excerpt {
	margin: 18px 0 0;
	max-width: 560px;
	font-size: 17px;
	line-height: 1.6;
	color: var(--c-slate);
	text-wrap: pretty;
}

.episode-feature__actions {
	margin-top: 28px;
}

.episode-feature__more {
	margin-top: 40px;
}

/* ---------- Podcast archive ---------- */
.podcast-hero {
	/* Sits directly under the sticky header, which already draws the rule. */
	border-top: 0;
}

.podcast-hero__inner {
	padding-top: clamp(40px, 6vw, 88px);
}

.podcast-platforms {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin-top: 32px;
}

.podcast-platforms__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.podcast-platforms__link {
	white-space: nowrap;
}

.podcast-hero__empty {
	margin-top: 40px;
	border-top: 1px solid var(--c-rule-stone);
	border-bottom-color: var(--c-rule-stone);
	font-size: 17px;
}

.podcast-all__head + .podcast-list {
	margin-top: 32px;
}

/* On the sand page background the list follows the job-list rhythm:
   ink rule on top, light rules between rows. */
.podcast-list {
	border-top-color: var(--c-ink);
}

.podcast-list .episode-row {
	border-bottom-color: var(--c-rule);
}

/* ---------- Single episode ---------- */
.podcast-single__inner {
	padding-top: clamp(32px, 5vw, 64px);
	padding-bottom: var(--section-y);
}

.podcast-single__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin-top: clamp(28px, 4vw, 44px);
	font-family: var(--f-mono);
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--c-muted);
}

.podcast-single__meta > * + *::before {
	content: "·";
	margin-right: 10px;
}

.podcast-single__show {
	color: var(--c-green);
}

.podcast-single__title {
	margin: 18px 0 0;
	max-width: 960px;
	font-family: var(--f-serif);
	font-weight: 400;
	font-size: clamp(36px, 4.4vw, 60px);
	line-height: 1.06;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

.podcast-single__dek {
	margin: 22px 0 0;
	max-width: 720px;
}

.podcast-single__player {
	margin-top: clamp(32px, 4vw, 48px);
	max-width: 1100px;
}

.media-frame > .podcast-single__soon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.podcast-single__soon .placeholder__label {
	font-size: 12px;
	padding: 6px 10px;
	background: rgba(0, 0, 0, 0.35);
}

.podcast-single__actions {
	margin-top: 24px;
}

.podcast-single__notes {
	margin-top: clamp(48px, 6vw, 80px);
	max-width: 720px;
}

.podcast-single__notes-title {
	margin-bottom: 24px;
}

.podcast-more__head + .podcast-more__list {
	margin-top: 32px;
}
