.nlh-tts-player {
	--nlh-tts-accent: #111827;
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	flex-wrap: wrap;
	gap: 2px;
	width: fit-content;
	width: 100%;
	padding: 5px 10px;
	background: #f3f4f6;
	border: 1px solid var(--nlh-tts-accent);
	border-radius: 10px;
	font-family: inherit;
	margin: 5px 0;
	box-sizing: border-box;
	flex-direction: row;
}
.nlh-tts-player.nlh-tts--sticky {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	max-width: 100%;
	z-index: 9999;
	margin: 0;
	border-radius: 10px 10px 0 0;
	box-shadow: 0 -2px 10px rgba(0,0,0,0.12);
}
/* Nút Play/Pause */
.nlh-tts-playpause {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: var(--nlh-tts-accent);
	cursor: pointer;
	padding: 0;
	margin: 5px 5px;
}
.nlh-tts-playpause:hover {
	background: rgba(0,0,0,0.06);
}
.nlh-tts-icon {
	width: 12px;
	height: 12px;
	display: inline-block;
	position: relative;
}
.nlh-tts-icon-play {
	border-left: 11px solid currentColor;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	width: 0;
	height: 0;
	margin-left: 2px;
}
.nlh-tts-icon-pause {
	border-left: 4px solid currentColor;
	border-right: 4px solid currentColor;
	width: 12px;
	height: 14px;
	box-sizing: border-box;
}
/* Thanh tua - kéo dài chiếm phần lớn không gian */
.nlh-tts-seek {
	flex: 1 1 auto;
	min-width: 140px;
	-webkit-appearance: none;
	appearance: none;
	height: 4px;
	border-radius: 999px;
	background: #d1d5db;
	accent-color: var(--nlh-tts-accent);
	cursor: pointer;
	margin: 5px 5px;
}
.nlh-tts-seek::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--nlh-tts-accent);
	cursor: pointer;
}
.nlh-tts-seek::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border: none;
	border-radius: 50%;
	background: var(--nlh-tts-accent);
	cursor: pointer;
}
.nlh-tts-seek:disabled {
	opacity: 0.5;
	cursor: default;
}
/* Thời gian */
.nlh-tts-time {
	flex: 0 0 auto;
	font-size: 13px;
	font-variant-numeric: tabular-nums;
	color: #374151;
	min-width: 34px;
}
/* Dropdown tốc độ - thu nhỏ, không chiếm nhiều chỗ */
.nlh-tts-rate-select {
	flex: 0 0 auto;
	width: 50px;
	font-size: 12px;
	padding: 3px 4px;
	border-radius: 6px;
	border: 1px solid #d1d5db;
	background: #fff;
	color: #374151;
	cursor: pointer;
	margin: 5px 5px;
}
/* Nút âm lượng */
.nlh-tts-volume-btn {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: var(--nlh-tts-accent);
	cursor: pointer;
	padding: 0;
	margin: 5px 5px;
}
.nlh-tts-volume-btn:hover {
	background: rgba(0,0,0,0.06);
	color: #374151;
}
.nlh-tts-icon-volume {
	display: inline-flex;
}
/* Thanh chỉnh âm lượng - ngắn gọn */
.nlh-tts-volume-input {
	flex: 0 0 auto;
	width: 56px;
	-webkit-appearance: none;
	appearance: none;
	height: 4px;
	border-radius: 999px;
	background: #d1d5db;
	accent-color: var(--nlh-tts-accent);
	cursor: pointer;
	margin: 5px 5px;
}
.nlh-tts-volume-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--nlh-tts-accent);
	cursor: pointer;
}
.nlh-tts-volume-input::-moz-range-thumb {
	width: 10px;
	height: 10px;
	border: none;
	border-radius: 50%;
	background: var(--nlh-tts-accent);
	cursor: pointer;
}
.nlh-tts-status {
	position: absolute;
	top: 100%;
	left: 14px;
	margin-top: 4px;
	font-size: 12px;
	color: #6b7280;
	white-space: nowrap;
}
.nlh-tts-status:empty {
	display: none;
}
.nlh-tts-player.nlh-tts--unsupported .nlh-tts-playpause {
	opacity: 0.4;
	pointer-events: none;
}
@media (max-width: 480px) {
	.nlh-tts-player {
		flex-wrap: wrap;
		justify-content: space-between;
		border-radius: 10px;
	}
	.nlh-tts-seek {
		order: 4;
		flex-basis: 100%;
	}
}
