/* 视频作品页：封面点击后再加载 B 站播放器，页面本身不承担视频流量 */

.videos-main {
    padding-top: 80px;
    background: #f8f9fa;
    min-height: 60vh;
}

.videos-hero {
    background: linear-gradient(135deg, #0f172a 0%, #16324f 55%, #0e6b75 100%);
    padding: 96px 0 56px;
    margin-top: -80px;
    margin-bottom: 48px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.videos-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle 1px, rgba(255, 255, 255, .55) 0%, transparent 100%);
    background-size: 14px 14px;
    opacity: .5;
    pointer-events: none;
}

.videos-hero .container {
    position: relative;
    z-index: 1;
}

.videos-hero h1 {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 14px;
    color: #fff;
}

.videos-hero p {
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 24em;
    margin: 0 auto;
    color: rgba(255, 255, 255, .82);
    word-break: keep-all;
}

.videos-section-title {
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 1.35rem;
    color: #1c2b3a;
    margin-bottom: 22px;
}

.videos-section-title span.count {
    font-size: .9rem;
    font-weight: 400;
    color: #8b95a5;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
    padding-bottom: 64px;
}

/* 只有一条视频时不摆成两列，避免右侧留一大块空白 */
.videos-grid.is-single,
.videos-grid:has(> .video-card:only-child) {
    grid-template-columns: minmax(0, 680px);
}

.video-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 32, 56, .08);
    transition: transform .25s ease, box-shadow .25s ease;
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 32, 56, .14);
}

/* 16:9 舞台：未播放时放封面，播放后放 iframe */
.video-stage {
    position: relative;
    padding-top: 56.25%;
    background: #0b1220;
}

.video-stage iframe,
.video-stage img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: cover;
}

.video-play {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    display: block;
    font: inherit;
    color: inherit;
}

.video-play::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 14, 26, 0) 45%, rgba(6, 14, 26, .55) 100%);
    transition: opacity .25s ease;
}

.video-play .play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
    display: grid;
    place-items: center;
    transition: transform .25s ease, background .25s ease;
}

.video-play .play-badge svg {
    width: 24px;
    height: 24px;
    margin-left: 3px;
    fill: #16324f;
}

.video-play:hover .play-badge,
.video-play:focus-visible .play-badge {
    transform: translate(-50%, -50%) scale(1.08);
    background: #fff;
}

.video-play:focus-visible {
    outline: 3px solid rgba(95, 224, 255, .75);
    outline-offset: -3px;
}

.video-duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 2;
    padding: 2px 8px;
    border-radius: 5px;
    background: rgba(4, 10, 20, .78);
    color: #fff;
    font-size: 12px;
    letter-spacing: .4px;
    font-variant-numeric: tabular-nums;
}

.video-body {
    padding: 16px 18px 18px;
}

.video-body h3 {
    font-size: 1.06rem;
    line-height: 1.5;
    color: #16222f;
    font-weight: 600;
    margin-bottom: 8px;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    font-size: .86rem;
    color: #7b8798;
}

.video-meta a {
    color: #2c6fbf;
}

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

.video-meta .dot {
    opacity: .45;
}

.video-note {
    font-size: .86rem;
    line-height: 1.7;
    color: #6f7d90;
    background: #eef3f9;
    border-left: 3px solid #9fc0e6;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    margin: 0 0 52px;
}

/* 播放器占位：点击后到 iframe 真正加载之间 */
.video-stage.is-loading::after {
    content: '正在载入播放器…';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    background: #0b1220;
    color: #9fb0c6;
    font-size: .9rem;
    z-index: 3;
}

@media (max-width: 900px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .videos-hero {
        padding: 88px 0 44px;
    }

    .videos-hero h1 {
        font-size: 2rem;
    }

    .videos-hero p {
        font-size: .98rem;
        padding: 0 6px;
    }

    .video-play .play-badge {
        width: 54px;
        height: 54px;
    }
}

/* 单视频时说明条与卡片同宽，避免一条长条压在窄卡片下面 */
.videos-grid.is-single+.video-note {
    max-width: 680px;
}
