/* Video List - Frontend */
.vd-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    padding: 28px 0;
    justify-items: center;
}

.vd-list-card {
    position: relative;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 8px;
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s, background-color 0.2s;
    text-decoration: none;
    color: inherit;
    display: block;
    text-align: center;
}

.vd-list-card.vd-list-card-wide {
    justify-self: stretch;
}

.vd-list-card:hover {
    border-color: #c9c9c9;
    background-color: var(--white-2);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.vd-list-thumb {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    border-radius: 4px 4px 0 0;
    transition: background-color 0.2s ease;
}

.vd-list-card:hover .vd-list-thumb {
    background-color: transparent;
}

.vd-list-thumb img {
    width: 100%;
    display: block;
    object-fit: cover;
}

.vd-list-body {
    padding: 10px;
    text-align: left;
    border-radius: 0 0 4px 4px;
}

.vd-list-title {
    /* 보고서 상세 .report_view_top .re_person .other_report 와 동일 글자 크기 */
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.4;
    margin-bottom: 6px;
    /* 영상 상세 제목(.vd-info-title)과 동일 — reset.css의 본문색(--fontColor, #111) */
    color: var(--fontColor);
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vd-list-meta {
    /* 보고서 상세 .report_view_top .report_preview .re_title > p(발행일 span 포함) 과 동일 글자 크기 */
    font-size: 1.125rem;
    color: #999;
    line-height: 1.5;
    text-align: left;
}

.vd-list-meta span {
    display: inline-block;
    margin-right: 6px;
}

/* 영상 목록 썸네일은 YouTube와 Shorts 모두 가로 16:9로 표시 */
.vd-list-card.vd-list-card-wide .vd-list-thumb {
    aspect-ratio: 16 / 9;
}

.vd-list-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 14px;
}

.vd-list-paging {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
}

.vd-list-paging a,
.vd-list-paging span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    box-sizing: border-box;
    color: #555;
    font-size: 13px;
    text-decoration: none;
}

.vd-list-paging a:hover,
.vd-list-paging .on {
    border-color: #333;
    background: #333;
    color: #fff;
}

.vd-list-paging .disabled {
    color: #aaa;
    background: #f7f7f7;
    cursor: default;
}

.vd-page-nums {
    gap: 6px;
    padding: 0 !important;
    border: 0 !important;
}

@media all and (max-width: 1400px) {
    .vd-list-title {
        font-size: calc(1.4285714286vw * var(--fontSize));
    }
    .vd-list-meta {
        font-size: calc(1.2857142857vw * var(--fontSize));
    }
}

@media all and (max-width: 720px) {
    .vd-list-title {
        font-size: 4.1666666667vw;
    }
    .vd-list-meta {
        font-size: 3.3333333333vw;
    }
}

/* 반응형 */
@media (max-width: 1200px) {
    .vd-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .vd-list-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 600px) {
    .vd-list-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 12px;
    }

    .vd-list-body {
        padding: 6px;
    }

    .vd-list-paging {
        flex-wrap: wrap;
        gap: 4px;
    }

    .vd-list-paging a,
    .vd-list-paging span {
        min-width: 30px;
        height: 30px;
        padding: 0 8px;
        font-size: 12px;
    }
}
