/* Podcasts (/podcast-videos/, podcast-category/-tag archives, single episode) */

.pc-archive { padding: 30px 0 60px; }

.pc-sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------------- Card grid ---------------- */
.pc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

.pc-card {
	display: flex; flex-direction: column; background: #fff;
	border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden;
	transition: box-shadow .2s ease, transform .2s ease;
}
.pc-card:hover { box-shadow: 0 14px 30px rgba(20, 30, 40, .1); transform: translateY(-3px); }

.pc-card-media {
	position: relative; display: block; min-height: 190px; background: var(--color-navy);
	cursor: pointer;
}
.pc-card-media img, .pc-card-media .ca-img-placeholder { width: 100%; height: 190px; min-height: 190px; object-fit: cover; display: block; }
.pc-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,32,44,0) 40%, rgba(20,32,44,.55) 100%); pointer-events: none; }
.pc-card-media:focus-visible { outline: 3px solid var(--color-accent); outline-offset: -3px; }

.pc-play {
	position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
	width: 56px; height: 56px; border-radius: 50%;
	background: rgba(255, 255, 255, .92); z-index: 1;
	transition: background .2s ease, transform .2s ease;
}
.pc-play::after {
	content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
	border-style: solid; border-width: 9px 0 9px 15px;
	border-color: transparent transparent transparent var(--color-navy);
}
.pc-card:hover .pc-play,
.pc-card-media:focus-visible .pc-play { background: var(--color-accent); transform: translate(-50%, -50%) scale(1.08); }
.pc-card:hover .pc-play::after,
.pc-card-media:focus-visible .pc-play::after { border-left-color: #fff; }

/* ---- Playing state: the thumbnail is swapped for a real player (podcast.js) ---- */
.pc-card-media.is-playing {
	cursor: default; min-height: 0; aspect-ratio: 16 / 9;
	background: #000;
}
.pc-card-media.is-playing::after { display: none; }
.pc-card-media.is-playing iframe,
.pc-card-media.is-playing video {
	position: absolute; inset: 0; width: 100%; height: 100%; display: block; border: 0;
}

.pc-duration {
	position: absolute; top: 14px; left: 14px; z-index: 1;
	display: inline-flex; align-items: center; gap: 5px;
	padding: 4px 10px; border-radius: 999px;
	background: rgba(20, 32, 44, .72); color: #fff;
	font-size: .78rem; font-weight: 700;
}
.pc-duration svg { flex: none; }

.pc-chips { position: absolute; left: 14px; bottom: 14px; z-index: 1; display: flex; gap: 8px; }
.pc-chip {
	display: inline-block; padding: 4px 12px; border-radius: 999px;
	background: rgba(255, 255, 255, .92); color: var(--color-navy);
	font-size: .78rem; font-weight: 700;
}
.pc-chip--featured { background: var(--color-accent); color: #fff; }

.pc-card-body { display: flex; flex-direction: column; align-items: flex-start; padding: 22px; flex: 1; }
.pc-card-type { margin: 0 0 8px; color: var(--color-accent); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }

.pc-card-title { margin: 0 0 10px; font-size: 1.12rem; line-height: 1.35; }
.pc-card-title a { color: var(--color-navy); }
.pc-card-title a:hover { color: var(--color-accent); }

.pc-card-desc {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3;
	overflow: hidden; margin: 0; color: var(--color-muted); font-size: .92rem; line-height: 1.55;
}

.pc-empty {
	padding: 32px; border: 1px dashed var(--color-border); border-radius: var(--radius);
	text-align: center; color: var(--color-muted);
}
.pc-empty p:last-child { margin-bottom: 0; }
.pc-empty a { color: var(--color-accent); text-decoration: underline; }

/* ---------------- Pagination ---------------- */
.pc-pagination { margin-top: 36px; }
.pc-pagination ul.page-numbers { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pc-pagination a.page-numbers,
.pc-pagination span.page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px;
	border: 1px solid var(--color-border); border-radius: var(--radius);
	color: var(--color-navy); font-weight: 600; font-size: .9rem;
}
.pc-pagination a.page-numbers:hover { border-color: var(--color-navy); }
.pc-pagination span.page-numbers.current { background: var(--color-navy); border-color: var(--color-navy); color: #fff; }
.pc-pagination span.page-numbers.dots { border-color: transparent; background: transparent; }
.pc-pagination .prev, .pc-pagination .next { padding: 0 16px; }

/* ---------------- Single episode ---------------- */
.pcs-hero {
	padding: 56px 0 40px;
	background: linear-gradient(120deg, var(--color-navy), var(--color-navy-light));
	color: #fff;
}
.pcs-hero .ca-breadcrumb { margin-bottom: 20px; color: rgba(255, 255, 255, .75); font-size: .85rem; }
.pcs-hero .ca-breadcrumb a { color: var(--color-accent-light); }
.pcs-type { margin-bottom: 14px; }
.pcs-hero h1 { margin: 0 0 12px; color: #fff; }
.pcs-subtitle { margin: 0 0 20px; color: rgba(255, 255, 255, .85); font-size: 1.1rem; line-height: 1.5; }
.pcs-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: .92rem; color: rgba(255, 255, 255, .82); }
.pcs-byline > * + * { margin-left: 14px; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .3); }

.pcs-player { max-width: 900px; margin: -1px auto 0; }
.pcs-player-frame { position: relative; width: 100%; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; background: #000; margin-top: 32px; }
.pcs-player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pcs-player-file { display: block; width: 100%; border-radius: var(--radius); margin-top: 32px; background: #000; }
.pcs-player-fallback { position: relative; display: block; border-radius: var(--radius); overflow: hidden; margin-top: 32px; }
.pcs-player-fallback img, .pcs-player-fallback .ca-img-placeholder { width: 100%; height: 420px; object-fit: cover; display: block; }
.pcs-player-fallback .pc-play { width: 68px; height: 68px; }

.pcs-body { max-width: 820px; margin: 0 auto; padding: 36px 0 20px; font-size: 1.05rem; line-height: 1.8; }
.pcs-desc { font-size: 1.1rem; color: var(--color-navy); font-weight: 600; margin-bottom: 1.2em; }
.pcs-body p { margin-bottom: 1.2em; }
.pcs-body a { color: var(--color-accent); text-decoration: underline; }
.pcs-body a:hover { color: var(--color-navy); }

.pc-related { margin-top: 40px; padding: 56px 0 60px; background: var(--color-bg-soft); }
.pc-related h2 { margin-bottom: 26px; }
.pc-related-all { margin: 30px 0 0; }

@media (max-width: 991px) {
	.pc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
	.pc-archive { padding: 24px 0 44px; }
	.pc-grid { grid-template-columns: 1fr; }
	.pcs-hero { padding: 36px 0 30px; }
	.pc-related { padding: 40px 0 44px; }
}
