/**
 * Modern Episode List + sticky bar (Elementor widget only).
 */

.pg-ep-list {
	--pg-ep-accent: #3ecfcf;
	--pg-ep-text: #111827;
	--pg-ep-muted: #6b7280;
	--pg-ep-card-bg: #ffffff;
	--pg-ep-sticky-bg: #121826;
	box-sizing: border-box;
	width: 100%;
}

.pg-ep-list *,
.pg-ep-list *::before,
.pg-ep-list *::after {
	box-sizing: border-box;
}

.pg-ep-list__grid {
	display: grid;
	grid-template-columns: repeat(var(--pg-ep-cols, 3), minmax(0, 1fr));
	gap: 24px;
	width: 100%;
}

.pg-ep-card {
	background: var(--pg-ep-card-bg);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.pg-ep-card__media {
	position: relative;
	aspect-ratio: 1 / 1;
	background: #e5e7eb;
	overflow: hidden;
}

.pg-ep-card__img {
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	display: block;
	border-radius: 0;
}

.pg-ep-card__img--placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #eef2f7 0%, #d7dee8 100%);
}

.pg-ep-card__date {
	position: absolute;
	top: 14px;
	right: 14px;
	margin: 0;
	padding: 6px 12px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1.2;
	text-transform: uppercase;
	color: #fff;
	background: rgba(30, 35, 45, 0.72);
	border-radius: 999px;
	text-shadow: none;
	z-index: 2;
	white-space: nowrap;
}

.pg-ep-card__play {
	position: absolute;
	left: 14px;
	bottom: 14px;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #111827;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
	padding: 0;
}

.pg-ep-card__play:hover,
.pg-ep-card__play:focus-visible {
	background: #fff;
	color: #111827;
	outline: none;
}

.pg-ep-card__play-icon {
	display: block;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 7px 0 7px 12px;
	border-color: transparent transparent transparent currentColor;
	margin-left: 2px;
}

.pg-ep-card.is-playing .pg-ep-card__play-icon {
	width: 10px;
	height: 12px;
	border: 0;
	margin-left: 0;
	background:
		linear-gradient(currentColor, currentColor) left / 3px 100% no-repeat,
		linear-gradient(currentColor, currentColor) right / 3px 100% no-repeat;
}

.pg-ep-card__body {
	padding: 16px 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pg-ep-card__cat {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--pg-ep-accent);
}

.pg-ep-card__cat-icon {
	font-size: 13px;
	line-height: 1;
}

.pg-ep-card__title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--pg-ep-text);
}

.pg-ep-card__title a {
	color: inherit;
	text-decoration: none;
}

.pg-ep-card__title a:hover {
	color: inherit;
}

.pg-ep-card__excerpt {
	margin: 0;
	font-size: 16px;
	line-height: 1.5;
	color: var(--pg-ep-muted);
}

.pg-ep-card__more {
	margin-top: 10px;
	font-size: 16px;
	font-weight: 600;
	color: var(--pg-ep-text);
	text-decoration: none !important;
}

.pg-ep-card__more:hover {
	color: var(--pg-ep-text);
	text-decoration: underline;
}

/* Horizontal cards (Latest Episode widget) */
.pg-ep-list--horizontal .pg-ep-card {
	flex-direction: row;
	align-items: center;
	gap: 0;
	padding: 16px;
	overflow: visible;
}

.pg-ep-list--horizontal .pg-ep-card__media {
	width: 168px;
	height: 168px;
	flex: 0 0 168px;
	aspect-ratio: auto;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
	margin-right: 4px;
}

.pg-ep-list--horizontal .pg-ep-card__img,
.pg-ep-list--horizontal .pg-ep-card__img--placeholder {
	width: 100%;
	height: 100% !important;
	border-radius: 12px !important;
	object-fit: cover;
}

.pg-ep-list--horizontal .pg-ep-card__date {
	top: 10px;
	right: 10px;
	font-size: 10px;
	padding: 5px 10px;
}

.pg-ep-list--horizontal .pg-ep-card__play {
	left: 12px;
	bottom: 12px;
	width: 40px;
	height: 40px;
}

.pg-ep-list--horizontal .pg-ep-card__body {
	flex: 1 1 auto;
	min-width: 0;
	padding: 8px 8px 8px 18px;
	gap: 8px;
}

.pg-ep-list--horizontal .pg-ep-card__title {
	font-size: 20px;
}

.pg-ep-list--horizontal .pg-ep-card__more {
	color: var(--pg-ep-accent);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 13px;
}

.pg-ep-list--horizontal .pg-ep-card__more:hover {
	color: var(--pg-ep-accent);
}

/* Layout 02 — compact row list (Latest Episode) */
.pg-ep-list--rows {
	--pg-ep-author: #e07040;
}

.pg-ep-list--rows .pg-ep-list__grid {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.pg-ep-list--rows .pg-ep-card {
	flex-direction: row;
	align-items: center;
	gap: 20px;
	padding: 18px 28px;
	border-radius: 10px;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.07);
	overflow: visible;
}

.pg-ep-list--rows .pg-ep-card__play {
	position: static;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	background: #111827;
	color: #ffffff;
	box-shadow: none;
}

.pg-ep-list--rows .pg-ep-card__play:hover,
.pg-ep-list--rows .pg-ep-card__play:focus-visible {
	background: #111827;
	color: #ffffff;
}

.pg-ep-list--rows .pg-ep-card__play-icon {
	border-width: 6px 0 6px 10px;
}

.pg-ep-list--rows .pg-ep-card.is-playing .pg-ep-card__play-icon {
	width: 9px;
	height: 11px;
}

.pg-ep-list--rows .pg-ep-card__title {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pg-ep-list--rows .pg-ep-card__meta {
	display: flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 40px;
	margin-left: auto;
}

.pg-ep-list--rows .pg-ep-card__author {
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--pg-ep-author);
	white-space: nowrap;
}

.pg-ep-list--rows .pg-ep-card__ep-num {
	flex: 0 0 auto;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.3;
	color: #9ca3af;
	white-space: nowrap;
}

.pg-ep-list--rows .pg-ep-card__more {
	flex: 0 0 auto;
	margin-top: 0;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: var(--pg-ep-text);
	white-space: nowrap;
}

.pg-ep-list--rows .pg-ep-card__more:hover {
	color: var(--pg-ep-text);
	text-decoration: none;
}

/* Layout 02 — SSP-style recent episodes grid */
.pg-ep-list--ssp .pg-ep-list__grid {
	gap: 28px 32px;
	align-items: start;
}

.pg-ep-list--ssp .pg-ep-card--ssp {
	background: transparent;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
	height: auto;
	align-self: start;
}

.pg-ep-list--ssp .pg-ep-card__media {
	display: block;
	position: relative;
	aspect-ratio: auto !important;
	width: 100%;
	height: auto !important;
	min-height: 0;
	flex: 0 0 auto;
	overflow: hidden;
	background: transparent;
	border-radius: 4px;
	margin-bottom: 14px;
	line-height: 0;
	font-size: 0;
}

.pg-ep-list--ssp .pg-ep-card__img {
	width: 100%;
	height: auto !important;
	max-width: 100%;
	max-height: none;
	object-fit: contain;
	object-position: center top;
	display: block;
	vertical-align: top;
	border-radius: 4px;
	aspect-ratio: auto;
}

.pg-ep-list--ssp .pg-ep-card__img--placeholder {
	width: 100%;
	height: auto !important;
	aspect-ratio: 16 / 10;
	background: linear-gradient(135deg, #eef2f7 0%, #d7dee8 100%);
	border-radius: 4px;
}

.pg-ep-list--ssp .pg-ep-card__body {
	padding: 0;
	gap: 8px;
}

.pg-ep-list--ssp .pg-ep-card__title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
	color: #111;
}

.pg-ep-list--ssp .pg-ep-card__title a {
	color: inherit;
	text-decoration: none;
}

.pg-ep-list--ssp .pg-ep-card__title a:hover {
	color: #2271b1;
}

.pg-ep-list--ssp .pg-ep-card__date-text {
	margin: 0;
	font-size: 13px;
	line-height: 1.4;
	color: #888;
}

.pg-ep-list--ssp .pg-ep-card__excerpt {
	margin: 0;
	font-size: 15px;
	line-height: 1.55;
	color: #222;
}

.pg-ep-list--ssp .pg-ep-card__more {
	display: inline-block;
	margin-top: 4px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	color: #2271b1;
	text-decoration: none;
}

.pg-ep-list--ssp .pg-ep-card__more:hover {
	text-decoration: underline;
	color: #135e96;
}

@media (max-width: 900px) {
	.pg-ep-list--ssp .pg-ep-list__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.pg-ep-list--ssp .pg-ep-list__grid {
		grid-template-columns: 1fr;
	}

	.pg-ep-list--ssp .pg-ep-card__title {
		font-size: 18px;
	}
}

@media (max-width: 900px) {
	.pg-ep-list--rows .pg-ep-card {
		flex-wrap: wrap;
		gap: 10px 16px;
		padding: 16px 18px;
	}

	.pg-ep-list--rows .pg-ep-card__title {
		flex: 1 1 calc(100% - 56px);
		white-space: normal;
	}

	.pg-ep-list--rows .pg-ep-card__meta {
		width: 100%;
		margin-left: 56px;
		gap: 24px;
		flex-wrap: wrap;
	}
}

.pg-ep-list__empty {
	margin: 0;
	padding: 16px;
	color: var(--pg-ep-muted);
}

/* Sticky bottom player */
.pg-ep-sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	gap: 16px;
	padding: 40px 20px;
	background: var(--pg-ep-sticky-bg);
	color: #fff;
	box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.28);
}

.pg-ep-list.is-sticky-open .pg-ep-sticky {
	display: flex;
}

.pg-ep-sticky__nav {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 0 0 auto;
}

.pg-ep-sticky__nav-btn {
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: #2a3344;
	color: #d1d5db;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.pg-ep-sticky__nav-btn:hover,
.pg-ep-sticky__nav-btn:focus-visible {
	background: #2a3344;
	color: #d1d5db;
	outline: none;
}

.pg-ep-sticky__info {
	flex: 0 1 260px;
	min-width: 120px;
}

.pg-ep-sticky__title {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #fff;
}

.pg-ep-sticky__meta {
	margin: 3px 0 0;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #60a5fa;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pg-ep-sticky__controls {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1 1 auto;
	min-width: 0;
}

.pg-ep-sticky__btn {
	appearance: none;
	border: 0;
	background: transparent;
	color: #c5cad3;
	cursor: pointer;
	padding: 0;
	margin: 0;
	font: inherit;
	line-height: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.pg-ep-sticky__skip {
	font-size: 12px;
	font-weight: 600;
	min-width: 36px;
	color: #c5cad3 !important;
	background: transparent !important;
}

.pg-ep-sticky__skip:hover,
.pg-ep-sticky__skip:focus,
.pg-ep-sticky__skip:focus-visible,
.pg-ep-sticky__skip:active {
	color: #c5cad3 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.pg-ep-sticky__play {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--pg-ep-accent);
	color: #fff;
}

.pg-ep-sticky__play:hover,
.pg-ep-sticky__play:focus-visible {
	color: #fff;
	filter: brightness(0.96);
	outline: none;
}

.pg-ep-sticky__play-icon {
	display: block;
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 7px 0 7px 12px;
	border-color: transparent transparent transparent currentColor;
	margin-left: 2px;
}

.pg-ep-list.is-playing .pg-ep-sticky__play-icon {
	width: 10px;
	height: 12px;
	border: 0;
	margin-left: 0;
	background:
		linear-gradient(currentColor, currentColor) left / 3px 100% no-repeat,
		linear-gradient(currentColor, currentColor) right / 3px 100% no-repeat;
}

.pg-ep-sticky__progress-wrap {
	flex: 1 1 auto;
	min-width: 80px;
	display: flex;
	align-items: center;
	box-shadow: none;
	background: transparent;
	border: 0;
	overflow: hidden;
}

.pg-ep-sticky__progress {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 4px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #3a4558;
	outline: none;
	cursor: pointer;
	box-shadow: none;
	overflow: hidden;
}

.pg-ep-sticky__progress:hover,
.pg-ep-sticky__progress:focus,
.pg-ep-sticky__progress:focus-visible,
.pg-ep-sticky__progress:active {
	box-shadow: none;
	outline: none;
	border: 0;
	background-image: none;
}

/* Kill the native range track (shows as a thin white line under the bar). */
.pg-ep-sticky__progress::-webkit-slider-runnable-track {
	-webkit-appearance: none;
	appearance: none;
	height: 4px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
}

.pg-ep-sticky__progress::-moz-range-track {
	height: 4px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	box-shadow: none;
}

.pg-ep-sticky__progress::-ms-track {
	height: 4px;
	border: 0;
	background: transparent;
	color: transparent;
	box-shadow: none;
}

.pg-ep-sticky__progress::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 12px;
	height: 12px;
	margin-top: -4px;
	border-radius: 50%;
	background: #60a5fa;
	border: 0;
	box-shadow: none;
	cursor: pointer;
}

.pg-ep-sticky__progress::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #60a5fa;
	border: 0;
	box-shadow: none;
	cursor: pointer;
}

.pg-ep-sticky__time {
	flex: 0 0 auto;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	color: #e5e7eb;
	white-space: nowrap;
}

.pg-ep-sticky__extras {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

.pg-ep-sticky__volume {
	position: relative;
	display: flex;
	align-items: center;
}

.pg-ep-sticky__volume-btn {
	width: 28px;
	height: 28px;
	color: #fff;
}

.pg-ep-sticky__volume-btn svg {
	width: 18px;
	height: 18px;
	display: block;
}

.pg-ep-sticky__volume-panel {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	transform: translateX(-50%);
	width: 36px;
	height: 110px;
	padding: 12px 0 10px;
	background: #0b1220;
	border-radius: 10px;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 5;
}

.pg-ep-sticky__volume.is-open .pg-ep-sticky__volume-panel,
.pg-ep-sticky__volume:hover .pg-ep-sticky__volume-panel,
.pg-ep-sticky__volume:focus-within .pg-ep-sticky__volume-panel {
	display: flex;
}

.pg-ep-sticky__volume-slider {
	-webkit-appearance: none;
	appearance: none;
	width: 84px;
	height: 4px;
	transform: rotate(-90deg);
	background: rgba(255, 255, 255, 0.25);
	border-radius: 999px;
	cursor: pointer;
	outline: none;
}

.pg-ep-sticky__volume-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #fff;
	border: 0;
	cursor: pointer;
}

.pg-ep-sticky__volume-slider::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #fff;
	border: 0;
	cursor: pointer;
}

.pg-ep-sticky__speed {
	min-width: 28px;
	font-size: 13px;
	font-weight: 700;
	color: #fff !important;
	background: transparent !important;
}

.pg-ep-sticky__speed:hover,
.pg-ep-sticky__speed:focus,
.pg-ep-sticky__speed:focus-visible,
.pg-ep-sticky__speed:active {
	color: #fff !important;
	background: transparent !important;
	box-shadow: none !important;
}

.pg-ep-sticky__close {
	width: 28px;
	height: 28px;
	color: #c5cad3 !important;
	background: transparent !important;
	font-size: 14px;
}

.pg-ep-sticky__close:hover,
.pg-ep-sticky__close:focus,
.pg-ep-sticky__close:focus-visible {
	color: #c5cad3 !important;
	background: transparent !important;
}

.pg-ep-sticky__audio {
	display: none;
}

body.pg-ep-sticky-active {
	padding-bottom: 84px;
}

@media (max-width: 1024px) {
	.pg-ep-list__grid {
		grid-template-columns: repeat(min(var(--pg-ep-cols, 3), 2), minmax(0, 1fr));
	}

	.pg-ep-sticky {
		flex-wrap: wrap;
		row-gap: 10px;
	}

	.pg-ep-sticky__info {
		flex: 1 1 calc(100% - 100px);
	}

	.pg-ep-sticky__controls {
		flex: 1 1 100%;
	}
}

@media (max-width: 640px) {
	.pg-ep-list__grid {
		grid-template-columns: 1fr;
	}
}

/* Podcast show archive (Browse All) — header above Episode List cards */
.pg-show-archive {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 20px 48px;
	box-sizing: border-box;
}

.pg-show-archive__header {
	margin: 0 0 28px;
	text-align: left;
}

.pg-show-archive__title {
	margin: 0 0 10px;
	font-size: 32px;
	font-weight: 800;
	line-height: 1.2;
	color: #111827;
}

.pg-show-archive__desc {
	margin: 0;
	max-width: 720px;
	font-size: 15px;
	line-height: 1.6;
	color: #6b7280;
}

.pg-show-archive__desc p:last-child {
	margin-bottom: 0;
}

.pg-show-archive .pg-ep-list {
	margin-top: 8px;
}

.pg-show-archive .navigation.pagination {
	margin-top: 32px;
}
