/* 正文开头内嵌网易云播放器（横向极简条） */
.xn-gnp.xn-gnp--inline{
	position: relative;
	/* 低于 kehua_theme 固定顶栏 .kehua-header（z-index:100），避免滚动时歌单盖住导航 */
	z-index: 2;
	box-sizing: border-box;
	margin: 0 0 1rem;
	font-size: 14px;
	color: #444;
	background: #fff;
	border: 1px solid #e1e1e1;
	border-radius: 6px;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
	overflow: visible;
}
.xn-gnp.xn-gnp--inline .xn-gnp-inner{
	display: flex;
	align-items: stretch;
	gap: 0;
	min-height: 66px;
	height: 66px;
	box-sizing: border-box;
	overflow: visible;
}
.xn-gnp.xn-gnp--inline.xn-gnp--has-plist .xn-gnp-inner{
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
/* 多首：主条下方的内嵌歌单（与网易客户端列表风格接近） */
.xn-gnp.xn-gnp--inline .xn-gnp-plist{
	max-height: min(48vh, 360px);
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
	background: #fff;
	border-radius: 0 0 5px 5px;
	overscroll-behavior: contain;
}
/* 正文 .message/.kehua-article-body 对 ul/li 强制了圆点与 padding-left，须用更高优先级清零 */
.kehua-page-read .kehua-article-body .xn-gnp ul.xn-gnp-plist-list,
.kehua-read-main .kehua-article-body .xn-gnp ul.xn-gnp-plist-list,
.kehua-article-body .xn-gnp ul.xn-gnp-plist-list,
.message .xn-gnp ul.xn-gnp-plist-list,
.xn-gnp.xn-gnp--inline ul.xn-gnp-plist-list{
	list-style: none !important;
	list-style-type: none !important;
	margin: 0 !important;
	margin-left: 0 !important;
	padding: 4px 0 8px !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}
.kehua-page-read .kehua-article-body .xn-gnp li.xn-gnp-plist-item,
.kehua-read-main .kehua-article-body .xn-gnp li.xn-gnp-plist-item,
.kehua-article-body .xn-gnp li.xn-gnp-plist-item,
.message .xn-gnp li.xn-gnp-plist-item,
.xn-gnp.xn-gnp--inline li.xn-gnp-plist-item{
	list-style: none !important;
	list-style-type: none !important;
	display: flex !important;
	margin: 0 !important;
}
.xn-gnp.xn-gnp--inline .xn-gnp-plist-list li.xn-gnp-plist-item::marker{
	content: none;
	font-size: 0;
	line-height: 0;
}
.xn-gnp.xn-gnp--inline .xn-gnp-plist-item{
	position: relative;
	display: flex !important;
	align-items: center;
	gap: 12px;
	padding: 8px 12px 8px 10px;
	margin: 0 !important;
	box-sizing: border-box;
	min-height: 56px;
}
.xn-gnp.xn-gnp--inline .xn-gnp-plist-item:hover{
	background: rgba(0, 0, 0, 0.03);
}
.xn-gnp.xn-gnp--inline .xn-gnp-plist-hit{
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 0;
	background: transparent;
	cursor: pointer;
}
.xn-gnp.xn-gnp--inline .xn-gnp-plist-cover{
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 6px;
	object-fit: cover;
	background: #eee;
	pointer-events: none;
}
.xn-gnp.xn-gnp--inline .xn-gnp-plist-cover--ph{
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 6px;
	background: linear-gradient(135deg, #e8e8e8, #f2f2f2);
	pointer-events: none;
}
.xn-gnp.xn-gnp--inline .xn-gnp-plist-mid{
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: center;
	gap: 8px;
	pointer-events: none;
}
.xn-gnp.xn-gnp--inline .xn-gnp-plist-lines{
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.xn-gnp.xn-gnp--inline .xn-gnp-plist-title{
	font-size: 14px;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
}
.xn-gnp.xn-gnp--inline .xn-gnp-plist-artist{
	font-size: 12px;
	font-weight: 400;
	color: #888;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
}
.xn-gnp-plist-item.is-current .xn-gnp-plist-title,
.xn-gnp.xn-gnp--inline .xn-gnp-plist-item.is-current .xn-gnp-plist-artist{
	color: #6b3d3d;
}
.xn-gnp.xn-gnp--inline .xn-gnp-plist-eq{
	flex: 0 0 auto;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	width: 14px;
	height: 12px;
	color: #c62828;
	opacity: 0;
}
.xn-gnp.xn-gnp--inline .xn-gnp-plist-item.is-current .xn-gnp-plist-eq{
	opacity: 1;
}
.xn-gnp.xn-gnp--inline .xn-gnp-plist-eq-svg{
	display: block;
}
@keyframes xn-gnp-eq-bar {
	0%,
	100% {
		transform: scaleY(0.35);
	}
	50% {
		transform: scaleY(1);
	}
}
.xn-gnp.xn-gnp--inline.is-playing .xn-gnp-plist-item.is-current .xn-gnp-plist-eq-b1{
	animation: xn-gnp-eq-bar 0.52s ease-in-out infinite;
	transform-origin: center bottom;
}
.xn-gnp.xn-gnp--inline.is-playing .xn-gnp-plist-item.is-current .xn-gnp-plist-eq-b2{
	animation: xn-gnp-eq-bar 0.42s ease-in-out 0.1s infinite;
	transform-origin: center bottom;
}
.xn-gnp.xn-gnp--inline.is-playing .xn-gnp-plist-item.is-current .xn-gnp-plist-eq-b3{
	animation: xn-gnp-eq-bar 0.48s ease-in-out 0.05s infinite;
	transform-origin: center bottom;
}
.xn-gnp.xn-gnp--inline .xn-gnp-plist-tail{
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 10px;
	z-index: 2;
	position: relative;
}
.xn-gnp.xn-gnp--inline .xn-gnp-plist-dur{
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	color: #b0b0b0;
	min-width: 3.1em;
	text-align: right;
}
.xn-gnp.xn-gnp--inline .xn-gnp-plist-item.is-current .xn-gnp-plist-dur{
	color: #9a7575;
}
.xn-gnp.xn-gnp--inline .xn-gnp-plist-heart{
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	border-radius: 4px;
	opacity: 0.42;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23777' stroke-width='1.65' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21C12 21 4 15.5 4 10.5C4 7.42 6.24 5 9 5c1.74 0 3.28.95 4 2.05A4.98 4.98 0 0 1 15 5c2.76 0 5 2.42 5 5.5C20 15.5 12 21 12 21z'/%3E%3C/svg%3E")
		center/17px 17px no-repeat;
}
.xn-gnp.xn-gnp--inline .xn-gnp-plist-heart:hover{
	opacity: 0.85;
	background-color: rgba(0, 0, 0, 0.05);
}
.xn-gnp.xn-gnp--inline .xn-gnp-cover-wrap{
	position: relative;
	flex: 0 0 auto;
	width: 66px;
	min-width: 66px;
	height: 66px;
	align-self: stretch;
	background: #eee;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	border-radius: 5px 0 0 5px;
	overflow: hidden;
}
.xn-gnp.xn-gnp--inline .xn-gnp-cover-wrap > a[data-fancybox]{
	display: block;
	width: 100%;
	height: 100%;
}
.xn-gnp.xn-gnp--inline .xn-gnp-cover-img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	vertical-align: top;
}
.xn-gnp.xn-gnp--inline .xn-gnp-play{
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	box-sizing: border-box;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 2px solid rgba(255, 255, 255, 0.95);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.22);
	cursor: pointer;
	touch-action: manipulation;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.xn-gnp.xn-gnp--inline .xn-gnp-play:hover{
	background: rgba(0, 0, 0, 0.32);
}
.xn-gnp.xn-gnp--inline .xn-gnp-play:focus-visible{
	outline: 2px solid #a68b8b;
	outline-offset: 2px;
}
.xn-gnp.xn-gnp--inline .xn-gnp-play::after{
	content: '';
	position: absolute;
	left: 52%;
	top: 50%;
	transform: translate(-40%, -50%);
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 7px 0 7px 11px;
	border-color: transparent transparent transparent #fff;
	pointer-events: none;
}
.xn-gnp.xn-gnp--inline.is-playing .xn-gnp-play::after{
	width: 9px;
	height: 11px;
	border: none;
	transform: translate(-50%, -50%);
	background: linear-gradient(
		90deg,
		#fff 0 28%,
		transparent 28% 72%,
		#fff 72% 100%
	);
}
.xn-gnp.xn-gnp--inline .xn-gnp-main{
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	padding: 10px 12px 6px 14px;
	overflow: visible;
}
.xn-gnp.xn-gnp--inline .xn-gnp-line{
	font-size: 13px;
	line-height: 1.35;
	color: #3a3a3a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	flex-shrink: 0;
	margin-top: 1px;
}
.xn-gnp.xn-gnp--inline .xn-gnp-seek-row{
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-width: 0;
	flex: 0 0 auto;
	overflow: visible;
}
.xn-gnp.xn-gnp--inline .xn-gnp-seek{
	flex: 1 1 auto;
	min-width: 0;
	display: block;
}
.xn-gnp.xn-gnp--inline .xn-gnp-track{
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 18px;
	padding: 0;
	cursor: pointer;
	box-sizing: border-box;
}
.xn-gnp.xn-gnp--inline .xn-gnp-track-rail{
	position: relative;
	width: 100%;
	height: 3px;
	background: #e5e5e5;
	border-radius: 2px;
	flex: 1 1 auto;
	align-self: center;
}
.xn-gnp.xn-gnp--inline .xn-gnp-track-fill{
	height: 100%;
	width: 0;
	background: #a68b8b;
	border-radius: 2px;
	pointer-events: none;
}
.xn-gnp.xn-gnp--inline .xn-gnp-track-thumb{
	position: absolute;
	top: 50%;
	left: 0;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #c8c8c8;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.9);
	pointer-events: none;
	transform: translate(-50%, -50%);
}
.xn-gnp.xn-gnp--inline .xn-gnp-time{
	font-size: 11px;
	line-height: 1;
	color: #9a9a9a;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
	flex: 0 0 auto;
}
.xn-gnp.xn-gnp--inline .xn-gnp-tools{
	display: flex;
	align-items: center;
	align-content: center;
	gap: 0;
	flex-shrink: 0;
	overflow: visible;
}
.xn-gnp.xn-gnp--inline .xn-gnp-tools .xn-gnp-vol-wrap{
	position: relative;
	overflow: visible;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 32px;
	width: 32px;
	height: 32px;
	align-self: center;
	box-sizing: border-box;
}
.xn-gnp.xn-gnp--inline .xn-gnp-tools .xn-gnp-loop{
	position: relative;
	z-index: 1;
	align-self: center;
}
.xn-gnp.xn-gnp--inline .xn-gnp-loop{
	width: 32px;
	height: 32px;
	min-width: 32px;
	padding: 0;
	border: none;
	-webkit-appearance: none;
	appearance: none;
	background-color: transparent;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='1.8'%3E%3Cpath d='M17 3l4 4-4 4M3 11V9a4 4 0 0 1 4-4h14M7 21l-4-4 4-4M21 13v2a4 4 0 0 1-4 4H3'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 20px 20px;
	cursor: pointer;
	opacity: 0.8;
	border-radius: 4px;
	position: relative;
	box-sizing: border-box;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	margin: 0;
	vertical-align: middle;
}
.xn-gnp.xn-gnp--inline .xn-gnp-loop:hover{
	opacity: 1;
	background-color: rgba(0, 0, 0, 0.05);
}
.xn-gnp.xn-gnp--inline .xn-gnp-loop.is-on{
	opacity: 1;
}
.xn-gnp.xn-gnp--inline .xn-gnp-loop.is-on.is-single::after{
	content: '1';
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -54%);
	font-size: 8px;
	font-weight: 700;
	line-height: 1;
	color: #888;
	pointer-events: none;
	font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'PingFang SC', sans-serif;
}
.xn-gnp.xn-gnp--inline .xn-gnp-vol{
	width: 32px;
	height: 32px;
	min-width: 32px;
	padding: 0;
	margin: 0;
	border: none;
	-webkit-appearance: none;
	appearance: none;
	box-sizing: border-box;
	overflow: visible;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='1.85' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 5 6 9H3v6h3l5 4V5z'/%3E%3Cpath d='M15.54 8.46a5 5 0 0 1 0 7.07'/%3E%3Cpath d='M19.07 4.93a10 10 0 0 1 0 14.14'/%3E%3C/svg%3E")
		center/20px 20px no-repeat;
	cursor: pointer;
	opacity: 0.75;
	border-radius: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	font-size: 0;
	vertical-align: middle;
}
.xn-gnp.xn-gnp--inline .xn-gnp-vol:hover{
	opacity: 1;
	background-color: rgba(0, 0, 0, 0.05);
}
.xn-gnp.xn-gnp--inline.is-muted .xn-gnp-vol{
	opacity: 0.4;
}
.xn-gnp.xn-gnp--inline .xn-gnp-vol-pop{
	display: none;
/* 由 JS 设为 position:fixed，避免被正文 overflow 裁剪 */
	position: absolute;
	bottom: 100%;
	top: auto;
	right: 0;
	margin-bottom: 6px;
	margin-top: 0;
	padding: 16px 5px;
	min-width: 0;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.07);
	border-radius: 999px;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.03);
	/* 覆盖 JS 内联 10070；仍高于正文，但低于 .kehua-header（100） */
	z-index: 99 !important;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}
.xn-gnp.xn-gnp--inline .xn-gnp-vol-pop.is-open{
	display: flex;
}
/* 窄槽 + 水平 range 旋转 90°：轨道可做到 1px 且拇指与轨道严格居中对齐（WebKit 竖向原生滑块易错位） */
.xn-gnp.xn-gnp--inline .xn-gnp-vol-range-slot{
	position: relative;
	width: 18px;
	height: 100px;
	flex-shrink: 0;
	overflow: visible;
}
.xn-gnp.xn-gnp--inline .xn-gnp-vol-range{
	--xn-vol-pct: 100;
	position: absolute;
	left: 50%;
	top: 50%;
	width: 96px;
	height: 18px;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	cursor: pointer;
	transform: translate(-50%, -50%) rotate(-90deg);
	transform-origin: center center;
	accent-color: #3d3d3d;
	touch-action: none;
}
.xn-gnp.xn-gnp--inline .xn-gnp-vol-range:focus{
	outline: none;
}
.xn-gnp.xn-gnp--inline .xn-gnp-vol-range:focus-visible{
	outline: 2px solid rgba(61, 61, 61, 0.35);
	outline-offset: 2px;
}
.xn-gnp.xn-gnp--inline .xn-gnp-vol-range::-webkit-slider-thumb{
	-webkit-appearance: none;
	appearance: none;
	width: 9px;
	height: 9px;
	margin-top: -4px;
	border-radius: 50%;
	background: #1a1a1a;
	border: none;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.xn-gnp.xn-gnp--inline .xn-gnp-vol-range::-webkit-slider-runnable-track{
	-webkit-appearance: none;
	appearance: none;
	height: 1px;
	border-radius: 0.5px;
	border: none;
	background: linear-gradient(
		to right,
		#3d3d3d 0%,
		#3d3d3d calc(var(--xn-vol-pct) * 1%),
		#e8e8e8 calc(var(--xn-vol-pct) * 1%),
		#e8e8e8 100%
	);
}
.xn-gnp.xn-gnp--inline .xn-gnp-vol-range::-moz-range-thumb{
	width: 9px;
	height: 9px;
	border: none;
	border-radius: 50%;
	background: #1a1a1a;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.xn-gnp.xn-gnp--inline .xn-gnp-vol-range::-moz-range-track{
	height: 1px;
	background: #e8e8e8;
	border-radius: 0.5px;
	border: none;
}
.xn-gnp.xn-gnp--inline .xn-gnp-vol-range::-moz-range-progress{
	height: 1px;
	background: #3d3d3d;
	border-radius: 0.5px;
}

/* 小屏：内嵌播放器略紧凑 */
@media (max-width: 768px) {
	.xn-gnp.xn-gnp--inline{
		margin-bottom: 0.85rem;
	}
	.xn-gnp.xn-gnp--inline .xn-gnp-inner{
		min-height: 66px;
		height: 66px;
	}
	.xn-gnp.xn-gnp--inline .xn-gnp-cover-wrap{
		width: 66px;
		min-width: 66px;
		height: 66px;
	}
	.xn-gnp.xn-gnp--inline .xn-gnp-main{
		padding: 9px 8px 5px 10px;
		gap: 4px;
	}
	.xn-gnp.xn-gnp--inline .xn-gnp-line{
		font-size: 12px;
	}
	.xn-gnp.xn-gnp--inline .xn-gnp-seek-row{
		gap: 6px;
	}
	.xn-gnp.xn-gnp--inline .xn-gnp-time{
		font-size: 10px;
	}
	.xn-gnp.xn-gnp--inline .xn-gnp-tools .xn-gnp-vol-wrap{
		flex-basis: 28px;
		width: 28px;
		height: 28px;
	}
	.xn-gnp-vol,
	.xn-gnp.xn-gnp--inline .xn-gnp-loop{
		width: 28px;
		height: 28px;
		min-width: 28px;
	}
	.xn-gnp.xn-gnp--inline .xn-gnp-loop{
		background-size: 18px 18px;
	}
	.xn-gnp.xn-gnp--inline .xn-gnp-vol{
		background-size: 18px 18px;
	}
	.xn-gnp.xn-gnp--inline .xn-gnp-plist-item{
		padding: 7px 10px 7px 8px;
		gap: 10px;
		min-height: 52px;
	}
	.xn-gnp-plist-cover,
	.xn-gnp.xn-gnp--inline .xn-gnp-plist-cover--ph{
		width: 40px;
		height: 40px;
		border-radius: 5px;
	}
	.xn-gnp.xn-gnp--inline .xn-gnp-plist-title{
		font-size: 13px;
	}
	.xn-gnp.xn-gnp--inline .xn-gnp-plist-artist{
		font-size: 11px;
	}
}
