.live-play .live-play__is-hidden,
.live-play .mac-hide {
	display: none !important
}

body.live-play-body {
	box-sizing: border-box;
	display: block;
	background: var(--tpl-bg-muted);
	min-height: 100vh
}

body.bstem.live-play-body {
	background: #000
}

body.live-play-body>#live_play_page {
	display: block;
	width: 100%
}

body.live-play-body>.foot {
	flex-shrink: 0
}

@media screen and (max-width:819px) {

	body#livePlayPage #topnav .head_box.show-pc,
	body.live-play-body #topnav .head_box.show-pc {
		display: none !important
	}
}

.live-play {
	background: transparent;
	color: var(--tpl-text);
	min-height: 0
}

.live_title {
	color: var(--tpl-text-strong);
	font-size: 20px;
	font-weight: 700;
	line-height: 28px;
	margin: 0 0 10px
}

.live_title a {
	color: inherit
}

.live-play__intro {
	color: var(--tpl-text);
	font-size: 14px;
	line-height: 24px
}

.live-play__intro p {
	margin: 0
}

.live-play__toolbar {
	align-items: center;
	background: #000;
	border-radius: 6px 6px 0 0;
	display: flex;
	justify-content: flex-end;
	padding: 6px 8px
}

.live-play__toggle {
	background: rgba(255, 255, 255, .08);
	border: 1px solid hsla(0, 0%, 100%, .14);
	border-radius: 4px;
	color: #fff;
	cursor: pointer;
	font-size: 13px;
	line-height: 1.2;
	padding: 6px 14px;
	transition: background .2s ease, border-color .2s ease
}

.live-play__toggle:hover {
	background: rgba(255, 255, 255, .14);
	border-color: hsla(0, 0%, 100%, .22)
}

.live-play__main {
	background: #000;
	border-radius: 6px;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden
}

.live-play__sidebar {
	background: #202026;
	border-radius: 6px;
	display: flex;
	flex-direction: column;
	min-height: 0;
	overflow: hidden
}

.live-play__layout {
	box-sizing: border-box;
	display: block;
	gap: 0;
	width: 100%
}

.live-play__main {
	background: #000;
	min-width: 0
}

.live-play__player-wrap {
	background: #000;
	border-radius: 0;
	overflow: hidden;
	position: relative
}

.live-play__dplayer {
	background: #000;
	left: 0;
	position: absolute;
	top: 0
}

.live-play__dplayer,
.live-play__dplayer .dplayer,
.live-play__dplayer .dplayer-video,
.live-play__dplayer .dplayer-video-wrap {
	height: 100%;
	width: 100%
}

.live-play__player-fail {
	align-items: center;
	background: rgba(0, 0, 0, .72);
	color: var(--tpl-text-on-inverse);
	display: flex;
	flex-direction: column;
	gap: 12px;
	inset: 0;
	justify-content: center;
	padding: 16px;
	position: absolute;
	text-align: center;
	z-index: 10
}

.live-play__btn {
	border-radius: 24px
}

.live-play__btn--primary,
.live-play__line.is-active {
	background: var(--tpl-accent);
	border: none;
	color: var(--tpl-text-on-inverse)
}

.live-play__line.is-active {
	border-radius: 4px
}

.live-play__btn {
	cursor: pointer;
	min-height: 40px;
	padding: 8px 20px
}

.live-play__sidebar {
	--live-panel-bg: #202026;
	--live-panel-surface: #2a2a32;
	--live-panel-text: #fff;
	--live-panel-text-muted: #999;
	--live-panel-divider: hsla(0, 0%, 100%, .08);
	background: #202026;
	border-top: 1px solid var(--live-panel-divider);
	color: var(--live-panel-text-muted);
	display: flex;
	flex-direction: column;
	min-width: 0
}

.live-play__meta {
	background: #202026;
	border-bottom: 1px solid var(--live-panel-divider);
	flex-shrink: 0;
	margin: 0;
	padding: 14px 14px 12px
}

.live-play__title {
	color: var(--live-panel-text);
	font-size: 17px;
	font-weight: 600;
	line-height: 24px;
	margin: 0 0 8px
}

.live-play__lines-bar {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 10px;
	margin-bottom: 6px
}

.live-play__lines-label {
	color: var(--live-panel-text-muted);
	flex-shrink: 0;
	font-size: 13px;
	line-height: 20px
}

.live-play__refresh-hint {
	align-items: center;
	background: rgba(0, 0, 0, .2);
	border: 1px solid hsla(0, 0%, 100%, .1);
	border-radius: 11px;
	box-sizing: border-box;
	color: var(--live-panel-text-muted, #999);
	cursor: pointer;
	display: inline-flex;
	flex: 0 1 auto;
	font-size: 12px;
	gap: 4px;
	justify-content: center;
	line-height: 1.2;
	margin: 0;
	max-width: 100%;
	min-height: 22px;
	padding: 4px 10px;
	text-decoration: none;
	transition: border-color .2s ease, color .2s ease, opacity .2s ease;
	white-space: nowrap
}

.live-play__refresh-hint-icon {
	flex: 0 0 14px;
	height: 14px;
	object-fit: contain;
	pointer-events: none;
	width: 14px
}

.live-play__refresh-hint-text {
	flex: 0 1 auto;
	font-size: 12px;
	line-height: 1.2
}

.live-play__refresh-hint:focus-visible,
.live-play__refresh-hint:hover {
	border-color: hsla(0, 0%, 100%, .18);
	color: var(--live-panel-text, #fff)
}

.live-play__lines {
	display: flex;
	flex-wrap: wrap;
	gap: 6px
}

.live-play__line {
	background: var(--live-panel-surface, #2a2a32);
	border: 1px solid transparent;
	border-radius: 4px;
	color: var(--live-panel-text-muted, #999);
	cursor: pointer;
	font-size: 13px;
	min-height: 32px;
	padding: 6px 14px
}

.live-play__picker {
	background: #202026;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-height: 0;
	min-width: 0;
	overflow: hidden;
	padding: 12px 14px 16px
}

.live-play__picker-title {
	color: var(--live-panel-text, #fff);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .02em;
	line-height: 20px;
	margin: 0 0 8px
}

.live-play__tabs {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	margin-bottom: 8px;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	flex-shrink: 0;
	max-width: 100%;
	min-width: 0;
	padding-bottom: 2px
}

.live-play__tabs::-webkit-scrollbar {
	display: none
}

.live-play__tab {
	background: var(--live-panel-surface, #2a2a32);
	border: 1px solid transparent;
	border-radius: 4px;
	color: var(--live-panel-text-muted, #999);
	cursor: pointer;
	flex: 0 0 auto;
	font-size: 13px;
	min-height: 32px;
	padding: 6px 14px;
	white-space: nowrap
}

.live-play__tab.is-active {
	background: var(--tpl-accent);
	border-color: var(--tpl-accent);
	color: #fff
}

.live-play__channel-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	list-style: none;
	margin: 0;
	max-height: min(42vh, 360px);
	overflow-x: hidden;
	overflow-y: auto;
	padding: 0 4px 0 0;
	-webkit-overflow-scrolling: touch;
	scrollbar-color: #31313a #202026;
	scrollbar-width: thin
}

.live-play__channel-list::-webkit-scrollbar {
	background-color: #202026;
	height: 4px;
	width: 4px
}

.live-play__channel-list::-webkit-scrollbar-track {
	background-color: #202026;
	border-radius: 4px
}

.live-play__channel-list::-webkit-scrollbar-thumb {
	background-color: #31313a;
	border-radius: 4px
}

.live-play__channel-list::-webkit-scrollbar-thumb:hover {
	background-color: #3d3d48
}

.live-play__channel-list::-webkit-scrollbar-thumb:active {
	background-color: var(--tpl-accent, #40cc92)
}

.live-play__channel {
	margin: 0
}

.live-play__channel-btn {
	align-items: center;
	background: var(--live-panel-surface, #2a2a32);
	border: 1px solid transparent;
	border-radius: 8px;
	color: var(--live-panel-text, #fff);
	cursor: pointer;
	display: flex;
	gap: 10px;
	min-height: 52px;
	padding: 8px 12px;
	text-align: left;
	transition: border-color .2s ease, background .2s ease;
	width: 100%
}

.live-play__channel.is-active .live-play__channel-btn {
	background: rgba(64, 204, 146, .12);
	border: 1px solid rgba(64, 204, 146, .5)
}

.live-play__channel-logo {
	align-items: center;
	background: #fff;
	border-radius: 6px;
	display: flex;
	flex: 0 0 40px;
	height: 40px;
	justify-content: center;
	overflow: hidden;
	width: 40px
}

.live-play__channel-logo img {
	max-height: 100%;
	max-width: 100%;
	object-fit: contain
}

.live-play__channel-name {
	flex: 1;
	font-size: 14px;
	line-height: 20px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap
}

.live-play__channel-badge {
	align-items: center;
	color: var(--tpl-accent);
	display: inline-flex;
	flex: 0 0 auto;
	font-size: 12px;
	gap: 4px
}

.live-play__channel-badge:before {
	background: var(--tpl-accent);
	border-radius: 50%;
	content: "";
	height: 6px;
	width: 6px
}

@media (min-width:821px) {
	.live-play__layout {
		display: grid;
		gap: 12px;
		grid-template-columns: minmax(0, 1fr) 320px;
		align-items: start;
		width: 100%
	}

	.live-play__layout.is-collapsed {
		grid-template-columns: minmax(0, 1fr)
	}

	.live-play__layout.is-collapsed .live-play__sidebar {
		display: none
	}

	.live-play__main {
		background: #000;
		border-radius: 6px;
		display: flex;
		flex-direction: column;
		min-width: 0;
		overflow: hidden
	}

	.live-play__player-wrap.embed-responsive {
		border-radius: 0;
		flex: 0 0 auto;
		height: auto;
		min-height: 0;
		padding-bottom: 56.25% !important;
		width: 100%
	}

	.live-play__player-wrap .live-play__dplayer {
		height: 100%;
		left: 0;
		position: absolute;
		top: 0;
		width: 100%
	}

	.live-play__sidebar {
		background: #202026;
		border-radius: 6px;
		display: flex;
		flex-direction: column;
		min-height: 0;
		overflow: hidden
	}

	.live-play__meta {
		padding: 16px 16px 14px
	}

	.live-play__title {
		font-size: 18px;
		line-height: 26px;
		margin-bottom: 10px
	}

	.live-play__lines-bar {
		margin-bottom: 8px
	}

	.live-play__picker {
		flex: 1 1 auto;
		min-height: 0;
		padding: 14px 16px 16px
	}

	.live-play__picker-title {
		margin-bottom: 10px
	}

	.live-play__channel-list {
		flex: 1 1 auto;
		max-height: none;
		min-height: 0;
		overflow-y: auto;
		padding-right: 6px
	}
}

@media (max-width:820px) {
	.live-play__layout {
		min-height: 0;
		padding-bottom: 0
	}
}

@media (max-width:820px) {
	.live-play__layout {
		min-height: calc(100vh - var(--site-head-mobile-body-pad-single));
		padding-bottom: env(safe-area-inset-bottom, 0)
	}
}

/* 选台器：服务端渲染的标签映射（分类tab + 频道面板），链接为原生 <a> */
.live-play__tab,
.live-play__channel-btn {
	text-decoration: none
}

.live-play__channel-btn {
	color: var(--live-panel-text, #fff)
}

.live-play__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center
}

.live-play__panel {
	margin: 0
}