/* ==========================================================================
   Charlton Live - Podcasts (design 02) and shared episode components
   build-spec.md §5.02
   ========================================================================== */

/* ---------- Shared: ink hero ---------- */
.cl-hero--ink {
	position: relative;
	overflow: hidden;
	background: var(--cl-ink);
	color: var(--cl-dark-body);
	padding-block: 44px;
}

/* Wordmark watermark, spanning the full width behind the copy. */
.cl-hero--ink::before {
	content: "CHARLTON LIVE";
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	translate: 0 -50%;
	font-family: var(--cl-font-display);
	font-size: 17vw;
	line-height: 1;
	letter-spacing: var(--cl-track-display);
	text-align: center;
	white-space: nowrap;
	color: rgba(255, 255, 255, .03);
	pointer-events: none;
}
@media (max-width: 720px) {
	.cl-hero--ink::before { display: none; }
}

.cl-hero__inner {
	position: relative;
	z-index: 1;
	max-width: var(--cl-content);
	margin-inline: auto;
	padding-inline: var(--cl-gutter);
}

/* Headline left, platform links in the space to its right. */
.cl-hero__inner--split {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 48px;
}

.cl-hero__main { min-width: 0; }

.cl-hero__aside { flex: 0 0 auto; }

/* ---------- Listen on ---------- */
.cl-platforms__label {
	margin-bottom: 12px;
	font-family: var(--cl-font-cond);
	font-weight: 700;
	font-size: var(--cl-eyebrow);
	letter-spacing: var(--cl-track-eyebrow);
	text-transform: uppercase;
	color: var(--cl-dark-meta);
}

.cl-platforms {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.cl-platform {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 158px;
	padding: 11px 14px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: var(--cl-radius-sm);
	background: rgba(255, 255, 255, .04);
	font-family: var(--cl-font-body);
	font-weight: 600;
	font-size: var(--cl-meta);
	color: var(--cl-white);
	text-decoration: none;
}
.cl-platform:hover {
	color: var(--cl-white);
	border-color: var(--cl-red);
	background: rgba(228, 18, 43, .12);
}

/* Acast has no single-colour mark, so its logo sits on a white tile. */
.cl-platform__tile {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	border-radius: 4px;
	background: var(--cl-white);
}
.cl-platform__tile img { width: 16px; height: 16px; object-fit: contain; }

.cl-hero__title {
	margin-top: 8px;
	font-size: var(--cl-h1-sub);
	color: var(--cl-white);
}

.cl-hero__intro {
	max-width: 560px;
	margin-top: 14px;
	font-size: var(--cl-text);
	line-height: var(--cl-lh-body);
	color: var(--cl-dark-body);
}

/* ---------- Shared: eyebrow ---------- */
.cl-eyebrow {
	font-family: var(--cl-font-cond);
	font-weight: 700;
	font-size: var(--cl-eyebrow);
	letter-spacing: var(--cl-track-eyebrow);
	text-transform: uppercase;
	color: var(--cl-red-text);
}
/* Brand red fails contrast on ink, so dark sections use the lighter token. */
.cl-eyebrow--on-ink { color: var(--cl-red-on-ink); }

/* ---------- Filter chips ---------- */
.cl-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 22px;
}

.cl-chip {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 8px 16px;
	border: 1.5px solid rgba(255, 255, 255, .28);
	border-radius: var(--cl-radius-pill);
	font-family: var(--cl-font-body);
	font-weight: 600;
	font-size: var(--cl-meta);
	color: var(--cl-white);
	text-decoration: none;
	white-space: nowrap;
}
.cl-chip:hover {
	color: var(--cl-white);
	border-color: var(--cl-red);
}
.cl-chip.is-active {
	background: var(--cl-red);
	border-color: var(--cl-red);
	color: var(--cl-white);
}

/* ---------- Episode grid ---------- */
.cl-episodes {
	background: var(--cl-white);
	padding-block: 40px 52px;
}

.cl-episodes__inner {
	max-width: var(--cl-content);
	margin-inline: auto;
	padding-inline: var(--cl-gutter);
}

.cl-episode-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px 26px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ---------- Episode card ---------- */
.cl-episode__link {
	display: flex;
	align-items: center;
	gap: 14px;
	height: 100%;
	padding: 14px 16px;
	background: var(--cl-off);
	border: var(--cl-border);
	border-radius: var(--cl-radius);
	color: inherit;
	text-decoration: none;
}
.cl-episode__link:hover {
	color: inherit;
	border-color: var(--cl-red);
}

.cl-episode__art {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	border-radius: 9px;
	object-fit: cover;
}

.cl-episode__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
	flex: 1 1 auto;
}

.cl-episode__show {
	font-family: var(--cl-font-cond);
	font-weight: 600;
	font-size: var(--cl-tag);
	letter-spacing: var(--cl-track-tag);
	text-transform: uppercase;
	color: var(--cl-red-text);
}

.cl-episode__title {
	font-family: var(--cl-font-body);
	font-weight: 700;
	font-size: var(--cl-card-title);
	line-height: 1.25;
	color: var(--cl-ink);
	/* Titles run long; cap at three lines so cards stay level. */
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cl-episode__meta {
	font-family: var(--cl-font-body);
	font-weight: 500;
	font-size: var(--cl-meta);
	color: var(--cl-mut);
}

/* ---------- Play circle ---------- */
.cl-play {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--cl-red);
	color: var(--cl-white);
}
.cl-play--sm { width: 42px; height: 42px; }

.cl-episode__link:hover .cl-play { filter: brightness(1.08); }

/* ---------- Load more ---------- */
.cl-more {
	margin-top: 26px;
	text-align: center;
}

.cl-btn--outline-dark {
	padding: 14px 22px;
	background: transparent;
	border: 1.5px solid var(--cl-ink);
	color: var(--cl-ink);
	font-weight: 700;
	font-size: var(--cl-btn);
	letter-spacing: var(--cl-track-btn);
	text-transform: uppercase;
	border-radius: var(--cl-radius-sm);
}
.cl-btn--outline-dark:hover {
	background: var(--cl-ink);
	color: var(--cl-white);
}

/* ---------- Empty state ---------- */
.cl-empty {
	padding: 26px;
	background: var(--cl-off);
	border: var(--cl-border);
	border-radius: var(--cl-radius);
	color: var(--cl-mut);
}
.cl-empty a { color: var(--cl-red-text); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
	.cl-hero__inner--split {
		flex-direction: column;
		align-items: stretch;
		gap: 28px;
	}

	.cl-platform { min-width: 0; }
}

@media (max-width: 720px) {
	.cl-episode-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.cl-platforms { grid-template-columns: 1fr; }
	.cl-episode__link { padding: 12px; gap: 11px; }
	.cl-episode__art { flex-basis: 60px; width: 60px; height: 60px; }
	.cl-play--sm { width: 36px; height: 36px; }
}
