/* ==============================================
   全端通用基础样式：桌面端与手机端都会使用
============================================== */
.hl-live-page {
    color: #303133;
    background: #fff;
}
/* 全局盒模型统一 */
.hl-live-page *,
.hl-live-page *::before,
.hl-live-page *::after {
    box-sizing: border-box;
}
/* 页面内容居中容器，控制最大宽度 */
.hl-live-page__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 20px;
}
/* 直播标题区域 */
.hl-live-title {
    margin-bottom: 18px;
}
.hl-live-title h1 {
    margin: 8px 0;
    color: #1d2129;
    font-size: 28px;
}
.hl-live-title p {
    margin: 0;
    color: #86909c;
}

/* 直播状态标签颜色区分
直播中绿色、预告蓝色、回放橙色、离线红色
*/
.hl-live-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    color: #fff;
    background: #86909c;
    font-size: 13px;
}
.hl-live-status--living    { background: #f53f3f; } /* 直播中 */
.hl-live-status--upcoming  { background: #00a870; } /* 预告 */
.hl-live-status--ended     { background: #86909c; } /* 已结束 */
.hl-live-status--replay    { background: #2f7cf6; } /* 回看 */

/* 直播播放器容器 16:9比例 */
.hl-live-player {
    position: relative;
    overflow: hidden;
    background: #101114;
    aspect-ratio: 16 / 9;
}
.hl-live-player::before {
	position: absolute;
	inset: 0;
	z-index: 0;
	background: #101114 var(--hl-live-player-poster, none) center / cover no-repeat;
	content: '';
}
.hl-live-player__video {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
}
.hl-live-player.has-error .hl-live-player__video,
.hl-live-player.has-error .tcplayer,
.hl-live-player.has-error .vjs-tech {
	opacity: 0 !important;
}
/* 屏蔽腾讯播放器自带错误层，统一使用插件覆盖提示，避免白屏和布局错乱。 */
.hl-live-player .vjs-error-display,
.hl-live-player .vjs-modal-dialog,
.hl-live-player .tcplayer .vjs-error-display {
	display: none !important;
}
/* 播放异常永远覆盖在播放器上层，不参与页面正常布局。 */
.hl-live-player__message {
	position: absolute;
	inset: 0;
	z-index: 20;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	color: #fff;
	text-align: center;
	pointer-events: none;
}
/* 播放器重试按钮 */
.hl-live-player__retry {
    position: absolute;
    left: 50%;
    top: 58%;
    transform: translateX(-50%);
    padding: 8px 16px;
    border: 0;
    border-radius: 3px;
    background: #2f7cf6;
    color: #fff;
    cursor: pointer;
	 z-index: 30 !important;
	 pointer-events: auto !important;
}

/* 活动简介区域 */
.hl-live-description {
    margin-top: 24px;
}
.hl-live-description h2 {
    color: #1d2129;
    font-size: 20px;
}
/* 基础信息文本 */
.hl-live-info {
    padding: 12px 0;
    color: #86909c;
}

/* 移动端Tab切换栏【简介 / 互动】 */
.hl-live-mobile-tabs {
    display: flex;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid #e5e6eb;
}
.hl-live-mobile-tabs button {
    border: 0;
    padding: 0 0 8px;
    background: transparent;
    color: #86909c;
}


/* 移动端底部评论输入栏容器 */
.hl-live-mobile-comment-bar {
    position: sticky;
    bottom: 0;
    padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom));
    border: 1px solid #e5e6eb;
    background: #fff;
    color: #86909c;
}

/* 评论整体容器 */
.hl-live-comments {
    display: flex;
    flex-direction: column;
    min-height: 420px;
    position: relative;
}
/* 评论头部标题 */
.hl-live-comments__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hl-live-comments__header h2 {
    margin: 0;
    font-size: 18px;
}
/* 评论滚动列表区域 */
.hl-live-comments__list {
    flex: 1;
    overflow: auto;
    margin: 14px 0;
}
/* 评论关闭与空状态均为真实业务状态：保留区域，明确告知用户当前不能发送。 */
.hl-live-comments__state {
    margin: auto 0;
    padding: 28px 16px;
    color: #98a3b2;
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}
.hl-live-comments.is-disabled .hl-live-comments__state {
    color: #86909c;
}
.hl-live-comments__form.is-disabled textarea,
.hl-live-comments__form textarea:disabled {
    color: #a9b1bc;
    background: #f2f3f5;
    border-color: #e5e6eb;
    cursor: not-allowed;
}
.hl-live-comments__form button:disabled {
    color: #a9b1bc;
    background: #e5e6eb;
    cursor: not-allowed;
    opacity: 1;
}
/* 发送结果悬浮在公屏上方，短暂显示后自动消失。 */
.hl-live-comments__toast {
    position: absolute;
    z-index: 8;
    top: 64px;
    left: 50%;
    max-width: calc(100% - 32px);
    padding: 9px 14px;
    border-radius: 7px;
    background: rgba(35, 45, 58, .88);
    color: #fff;
    font-size: 13px;
    line-height: 20px;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -8px);
    transition: opacity .18s ease, transform .18s ease;
}
.hl-live-comments__toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}
.hl-live-comments__toast.is-error { background: rgba(220, 76, 76, .92); }
/* 单条评论布局 */
.hl-live-comment {
    display: flex;
    gap: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e6eb;
}
/* 评论用户头像 */
.hl-live-comment img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}
/* 评论用户名 */
.hl-live-comment strong {
    font-size: 13px;
}
.hl-live-comment strong em {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 5px;
	border-radius: 3px;
	background: #fff2e8;
	color: #f47b3d;
	font-size: 11px;
	font-style: normal;
	font-weight: 400;
	line-height: 17px;
}
.hl-live-comment.is-pinned {
	padding: 10px 8px;
	border-radius: 6px;
	background: #fffaf5;
}
/* 评论内容 */
.hl-live-comment p {
    margin: 4px 0 0;
    word-break: break-word;
}
/* 评论输入表单 */
.hl-live-comments__form textarea {
    width: 100%;
    min-height: 58px;
    resize: vertical;
}
.hl-live-comments__form div {
    display: flex;
    justify-content: space-between;
    margin-top: 6px;
    color: #86909c;
}
/* 发送按钮、新评论提示按钮 */
.hl-live-comments__form button,
.hl-live-comments__new {
    border: 0;
    border-radius: 3px;
    background: #2f7cf6;
    color: #fff;
    padding: 7px 12px;
}
/* 未登录提示区域 */
.hl-live-comments__login {
    padding: 12px;
    border: 1px solid #e5e6eb;
    text-align: center;
}
.hl-live-comments__login a {
    color: #2f7cf6;
    text-decoration: none;
}
/* PC 微信扫码登录弹窗。二维码由开放平台页面在 iframe 中生成。 */
.hl-live-wechat-login-modal {
	position: fixed;
	inset: 0;
	z-index: 10030;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.hl-live-wechat-login-modal__backdrop {
	position: absolute;
	z-index: 21;
	inset: 0;
	background: rgba(15, 23, 42, .48);
}
.hl-live-wechat-login-modal__dialog {
	position: relative;
	z-index: 1;
	width: min(360px, 100%);
	padding: 24px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 18px 48px rgba(15, 23, 42, .24);
	text-align: center;
}
.hl-live-wechat-login-modal__dialog h2 {
	margin: 0;
	color: #1f2937;
	font-size: 18px;
}
.hl-live-wechat-login-modal__dialog p {
	margin: 8px 0 14px;
	color: #86909c;
	font-size: 13px;
}
.hl-live-wechat-login-modal__dialog iframe {
	display: block;
	width: 100%;
	height: 420px;
	border: 0;
}
.hl-live-wechat-login-modal__close {
	position: absolute;
	top: 8px;
	right: 10px;
	width: 30px;
	height: 30px;
	border: 0;
	background: transparent;
	color: #86909c;
	font-size: 24px;
	line-height: 30px;
	cursor: pointer;
}
/* 新评论悬浮提示按钮 */
.hl-live-comments__new {
    align-self: center;
    margin: 4px;
}

/* ==============================================
   活动简介媒体资源自适应：图片/视频宽度限制
============================================== */
.hl-live-description img {
    display: block;
    max-width: 100% !important;
    height: auto !important;
    margin: 14px 0;
}
.hl-live-description iframe,
.hl-live-description video {
    max-width: 100%;
}
/* 微信分享结果提示：由 live-share.js 在用户完成或取消分享后调用。 */
.hl-live-share-toast {
	position: fixed;
	left: 50%;
	bottom: 12%;
	z-index: 10020;
	max-width: calc(100vw - 48px);
	padding: 10px 16px;
	border-radius: 4px;
	background: rgba(0, 0, 0, .72);
	color: #fff;
	font-size: 14px;
	line-height: 20px;
	opacity: 0;
	pointer-events: none;
	opacity: 0;
	transition: opacity .18s ease;
}
.hl-live-player__message.is-visible {
	display: flex;
	background: rgba(14, 18, 25, .72);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.6;
	opacity: 1;
	transform: none;
	transition: opacity .2s ease;
}

.hl-live-share-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

.hl-live-share-toast.is-error {
	background: rgba(214, 65, 65, .9);
}
