/* 直播详情页：沿用全站配色、宽度和圆角，仅调整本页内容。 */
.live-detail-main {
    margin-top: 40px;
    margin-bottom: 48px;
}

.live-detail-cover {
    margin: 0 0 30px;
    overflow: hidden;
    aspect-ratio: 5 / 2;
    border: 1px solid var(--border-light);
    border-radius: var(--border-radius);
    background: var(--light-gray);
    box-shadow: var(--shadow-light);
}

.live-detail-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.live-detail-heading {
    position: relative;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-light);
}

.live-detail-heading::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--primary-color);
}

.live-detail-title {
    margin: 0 0 14px;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

.live-detail-time {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--secondary-text);
    font-size: 14px;
}

.live-detail-time i {
    font-size: 14px;
}

.live-detail-intro {
    padding: 24px 0 36px;
    color: var(--bg-light-dark);
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

.live-detail-intro p + p {
    margin-top: 12px;
}

.live-detail-section-title {
    position: relative;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-color);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.5;
}

.live-detail-section-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 48px;
    height: 2px;
    background: var(--primary-color);
}

.live-detail-player {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border-dark);
    border-radius: var(--border-radius);
    background: var(--bg-dark);
    color: var(--text-light);
}

.live-detail-player :is(video, iframe) {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 0;
}

/* SDK 控件的层级只在播放器内部生效，避免盖住直播状态图。 */
.live-detail-player > .prism-player {
    position: relative;
    z-index: 0;
}

.live-detail-player.has-live-status > .prism-player .prism-controlbar,
.live-detail-player.has-live-status > .prism-player .prism-big-play-btn {
    display: none !important;
}

.live-detail-player.has-live-status {
    border-color: var(--border-light);
    background: var(--light-gray);
}

.live-status-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-speed) ease, visibility var(--transition-speed) ease;
}

.live-status-cover.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.live-status-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
    .live-status-cover {
        transition: none;
    }
}

.live-detail-page :is(a, button, input, video):focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

@media (max-width: 768px) {
    .live-detail-main {
        margin-top: 20px;
        margin-bottom: 30px;
    }

    .live-detail-cover {
        margin-bottom: 22px;
    }

    .live-detail-title {
        margin-bottom: 12px;
        font-size: 22px;
    }

    .live-detail-heading {
        padding-bottom: 20px;
    }

    .live-detail-time {
        font-size: 13px;
    }

    .live-detail-intro {
        padding: 20px 0 28px;
        font-size: 15px;
    }

    .live-detail-section-title {
        margin-bottom: 16px;
        font-size: 20px;
    }

}
