/* 只重置直播组件内部的盒模型，不污染父页面 */
.page-body *,
.page-body *::before,
.page-body *::after {
    box-sizing: border-box;
}

/* ══════════════════════════════
   页面容器（宽度/居中由父页面 .container 管理）
   font-size 固定 16px，隔断 cced.js 动态设置的根字号影响
══════════════════════════════ */
.page-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 16px;  /* px 而非 rem，不受 setRem() 影响 */
}

/* ══════════════════════════════
   播放器
══════════════════════════════ */
.player-wrap {
    position: relative;
    width: 100%;
    background: #000;
    line-height: 0;
}
.player-wrap video {
    width: 100%;
    display: block;
    max-height: 56vw;
    object-fit: contain;
}

/* 直播中角标 */
.live-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #e42500;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 7px 3px 5px;
    border-radius: 3px;
    z-index: 10;
    pointer-events: none;
    line-height: 1.4;
}
.live-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    flex-shrink: 0;
    animation: liveBlink 1.2s ease-in-out infinite;
}
@keyframes liveBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.15; }
}

/* 直播回顾角标 */
.review-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    align-items: center;
    gap: 4px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 3px 7px;
    border-radius: 3px;
    z-index: 10;
    pointer-events: none;
    line-height: 1.4;
}
.review-badge svg { width: 12px; height: 12px; flex-shrink: 0; }

/* ══════════════════════════════
   直播简介
══════════════════════════════ */
.stream-info {
    display: block;
    background: #fff;
    padding-top: 5px;
}
.stream-title {
    font-size: 16px;
    font-weight: 700;
    color: #191919;
    line-height: 1.5;
    margin: 0 0 8px 0;
    padding: 0;
}
.stream-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #999;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 10px;
}
.stream-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #999;
    vertical-align: middle;
}
.stream-meta-item svg {
    width: 13px;
    height: 13px;
    vertical-align: middle;
    flex-shrink: 0;
}
.stream-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    margin: 0;
}

/* 无描述版：meta 不需要分隔线和下边距 */
.stream-info--plain .stream-meta {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* ══════════════════════════════
   直播内容区
══════════════════════════════ */
.feed-section {
    background: #fff;
}
.feed-header {
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-bottom: 10px;
}
.feed-title {
    font-size: 15px;
    font-weight: 700;
    color: #e42500;
}
.feed-count {
    position: absolute;
    right: 16px;
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 3px;
}
.feed-count svg { width: 13px; height: 13px; }

.feed-body {
    background: #f2f2f2;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 消息条目 */
.msg-item { display: flex; flex-direction: column; gap: 5px; }

.msg-time-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.msg-time-dot {
    width: 7px;
    height: 7px;
    background: #e42500;
    border-radius: 50%;
    flex-shrink: 0;
}
.msg-time-text {
    font-size: 12px;
    font-weight: 600;
    color: #e42500;
}

/* 消息卡片 */
.msg-card {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid #ebebeb;
    transition: box-shadow 0.15s;
}
.msg-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.08); }

.msg-card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.msg-source-avatar {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    flex-shrink: 0;
    background: #ff6600;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
}
.msg-source-name {
    font-size: 13px;
    color: #576b95;
    font-weight: 500;
}
.msg-text {
    font-size: 15px;
    color: #191919;
    line-height: 1.65;
    margin-bottom: 10px;
    word-break: break-all;
}
.msg-text:last-child { margin-bottom: 0; }
.msg-img {
    width: 100%;
    border-radius: 6px;
    display: block;
}

/* ══════════════════════════════
   Pad ≥ 768px
══════════════════════════════ */
@media (min-width: 768px) {
    .page-body { gap: 12px; }
    .player-wrap { border-radius: 8px; overflow: hidden; }
    .player-wrap video { max-height: 420px; }
    .live-badge { top: 10px; left: 10px; font-size: 12px; padding: 4px 9px 4px 7px; }
    .review-badge { top: 10px; left: 10px; font-size: 12px; }
    .stream-info { border-radius: 8px; padding: 14px 18px; }
    .stream-title { font-size: 17px; }
    .feed-section { border-radius: 8px; overflow: hidden; }
    .feed-body { padding: 12px 14px; gap: 10px; }
    .msg-card { padding: 12px 14px; }
    .msg-source-avatar { width: 26px; height: 26px; }
}

/* ══════════════════════════════
   电脑 ≥ 1024px
══════════════════════════════ */
@media (min-width: 1024px) {
    .page-body { gap: 14px; }
    .player-wrap video { max-height: 600px; }
    .live-badge { top: 12px; left: 12px; }
    .review-badge { top: 12px; left: 12px; }
    .stream-info { padding: 18px 22px; }
    .stream-title { font-size: 20px; margin-bottom: 10px; }
    .stream-meta { gap: 20px; font-size: 13px; padding-bottom: 12px; margin-bottom: 12px; }
    .stream-meta-item svg { width: 14px; height: 14px; }
    .stream-desc { font-size: 15px; line-height: 1.75; }
    .feed-header {
        justify-content: flex-start;
        gap: 10px;
        padding: 14px 20px;
    }
    .feed-header::before {
        content: '';
        width: 4px;
        height: 18px;
        background: #e42500;
        border-radius: 2px;
        flex-shrink: 0;
    }
    .feed-title { font-size: 16px; color: #191919; }
    .feed-count { position: static; margin-left: auto; font-size: 13px; }
    .feed-body { background: #f5f5f5; padding: 16px; gap: 14px; }
    .msg-card { padding: 14px 16px; border-radius: 8px; }
    .msg-card-header { margin-bottom: 10px; }
    .msg-source-avatar { width: 28px; height: 28px; border-radius: 6px; font-size: 9px; }
    .msg-source-name { font-size: 14px; font-weight: 600; }
    .msg-text { font-size: 15px; line-height: 1.7; margin-bottom: 12px; }
    .msg-time-text { font-size: 13px; }
}
