/* Podcast Manager — styles front */
.jam-wrapper {
	--jam-accent: #e1000f;
	--jam-text: #1a1a1a;
	--jam-muted: #6b6b6b;
	--jam-border: #e6e6e6;
	--jam-bg-badge: #2b2b2b;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--jam-text);
	max-width: 900px;
	margin: 0 auto 90px;
	padding-bottom: 40px;
}

.jam-intro {
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: 32px;
}

.jam-empty {
	color: var(--jam-muted);
}

.jam-timeline {
	position: relative;
}

.jam-day-badge {
	display: inline-block;
	background: var(--jam-bg-badge);
	color: #fff;
	font-weight: 600;
	font-size: 15px;
	padding: 8px 16px;
	border-radius: 3px;
	margin: 36px 0 0 0;
}

.jam-day-line {
	border-left: 2px solid var(--jam-accent);
	margin-left: 24px;
	padding: 24px 0 4px 28px;
	display: flex;
	flex-direction: column;
	gap: 26px;
}

.jam-item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	position: relative;
}

.jam-play-btn {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid var(--jam-accent);
	background: #fff;
	color: var(--jam-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
	margin-left: -50px;
}

.jam-play-btn:hover {
	background: var(--jam-accent);
	color: #fff;
}

.jam-play-btn .jam-icon-pause {
	display: none;
}

.jam-item.is-playing .jam-play-btn .jam-icon-play {
	display: none;
}
.jam-item.is-playing .jam-play-btn .jam-icon-pause {
	display: inline;
}

.jam-item-info {
	flex: 1 1 auto;
}

.jam-item-title {
	font-weight: 700;
	font-size: 17px;
	margin: 0 0 4px 0;
	line-height: 1.35;
}

.jam-headphone {
	margin-right: 4px;
}

.jam-sous-titre {
	font-weight: 700;
}

.jam-item-meta {
	color: var(--jam-muted);
	font-size: 14px;
	margin: 0;
}

.jam-download {
	flex: 0 0 auto;
	width: 34px;
	height: 34px;
	border-radius: 3px;
	background: #f1f1f1;
	color: #555;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	font-size: 16px;
	margin-top: 4px;
}
.jam-download:hover {
	background: #e2e2e2;
}

/* Barre de lecture sticky */
.jam-sticky-player {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	background: #fff;
	border-top: 1px solid var(--jam-border, #e6e6e6);
	box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
	z-index: 9999;
	padding: 10px 20px 8px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.jam-sticky-player[hidden] {
	display: none;
}

.jam-sticky-inner {
	display: flex;
	align-items: center;
	gap: 12px;
	max-width: 1100px;
	margin: 0 auto;
}

.jam-sticky-time {
	font-size: 12px;
	color: #666;
	min-width: 38px;
	text-align: center;
}

.jam-seek {
	flex: 1 1 auto;
	accent-color: #e1000f;
}

.jam-sticky-controls {
	display: flex;
	align-items: center;
	gap: 14px;
}

.jam-sticky-controls button {
	background: none;
	border: none;
	cursor: pointer;
	color: #333;
	font-size: 16px;
	display: flex;
	align-items: center;
	gap: 2px;
}

.jam-sticky-playpause {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #e1000f !important;
	color: #fff !important;
	justify-content: center;
}

.jam-sticky-playpause .jam-icon-pause {
	display: none;
}
.jam-sticky-player.is-playing .jam-sticky-playpause .jam-icon-play {
	display: none;
}
.jam-sticky-player.is-playing .jam-sticky-playpause .jam-icon-pause {
	display: inline;
}

.jam-skip-back span,
.jam-skip-fwd span {
	font-size: 10px;
	margin-left: 1px;
}

.jam-sticky-title {
	max-width: 1100px;
	margin: 2px auto 0;
	font-size: 12px;
	color: #666;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

@media (max-width: 600px) {
	.jam-play-btn {
		margin-left: 0;
	}
	.jam-sticky-inner {
		flex-wrap: wrap;
	}
}
