/* RR Podcasts — front end styles
   -----------------------------------------------------------
   Huberman Lab–inspired episode player design.
   Change these two values to match your site's exact colors —
   every accent below pulls from them.
------------------------------------------------------------ */
:root {
	--rr-theme-primary: #00083c;
	--rr-theme-accent:  #00d9ff;
	--rr-theme-accent-secondary: #6b4de6;
}
.rr-podcast-card__excerpt {
    font-size: 16px !important;
    line-height: 1.3;
    padding-top: 10px;
    color: #fff;
}

/* =========================================================
   RR Podcasts — Latest Episode Hero ([rr_latest_podcast])
   ========================================================= */

.rr-podcast-latest {
	display: flex;
	align-items: center;
	gap: 48px;
	background: #0a0b0c;
	border-radius: 16px;
	padding: 24px;
}

/* --- Left: image --- */

.rr-podcast-latest__image {
	flex: 0 0 44%;
	max-width: 44%;
	aspect-ratio: 16 / 11;
	border-radius: 14px;
	background-size: cover;
	background-position: center;
	background-color: #111;
	display: block;
	position: relative;
	overflow: hidden;
	transition: transform 0.3s ease;
}

.rr-podcast-latest__image:hover {
	transform: scale(1.015);
}

/* --- Right: content --- */

.rr-podcast-latest__content {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

/* Badge — gradient pill outline */

.rr-podcast-latest__badge {
	display: inline-flex;
	align-items: center;
	padding: 8px 20px;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #ffffff;
	background: #0a0b0c;
	position: relative;
	z-index: 0;
}

.rr-podcast-latest__badge::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 999px;
	padding: 1.5px;
	background: linear-gradient( 100deg, #4f8cff 0%, #7ee787 100% );
	-webkit-mask: linear-gradient( #000 0 0 ) content-box, linear-gradient( #000 0 0 );
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	z-index: -1;
}

/* Title */

.rr-podcast-latest__title {
	margin: 0;
	font-size: 2rem;
	line-height: 1.25;
	font-weight: 700;
	color: #ffffff;
}

.rr-podcast-latest__title a,
.rr-podcast-card__title  a{
	color: inherit;
	text-decoration: none;
}

.rr-podcast-latest__title a:hover,
.rr-podcast-card__title:hover {
	text-decoration: underline;
}

/* Excerpt */

.rr-podcast-latest__excerpt {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: rgba( 255, 255, 255, 0.65 );
	max-width: 46ch;
}

/* Watch button — gradient pill */

.rr-podcast-latest__btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 4px;
	padding: 14px 28px;
	border-radius: 999px;
	background: linear-gradient( 100deg, #4f8cff 0%, #7ee787 100% );
	color: #0a0b0c;
	font-size: 0.85rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	text-decoration: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.rr-podcast-latest__btn:hover {
	opacity: 0.9;
	transform: translateY( -1px );
}

.rr-podcast-latest__btn-icon {
	flex-shrink: 0;
}

/* --- Responsive --- */

@media ( max-width: 900px ) {

	.rr-podcast-latest {
		flex-direction: column;
		align-items: stretch;
		gap: 24px;
		padding: 16px;
	}

	.rr-podcast-latest__image {
		flex: none;
		max-width: 100%;
		width: 100%;
	}

	.rr-podcast-latest__title {
		font-size: 1.5rem;
	}
}

/* ==========================================================
   Single episode page
   ========================================================== */
.rr-podcast-single {
	max-width: 900px;
	margin: 0 auto;
	padding: 100px 20px 100px 20px;
}

/* ---------- Meta (badge + date) ---------- */
.rr-podcast-meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	width: fit-content;
	border: 1px solid #999999;
	padding: 5px 20px;
	color: #fff !important;
	border-radius: 30px;
}

.rr-podcast-badge {
	display: inline-block;
	border-radius: 4px;
	color: #ffffff;
	font-size: 0.9em;
	font-weight: 600;
	text-transform: capitalize;
	transition: color 0.2s ease;
}

a.rr-podcast-badge:hover {
	color: var(--rr-theme-accent);
}

.rr-podcast-date {
	color: #ffffff;
	font-size: 0.9em;
	line-height: 1;
	padding-left: 10px;
	border-left: 1px solid #848585;
}

/* ---------- Title ---------- */
.rr-podcast-title {
	font-size: 2.4em;
	font-weight: 800;
	line-height: 1.2;
	margin: 0;
	color: #fff;
}

/* ==========================================================
   Video player — 16:9 responsive wrapper
   ========================================================== */
.rr-podcast-video {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%; /* 16:9 aspect ratio */
	border-radius: 10px;
	overflow: hidden;
	background-color: #000;
	margin-top: 20px;
}

/* ---------- Poster (thumbnail) layer ---------- */
.rr-podcast-video__poster {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	cursor: pointer;
	transition: opacity 0.4s ease;
}

/* When playing — fade out the poster */
.rr-podcast-video__poster.rr-poster-hidden {
	opacity: 0;
	pointer-events: none;
}

/* ---------- YouTube iframe ---------- */
.rr-podcast-video__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	z-index: 1;
}

/* ==========================================================
   Play button — official YouTube icon style
   ========================================================== */
.rr-podcast-video__play {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 68px;
	height: 48px;
	border: none;
	background: transparent;
	padding: 0;
	cursor: pointer;
	text-decoration: none;
	transition: transform 0.2s ease, filter 0.2s ease;
}

.rr-podcast-video__play:hover {
	transform: scale(1.1);
	filter: brightness(1.15);
}

.rr-podcast-video__yt-icon {
	display: block;
	width: 68px;
	height: 48px;
}

.rr-podcast-video__yt-bg {
	transition: fill 0.15s ease;
}

.rr-podcast-video__play:hover .rr-podcast-video__yt-bg {
	fill: #ff0000;
}

/* Old play icon fallback — hide if SVG is used */
.rr-podcast-video__play-icon {
	display: none;
}

/* ==========================================================
   Persistent overlays — link icon & "Watch on YouTube"
   These sit ABOVE the iframe so they stay visible during play
   ========================================================== */
.rr-podcast-video__overlays {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	padding: 16px;
	z-index: 4;
	/* Subtle gradient for readability over video */
	background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 100%);
	pointer-events: none; /* let clicks pass through to iframe except on the buttons */
}

.rr-podcast-video__overlays > * {
	pointer-events: auto; /* re-enable clicks on buttons */
}

/* Link / share icon */
.rr-podcast-video__link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1.5px solid rgba(255, 255, 255, 0.7);
	color: #fff;
	text-decoration: none;
	background: rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(4px);
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.rr-podcast-video__link:hover {
	border-color: var(--rr-theme-accent);
	color: var(--rr-theme-accent);
	background: rgba(0, 0, 0, 0.55);
}

/* Brief "copied!" flash feedback */
.rr-podcast-video__link.rr-copied {
	border-color: #4ade80;
	color: #4ade80;
}

/* "Watch on YouTube" badge */
.rr-podcast-video__watch {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.95);
	color: #111;
	padding: 8px 16px;
	border-radius: 24px;
	font-weight: 600;
	font-size: 0.85em;
	text-decoration: none;
	backdrop-filter: blur(4px);
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.rr-podcast-video__watch:hover {
	background: #fff;
	color: #000;
	transform: scale(1.03);
}

.rr-podcast-video__watch svg {
	flex-shrink: 0;
}

/* ==========================================================
   Platform chips — below the player
   ========================================================== */
.rr-podcast-platforms {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
}

.rr-podcast-platform {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 20px;
	border-radius: 999px;
	border: 1.5px solid rgba(255, 255, 255, 0.2);
	background: transparent;
	font-weight: 600;
	font-size: 0.95em;
	color: #fff;
	text-decoration: none;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.rr-podcast-platform:hover,
.rr-podcast-platform:focus-visible {
	border-color: var(--rr-theme-accent);
	background: rgba(0, 217, 255, 0.08);
	color: var(--rr-theme-accent);
	box-shadow: 0 0 0 1px var(--rr-theme-accent);
}

.rr-podcast-platform__icon {
	display: block;
	width: 24px;
	height: 24px;
	object-fit: contain;
	flex-shrink: 0;
}

/* ---------- Description ---------- */
.rr-podcast-description {
	margin-top: 40px;
	line-height: 1.75;
	color: rgba(255, 255, 255, 0.8);
}

.rr-podcast-description a {
	color: var(--rr-theme-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rr-podcast-description a:hover {
	color: #fff;
}

/* ==========================================================
   Archive page (/podcasts/)
   ========================================================== */
.rr-podcast-archive {
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 20px 100px 20px;
}

.rr-podcast-archive__header {
	margin-bottom: 32px;
}

.rr-podcast-archive__title {
	font-size: 2.4em;
	font-weight: 800;
	margin: 0;
	color: #fff;
}

.rr-podcast-archive__empty {
	color: #fff;
	opacity: 0.7;
}

.rr-podcast-archive__pagination {
	margin-top: 48px;
	display: flex;
	justify-content: center;
	gap: 16px;
}

.rr-podcast-archive__pagination .nav-links {
	display: flex;
	align-items: center;
	gap: 16px;
}

.rr-podcast-archive__pagination a,
.rr-podcast-archive__pagination span.current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	border-radius: 20px;
	color: #fff;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.25);
	font-weight: 600;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.rr-podcast-archive__pagination a:hover {
	border-color: var(--rr-theme-accent);
	background: var(--rr-theme-accent);
	color: #111;
}

.rr-podcast-archive__pagination span.current {
	background: var(--rr-theme-accent);
	color: #111;
	border-color: var(--rr-theme-accent);
}

/* ==========================================================
   Featured podcasts grid (homepage shortcode)
   ========================================================== */
.rr-podcast-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

@media (max-width: 768px) {
	.rr-podcast-grid {
		grid-template-columns: 1fr;
	}
}

.rr-podcast-card {
	display: block;
	text-decoration: none;
	color: inherit;
}

.rr-podcast-card__image {
	position: relative;
	height: 200px;
	border-radius: 10px;
	background-color: #0b0b0b;
	background-size: cover;
	background-position: center;
	overflow: hidden;
}

.rr-podcast-card__show {
	position: absolute;
	top: 12px;
	left: 12px;
	right: 12px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 0.75em;
	font-weight: 700;
	text-transform: uppercase;
	padding: 6px 10px;
	border-radius: 4px;
}

.rr-podcast-card__episode {
	position: absolute;
	bottom: 12px;
	left: 12px;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 0.75em;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 12px;
}

.rr-podcast-card__type {
	display: inline-block;
	margin-top: 12px;
	padding: 4px 12px;
	border: 1px solid var(--rr-theme-primary);
	border-radius: 14px;
	font-size: 0.75em;
	font-weight: 600;
	color: var(--rr-theme-primary);
}

.rr-podcast-card__title {
	margin: 10px 0 0;
	font-size: 1em !important;
	font-weight: 100 !important;
	color: #fff;
	line-height: 1.3 !important;
}

.rr-podcast-view-all-btn {
	display: inline-block;
	margin-top: 24px;
	padding: 12px 28px;
	border-radius: 26px;
	background: var(--rr-theme-primary);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.rr-podcast-view-all-btn:hover {
	background: var(--rr-theme-accent);
	color: #111;
}

/* ==========================================================
   Responsive adjustments
   ========================================================== */
@media (max-width: 768px) {
	.rr-podcast-single {
		padding: 60px 16px 60px 16px;
	}

	.rr-podcast-title {
		font-size: 1.6em;
		margin-bottom: 24px;
	}

	.rr-podcast-video__play {
		width: 54px;
		height: 38px;
	}

	.rr-podcast-video__yt-icon {
		width: 54px;
		height: 38px;
	}

	.rr-podcast-video__watch {
		font-size: 0.75em;
		padding: 6px 12px;
	}

	.rr-podcast-video__link {
		width: 30px;
		height: 30px;
	}

	.rr-podcast-video__link svg {
		width: 14px;
		height: 14px;
	}

	.rr-podcast-platforms {
		gap: 8px;
	}

	.rr-podcast-platform {
		padding: 10px 16px;
		font-size: 0.85em;
	}
}