.podcraft-player {
	--pc-primary: #e63946;
	--pc-accent: #ffffff;
	--pc-bg: #121212;
	--pc-surface: #1e1e1e;
	--pc-text: #f2f2f2;
	--pc-text-muted: #a0a0a0;
	--pc-progress-track: #3a3a3a;
	--pc-live: #e63946;
	--pc-artwork-size: 160px;
	--pc-episode-artwork-size: 44px;
	--pc-control-size: 48px;
	--pc-radius: 16px;
	--pc-max-width: 720px;

	box-sizing: border-box;
	max-width: var(--pc-max-width);
	background: var(--pc-bg);
	color: var(--pc-text);
	border-radius: var(--pc-radius);
	padding: 20px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.podcraft-player *,
.podcraft-player *::before,
.podcraft-player *::after {
	box-sizing: border-box;
}

.podcraft-player__loading {
	color: var(--pc-text-muted);
	padding: 24px;
	text-align: center;
}

.podcraft-player__main {
	display: flex;
	gap: 20px;
	align-items: flex-start;
}

.podcraft-player__artwork-wrap {
	position: relative;
	flex: 0 0 auto;
}

.podcraft-player__artwork {
	width: var(--pc-artwork-size);
	height: var(--pc-artwork-size);
	object-fit: cover;
	border-radius: calc(var(--pc-radius) * 0.6);
	background: var(--pc-surface);
	display: block;
}

.podcraft-player__live {
	position: absolute;
	top: 8px;
	left: 8px;
	display: flex;
	align-items: center;
	gap: 5px;
	background: var(--pc-live);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 4px 9px 4px 7px;
	border-radius: 999px;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.podcraft-player__live-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #fff;
	animation: podcraft-live-pulse 1.4s ease-in-out infinite;
}

@keyframes podcraft-live-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.35; }
}

.podcraft-player__live.is-hidden {
	display: none;
}

.podcraft-player__info {
	flex: 1 1 auto;
	min-width: 0;
}

.podcraft-player__title {
	font-size: 17px;
	font-weight: 700;
	margin-bottom: 2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.podcraft-player__artist {
	font-size: 13px;
	color: var(--pc-text-muted);
	margin-bottom: 14px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.podcraft-player__controls {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 12px;
}

.podcraft-player__controls button {
	background: transparent;
	border: none;
	cursor: pointer;
	color: var(--pc-text);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}

.podcraft-player__play {
	width: var(--pc-control-size);
	height: var(--pc-control-size);
	background: var(--pc-primary) !important;
	color: #fff !important;
	border-radius: 50%;
}

.podcraft-player__prev,
.podcraft-player__next {
	width: calc(var(--pc-control-size) * 0.6);
	height: calc(var(--pc-control-size) * 0.6);
	color: var(--pc-text-muted) !important;
}

.podcraft-player__prev:hover,
.podcraft-player__next:hover {
	color: var(--pc-text) !important;
}

.podcraft-icon svg {
	width: 55%;
	height: 55%;
}

.podcraft-player__play .podcraft-icon svg {
	width: 42%;
	height: 42%;
}

.podcraft-player__prev .podcraft-icon svg,
.podcraft-player__next .podcraft-icon svg {
	width: 100%;
	height: 100%;
}

.podcraft-player__progress {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	color: var(--pc-text-muted);
	font-variant-numeric: tabular-nums;
}

.podcraft-player__progress-track {
	flex: 1 1 auto;
	height: 6px;
	background: var(--pc-progress-track);
	border-radius: 999px;
	cursor: pointer;
	position: relative;
}

.podcraft-player__progress-fill {
	height: 100%;
	width: 0%;
	background: var(--pc-primary);
	border-radius: 999px;
}

.podcraft-player__people {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.podcraft-player__person {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--pc-text-muted);
	text-decoration: none;
	background: var(--pc-surface);
	padding: 4px 10px 4px 4px;
	border-radius: 999px;
}

.podcraft-player__person-img {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	object-fit: cover;
}

.podcraft-player__location {
	margin-top: 8px;
	font-size: 12px;
	color: var(--pc-text-muted);
}

.podcraft-player__location a {
	color: var(--pc-text-muted);
	text-decoration: underline;
}

.podcraft-player__chapters,
.podcraft-player__transcript,
.podcraft-player__playlist-wrap {
	margin-top: 18px;
	border-top: 1px solid var(--pc-surface);
	padding-top: 14px;
}

.podcraft-player__chapters.is-hidden,
.podcraft-player__transcript.is-hidden,
.podcraft-player__playlist-wrap.is-hidden {
	display: none;
}

.podcraft-player h4 {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--pc-text-muted);
	margin: 0 0 10px;
}

.podcraft-player__chapters-list,
.podcraft-player__playlist {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 320px;
	overflow-y: auto;
}

.podcraft-player__chapter {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 6px;
	border-radius: 8px;
	cursor: pointer;
	font-size: 13px;
}

.podcraft-player__chapter:hover,
.podcraft-player__chapter.is-active {
	background: var(--pc-surface);
}

.podcraft-player__chapter img {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	object-fit: cover;
	flex: 0 0 auto;
}

.podcraft-player__chapter-time {
	color: var(--pc-primary);
	font-variant-numeric: tabular-nums;
	flex: 0 0 auto;
	font-weight: 600;
}

.podcraft-player__transcript-links {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.podcraft-player__transcript-links a {
	font-size: 12px;
	color: var(--pc-primary);
	text-decoration: none;
	border: 1px solid var(--pc-surface);
	padding: 3px 9px;
	border-radius: 999px;
}

.podcraft-player__transcript-content {
	max-height: 260px;
	overflow-y: auto;
	font-size: 13px;
	line-height: 1.6;
	color: var(--pc-text-muted);
}

.podcraft-player__transcript-content p {
	margin: 0 0 8px;
}

.podcraft-player__playlist-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 6px;
	border-radius: 8px;
	cursor: pointer;
}

.podcraft-player__playlist-item:hover,
.podcraft-player__playlist-item.is-active {
	background: var(--pc-surface);
}

.podcraft-player__playlist-item img {
	width: var(--pc-episode-artwork-size);
	height: var(--pc-episode-artwork-size);
	object-fit: cover;
	border-radius: 6px;
	flex: 0 0 auto;
	background: var(--pc-surface);
}

.podcraft-player__playlist-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.podcraft-player__playlist-title {
	font-size: 13px;
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.podcraft-player__playlist-date {
	font-size: 11px;
	color: var(--pc-text-muted);
}

@media (max-width: 480px) {
	.podcraft-player__main {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.podcraft-player__controls {
		justify-content: center;
	}
	.podcraft-player__people,
	.podcraft-player__location {
		justify-content: center;
	}
}
