/* Pod2WP front-end episode player */

.pod2wp-episode {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin: 0 0 24px;
	padding: 16px;
	border: 1px solid #e2e2e2;
	border-radius: 8px;
	background: #fafafa;
}

.pod2wp-episode__art {
	flex: 0 0 160px;
}

.pod2wp-episode__art img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	display: block;
}

.pod2wp-episode__body {
	flex: 1 1 300px;
	min-width: 0;
}

.pod2wp-episode__title {
	margin: 0 0 4px;
}

.pod2wp-episode__duration {
	margin: 0 0 12px;
	color: #666;
	font-size: 0.9em;
}

.pod2wp-episode__tabs {
	display: flex;
	gap: 8px;
	margin-bottom: 12px;
}

.pod2wp-episode__tab {
	padding: 6px 14px;
	border: 1px solid #ccc;
	border-radius: 999px;
	background: #fff;
	cursor: pointer;
	font-size: 0.9em;
}

.pod2wp-episode__tab.is-active {
	background: #1d2327;
	color: #fff;
	border-color: #1d2327;
}

.pod2wp-episode__video,
.pod2wp-episode__audio {
	width: 100%;
	max-width: 100%;
}

.pod2wp-episode__video {
	border-radius: 6px;
	background: #000;
}

.pod2wp-episode__panel[data-pod2wp-shared] {
	position: relative;
}

/* "Listen to Audio" mode on a shared video element: hide the video
   off-screen — NOT display:none, which risks the browser pausing it —
   so playback continues uninterrupted, and drive a small custom bar via
   JS instead of native <video controls>, which don't render a usable
   button set when squished down small. */
.pod2wp-episode__panel--audio-view .pod2wp-episode__video {
	position: absolute;
	width: 2px;
	height: 2px;
	opacity: 0;
	overflow: hidden;
	pointer-events: none;
}

.pod2wp-episode__audio-ui {
	display: none;
	align-items: center;
	gap: 10px;
	padding: 10px 14px;
	border-radius: 999px;
	background: #1d2327;
	color: #fff;
}

.pod2wp-episode__panel--audio-view .pod2wp-episode__audio-ui {
	display: flex;
}

.pod2wp-episode__audio-play {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 50%;
	background: #fff;
	color: #1d2327;
	cursor: pointer;
	font-size: 0.8em;
	line-height: 1;
}

.pod2wp-episode__audio-progress {
	flex: 1 1 auto;
	height: 6px;
	border-radius: 999px;
	background: rgba( 255, 255, 255, 0.25 );
	cursor: pointer;
	overflow: hidden;
}

.pod2wp-episode__audio-progress-fill {
	height: 100%;
	width: 0;
	background: #fff;
}

.pod2wp-episode__audio-time {
	flex: 0 0 auto;
	font-size: 0.85em;
	font-variant-numeric: tabular-nums;
}

.pod2wp-episode__links {
	margin: 14px 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 0.9em;
}

.pod2wp-episode__subscribe {
	margin-top: 14px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.pod2wp-episode__subscribe-label {
	font-weight: 600;
	font-size: 0.9em;
}

.pod2wp-episode__subscribe .pod2wp-episode__links {
	margin: 0;
}

.pod2wp-episode__funding {
	margin-top: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.pod2wp-episode__funding-link {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: #d63638;
	color: #fff;
	text-decoration: none;
	font-size: 0.9em;
	font-weight: 600;
}

.pod2wp-episode__funding-link:hover,
.pod2wp-episode__funding-link:focus {
	background: #b32d2e;
	color: #fff;
}

.pod2wp-notice {
	font-style: italic;
	color: #666;
}
