/* 实况图：正文封面卡 + 播放灯箱 + 编辑器上传面板 */

/* ---------- 正文封面卡 ---------- */
.lp-card {
    display: block;
    position: relative;
    max-width: 760px;
    margin: 14px 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    line-height: 0;
    text-decoration: none;
    color: #fff;
}

.lp-cover {
    display: block;
    width: 100%;
    height: auto;
}

.lp-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .58);
    color: #fff;
    font-size: 11px;
    line-height: 1.2;
    pointer-events: none;
    backdrop-filter: blur(6px);
}

.lp-badge svg {
    width: 12px;
    height: 12px;
    opacity: .9;
}

.lp-play {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .62);
    color: #fff;
    font-size: 12px;
    line-height: 1.2;
    pointer-events: none;
    backdrop-filter: blur(6px);
    transition: background .18s ease;
}

.lp-card:hover .lp-play {
    background: rgba(0, 0, 0, .82);
}

.lp-card:focus-visible {
    outline: 2px solid var(--ac);
    outline-offset: 2px;
}

.lp-play svg {
    width: 12px;
    height: 12px;
}

.lp-off {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    margin: 10px 0;
    padding: 5px 10px;
    border: 1px dashed var(--bd-2);
    border-radius: var(--radius-s);
    color: var(--tx-3);
    font-size: 12.5px;
    line-height: 1.5;
}

.lp-off em {
    font-style: normal;
}

/* ---------- 播放灯箱 ---------- */
.lp-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .88);
}

.lp-modal[hidden] {
    display: none;
}

.lp-modal-video {
    display: block;
    width: auto;
    max-width: 92vw;
    max-height: 86vh;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .45);
    outline: none;
}

.lp-modal-close {
    position: fixed;
    top: 16px;
    right: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.lp-modal-close:hover {
    background: rgba(255, 255, 255, .24);
}

/* ---------- 编辑器上传面板 ---------- */
.ed-live-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0;
    padding: 12px 14px;
    border: 1px solid var(--bd);
    border-radius: var(--radius-s);
    background: var(--soft-2);
}

.ed-live-panel[hidden] {
    display: none;
}

.ed-live-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ed-live-multi-name,
.ed-live-cover-name,
.ed-live-video-name {
    min-width: 0;
    font-size: 12px;
    color: var(--tx-3);
    word-break: break-all;
}

.ed-live-hint {
    flex: 1 1 240px;
    min-width: 0;
    font-size: 12px;
    color: var(--tx-3);
    line-height: 1.65;
}

@media (max-width: 640px) {
    .lp-card {
        margin: 12px 0;
        border-radius: var(--radius-s);
    }

    .lp-badge {
        top: 8px;
        left: 8px;
    }

    .lp-play {
        right: 8px;
        bottom: 8px;
        padding: 5px 9px;
        font-size: 11.5px;
    }

    .lp-modal {
        padding: 12px;
    }

    .lp-modal-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 22px;
    }
}

/* ---------- 后台管理面板（admin.css 变量不确定处带回退值） ---------- */
.lp-admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.lp-admin-stat {
    padding: 12px 14px;
    border: 1px solid var(--bd, #e5e7eb);
    border-radius: var(--radius-s, 8px);
    background: var(--soft-2, #f7f8fa);
    text-align: center;
}

.lp-admin-stat b {
    display: block;
    font-family: var(--serif, inherit);
    font-size: 20px;
    line-height: 1.3;
    color: var(--tx-1, #111827);
}

.lp-admin-stat span {
    display: block;
    margin-top: 2px;
    font-size: 12px;
    color: var(--tx-3, #6b7280);
}

.lp-admin-thumb {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-s, 8px);
    border: 1px solid var(--bd, #e5e7eb);
    background: #000;
}

.lp-admin-st {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.5;
    white-space: nowrap;
}

.lp-admin-st.lp-st-ok {
    color: #166534;
    background: #dcfce7;
}

.lp-admin-st.lp-st-wait {
    color: #854d0e;
    background: #fef3c7;
}

.lp-admin-st.lp-st-hide {
    color: #991b1b;
    background: #fee2e2;
}

.lp-admin-pager {
    margin-top: 12px;
}

@media (max-width: 720px) {
    .lp-admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
