/**
 * Custom podcast audio player (single podcast pages only).
 * Visual style mirrors the Spotify episode card: purple gradient card with
 * cover art, episode meta, save link and transport controls.
 */

.podcast-player {
	display: flex;
	align-items: stretch;
	gap: 24px;
	padding: 16px;
	margin-bottom: 32px;
	border-radius: 20px;
	background: linear-gradient(135deg, #4d1fae 0%, #5b2bd6 55%, #6536e0 100%);
	color: #fff;
	box-shadow: 0 18px 40px rgba(33, 12, 84, 0.35);
}

.podcast-player__audio {
	display: none;
}

.podcast-player__cover {
	flex: 0 0 auto;
	width: 132px;
	height: 132px;
	border-radius: 14px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.08);
}

.podcast-player__cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.podcast-player__body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
}

.podcast-player__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.podcast-player__meta {
	min-width: 0;
}

.podcast-player__title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
}

.podcast-player__subtitle {
	margin-top: 4px;
	font-size: 15px;
	color: rgba(255, 255, 255, 0.72);
}

.podcast-player__brand {
	flex: 0 0 auto;
	color: #fff;
	line-height: 0;
	opacity: 0.95;
	transition: opacity 0.2s ease;
}

.podcast-player__brand:hover {
	opacity: 1;
}

.podcast-player__save {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	width: fit-content;
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.podcast-player__save:hover {
	color: #fff;
	opacity: 0.85;
}

.podcast-player__save svg {
	flex: 0 0 auto;
}

.podcast-player__controls {
	display: flex;
	align-items: center;
	gap: 16px;
}

.podcast-player__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	cursor: pointer;
	line-height: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.podcast-player__btn:hover {
	opacity: 0.8;
}

.podcast-player__progress {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	height: 18px;
	cursor: pointer;
	touch-action: none;
}

.podcast-player__track {
	position: relative;
	width: 100%;
	height: 4px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.25);
}

.podcast-player__fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	border-radius: 4px;
	background: #fff;
}

.podcast-player__handle {
	position: absolute;
	top: 50%;
	left: 0;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #fff;
	transform: translate(-50%, -50%);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.podcast-player__progress:hover .podcast-player__handle,
.podcast-player.is-scrubbing .podcast-player__handle {
	opacity: 1;
}

.podcast-player__time {
	flex: 0 0 auto;
	font-size: 15px;
	font-variant-numeric: tabular-nums;
	color: rgba(255, 255, 255, 0.85);
	min-width: 48px;
	text-align: center;
}

.podcast-player__play {
	flex: 0 0 auto;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #fff;
	color: #1c0d4a;
}

.podcast-player__play:hover {
	opacity: 1;
	transform: scale(1.04);
}

.podcast-player__play .podcast-player__icon-pause {
	display: none;
}

.podcast-player.is-playing .podcast-player__play .podcast-player__icon-play {
	display: none;
}

.podcast-player.is-playing .podcast-player__play .podcast-player__icon-pause {
	display: block;
}

@media (max-width: 575px) {
	.podcast-player {
		flex-direction: column;
		gap: 16px;
	}

	.podcast-player__cover {
		width: 96px;
		height: 96px;
	}

	.podcast-player__controls {
		gap: 12px;
	}

	.podcast-player__play {
		width: 48px;
		height: 48px;
	}
}
