/* 直播分类列表 + 播放页（仿 H5 直播壳，适配本站 #app） */
.live-list-page {
	padding: 0 0 10px;
	color: #f4f5f7;
}

/* 给底部 tabbar 留空，避免「加载更多」被挡住 */
.vodlistbox .live-list-page {
	padding-bottom: 0;
}

.live-banner {
	margin: 0 12px 8px;
	border-radius: 14px;
	overflow: hidden;
	background: linear-gradient(135deg, #2a1020, #12141c);
	border: 1px solid rgba(255, 255, 255, 0.06);
}

.live-banner img {
	width: 100%;
	height: 100px;
	object-fit: cover;
	display: block;
}

.live-banner-fallback {
	padding: 22px 16px;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 500;
}

.live-banner:has(a) .live-banner-fallback {
	display: none;
}

.live-dot,
.live-badge i,
.live-pulse {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ff2d55;
	box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.7);
	animation: livePulse 1.6s infinite;
	display: inline-block;
}

@keyframes livePulse {
	0% { box-shadow: 0 0 0 0 rgba(255, 45, 85, 0.55); }
	70% { box-shadow: 0 0 0 8px rgba(255, 45, 85, 0); }
	100% { box-shadow: 0 0 0 0 rgba(255, 45, 85, 0); }
}

.live-section-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	padding: 10px 14px 8px;
}

.live-section-head h1 {
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	margin: 0;
}

.live-count,
.live-count-tag {
	font-size: 13px;
	color: #9aa3b5;
	font-weight: 600;
}

.live-video-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding: 0 12px 20px;
	list-style: none;
	margin: 0;
}

.live-card {
	background: #12141c;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.04);
}

.live-card a {
	display: block;
	color: inherit;
	text-decoration: none;
}

.live-card:active {
	transform: scale(0.98);
}

.live-card .cover {
	position: relative;
	aspect-ratio: 3 / 4;
	background: #1a1a22;
	overflow: hidden;
}

.live-card .cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.live-badge {
	position: absolute;
	left: 8px;
	top: 8px;
	background: rgba(0, 0, 0, 0.55);
	color: #fff;
	font-size: 10px;
	padding: 3px 7px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.live-online {
	position: absolute;
	right: 8px;
	bottom: 8px;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	font-size: 10px;
	padding: 3px 6px;
	border-radius: 6px;
}

.live-meta {
	padding: 8px 9px 10px;
}

.live-meta h2 {
	font-size: 13px;
	font-weight: 600;
	color: #fff;
	margin: 0;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.live-stats {
	margin-top: 4px;
	display: flex;
	justify-content: space-between;
	font-size: 11px;
	color: #9aa3b5;
}

.live-empty {
	grid-column: 1 / -1;
	text-align: center;
	color: #9aa3b5;
	padding: 40px 0;
}

/* ===== 播放页：强制同全站 H5 壳 520px（PC 两侧可见留白） ===== */
html.live-play-html,
html.live-play-html body.live-play-body,
body.live-play-body {
	height: 100% !important;
	width: 100% !important;
	overflow: hidden !important;
	/* 两侧明显深于内容壳，避免「看起来像全屏」 */
	background:
		radial-gradient(ellipse 70% 45% at 50% -8%, #2a1020 0%, transparent 55%),
		linear-gradient(180deg, #10131a 0%, #07080c 45%, #05060a 100%) !important;
	background-color: #07080c !important;
}

html.live-play-html body.live-play-body,
body.live-play-body {
	display: flex !important;
	justify-content: center !important;
	align-items: stretch !important;
	padding: 0 !important;
}

html.live-play-html #app,
body.live-play-body #app,
#app.live-play-app {
	width: min(100%, 520px) !important;
	max-width: 520px !important;
	min-width: 0 !important;
	margin: 0 auto !important;
	height: 100vh !important;
	height: 100dvh !important;
	min-height: 100vh !important;
	background: #000 !important;
	box-shadow:
		0 0 0 1px rgba(255, 255, 255, 0.06),
		0 0 40px rgba(0, 0, 0, 0.65) !important;
	position: relative !important;
	overflow: hidden !important;
	flex: 0 0 auto !important;
	box-sizing: border-box !important;
}

.live-play-page {
	position: absolute !important;
	left: 0 !important;
	right: 0 !important;
	top: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	background: #000;
	color: #fff;
}

.live-player-wrap {
	position: relative;
	width: 100%;
	height: 100%;
	max-width: 100%;
	background: #000;
	overflow: hidden;
}

.live-player-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	background: #000;
}

.live-player-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	filter: blur(18px) saturate(1.15);
	transform: scale(1.14);
	display: block;
}

.live-player-bg::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.28);
}

.live-player-wrap .MacPlayer,
.live-player-wrap #playleft,
.live-player-wrap iframe {
	width: 100% !important;
	height: 100% !important;
	min-height: 100%;
	max-width: 100% !important;
	border: 0;
}

#liveVideo {
	position: absolute;
	left: 50%;
	top: 50%;
	z-index: 1;
	transform: translate(-50%, -50%);
	width: auto !important;
	height: auto !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
	object-position: center center !important;
	background: transparent !important;
	display: block;
}

#liveLock.ai-lock {
	z-index: 35;
}

.live-player-overlay {
	pointer-events: none;
	position: absolute;
	inset: 0;
	z-index: 5;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 22%, transparent 60%, rgba(0, 0, 0, 0.45) 100%);
	display: flex;
	flex-direction: column;
}

.live-back {
	pointer-events: auto;
	position: absolute;
	left: 10px;
	top: calc(10px + env(safe-area-inset-top, 0px));
	z-index: 20;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-width: 72px;
	height: 36px;
	padding: 0 14px;
	border-radius: 999px;
	background: linear-gradient(90deg, #ff2d55, #ff6b35);
	color: #fff !important;
	text-decoration: none !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	border: 2px solid #fff;
	box-shadow: 0 4px 14px rgba(255, 45, 85, 0.55);
}

.live-back:active {
	transform: scale(0.96);
}

.live-anchor-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 12px 0 96px;
}

.live-anchor-avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid rgba(255, 255, 255, 0.5);
	background: linear-gradient(135deg, #ff6b35, #ff2d55);
	flex-shrink: 0;
}

.live-anchor-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.live-anchor-info {
	flex: 1;
	min-width: 0;
}

.live-anchor-info strong {
	display: block;
	font-size: 14px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.live-anchor-info span {
	font-size: 11px;
	color: #ffb4c0;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.live-float-online {
	background: rgba(0, 0, 0, 0.4);
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px;
	flex-shrink: 0;
}

.live-side-stats {
	position: absolute;
	right: 10px;
	top: 70px;
	display: grid;
	gap: 8px;
	font-size: 11px;
	text-align: right;
}

.live-side-stats div,
.live-side-stats a {
	pointer-events: auto;
	background: rgba(0, 0, 0, 0.35);
	padding: 6px 8px;
	border-radius: 8px;
	color: #fff;
	text-decoration: none;
	display: block;
}

.live-side-stats b {
	font-weight: 700;
}

.live-player-loading {
	pointer-events: none;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 6;
	background: rgba(0, 0, 0, 0.55);
	padding: 10px 16px;
	border-radius: 999px;
	font-size: 13px;
	color: #fff;
}

.live-player-tap {
	pointer-events: auto;
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 30;
	border: 0;
	border-radius: 999px;
	padding: 14px 28px;
	background: linear-gradient(90deg, #c9184a, #ff2d55);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 8px 24px rgba(255, 45, 85, 0.45);
	animation: liveTapPulse 1.6s ease-in-out infinite;
}

@keyframes liveTapPulse {
	0%, 100% { transform: translate(-50%, -50%) scale(1); }
	50% { transform: translate(-50%, -50%) scale(1.04); }
}

.live-load-more-wrap {
	padding: 12px 12px 96px;
	text-align: center;
	box-sizing: border-box;
}

.live-load-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 180px;
	height: 40px;
	padding: 0 20px;
	border: 0;
	border-radius: 999px;
	background: linear-gradient(90deg, #c9184a, #ff2d55);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.live-load-more[disabled] {
	opacity: 0.55;
	cursor: default;
}

.live-load-more-end {
	color: #9aa3b5;
	font-size: 13px;
	padding: 10px 0 6px;
}
