/* KB Listen — byline-row pill + expanding player (NYT-style) */
.kb-listen {
	float: right;
	margin: 0 0 6px 16px;
	text-align: right;
	max-width: 320px;
}
.kb-listen-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #d6d6d6;
	border-radius: 999px;
	background: #fff;
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	color: #111;
	cursor: pointer;
}
.kb-listen-pill:hover {
	border-color: #999;
}
.kb-listen-mins {
	color: #767676;
	font-weight: 400;
}
.kb-listen-disc {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #111;
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}
/* Expanded player matches the pill's height exactly (1px border + 5px
   padding + 26px disc = 38px) so expanding never changes the byline row. */
.kb-listen-player {
	border: 1px solid #d6d6d6;
	border-radius: 999px;
	background: #fff;
	padding: 5px 12px 5px 6px;
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 280px;
	text-align: left;
}
.kb-listen-toggle {
	border: 0;
	background: none;
	padding: 0;
	cursor: pointer;
	line-height: 0;
}
.kb-listen-toggle .kb-listen-disc {
	width: 26px;
	height: 26px;
}
.kb-listen-track {
	flex: 1;
	min-width: 80px;
	display: flex;
	align-items: center;
}
.kb-listen-seek {
	width: 100%;
	height: 4px;
	-webkit-appearance: none;
	appearance: none;
	background: #e8e8e8;
	border-radius: 2px;
	outline: none;
	margin: 0;
}
.kb-listen-seek::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #111;
	cursor: pointer;
}
.kb-listen-seek::-moz-range-thumb {
	width: 12px;
	height: 12px;
	border: 0;
	border-radius: 50%;
	background: #111;
	cursor: pointer;
}
.kb-listen-times {
	font-size: 11px;
	color: #767676;
	line-height: 1;
	white-space: nowrap;
	font-variant-numeric: tabular-nums;
}
.kb-listen-rate {
	border: 1px solid #d6d6d6;
	border-radius: 999px;
	background: #fff;
	font-size: 11px;
	line-height: 1;
	padding: 4px 8px;
	color: #111;
	cursor: pointer;
}
.kb-listen.kb-listen-open .kb-listen-pill {
	display: none;
}
.meta-info:has(.kb-listen)::after {
	content: "";
	display: block;
	clear: both;
}
@media (max-width: 767px) {
	/* The pill sits first in the DOM so the desktop float can anchor to the
	   top of the byline row; on mobile (normal flow) flex order moves it
	   BELOW the author/date lines instead. */
	.meta-info:has(.kb-listen) {
		/* !important: the theme sets .meta-info { display: inline-block }
		   later in the cascade, which silently disabled the flex reorder. */
		display: flex !important;
		flex-direction: column;
	}
	.kb-listen {
		order: 99;
		float: none;
		margin: 12px 0 2px;
		text-align: left;
		max-width: none;
	}
	.kb-listen-player {
		min-width: 0;
		width: 100%;
		padding: 6px 14px 6px 8px;
		gap: 12px;
	}
}
