.lra-player-card {
	background: #faf7f2;
	border: 1px solid #e3dcd0;
	border-radius: 10px;
	padding: 14px 18px;
	margin: 20px 0 24px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #292524;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.lra-player-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.lra-title {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: #78716c;
	display: flex;
	align-items: center;
	gap: 8px;
}

.lra-controls {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.lra-player-card .lra-btn,
.lra-sticky-bar .lra-btn {
	background: #ffffff;
	border: 1px solid #d6cfc3;
	border-radius: 6px;
	color: #292524;
	cursor: pointer;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	padding: 6px 10px;
	margin: 0;
	min-height: 0;
	line-height: 1.2;
	box-shadow: none;
	white-space: nowrap;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.lra-player-card .lra-btn:hover:not(:disabled),
.lra-sticky-bar .lra-btn:hover:not(:disabled) {
	background: #f3ede3;
	border-color: #b8ae9f;
	color: #292524;
}

.lra-player-card .lra-btn:disabled,
.lra-sticky-bar .lra-btn:disabled {
	opacity: 0.4;
	cursor: default;
}

.lra-player-card .lra-btn-play,
.lra-sticky-bar .lra-btn-play {
	background: #292524;
	border-color: #292524;
	color: #ffffff;
	padding: 6px 14px;
	font-weight: 700;
	border-radius: 999px;
}

.lra-player-card .lra-btn-play:hover:not(:disabled),
.lra-sticky-bar .lra-btn-play:hover:not(:disabled) {
	background: #44403c;
	border-color: #44403c;
	color: #ffffff;
}

.lra-player-card .lra-btn-toggle.is-on,
.lra-sticky-bar .lra-btn-toggle.is-on {
	background: #fef3c7;
	border-color: #d97706;
	color: #92400e;
}

@media only screen and (max-width: 640px) {
	.lra-player-card {
		padding: 10px 12px;
		margin: 14px 0 18px;
	}
	.lra-player-top {
		gap: 8px;
		margin-bottom: 8px;
	}
	.lra-title {
		font-size: 11px;
	}
	.lra-controls {
		gap: 5px;
	}
	.lra-player-card .lra-btn,
	.lra-sticky-bar .lra-btn {
		font-size: 11.5px;
		padding: 5px 8px;
	}
	.lra-player-card .lra-btn-play,
	.lra-sticky-bar .lra-btn-play {
		padding: 5px 12px;
	}
	.lra-hint {
		display: none;
	}
	.lra-sticky-bar {
		bottom: 8px;
		width: calc(100vw - 16px);
		padding: 8px 10px;
	}
}

.lra-progress-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.lra-scrubber {
	flex: 1;
	accent-color: #b45309;
	cursor: pointer;
	height: 6px;
}

.lra-time {
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	color: #57534e;
	min-width: 82px;
	text-align: right;
}

.lra-hint {
	margin-top: 8px;
	font-size: 12px;
	color: #78716c;
}

/* Sticky mini-bar when scrolling */
.lra-sticky-bar {
	position: fixed;
	bottom: 16px;
	left: 50%;
	transform: translateX(-50%);
	width: min(680px, calc(100vw - 24px));
	background: rgba(250, 247, 242, 0.96);
	backdrop-filter: blur(8px);
	border: 1px solid #d6cfc3;
	border-radius: 12px;
	padding: 10px 14px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
	z-index: 9999;
	display: none;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.lra-sticky-bar.is-visible {
	display: block;
}

/* Read-along sentence highlighting */
.lra-sentence {
	cursor: pointer;
	border-radius: 3px;
	transition: background-color 0.18s ease, box-shadow 0.18s ease;
}

.lra-sentence:hover {
	background-color: rgba(217, 119, 6, 0.08);
}

.lra-sentence.lra-active {
	background-color: rgba(217, 119, 6, 0.18);
	box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.18);
}

/* Hide legacy PowerPress player when Read-Along stylesheet is loaded */
.powerpress_player,
.powerpress_links,
.powerpress_embed_box {
	display: none !important;
}
