/* -----------------------------------------------------------------------
   Special single templates: podcast episode & branded content.
   Loaded only when one of these templates renders (see inc/enqueue.php).
   ----------------------------------------------------------------------- */

:root {
	--single-ink: #14141b;
	--single-sun: #ffd43b;
	--single-sun-deep: #f5a623;
}

/* Pull full-bleed heroes flush against the header: cancel .site-content's
   top padding on these templates. */
.single .site-content:has(.podcast-single),
.single .site-content:has(.branded-single) {
	padding-block-start: 0;
}

/* =======================================================================
   Podcast episode
   ======================================================================= */
.podcast-hero {
	background:
		radial-gradient(1100px 480px at 85% -10%, rgba(26, 125, 190, 0.4), transparent 60%),
		var(--single-ink);
	color: #ffffff;
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.podcast-hero *:focus-visible {
	outline-color: #ffffff;
}

.podcast-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
	gap: clamp(1.75rem, 4vw, 3.25rem);
	align-items: center;
}

/* Episode artwork with floating play button. */
.podcast-hero__art {
	position: relative;
	aspect-ratio: 1;
	border-radius: var(--shivuk-radius-lg);
	overflow: visible;
	background: rgba(255, 255, 255, 0.06);
}

.podcast-hero__art img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
	border-radius: var(--shivuk-radius-lg);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.podcast-hero__play {
	position: absolute;
	inset-block-end: -14px;
	inset-inline-start: -14px;
	display: grid;
	place-items: center;
	inline-size: 64px;
	block-size: 64px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--shivuk-color-accent), #3b8bff);
	color: #ffffff;
	border: 3px solid var(--single-ink);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}

.podcast-hero__play svg {
	inline-size: 28px;
	block-size: 28px;
	/* Point inline-forward in RTL. */
	transform: scaleX(-1);
}

.podcast-hero__kicker {
	display: inline-block;
	margin-block-end: 0.85rem;
	padding: 0.25em 0.9em;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: rgba(255, 255, 255, 0.85);
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.06em;
}

.podcast-hero__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.7rem, 4vw, 2.8rem);
	line-height: 1.2;
	color: #ffffff;
	text-wrap: balance;
}

.podcast-hero__meta {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: rgba(255, 255, 255, 0.65);
	font-size: 0.9rem;
	margin-block-end: 1.25rem;
}

.podcast-hero__wave {
	display: flex;
	align-items: flex-end;
	gap: 5px;
	block-size: 40px;
	margin-block-end: 1.5rem;
}

.podcast-hero__wave span {
	inline-size: 5px;
	border-radius: 3px;
	background: var(--shivuk-color-accent);
	animation: podcast-wave 1.2s ease-in-out infinite;
}

.podcast-hero__wave span:nth-child(odd) { block-size: 60%; }
.podcast-hero__wave span:nth-child(even) { block-size: 100%; }
.podcast-hero__wave span:nth-child(3n) { block-size: 35%; animation-delay: 0.2s; }
.podcast-hero__wave span:nth-child(4n) { animation-delay: 0.4s; }
.podcast-hero__wave span:nth-child(5n) { animation-delay: 0.6s; }

@keyframes podcast-wave {
	0%, 100% { transform: scaleY(0.55); }
	50% { transform: scaleY(1); }
}

.podcast-hero__share {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.podcast-hero__share-label {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.65);
}

/* The base .entry-share__btn is built for light pages (light-gray surface,
   muted icon) — on the dark hero that made a white icon on a near-white
   circle. Frosted-glass buttons instead: translucent white fill, visible
   ring, white icon; brand-blue fill on hover. */
.podcast-hero__share .entry-share__btn {
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.28);
	color: #ffffff;
}

.podcast-hero__share .entry-share__btn:hover,
.podcast-hero__share .entry-share__btn:focus {
	background: var(--shivuk-color-accent);
	border-color: var(--shivuk-color-accent);
	color: #ffffff;
}

.podcast-hero__share .entry-share__btn--copy.is-copied {
	background: var(--shivuk-color-accent);
	border-color: var(--shivuk-color-accent);
}

/* Reading column. */
.podcast-content,
.branded-content {
	padding-block: clamp(2rem, 4.5vw, 3.5rem);
}

/* Fixed "about the show" intro above every episode's content — the podcast
   description card, in the same quiet surface language Spotify uses for
   show notes. Text comes from הגדרות מצייצים → תוכן ומדורים. */
.podcast-intro {
	max-inline-size: 760px;
	margin: 0 auto clamp(1.75rem, 3.5vw, 2.5rem);
	padding: 1.4rem clamp(1.25rem, 3vw, 1.75rem);
	border: 1px solid var(--shivuk-color-border);
	border-inline-start: 3px solid var(--shivuk-color-accent);
	border-radius: var(--shivuk-radius-lg);
	background: linear-gradient(145deg, var(--shivuk-color-accent-soft), var(--shivuk-color-surface) 75%);
}

.podcast-intro__label {
	display: block;
	margin-block-end: 0.4rem;
	color: var(--shivuk-color-accent);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.05em;
}

.podcast-intro__text {
	margin: 0;
	color: var(--shivuk-color-text);
	font-size: 1rem;
	line-height: 1.8;
}

.podcast-content .entry-content,
.branded-content .entry-content {
	max-inline-size: 760px;
	margin-inline: auto;
	font-size: 1.05rem;
	line-height: 1.85;
}

/* More episodes rail. */
.podcast-more {
	background: var(--shivuk-color-surface);
	border-block-start: 1px solid var(--shivuk-color-border);
	padding-block: clamp(2rem, 4.5vw, 3.25rem);
}

.podcast-more__title,
.branded-more__title {
	margin: 0 0 1.5rem;
	font-size: 1.4rem;
	position: relative;
	padding-inline-start: 0.75rem;
}

.podcast-more__title::before,
.branded-more__title::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block: 0.2em;
	inline-size: 4px;
	border-radius: 2px;
	background: var(--shivuk-color-accent);
}

.podcast-more__grid,
.branded-more__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: var(--shivuk-space);
}

.podcast-more-card__thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	border-radius: var(--shivuk-radius);
	overflow: hidden;
	background: var(--shivuk-color-border);
	margin-block-end: 0.75rem;
}

.podcast-more-card__thumb img {
	inline-size: 100%;
	block-size: 100%;
	object-fit: cover;
}

.podcast-more-card__play {
	position: absolute;
	inset-block-end: 0.6rem;
	inset-inline-start: 0.6rem;
	display: grid;
	place-items: center;
	inline-size: 38px;
	block-size: 38px;
	border-radius: 50%;
	background: rgba(10, 12, 16, 0.65);
	color: #ffffff;
	backdrop-filter: blur(4px);
}

.podcast-more-card__play svg {
	inline-size: 18px;
	block-size: 18px;
	transform: scaleX(-1);
}

.podcast-more-card__title {
	margin: 0 0 0.25rem;
	font-size: 1.02rem;
	line-height: 1.4;
}

.podcast-more-card__title a {
	color: inherit;
	text-decoration: none;
}

.podcast-more-card__title a:hover,
.podcast-more-card__title a:focus {
	color: var(--shivuk-color-accent);
}

.podcast-more-card__date {
	color: var(--shivuk-color-muted);
	font-size: 0.82rem;
}

.podcast-comments,
.branded-comments {
	max-inline-size: calc(760px + 2 * var(--shivuk-space));
	padding-block-end: clamp(2rem, 4.5vw, 3.5rem);
}

/* =======================================================================
   Branded content
   ======================================================================= */
.branded-strip {
	background: var(--single-ink);
	color: #ffffff;
	border-block-end: 1px solid rgba(255, 212, 59, 0.35);
}

.branded-strip__inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.85rem;
	padding-block: 0.55rem;
	flex-wrap: wrap;
}

.branded-strip__latin {
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	background: linear-gradient(90deg, var(--single-sun), var(--single-sun-deep));
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	direction: ltr;
}

.branded-strip__note {
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.65);
}

.branded-hero {
	background:
		radial-gradient(900px 420px at 12% -10%, rgba(255, 212, 59, 0.12), transparent 60%),
		#23232d;
	color: #ffffff;
	padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.branded-hero *:focus-visible {
	outline-color: #ffffff;
}

.branded-hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
	gap: clamp(1.75rem, 4vw, 3.25rem);
	align-items: center;
}

.branded-hero__tag {
	display: inline-block;
	margin-block-end: 0.85rem;
	padding: 0.25em 0.9em;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--single-sun), var(--single-sun-deep));
	color: var(--single-ink);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.05em;
}

.branded-hero__title {
	margin: 0 0 0.75rem;
	font-size: clamp(1.7rem, 4vw, 2.8rem);
	line-height: 1.2;
	color: #ffffff;
	text-wrap: balance;
}

.branded-hero__meta {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	color: rgba(255, 255, 255, 0.6);
	font-size: 0.9rem;
}

/* Gold-framed feature image, like the homepage sponsor cards. */
.branded-hero__media {
	border-radius: var(--shivuk-radius-lg);
	padding: 1px;
	background: linear-gradient(155deg, var(--single-sun) 0%, rgba(255, 212, 59, 0.15) 40%, var(--single-sun-deep) 100%);
}

.branded-hero__media img {
	display: block;
	inline-size: 100%;
	block-size: auto;
	border-radius: calc(var(--shivuk-radius-lg) - 1px);
}

.branded-content__footer {
	max-inline-size: 760px;
	margin-inline: auto;
	margin-block-start: 2rem;
	padding-block-start: 1.25rem;
	border-block-start: 1px solid var(--shivuk-color-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.branded-content__disclosure {
	margin: 0;
	font-size: 0.82rem;
	color: var(--shivuk-color-muted);
	max-inline-size: 52ch;
}

.branded-content__share .entry-share__btn {
	color: var(--shivuk-color-text);
}

/* Related branded pieces — mini gold-framed overlay cards. */
.branded-more {
	background: var(--single-ink);
	color: #ffffff;
	padding-block: clamp(2rem, 4.5vw, 3.25rem);
}

.branded-more__title {
	color: #ffffff;
}

.branded-more__title::before {
	background: var(--single-sun);
}

.branded-more-card__link {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	border-radius: var(--shivuk-radius);
	overflow: hidden;
	color: #ffffff;
	text-decoration: none;
	background: rgba(255, 255, 255, 0.05);
}

.branded-more-card__media,
.branded-more-card__media img {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
}

.branded-more-card__media img {
	object-fit: cover;
}

.branded-more-card__tag {
	position: absolute;
	inset-block-start: 0.6rem;
	inset-inline-start: 0.6rem;
	padding: 0.18em 0.7em;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--single-sun), var(--single-sun-deep));
	color: var(--single-ink);
	font-size: 0.68rem;
	font-weight: 800;
}

.branded-more-card__body {
	position: absolute;
	inset-block-end: 0;
	inset-inline: 0;
	padding: 0.85rem;
	background: linear-gradient(to top, rgba(10, 10, 14, 0.9), transparent);
}

.branded-more-card__title {
	font-size: 0.95rem;
	line-height: 1.4;
	font-weight: 600;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* =======================================================================
   Responsive & motion
   ======================================================================= */
@media (max-width: 900px) {
	/* Spotify's mobile episode layout: artwork centered on top, everything
	   below it centered too. The artwork drops the square album-art crop —
	   episode covers are usually wide (YouTube stills), and a 1:1 crop was
	   slicing them in half on phones. */
	.podcast-hero {
		padding-block: 1.75rem 2.25rem;
	}

	.podcast-hero__inner {
		grid-template-columns: 1fr;
		gap: 1.5rem;
		text-align: center;
	}

	.podcast-hero__art {
		inline-size: 100%;
		max-inline-size: 440px;
		margin-inline: auto;
		aspect-ratio: 16 / 9;
	}

	.podcast-hero__art img {
		aspect-ratio: 16 / 9;
	}

	.podcast-hero__play {
		inline-size: 52px;
		block-size: 52px;
		inset-block-end: -10px;
		inset-inline-start: -6px;
	}

	.podcast-hero__play svg {
		inline-size: 22px;
		block-size: 22px;
	}

	.podcast-hero__title {
		font-size: clamp(1.45rem, 6vw, 2rem);
	}

	.podcast-hero__meta,
	.podcast-hero__wave,
	.podcast-hero__share {
		justify-content: center;
	}

	.podcast-hero__wave {
		block-size: 32px;
		margin-block-end: 1.25rem;
	}

	.branded-hero__inner {
		grid-template-columns: 1fr;
	}

	.podcast-more__grid,
	.branded-more__grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.podcast-hero__wave span {
		animation: none;
	}
}
