﻿.video-page {
    margin: 32px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 29px;
    margin-bottom: 24px;
    position: relative;
}

    .breadcrumb::after {
        content: "";
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 5px;
        background: #C4CBE3;
        clip-path: polygon( 0.4% 0%, 99.6% 0%, 100% 100%, 0% 100% );
    }

.breadcrumb__main {
    font: 700 16px/24px var(--inter-font);
    color: #920818;
}

.breadcrumb__list {
    display: flex;
    align-items: center;
    gap: 8px;
    font: 14px/149% var(--roboto-font);
    color: #5C5C5C;
}

.video-detail > *:nth-last-child(n+2):nth-child(n+2) {
    margin-bottom: 24px;
}

.video-detail__title {
    font: 700 36px/48px var(--serif-font);
    color: var(--neutral-500);
    margin-bottom: 16px;
}

.video-detail__post-time {
    font: 500 12px/18px var(--inter-font);
    color: var(--neutral-400);
}

.video-detail__description {
    font: 600 16px/24px var(--inter-font);
    color: var(--neutral-500);
}

.video-detail__video-holder {
    border-radius: 16px;
    overflow: hidden;
}

    .video-detail__video-holder .vjs-16-9 {
        position: absolute;
    }

.video-detail__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-cl);
}

.video-detail__social {
    display: flex;
    align-items: center;
    font: 500 14px/20px var(--inter-font);
    gap: 8px;
}

    .video-detail__social > *:first-child {
        padding-right: 8px;
    }

.video-detail__post-utc {
    font: 600 18px/28px var(--inter-font);
}

.video-detail__icon {
    width: 24px;
    height: 24px;
}

.video-detail__keyword {
    display: flex;
    align-items: center;
    /* margin-bottom: 24px; */
    /* position: relative; */
    /* padding-bottom: 29px; */
}
/* .video-detail__keyword::after{
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 5px;
    background: #C4CBE3;
    clip-path: polygon(
        0.4% 0%,
        99.6% 0%,
        100% 100%,
        0% 100%
    );
} */
.video-detail__keyword-text {
    font: 500 14px/20px var(--inter-font);
    color: #000;
    margin-right: 16px;
}

.video-detail__keyword-list {
    display: flex;
    gap: 16px;
    align-items: center;
}

    .video-detail__keyword-list > * {
        padding: 8px 16px;
        border-radius: 40px;
        font: 14px/20px var(--inter-font);
        border: 1px solid var(--border-cl);
        color: var(--neutral-500);
    }

.video-detail__sub {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    position: relative;
    padding-bottom: 29px;
}

    .video-detail__sub::after {
        content: "";
        position: absolute;
        bottom: 0;
        width: 100%;
        height: 5px;
        background: #C4CBE3;
        clip-path: polygon( 0.4% 0%, 99.6% 0%, 100% 100%, 0% 100% );
    }

    .video-detail__sub > * {
        width: calc((100% - 72px) / 4);
    }

        .video-detail__sub > *:nth-last-child(n+2) {
            margin-right: 24px;
        }

.video-relate {
    display: flex;
}

.video-relate__left {
    width: 74.528%;
    margin-right: 24px;
}

.video-relate__right {
    flex: 1;
    position: relative;
}

.video-relate__track {
    position: absolute;
    inset: 0;
}

.video-relate__thumb {
    position: sticky;
    top: 70px;
}

.video-relate__title > * {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
}

.video-relate__title {
    font: 700 24px/32px var(--inter-font);
    color: var(--primary-500);
    text-transform: uppercase;
    margin-bottom: 24px;
}

.video-relate__list > * {
    display: flex;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-cl);
}

.video-relate__more > * {
    display: block;
    width: fit-content;
    padding: 8px 24px;
    color: #fff;
    border-radius: 8px;
    background-color: var(--primary-500);
    font: 600 16px/24px var(--inter-font);
    margin: 0 auto;
}

    .video-relate__more > *:hover {
        color: #fff;
    }

.video-relate__list .new-article__thumb {
    width: 34.177%;
    margin-bottom: 0;
    margin-right: 16px;
}

.video-relate__list .new-article__info {
    flex: 1;
}

.video-relate__side-list > *:nth-child(n+2) .new-article__thumb {
    display: none;
}

.video-relate__side-list > * {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-cl);
}

.video-relate .banner > * {
    display: block;
    width: 100%;
    height: auto;
}

.video-relate .banner img {
    width: 100%;
    object-fit: cover;
}

.video-relate__thumb > *:nth-last-child(2).banner {
    margin-bottom: 24px;
}

@media screen and (max-width: 768px) {
    .video-relate__track, .video-relate__thumb {
        position: static;
    }

    .video-page {
        margin: 16px 0;
    }

    .breadcrumb__list {
        display: none;
    }

    .breadcrumb {
        padding-bottom: 21px;
        margin-bottom: 16px;
    }

    .video-detail__title {
        font: 700 24px/32px var(--serif-font);
    }

    .video-detail > *:nth-last-child(n+2):nth-child(n+2) {
        margin-bottom: 16px;
    }

    .video-detail__footer {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 16px;
    }

    .video-detail__social {
        margin-bottom: 16px;
    }

    .video-detail__keyword {
        position: relative;
        padding-bottom: 21px;
        margin-bottom: 16px;
    }

        .video-detail__keyword::after {
            content: "";
            position: absolute;
            bottom: 0;
            width: 100%;
            height: 5px;
            background: #C4CBE3;
            clip-path: polygon( 0.4% 0%, 99.6% 0%, 100% 100%, 0% 100% );
        }

    .video-detail__keyword-list {
        overflow-x: auto;
        flex: 1;
        margin-right: -16px;
    }

        .video-detail__keyword-list::-webkit-scrollbar {
            display: none;
        }

        .video-detail__keyword-list > * {
            white-space: nowrap;
        }

            .video-detail__keyword-list > *:first-child {
                margin-left: 8px;
            }

            .video-detail__keyword-list > *:last-child {
                margin-right: 8px;
            }

    .video-detail__sub {
        flex-wrap: wrap;
        padding-bottom: 21px;
        margin-bottom: 16px;
    }

        .video-detail__sub > * {
            width: calc((100% - 16px) / 2);
        }

            .video-detail__sub > *:nth-last-child(n+2) {
                margin-right: 16px;
            }

            .video-detail__sub > *:nth-child(2n) {
                margin-right: 0px;
            }

            .video-detail__sub > *:nth-child(-n+2) {
                margin-bottom: 16px;
            }

        .video-detail__sub .new-article__thumb > *, .video-relate__left .new-article__thumb > * {
            border-radius: 8px;
        }

    .video-relate {
        flex-direction: column;
    }

    .video-relate__left {
        width: 100%;
        margin-right: 0;
        margin-bottom: 16px;
    }

        .video-relate__left .video-relate__title {
            margin-bottom: 16px;
        }

    .video-relate__right .video-relate__title {
        font-size: 18px;
        line-height: 28px;
    }

    .video-relate__left .new-article__description {
        display: none;
    }

    .video-relate__left .new-article__thumb {
        margin-right: 8px;
        width: 40.233%;
        min-width: 138px;
    }

    .video-relate__list > * {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .video-relate__right .new-article__title {
        font-size: 16px;
        line-height: 24px;
    }
}
