.antolgy-media-experience {
	margin: 0 auto 2.5rem;
	font-family: 'Beiruti', sans-serif;
}

.antolgy-media-experience--audio {
	display: flex;
	justify-content: center;
}

.antolgy-audio-play {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(67, 103, 96, 0.55);
	border-radius: 50%;
	background: rgba(67, 103, 96, 0.1);
	color: #41675f;
	cursor: pointer;
	transition: background 160ms ease, transform 160ms ease;
}

.antolgy-audio-play:hover {
	background: rgba(67, 103, 96, 0.18);
	transform: scale(1.04);
}

.antolgy-audio-play__icon {
	width: 0;
	height: 0;
	margin-left: 3px;
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	border-left: 12px solid currentColor;
}

/* Pause state for in-page button — synced with persistent player */
.antolgy-audio-play.is-playing .antolgy-audio-play__icon {
	width: auto;
	height: 16px;
	margin-left: 0;
	border: 0;
	display: flex;
	gap: 5px;
}

.antolgy-audio-play.is-playing .antolgy-audio-play__icon::before,
.antolgy-audio-play.is-playing .antolgy-audio-play__icon::after {
	content: '';
	display: block;
	width: 3px;
	height: 100%;
	background: currentColor;
}

.antolgy-media-experience--video .wp-block-embed,
.antolgy-media-experience--video .wp-video,
.antolgy-media-experience--video video {
	max-width: 100%;
}

.antolgy-persistent-player {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 10040;
	display: grid;
	grid-template-columns: auto minmax(8rem, auto) minmax(12rem, 1fr) auto;
	align-items: center;
	gap: 1rem;
	min-height: 66px;
	padding: 0.55rem 1.25rem;
	border-top: 1px solid rgba(57, 87, 80, 0.16);
	background: rgba(239, 246, 243, 0.7);
	backdrop-filter: blur(12px);
	direction: ltr;
}

.antolgy-persistent-player[hidden] {
	display: none !important;
}

.antolgy-persistent-player__toggle {
	appearance: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid rgba(67, 103, 96, 0.5);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.3);
	color: #41675f;
	cursor: pointer;
}

/* Pause icon (two bars) — default/playing state */
.antolgy-persistent-player__toggle span {
	display: flex;
	gap: 4px;
	width: auto;
	height: 0.68rem;
	margin: 0;
	background: transparent;
}

.antolgy-persistent-player__toggle span::before,
.antolgy-persistent-player__toggle span::after {
	content: '';
	display: block;
	width: 2px;
	height: 100%;
	background: currentColor;
}

/* Play icon (triangle) — paused state */
.antolgy-persistent-player:not(.is-playing) .antolgy-persistent-player__toggle span {
	width: 0;
	height: 0;
	gap: 0;
	border-top: 0.34rem solid transparent;
	border-bottom: 0.34rem solid transparent;
	border-left: 0.52rem solid currentColor;
}

.antolgy-persistent-player:not(.is-playing) .antolgy-persistent-player__toggle span::before,
.antolgy-persistent-player:not(.is-playing) .antolgy-persistent-player__toggle span::after {
	display: none;
}

.antolgy-persistent-player__meta {
	min-width: 0;
	font-family: 'Beiruti', sans-serif;
	direction: rtl;
	text-align: right;
}

.antolgy-persistent-player__title,
.antolgy-persistent-player__meta span {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.antolgy-persistent-player__title {
	color: #29463f;
	font-size: 0.85rem;
	font-weight: 500;
	text-decoration: none;
}

.antolgy-persistent-player__meta span {
	margin-top: 0.12rem;
	color: rgba(41, 70, 63, 0.62);
	font-size: 0.72rem;
	font-weight: 300;
}

.antolgy-persistent-player__wave {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1px;
	width: 100%;
	height: 42px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.antolgy-persistent-player__wave span {
	display: block;
	flex: 1 1 1px;
	min-width: 1px;
	max-width: 3px;
	height: var(--wave-height);
	max-height: 38px;
	background: rgba(67, 103, 96, 0.28);
	transition: background 120ms ease, transform 120ms ease;
}

.antolgy-persistent-player__wave span.is-played {
	background: rgba(67, 103, 96, 0.78);
}

.antolgy-persistent-player__dismiss {
	appearance: none;
	position: relative;
	z-index: 2;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 1px solid rgba(67, 103, 96, 0.25);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.32);
	color: rgba(41, 70, 63, 0.68);
	cursor: pointer;
	touch-action: manipulation;
}

.antolgy-persistent-player__dismiss span {
	display: block;
	font-size: 1.5rem;
	font-weight: 300;
	line-height: 1;
	transform: translateY(-1px);
}

.antolgy-persistent-player.is-playing .antolgy-persistent-player__wave span:nth-child(3n) {
	animation: antolgy-wave-pulse 900ms ease-in-out infinite alternate;
}

@keyframes antolgy-wave-pulse {
	to { transform: scaleY(0.72); }
}

.antolgy-media-showcase {
	padding: 4rem max(1.25rem, calc((100% - 76rem) / 2));
	background: #eaf1ee;
}

.antolgy-media-showcase__header p,
.antolgy-media-showcase__header h2 {
	margin: 0;
}

.antolgy-media-showcase__header p {
	color: #68726c;
	font-family: 'Beiruti', sans-serif;
	font-size: 0.82rem;
}

.antolgy-media-showcase__header h2 {
	margin-top: 0.25rem;
	color: #27332d;
	font-family: 'Beiruti', sans-serif;
	font-size: clamp(1.8rem, 3vw, 2.7rem);
	font-weight: 500;
}

.antolgy-media-showcase__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
	margin-top: 1.5rem;
}

.antolgy-media-showcase__item {
	min-width: 0;
}

.antolgy-media-showcase__item .antolgy-media-experience {
	margin-bottom: 0.75rem;
}

.antolgy-media-showcase__item--audio {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	gap: 0.8rem;
}

.antolgy-media-showcase__item--audio .antolgy-media-experience {
	margin: 0;
}

.antolgy-media-showcase__item h3 {
	margin: 0;
	font-family: 'Beiruti', sans-serif;
	font-size: 1rem;
	font-weight: 500;
}

.antolgy-media-showcase__item h3 a {
	color: #29463f;
	text-decoration: none;
}

@media (max-width: 640px) {
	.antolgy-persistent-player {
		grid-template-columns: auto minmax(0, 1fr) auto;
		gap: 0.75rem;
		padding-right: 1rem;
		padding-left: 1rem;
	}

	.antolgy-persistent-player__wave {
		grid-column: 1 / -1;
		grid-row: 2;
		height: 24px;
	}

	.antolgy-persistent-player__wave span {
		max-height: 22px;
	}

	.antolgy-media-showcase {
		padding-top: 3rem;
		padding-bottom: 3rem;
	}

	.antolgy-media-showcase__grid {
		grid-template-columns: 1fr;
	}
}
