/* ==========================================================
   PODCAST VIDEO SLIDER — FINAL
   ========================================================== */

.rh-podcast {
	background: var(--reach-black);
	color: var(--reach-white);
	padding: clamp(56px, 9vh, 100px) 0;
	overflow: hidden;
}

.rh-podcast .rh-eyebrow {
	color: var(--reach-green);
}

.rh-podcast h2 {
	color: var(--reach-white);
}


/* ----------------------------------------------------------
   SLIDER
   ---------------------------------------------------------- */

.rh-podcast__slider {
	position: relative;
	width: 100%;
}


/* ----------------------------------------------------------
   TRACK
   ---------------------------------------------------------- */

.rh-podcast__track {
	display: flex;
	flex-direction: row;
	align-items: stretch;

	gap: 20px;

	width: 100%;

	overflow-x: auto;
	overflow-y: hidden;

	padding: 4px 2px 22px;

	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;

	scrollbar-width: none;

	-webkit-overflow-scrolling: touch;

	direction: ltr;
}

.rh-podcast__track::-webkit-scrollbar {
	display: none;
}


/* ----------------------------------------------------------
   VIDEO CARD
   ---------------------------------------------------------- */

.rh-podcast__card {
	position: relative;

	display: block;

	flex: 0 0 calc((100% - 60px) / 4);

	width: calc((100% - 60px) / 4);
	min-width: 0;

	/*
	 * IMPORTANT:
	 * Fixed portrait ratio.
	 * Prevents global theme button styles from
	 * turning the card into an egg/circle.
	 */
	aspect-ratio: 9 / 16;

	height: auto;
	min-height: 0;
	max-height: none;

	padding: 0 !important;
	margin: 0;

	border: 0 !important;
	border-radius: 18px !important;

	outline: none;

	background: #16181d;

	overflow: hidden;

	cursor: pointer;

	scroll-snap-align: start;

	text-align: left;

	line-height: 0;

	-webkit-appearance: none;
	appearance: none;

	box-shadow: none;

	transform: none;

	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.rh-podcast__card:hover {
	transform: translateY(-6px);

	box-shadow:
		0 20px 40px rgba(0, 0, 0, 0.4);
}

.rh-podcast__card:focus-visible {
	outline: 3px solid var(--reach-green) !important;
	outline-offset: 4px;
}


/* ----------------------------------------------------------
   POSTER
   ---------------------------------------------------------- */

.rh-podcast__poster {
	position: absolute !important;

	inset: 0 !important;

	display: block !important;

	width: 100% !important;
	height: 100% !important;

	max-width: none !important;
	max-height: none !important;

	margin: 0 !important;
	padding: 0 !important;

	object-fit: cover;

	border: 0 !important;
	border-radius: 0 !important;

	background: #16181d;

	box-shadow: none !important;

	line-height: 0;

	transform: none;

	transition: transform 0.4s ease;
}

.rh-podcast__card:hover .rh-podcast__poster {
	transform: scale(1.04);
}


/* ----------------------------------------------------------
   OVERLAY
   ---------------------------------------------------------- */

.rh-podcast__shade {
	position: absolute;

	z-index: 1;

	inset: 0;

	display: block;

	margin: 0;
	padding: 0;

	background:
		linear-gradient(
			180deg,
			rgba(0, 0, 0, 0.05) 0%,
			rgba(0, 0, 0, 0.05) 45%,
			rgba(0, 0, 0, 0.35) 100%
		);

	pointer-events: none;
}


/* ----------------------------------------------------------
   PLAY BUTTON
   ---------------------------------------------------------- */

.rh-podcast__card .rh-reel__play {
	position: absolute;

	z-index: 3;

	top: 50%;
	left: 50%;

	width: 54px;
	height: 54px;

	margin: -27px 0 0 -27px;

	border-radius: 50% !important;

	background: rgba(255, 255, 255, 0.18);

	box-shadow:
		inset 0 0 0 2px rgba(255, 255, 255, 0.65);

	backdrop-filter: blur(3px);

	pointer-events: none;

	transition:
		background 0.25s ease,
		transform 0.25s ease;
}

.rh-podcast__card .rh-reel__play::after {
	content: "";

	position: absolute;

	top: 50%;
	left: 50%;

	width: 0;
	height: 0;

	transform: translate(-38%, -50%);

	border-style: solid;

	border-width: 9px 0 9px 15px;

	border-color:
		transparent
		transparent
		transparent
		var(--reach-white);
}

.rh-podcast__card:hover .rh-reel__play {
	background: var(--reach-green);

	transform: scale(1.08);
}


/* ----------------------------------------------------------
   ARROWS
   ---------------------------------------------------------- */

.rh-podcast__nav {
	display: flex;

	justify-content: center;
	align-items: center;

	gap: 10px;

	margin-top: 16px;

	direction: ltr;
}

.rh-podcast__btn {
	display: inline-flex !important;

	align-items: center;
	justify-content: center;

	flex: 0 0 46px;

	width: 46px !important;
	height: 46px !important;

	min-width: 46px;
	min-height: 46px;

	margin: 0;
	padding: 0 !important;

	border: 0 !important;
	border-radius: 50% !important;

	background: transparent;

	color: var(--reach-white);

	box-shadow:
		inset 0 0 0 2px rgba(255, 255, 255, 0.35);

	font-size: 19px;
	line-height: 1;

	cursor: pointer;

	-webkit-appearance: none;
	appearance: none;

	transition:
		background 0.25s ease,
		color 0.25s ease,
		box-shadow 0.25s ease,
		transform 0.2s ease;
}

.rh-podcast__btn:hover {
	background: var(--reach-green);

	color: var(--reach-black);

	box-shadow:
		inset 0 0 0 2px var(--reach-green);
}

.rh-podcast__btn:active {
	transform: scale(0.9);
}

.rh-podcast__btn:focus-visible {
	outline: 3px solid var(--reach-green);
	outline-offset: 3px;
}


/* ----------------------------------------------------------
   DESCRIPTION
   ---------------------------------------------------------- */

.rh-podcast__side {
	max-width: 760px;

	margin: 30px auto 0;

	text-align: center;
}

.rh-podcast__side p {
	color: rgba(255, 255, 255, 0.75);

	margin: 0 auto;
}

.rh-podcast__shows {
	list-style: none;

	display: flex;
	flex-wrap: wrap;

	justify-content: center;

	gap: 10px;

	margin: 20px 0 0;
	padding: 0;
}

.rh-podcast__shows li {
	padding: 8px 18px;

	border-radius: 999px;

	box-shadow:
		inset 0 0 0 2px rgba(255, 255, 255, 0.3);

	color: var(--reach-white);

	font-family: var(--reach-font-heading);
	font-weight: 800;

	font-size: 14px;
}


/* ==========================================================
   RTL
   IMPORTANT:
   Only the VIDEO TRACK becomes RTL.
   Arrows remain LTR.
   ========================================================== */

html[dir="rtl"] .rh-podcast__track,
body.rtl .rh-podcast__track,
.rtl .rh-podcast__track {
	direction: rtl;
}

html[dir="rtl"] .rh-podcast__nav,
body.rtl .rh-podcast__nav,
.rtl .rh-podcast__nav {
	direction: ltr;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 1100px) {

	.rh-podcast__card {
		flex-basis: calc((100% - 40px) / 3);
		width: calc((100% - 40px) / 3);
	}
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 700px) {

	.rh-podcast {
		padding: 55px 0;
	}

	.rh-podcast__track {
		gap: 14px;
		padding-bottom: 18px;
	}

	.rh-podcast__card {
		flex: 0 0 min(76vw, 270px);

		width: min(76vw, 270px);

		aspect-ratio: 9 / 16;

		border-radius: 18px !important;
	}

	.rh-podcast__nav {
		margin-top: 14px;
	}

	.rh-podcast__side {
		margin-top: 24px;
	}

	.rh-podcast__shows {
		gap: 8px;
	}

	.rh-podcast__shows li {
		padding: 7px 14px;
		font-size: 13px;
	}
}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

	.rh-podcast__track {
		scroll-behavior: auto;
	}

	.rh-podcast__card,
	.rh-podcast__poster,
	.rh-podcast__card .rh-reel__play {
		transition: none;
	}
}


