/* =========================================================================
   LugoHub 视频播放页核心全局与布局样式 (完美融合版)
   ========================================================================= */

body { 
    background: #f4f6f9; 
    margin: 0; 
    padding: 0; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
}

.navbar { 
    height: 50px; 
    background: #252525; 
    display: flex; 
    align-items: center; 
    padding: 0 15px; 
    color: #fff; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
}

.container-fluid { 
    display: flex; 
    flex-direction: column; 
    width: 100%; 
    max-width: 1300px; 
    margin: 0 auto; 
    box-sizing: border-box; 
}

.video-main { 
    width: 100%; 
    aspect-ratio: 16 / 9; 
    background: #000; 
    position: relative; 
    z-index: 10; 
}

/* PC大屏专用的独立顶部标题挂载点：移动端默认不展示 */
.pc-top-title {
    display: none;
    font-size: 20px;
    font-weight: bold;
    line-height: 1.4;
    color: #1a1a1a;
    margin: 16px 16px 0 16px;
}

.artplayer-app { 
    width: 100%; 
    height: 100%; 
}

.main-layout { 
    display: flex; 
    flex-direction: column; 
}

.player-left { 
    width: 100%; 
    padding: 12px; 
    box-sizing: border-box; 
}

.player-right { 
    width: 100%; 
    padding: 12px; 
    box-sizing: border-box; 
    background: #fff; 
    border-top: 1px solid #e1e4e8; 
    margin-top: 10px; 
}

/* =========================================================================
   大屏幕响应式双栏排版（核心修正：完美接轨原生卡片）
   ========================================================================= */
@media (min-width: 992px) {
    /* 激活大屏独立顶部标题 */
    .pc-top-title {
        display: block;
    }

    .main-layout { 
        flex-direction: row; 
        gap: 16px; 
        margin-top: 15px; 
        padding: 0 16px; 
        align-items: flex-start; /* 防止右侧栏被无限拉长 */
    }
    .player-left { 
        width: 68%; 
        padding: 0; 
    }
    .player-right { 
        width: 32%; 
        padding: 16px; 
        background: #fff; 
        border-radius: 14px; 
        border: 1px solid rgba(0,0,0,0.05); 
        margin-top: 0; 
        box-shadow: 0 4px 20px rgba(0,0,0,0.02); 
        
        /* 允许右侧栏固定滚动，且不破坏布局 */
        position: sticky;
        top: 66px; 
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }

    /* 当切换到PC端时，隐藏原本包含在 .video-info 里的旧标题，防止标题双重出现 */
    .video-info h1 {
        display: none !important;
    }
}

/* =========================================================================
   视频信息与数据区块
   ========================================================================= */

.video-info { 
    padding: 16px; 
    background: #fff; 
    border-radius: 14px; 
    margin-top: 12px; 
    border: 1px solid rgba(0,0,0,0.04); 
}

/* 移动端下保持原本的内嵌标题显示 */
@media (max-width: 991px) {
    .video-info h1 { 
        display: block !important;
        font-size: 1.25rem; 
        margin: 0 0 10px 0; 
        color: #1a1a1a; 
        line-height: 1.4; 
        font-weight: bold; 
    }
}

.video-meta { 
    font-size: 12px; 
    color: #999; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    margin-bottom: 12px; 
}

.lv-tag { 
    font-weight: bold; 
    color: #00aeec; 
    background: rgba(0,174,236,0.08); 
    padding: 1px 6px; 
    border-radius: 4px; 
}

.type-tag { 
    padding: 1px 6px; 
    border-radius: 3px; 
    background: #f4f4f4; 
    color: #888; 
    border: 1px solid #eee; 
    font-size: 11px; 
}

.video-stats { 
    display: flex; 
    align-items: center; 
    gap: 18px; 
    font-size: 12px; 
    color: #999; 
    margin-bottom: 14px; 
}

.video-stats span { 
    display: flex; 
    align-items: center; 
    gap: 5px; 
    cursor: pointer; 
    transition: all 0.2s; 
}

.video-stats span:hover { 
    color: #00aeec; 
}

.report-btn { 
    margin-left: auto; 
    color: #aaa; 
    cursor: pointer; 
    font-weight: 500; 
}

.report-btn:hover { 
    color: #ff4757 !important; 
}

/* =========================================================================
   UP主卡片与简介区块 (毛玻璃质感)
   ========================================================================= */

.up-desc-card {
    background: rgba(255, 255, 255, 0.65); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    border-radius: 14px; 
    padding: 16px; 
    margin: 12px 0; 
    border: 1px solid rgba(255, 255, 255, 0.4); 
    box-shadow: 0 8px 32px 0 rgba(142, 151, 168, 0.15); 
}

.card-label { 
    font-size: 12px; 
    color: #8e949e; 
    margin: 0 0 6px 0; 
    font-weight: bold; 
}

.video-desc-wrapper { 
    font-size: 13.5px; 
    color: #2c3e50; 
    line-height: 1.6; 
}

.video-desc.collapsed { 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.desc-toggle { 
    display: inline-block; 
    color: #00aeec; 
    cursor: pointer; 
    font-weight: bold; 
    margin-top: 6px; 
    font-size: 12px; 
}

.card-divider { 
    height: 1px; 
    background: rgba(0, 0, 0, 0.06); 
    margin: 14px 0; 
}

.up-card { 
    display: flex; 
    align-items: center; 
}

.up-avatar { 
    width: 42px; 
    height: 42px; 
    border-radius: 50%; 
    object-fit: cover; 
    background: #eee; 
    margin-right: 12px; 
}

.up-detail { 
    flex: 1; 
}

.up-name { 
    font-size: 14.5px; 
    font-weight: bold; 
    color: #1f2225; 
    margin: 0 0 3px 0; 
}

.up-fans { 
    font-size: 12px; 
    color: #7f8c8d; 
    margin: 0; 
}

.follow-btn { 
    padding: 6px 16px; 
    font-size: 12px; 
    font-weight: bold; 
    border-radius: 20px; 
    border: none; 
    cursor: pointer; 
    transition: all 0.2s; 
}

.follow-btn.none { 
    background: #00aeec; 
    color: #fff; 
}

.follow-btn.active { 
    background: rgba(0, 0, 0, 0.06); 
    color: #7f8c8d; 
} 

.follow-btn.disabled { 
    background: rgba(0, 0, 0, 0.04); 
    color: #95a5a6; 
    cursor: not-allowed; 
} 

/* =========================================================================
   标签 (Tags) 组件样式
   ========================================================================= */

.video-tags-container {
    background: rgba(255, 255, 255, 0.45); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px; 
    padding: 12px 14px; 
    margin: 12px 0;
    border: 1px solid rgba(255, 255, 255, 0.3); 
    box-shadow: 0 4px 20px rgba(142, 151, 168, 0.08);
    display: flex; 
    flex-wrap: wrap; 
    gap: 8px; 
    align-items: center;
}

.tag-pill {
    background: rgba(0, 0, 0, 0.04); 
    color: #5c6b73; 
    font-size: 12px; 
    padding: 5px 12px; 
    border-radius: 15px; 
    border: 1px solid rgba(0,0,0,0.02); 
    transition: all 0.2s; 
    text-decoration: none;
}

.tag-pill:hover { 
    background: rgba(0, 174, 236, 0.08); 
    color: #00aeec; 
}

.add-tag-btn {
    background: rgba(0, 174, 236, 0.08); 
    color: #00aeec; 
    font-size: 12px; 
    padding: 4px 12px;
    border-radius: 15px; 
    border: 1px dashed rgba(0,174,236,0.3); 
    cursor: pointer;
    font-weight: bold; 
    display: flex; 
    align-items: center; 
    gap: 4px; 
    transition: all 0.2s;
}

.add-tag-btn:hover { 
    background: rgba(0, 174, 236, 0.15); 
    box-shadow: 0 2px 8px rgba(0,174,236,0.1); 
}

.points-tip { 
    font-size: 11px; 
    color: #95a5a6; 
    margin-left: auto; 
}

/* =========================================================================
   弹幕控制面板与数据表格
   ========================================================================= */

.danmu-list-section {
    background: rgba(248, 249, 250, 0.65); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px; 
    padding: 14px 16px; 
    margin: 12px 0; 
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 24px rgba(0,0,0,0.03); 
    transition: all 0.3s ease;
}

.danmu-panel-head { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    cursor: pointer; 
    user-select: none; 
}

.danmu-panel-title { 
    font-size: 14.5px; 
    font-weight: bold; 
    color: #2c3e50; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.danmu-panel-title i { 
    color: #00aeec; 
}

.danmu-panel-title span { 
    font-size: 12px; 
    color: #95a5a6; 
    font-weight: normal; 
}

.danmu-toggle-arrow { 
    font-size: 14px; 
    color: #7f8c8d; 
    transition: transform 0.3s; 
}

.danmu-list-section.expanded .danmu-toggle-arrow { 
    transform: rotate(180deg); 
}

.danmu-panel-body { 
    display: none; 
    margin-top: 15px; 
    border-top: 1px solid rgba(0, 0, 0, 0.05); 
    padding-top: 12px; 
}

.danmu-list-section.expanded .danmu-panel-body { 
    display: block; 
}

/* PC端大屏下强制弹幕面板常驻展开 */
@media (min-width: 992px) {
    .danmu-panel-body {
        display: block !important;
    }
    .danmu-toggle-arrow {
        display: none !important;
    }
}

.danmu-sorter-bar { 
    display: flex; 
    gap: 10px; 
    margin-bottom: 12px; 
    font-size: 12px; 
}

.danmu-sorter-bar span { 
    padding: 4px 10px; 
    border-radius: 6px; 
    color: #7f8c8d; 
    cursor: pointer; 
    transition: all 0.2s; 
    background: rgba(0,0,0,0.03); 
}

.danmu-sorter-bar span.active { 
    color: #fff; 
    background: #00aeec; 
    font-weight: bold; 
}

.danmu-table-wrapper { 
    max-height: 260px; 
    overflow-y: auto; 
    border-radius: 8px; 
    background: rgba(255,255,255,0.4); 
    border: 1px solid rgba(0,0,0,0.03); 
}

.danmu-table { 
    width: 100%; 
    border-collapse: collapse; 
    font-size: 13px; 
    text-align: left; 
}

.danmu-table th { 
    background: rgba(0,0,0,0.04); 
    color: #5c6b73; 
    padding: 8px 10px; 
    font-weight: bold; 
    position: sticky; 
    top: 0; 
    z-index: 5; 
    font-size: 12px; 
}

.danmu-table td { 
    padding: 8px 10px; 
    border-bottom: 1px solid rgba(0,0,0,0.02); 
    color: #1f2225; 
    word-break: break-all; 
}

.danmu-table tr:hover { 
    background: rgba(0, 174, 236, 0.03); 
}

.col-vtime { 
    width: 75px; 
    color: #00aeec !important; 
    font-weight: 500; 
}

.col-text { 
    flex: 1; 
}

.col-sendtime { 
    width: 135px; 
    color: #95a5a6; 
    font-size: 11.5px; 
}

/* =========================================================================
   评论区与嵌套回复组件
   ========================================================================= */

.comment-section {
    background: rgba(248, 249, 250, 0.65); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px; 
    padding: 20px 16px; 
    margin: 12px 0 25px; 
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.comment-head { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin-bottom: 18px; 
    border-bottom: 1px solid rgba(0,0,0,0.05); 
    padding-bottom: 10px; 
}

.comment-title { 
    font-size: 15px; 
    font-weight: bold; 
    color: #1f2225; 
}

.comment-sorter { 
    display: flex; 
    gap: 12px; 
    font-size: 12px; 
    color: #7f8c8d; 
}

.comment-sorter a { 
    text-decoration: none; 
    color: #7f8c8d; 
    padding: 2px 6px; 
    border-radius: 4px; 
}

.comment-sorter a.active { 
    color: #00aeec; 
    font-weight: bold; 
    background: rgba(0,174,236,0.08); 
}

.comment-box-wrapper { 
    background: rgba(255,255,255,0.5); 
    border-radius: 12px; 
    padding: 12px; 
    border: 1px solid rgba(0,0,0,0.05); 
    margin-bottom: 20px; 
}

.comment-input { 
    width: 100%; 
    min-height: 70px; 
    background: transparent; 
    border: none; 
    outline: none; 
    font-size: 14px; 
    color: #2c3e50; 
    resize: none; 
    font-family: inherit; 
}

.comment-box-footer { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    margin-top: 8px; 
    font-size: 11px; 
    color: #95a5a6; 
}

.comment-submit-btn { 
    background: #ffa502; 
    color: #fff; 
    border: none; 
    padding: 8px 22px; 
    border-radius: 18px; 
    font-size: 13px; 
    font-weight: bold; 
    cursor: pointer; 
    box-shadow: 0 4px 12px rgba(255,165,2,0.2); 
}

.comment-list { 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

.comment-item { 
    display: flex; 
    gap: 12px; 
    position: relative; 
}

.c-avatar { 
    width: 36px; 
    height: 36px; 
    border-radius: 50%; 
    object-fit: cover; 
    background: #eee; 
}

.c-body { 
    flex: 1; 
}

.c-user-info { 
    display: flex; 
    align-items: center; 
    font-size: 13px; 
    font-weight: bold; 
    color: #2c3e50; 
    margin-bottom: 4px; 
}

.c-floor { 
    font-size: 11px; 
    background: rgba(0,0,0,0.05); 
    color: #7f8c8d; 
    padding: 1px 5px; 
    border-radius: 3px; 
    margin-left: 8px; 
}

.c-text { 
    font-size: 13.5px; 
    color: #1f2225; 
    line-height: 1.5; 
    word-break: break-all; 
    margin: 4px 0 6px 0; 
}

.c-meta-bar { 
    display: flex; 
    align-items: center; 
    gap: 16px; 
    font-size: 11px; 
    color: #95a5a6; 
}

.c-action-btn { 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 3px; 
}

.c-del-btn { 
    color: #ff4757; 
    cursor: pointer; 
    margin-left: auto; 
    display: none; 
}

.comment-item:hover .c-del-btn { 
    display: inline-block; 
}

.reply-nested-box { 
    background: rgba(0, 0, 0, 0.02); 
    border-radius: 8px; 
    padding: 4px 12px; 
    margin-top: 8px; 
    font-size: 13px; 
    border-left: 2px solid rgba(0,0,0,0.05); 
}

.reply-item { 
    padding: 8px 0; 
    border-bottom: 1px dashed rgba(0,0,0,0.03); 
}

.reply-user { 
    font-weight: bold; 
    color: #34495e; 
}

.nested-reply-form { 
    display: flex; 
    gap: 10px; 
    margin-top: 10px; 
    align-items: center; 
}

.nested-reply-input { 
    flex: 1; 
    background: #fff; 
    border: 1px solid rgba(0,0,0,0.08); 
    padding: 6px 12px; 
    border-radius: 16px; 
    font-size: 12px; 
    outline: none; 
}

.reply-expand-trigger { 
    font-size: 11px; 
    color: #00aeec; 
    cursor: pointer; 
    font-weight: bold; 
    padding: 6px 0; 
    display: inline-block; 
}

/* =========================================================================
   右侧相关推荐栏目样式
   ========================================================================= */

.rec-section-title { 
    font-size: 15px; 
    font-weight: bold; 
    margin: 0 0 16px 0; 
    color: #2c3e50; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
}

.rec-section-title i { 
    color: #ffa502; 
}

.rec-item { 
    display: flex; 
    text-decoration: none; 
    color: #333; 
    margin-bottom: 14px; 
    gap: 12px; 
    padding: 6px; 
    border-radius: 8px; 
    transition: background 0.2s; 
}

.rec-item:hover { 
    background: rgba(0,0,0,0.03); 
}

.rec-thumb { 
    width: 120px; 
    height: 70px; 
    flex-shrink: 0; 
    border-radius: 6px; 
    overflow: hidden; 
    background: #000; 
    position: relative; 
}

.rec-thumb img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

.rec-detail { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}

.rec-title { 
    font-size: 13.5px; 
    font-weight: 500; 
    line-height: 1.4; 
    color: #1f2225; 
    margin: 0; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
    text-overflow: ellipsis; 
}

.rec-meta { 
    font-size: 11px; 
    color: #95a5a6; 
    display: flex; 
    justify-content: space-between; 
    margin-top: 4px; 
}

.match-badge { 
    font-size: 10px; 
    background: rgba(46, 204, 113, 0.1); 
    color: #2ecc71; 
    padding: 1px 5px; 
    border-radius: 4px; 
    font-weight: bold; 
}
