.live-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: #000;
}

.live-play-body #header {
	margin-bottom: 0;
}

.live-play-body #header::after {
	display: none;
}

.live-page #main {
	flex: 1 0 auto;
	width: 100%;
	background: #000;
}

.live-play-body #main.wrapper,
.live-play-body .live-play {
	margin-top: 0;
	padding-top: 0;
}

.live-play .mac-hide {
	display: none !important;
}

.live-play {
	min-height: 0;
	background: #000;
	color: #fff;
}

.live-play__layout {
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
	min-height: 100%;
	margin: 0 auto;
	background: #000;
	box-sizing: border-box;
}

.live-play__main {
	min-width: 0;
	background: #000;
}

.live-play__player-wrap {
	position: relative;
	overflow: hidden;
	border-radius: 0;
	background: #000;
}

.live-play__dplayer {
	position: absolute;
	top: 0;
	left: 0;
	background: #000;
}

.live-play__dplayer,
.live-play__dplayer .dplayer,
.live-play__dplayer .dplayer-video,
.live-play__dplayer .dplayer-video-wrap,
.live-play__dplayer video,
.live-play__dplayer iframe {
	width: 100%;
	height: 100%;
	border: 0;
}

.live-play__player-fail {
	position: absolute;
	inset: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	background: rgba(0, 0, 0, .72);
	color: #fff;
	text-align: center;
}

.live-play__btn {
	min-height: 40px;
	padding: 8px 20px;
	border: 0;
	border-radius: 24px;
	cursor: pointer;
}

.live-play__btn--primary,
.live-play__line.is-active {
	background: #ff2a14;
	color: #fff;
}

.live-play__sidebar {
	--live-panel-bg: #202026;
	--live-panel-surface: #2a2a32;
	--live-panel-text: #fff;
	--live-panel-text-muted: #999;
	--live-panel-divider: rgba(255, 255, 255, .08);
	display: flex;
	flex-direction: column;
	min-width: 0;
	background: var(--live-panel-bg);
	border-top: 1px solid var(--live-panel-divider);
	color: var(--live-panel-text-muted);
}

.live-play__meta {
	flex-shrink: 0;
	margin: 0;
	padding: 14px 14px 12px;
	border-bottom: 1px solid var(--live-panel-divider);
	background: var(--live-panel-bg);
}

.live-play__title {
	margin: 0 0 8px;
	color: var(--live-panel-text);
	font-size: 17px;
	font-weight: 600;
	line-height: 24px;
	letter-spacing: 0;
}

.live-play__lines-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
}

.live-play__lines-label {
	flex-shrink: 0;
	color: var(--live-panel-text-muted);
	font-size: 13px;
	line-height: 20px;
}

.live-play__refresh-hint {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	gap: 4px;
	width: 128px;
	height: 22px;
	margin: 0;
	padding: 0 8px;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 11px;
	background: rgba(0, 0, 0, .2);
	color: var(--live-panel-text-muted);
	font-size: 12px;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: border-color .2s ease, color .2s ease, opacity .2s ease;
	box-sizing: border-box;
}

.live-play__refresh-hint:hover,
.live-play__refresh-hint:focus-visible {
	border-color: rgba(255, 255, 255, .18);
	color: var(--live-panel-text);
}

.live-play__refresh-hint-icon {
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	object-fit: contain;
	pointer-events: none;
}

.live-play__refresh-hint-text {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	font-size: 12px;
	line-height: 1;
	text-overflow: ellipsis;
}

.live-play__lines {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.live-play__line {
	min-height: 32px;
	padding: 6px 14px;
	border: 1px solid transparent;
	border-radius: 4px;
	background: var(--live-panel-surface);
	color: var(--live-panel-text-muted);
	font-size: 13px;
	cursor: pointer;
}

.live-play__line.is-active {
	border-color: #ff2a14;
}

.live-play__picker {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	padding: 12px 14px 16px;
	background: var(--live-panel-bg);
}

.live-play__picker-title {
	margin: 0 0 8px;
	color: var(--live-panel-text);
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	letter-spacing: 0;
}

.live-play__tabs {
	display: flex;
	flex-wrap: nowrap;
	flex-shrink: 0;
	gap: 8px;
	max-width: 100%;
	min-width: 0;
	margin-bottom: 8px;
	padding-bottom: 2px;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

.live-play__tabs::-webkit-scrollbar {
	display: none;
}

.live-play__tab {
	flex: 0 0 auto;
	min-height: 32px;
	padding: 6px 14px;
	border: 1px solid transparent;
	border-radius: 4px;
	background: var(--live-panel-surface);
	color: var(--live-panel-text-muted);
	font-size: 13px;
	white-space: nowrap;
	cursor: pointer;
}

.live-play__tab.is-active {
	border-color: #ff2a14;
	background: #ff2a14;
	color: #fff;
}

.live-play__channel-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: min(42vh, 360px);
	margin: 0;
	padding: 0 4px 0 0;
	overflow-x: hidden;
	overflow-y: auto;
	list-style: none;
	scrollbar-color: #31313a #202026;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.live-play__channel-list::-webkit-scrollbar {
	width: 4px;
	height: 4px;
	background-color: #202026;
}

.live-play__channel-list::-webkit-scrollbar-track {
	border-radius: 4px;
	background-color: #202026;
}

.live-play__channel-list::-webkit-scrollbar-thumb {
	border-radius: 4px;
	background-color: #31313a;
}

.live-play__channel-list::-webkit-scrollbar-thumb:hover {
	background-color: #3d3d48;
}

.live-play__channel {
	margin: 0;
}

.live-play__channel-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	padding: 8px 12px;
	border: 1px solid transparent;
	border-radius: 8px;
	background: var(--live-panel-surface);
	color: var(--live-panel-text);
	text-align: left;
	cursor: pointer;
	transition: border-color .2s ease, background .2s ease;
}

.live-play__channel.is-active .live-play__channel-btn {
	border-color: rgba(255, 42, 20, .5);
	background: rgba(255, 42, 20, .12);
}

.live-play__channel-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	overflow: hidden;
	border-radius: 6px;
	background: #fff;
}

.live-play__channel-logo img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.live-play__channel-name {
	flex: 1;
	overflow: hidden;
	font-size: 14px;
	line-height: 20px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.live-play__channel-badge {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	gap: 4px;
	color: #ff2a14;
	font-size: 12px;
}

.live-play__channel-badge::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #ff2a14;
}

.live-play__empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
	border-radius: 8px;
	background: var(--live-panel-surface);
	color: var(--live-panel-text-muted);
	text-align: center;
}

@media (min-width: 821px) {
	.live-page #main.wrapper {
		padding: 0;
	}

	.live-play__layout {
		display: grid;
		grid-template-columns: minmax(0, 1fr) min(360px, 30vw);
		align-items: stretch;
		gap: 0;
		min-height: calc(100vh - 80px);
		padding: 0;
	}

	.live-play__main {
		display: flex;
		flex-direction: column;
		min-height: 0;
	}

	.live-play__player-wrap.embed-responsive {
		flex: 1 1 auto;
		width: 100%;
		height: 100%;
		min-height: calc(100vh - 80px);
		padding-bottom: 0 !important;
		border-radius: 0;
	}

	.live-play__player-wrap .live-play__dplayer {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
	}

	.live-play__sidebar {
		position: sticky;
		top: 0;
		align-self: start;
		max-height: calc(100vh - 80px);
		overflow: hidden;
		border-top: 0;
		border-left: 1px solid rgba(255, 255, 255, .08);
		background: var(--live-panel-bg);
	}

	.live-play__meta {
		padding: 16px 16px 14px;
	}

	.live-play__title {
		margin-bottom: 10px;
		font-size: 18px;
		line-height: 26px;
	}

	.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;
		padding-right: 6px;
		overflow-y: auto;
	}
}

@media (max-width: 820px) {
	.live-page #main.wrapper {
		padding: 0;
	}

	.live-play__layout {
		min-height: calc(100vh - 64px);
		padding-bottom: env(safe-area-inset-bottom, 0);
	}
}

.live-show-body.live-page,
.live-show-body.live-page #main {
	background: #f6f7f9;
}

.live-show {
	padding: 20px 0 28px;
	color: #1f2329;
}

.live-show .content {
	box-sizing: border-box;
}

.live-show .live-show__is-hidden {
	display: none !important;
}

.live-show__head {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 20px;
	min-width: 0;
}

.live-show__title {
	flex: 0 0 auto;
	margin: 0;
	color: #181a1f;
	font-size: 24px;
	font-weight: 600;
	line-height: 32px;
	letter-spacing: 0;
	white-space: nowrap;
}

.live-show__tabs {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: nowrap;
	gap: 10px;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
}

.live-show__tabs::-webkit-scrollbar {
	display: none;
}

.live-show__tab {
	flex: 0 0 auto;
	min-height: 36px;
	padding: 8px 16px;
	border: 1px solid #e6e8ee;
	border-radius: 4px;
	background: #fff;
	color: #424853;
	font-size: 14px;
	line-height: 20px;
	cursor: pointer;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.live-show__tab.is-active,
.live-show__tab:hover {
	border-color: #ff2a14;
	background: #ff2a14;
	color: #fff;
}

.live-show__panel {
	min-height: 200px;
	position: relative;
}

.live-show__status {
	padding: 36px 16px;
	color: #7b8190;
	font-size: 14px;
	line-height: 22px;
	text-align: center;
}

.live-show__loading {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 12px;
}

.live-show__spinner {
	width: 28px;
	height: 28px;
	border: 2px solid #e6e8ee;
	border-top-color: #ff2a14;
	border-radius: 50%;
	animation: kkjb-live-show-spin .75s linear infinite;
}

@keyframes kkjb-live-show-spin {
	to {
		transform: rotate(1turn);
	}
}

.live-show__error-text {
	margin: 0 0 16px;
}

.live-show__retry-btn {
	min-height: 40px;
	padding: 0 24px;
	border: 1px solid #e6e8ee;
	border-radius: 6px;
	background: #fff;
	color: #1f2329;
	font-size: 14px;
	cursor: pointer;
}

.live-show__grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.live-show__item {
	margin: 0;
	padding: 0;
}

.live-show__card {
	display: flex;
	flex-direction: column;
	color: inherit;
	text-decoration: none;
	transition: opacity .2s ease;
}

.live-show__card:hover {
	opacity: .88;
}

.live-show__card-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 6px 20px rgba(20, 25, 35, .06);
}

.live-show__card-logo img {
	max-width: 78%;
	max-height: 78%;
	object-fit: contain;
}

.live-show__card-placeholder {
	color: #9aa1ad;
	font-size: 24px;
	font-weight: 600;
}

.live-show__card-name {
	width: 100%;
	margin: 8px 0 0;
	overflow: hidden;
	color: #1f2329;
	font-size: 15px;
	line-height: 22px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

@media (max-width: 820px) {
	.live-show {
		padding: 12px 0 22px;
	}

	.live-show__head {
		display: block;
		margin-bottom: 12px;
	}

	.live-show__title {
		display: none;
	}

	.live-show__tabs {
		gap: 24px;
		padding: 4px 0;
	}

	.live-show__tab {
		min-height: 0;
		padding: 0;
		border: 0;
		background: transparent;
		color: #333;
		font-size: 17px;
		font-weight: 500;
		line-height: 24px;
	}

	.live-show__tab.is-active,
	.live-show__tab:hover {
		background: transparent;
		color: #ff2a14;
	}

	.live-show__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.live-show__card-name {
		font-size: 14px;
		line-height: 20px;
	}
}
