/* =========================
   VOD PAGE
   ========================= */

.vod-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 16px;
}

    .vod-page-header h1 {
        font-size: 22px;
        margin-bottom: 4px;
    }

.vod-page-sub {
    font-size: 13px;
    color: #777;
}

.vod-page-stats {
    font-size: 13px;
    color: #555;
}

/* 필터 영역 */
.vod-filters {
    margin-bottom: 16px;
}

.vod-filter-form {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr 2fr auto;
    gap: 12px;
    align-items: flex-end;
}

.filter-group label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.filter-group select,
.filter-group input[type="date"],
.filter-group input[type="text"] {
    width: 100%;
    height: 34px;
    padding: 0 8px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #d1d5db;
}

.date-range {
    display: flex;
    align-items: center;
    gap: 6px;
}

    .date-range .tilde {
        font-size: 13px;
        color: #999;
    }

.filter-actions {
    display: flex;
    gap: 6px;
}

/* 리스트 영역 */
.vod-list-section {
    margin-bottom: 24px;
}

.vod-list-sort {
    font-size: 12px;
    color: #777;
}

.sort-btn {
    border: none;
    background: none;
    font-size: 12px;
    padding: 2px 4px;
    margin-left: 4px;
    color: #777;
    cursor: pointer;
}

    .sort-btn.active {
        color: #e53935;
        font-weight: 600;
    }

/* VOD item (한 줄) */
.vod-list {
    list-style: none;
}

.vod-item {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 160px;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
}

    .vod-item:first-child {
        border-top: 1px solid #e5e7eb;
    }

/* 썸네일 */
.vod-thumb {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #111827;
    height: 0;
    padding-top: 56.25%; /* 16:9 */
}

    .vod-thumb img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.vod-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 11px;
    background: #e53935;
    color: #fff;
    padding: 3px 8px;
    border-radius: 999px;
}

.vod-duration {
    position: absolute;
    right: 8px;
    bottom: 8px;
    font-size: 11px;
    background-color: rgba(0,0,0,.7);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
}

/* 가운데 정보 */
.vod-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vod-title {
    font-size: 15px;
    font-weight: 600;
}

.vod-meta {
    font-size: 12px;
    color: #777;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vod-desc {
    font-size: 13px;
    color: #555;
}

.vod-tags .tag {
    display: inline-block;
    font-size: 11px;
    background-color: #f3f4f6;
    color: #555;
    padding: 3px 7px;
    border-radius: 999px;
    margin-right: 4px;
}

/* 오른쪽 버튼 영역 */
.vod-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-width: 140px;
}

    .vod-actions .btn {
        font-size: 13px;
        padding: 7px 10px;
    }

.vod-counts {
    font-size: 11px;
    color: #999;
    text-align: right;
}

/* 페이징 */
.pagination-wrap {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.pagination {
    list-style: none;
    display: flex;
    gap: 4px;
}

.page-link {
    display: block;
    min-width: 28px;
    text-align: center;
    padding: 4px 8px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    color: #555;
    text-decoration: none;
}

    .page-link.active {
        background-color: #e53935;
        color: #fff;
        border-color: #e53935;
    }

    .page-link.disabled {
        color: #ccc;
        pointer-events: none;
    }

/* 반응형: 태블릿 / 모바일 */
@media (max-width: 960px) {
    .vod-filter-form {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
    }

    .filter-keyword {
        grid-column: 1 / 3;
    }

    .filter-actions {
        grid-column: 1 / 3;
        justify-content: flex-end;
    }

    .vod-item {
        grid-template-columns: 150px minmax(0, 1fr);
        grid-template-rows: auto auto;
        grid-template-areas:
            "thumb info"
            "thumb actions";
    }

    .vod-thumb {
        grid-area: thumb;
    }

    .vod-info {
        grid-area: info;
    }

    .vod-actions {
        grid-area: actions;
        align-items: flex-start;
        text-align: left;
        margin-top: 6px;
    }

        .vod-actions .btn-block {
            width: auto;
            min-width: 120px;
        }
}


/* =========================
   VOD DETAIL (PLAYER)
   ========================= */

.vod-detail-top {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.vod-detail-actions {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.vod-detail-header__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
    color: #777;
    font-size: 12px;
}

.vod-detail-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: #e53935;
    color: #fff;
    font-weight: 700;
    font-size: 11px;
}

.vod-detail-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.vod-detail-sub {
    font-size: 15px;
    color: #555;
    margin-top: 10px;
    margin-bottom: 10px;
}

.vod-detail-tags .tag {
    display: inline-block;
    font-size: 11px;
    background-color: #f3f4f6;
    color: #555;
    padding: 3px 7px;
    border-radius: 999px;
    margin-right: 4px;
}

.vod-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 16px;
    align-items: start;
}


.vod-guide {
    padding: 14px;
}

.vod-player {
    padding: 14px;
}

.vod-player__frame {
    border-radius: 10px;
    overflow: hidden;
    background: #0b1220;
    aspect-ratio: 3 / 2;
}

.vod-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.vod-player__meta {
    display: flex;
    justify-content: end;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.vod-player__desc {
    margin-top: 4px;
}

.vod-player__stats {
    display: flex;
    gap: 12px;
    color: #666;
    font-size: 13px;
}

.vod-player__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.vod-side .vod-side-card {
    margin-bottom: 16px;
}

.vod-side-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
}

.vod-side-list {
    margin-left: 18px;
    color: #555;
    font-size: 13px;
}

    .vod-side-list li + li {
        margin-top: 6px;
    }

.vod-side-actions {
    margin-top: 12px;
}

.vod-mini-list {
    list-style: none;
    display: grid;
    gap: 10px;
}

.vod-mini-link {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    text-decoration: none;
}

    .vod-mini-link:hover {
        text-decoration: none;
    }

.vod-mini-thumb {
    width: 88px;
    height: 56px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #111827;
}

.vod-mini-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #222;
    line-height: 1.35;
    max-height: 2.7em;
    overflow: hidden;
}

.vod-mini-meta {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #777;
}

@media (max-width: 960px) {
    .vod-detail-grid {
        grid-template-columns: 1fr;
    }

    .vod-player__frame {
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 640px) {
    .vod-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .vod-filter-form {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .filter-keyword,
    .filter-actions {
        grid-column: auto;
    }

    .vod-item {
        grid-template-columns: 1fr;
        grid-template-areas:
            "thumb"
            "info"
            "actions";
    }

    .vod-thumb {
        padding-top: 56.25%;
    }

    .vod-actions {
        align-items: stretch;
    }
}
