/* ============================================================
   视频子站（video.lekuidc.com）
   页眉 / 页脚 / Hero 复用项目既有 nrsc-* 风格；
   内容区参考 video.xiumiyun.com 的「左信息流 + 右公共栏」布局。
   ============================================================ */

.video-main {
    display: block;
    background: #f6f8fb;
    min-height: 50vh;
}

.video-main .nrsc-body {
    padding-bottom: 64px;
}

.video-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 32px;
    align-items: start;
}

.video-main-col {
    min-width: 0;
}

/* ---------------- Hero 补充 ---------------- */
.video-hero .nrsc-hero__title {
    max-width: 760px;
}

.video-hero .nrsc-hero__cats {
    gap: 4px 22px;
}

.nrsc-hero__cat--sub {
    font-size: 13px;
    color: #8a93a3;
}

.video-hero--detail .nrsc-hero__inner {
    min-height: 260px;
    padding-bottom: 30px;
}

.video-hero--detail .nrsc-hero__title {
    font-size: 30px;
}

.video-detail-cat-link {
    color: #1a2333;
    text-decoration: none;
    font-weight: 500;
}

.video-detail-cat-link:hover {
    text-decoration: underline;
}

.video-detail-dot {
    margin: 0 8px;
    color: #c6cdd6;
}

/* ---------------- 左侧信息流 ---------------- */
.video-feed-list {
    display: flex;
    flex-direction: column;
}

.video-feed-item {
    padding: 0 0 32px;
    margin-bottom: 32px;
    border-bottom: 1px solid #e5e9f0;
}

.video-feed-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.video-feed-title {
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 600;
    line-height: 1.55;
    color: #1a2333;
}

.video-feed-title a {
    color: inherit;
    text-decoration: none;
}

.video-feed-title a:hover {
    color: var(--c-action, #1a6cf5);
}

.video-feed-media {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #0f172a;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    line-height: 0;
}

.video-feed-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    object-fit: contain;
}

.video-feed-open {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.18s ease, background 0.18s ease;
    backdrop-filter: blur(4px);
}

.video-feed-media:hover .video-feed-open {
    opacity: 1;
}

.video-feed-open:hover {
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
}

.video-feed-desc {
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.85;
    color: #5b6472;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.video-feed-desc a {
    color: var(--c-action, #1a6cf5);
    text-decoration: none;
    word-break: break-all;
}

.video-feed-desc a:hover {
    text-decoration: underline;
}

.video-feed-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 10px;
    max-height: 1.7em;
    overflow: hidden;
}

.video-tag {
    flex: 0 0 auto;
    font-size: 12px;
    line-height: 1.7;
    color: #98a1ad;
    white-space: nowrap;
}

.video-feed-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 12px;
    font-size: 13px;
    color: #98a1ad;
}

.video-feed-actions i {
    margin-right: 5px;
    opacity: 0.75;
}

.video-feed-more {
    margin-left: auto;
    color: #5b6472;
    text-decoration: none;
}

.video-feed-more:hover {
    color: var(--c-action, #1a6cf5);
}

/* ---------------- 右侧公共栏 ---------------- */
.video-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    position: sticky;
    top: 18px;
}

.video-side-card {
    padding: 16px;
    border: 1px solid #e5e9f0;
    border-radius: 12px;
    background: #fff;
}

.video-side-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.video-side-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1a2333;
    line-height: 1.4;
}

.video-side-more {
    flex-shrink: 0;
    font-size: 12px;
    color: #98a1ad;
    text-decoration: none;
}

.video-side-more:hover {
    color: var(--c-action, #1a6cf5);
}

.video-side-hot-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.video-side-hot {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: inherit;
    text-decoration: none;
}

.video-side-hot-cover {
    position: relative;
    flex-shrink: 0;
    width: 104px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 7px;
    background: #0f172a;
}

.video-side-hot-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-side-hot:hover .video-side-hot-cover img {
    transform: scale(1.05);
}

.video-side-hot-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    background: rgba(0, 0, 0, 0.12);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.video-side-hot:hover .video-side-hot-play {
    opacity: 1;
}

.video-side-hot-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.video-side-hot-title {
    font-size: 13px;
    line-height: 1.5;
    color: #1a2333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-side-hot:hover .video-side-hot-title {
    color: var(--c-action, #1a6cf5);
}

.video-side-hot-meta {
    font-size: 11px;
    color: #98a1ad;
}

.video-side-cats {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.video-side-cat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 8px;
    border-radius: 6px;
    font-size: 13px;
    color: #5b6472;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.video-side-cat em {
    font-style: normal;
    font-size: 11px;
    color: #b0b7c1;
}

.video-side-cat:hover,
.video-side-cat.is-current {
    background: #f2f5f9;
    color: #1a2333;
}

.video-side-cat--sub {
    padding-left: 20px;
    font-size: 12px;
    color: #7a8492;
}

.video-side-help-desc {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.75;
    color: #5b6472;
}

.video-side-help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.video-side-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border: 1px solid #e5e9f0;
    border-radius: 6px;
    background: #f8fafc;
    color: #5b6472;
    font-size: 12px;
    text-decoration: none;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.video-side-btn:hover {
    border-color: var(--c-action, #1a6cf5);
    color: var(--c-action, #1a6cf5);
}

.video-side-btn--primary {
    border-color: transparent;
    background: linear-gradient(180deg, var(--c-action, #1a6cf5) 0%, var(--c-action-hover, #1557cc) 100%);
    color: #fff;
}

.video-side-btn--primary:hover {
    color: #fff;
    filter: brightness(1.05);
}

/* ---------------- 分页 / 空状态 ---------------- */
.video-pager {
    margin-top: 36px;
}

.video-pager .posts-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.video-pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #e5e9f0;
    border-radius: 6px;
    background: #fff;
    color: #5b6472;
    font-size: 13px;
    text-decoration: none;
}

.video-pager .page-numbers:hover {
    border-color: var(--c-action, #1a6cf5);
    color: var(--c-action, #1a6cf5);
}

.video-pager .page-numbers.current {
    border-color: #1a2333;
    background: #1a2333;
    color: #fff;
}

.video-pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

.video-empty {
    padding: 64px 20px;
    text-align: center;
    color: #98a1ad;
}

.video-empty i {
    font-size: 30px;
    opacity: 0.5;
}

.video-empty p {
    margin: 12px 0 0;
    font-size: 14px;
}

/* ---------------- 详情页 ---------------- */
.video-detail-player-wrap {
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.video-detail-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    object-fit: contain;
}

.video-detail-body {
    padding: 18px 0 4px;
}

.video-detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #98a1ad;
}

.video-detail-meta i {
    margin-right: 5px;
    opacity: 0.75;
}

.video-detail-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: #eef2f7;
    color: #475569;
    font-size: 12px;
    text-decoration: none;
}

.video-detail-badge:hover {
    color: var(--c-action, #1a6cf5);
}

.video-detail-desc-box {
    padding: 16px 18px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e9f0;
}

.video-detail-desc {
    font-size: 14px;
    line-height: 1.9;
    color: #4a5565;
}

.video-detail-desc a {
    color: var(--c-action, #1a6cf5);
    text-decoration: none;
    word-break: break-all;
}

.video-detail-desc a:hover {
    text-decoration: underline;
}

.video-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
    margin-top: 14px;
}

.video-related {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #e5e9f0;
}

.video-related-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.video-related-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1a2333;
}

.video-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.video-related-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.video-related-cover {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 9px;
    background: #0f172a;
    aspect-ratio: 16 / 9;
}

.video-related-cover img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.video-related-card:hover .video-related-cover img {
    transform: scale(1.04);
}

.video-related-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.video-related-card:hover .video-related-play {
    opacity: 1;
}

.video-related-cover em {
    position: absolute;
    right: 8px;
    bottom: 8px;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 11px;
    font-style: normal;
}

.video-related-title-text {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: #1a2333;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-related-card:hover .video-related-title-text {
    color: var(--c-action, #1a6cf5);
}

.video-related-meta {
    margin-top: 4px;
    font-size: 12px;
    color: #98a1ad;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
    .video-layout {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 24px;
    }
}

@media (max-width: 767px) {
    .video-layout {
        display: block;
    }

    .video-sidebar {
        position: static;
        margin-top: 32px;
    }

    .video-feed-item {
        padding-bottom: 24px;
        margin-bottom: 24px;
    }

    .video-feed-title {
        font-size: 17px;
    }

    .video-feed-desc {
        -webkit-line-clamp: 4;
    }

    .video-feed-open {
        display: none;
    }

    .video-hero--detail .nrsc-hero__title {
        font-size: 23px;
    }

    .video-related-grid {
        grid-template-columns: 1fr;
    }

    .video-feed-actions {
        gap: 10px 14px;
    }

    .video-feed-more {
        margin-left: 0;
    }
}
