﻿.contest-page {
    padding: 32px 0;
    background: linear-gradient(130.11deg, #FFFFFF 4.54%, #F5E6CF 93.02%);
}

.contest-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 29px;
    margin-bottom: 24px;
    position: relative;
}

    .contest-header::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% );
    }

    .contest-header > * {
        display: flex;
        align-items: center;
    }

.contest-header__title {
    font: 700 24px/32px var(--serif-font);
    color: var(--primary-500);
    margin-right: 16px;
}

.contest-author > * {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
}

.author-name {
    font: 700 14px/20px var(--inter-font);
    color: var(--neutral-500);
}

.contest-status {
    height: 24px;
    line-height: 24px;
}

    .contest-status > * {
        vertical-align: middle;
    }

.contest-status__count {
    font: 500 14px/20px var(--inter-font);
    color: #920818;
    margin-left: 8px;
}

.contest-header > *:nth-child(2) > *:first-child {
    margin-right: 16px;
}

.contest-title {
    font: 700 36px/48px var(--serif-font);
    color: var(--neutral-500);
    margin-bottom: 24px;
}

.contest-video {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 24px;
}

    .contest-video .u-asp-16-9 {
        border-radius: 16px;
        overflow: hidden;
    }

    .contest-video .vjs-16-9 {
        position: absolute;
    }

.contest-description {
    font: 600 16px/24px var(--inter-font);
    color: var(--neutral-500);
    margin-bottom: 24px;
}

.contest-widget {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-cl);
}

.contest-widget__item {
    text-align: center;
}

.contest-widget__title {
    font: 600 18px/28px var(--inter-font);
    margin-bottom: 8px;
}

.contest-widget__btn-group > *:nth-last-child(n+2) {
    margin-right: 32px;
}

.contest-widget__btn-group--small-g > *:nth-last-child(n+2) {
    margin-right: 10px;
}

.contest-widget__btn {
    background-color: transparent;
    border: none;
    cursor: pointer;
}

.contest-widget > *:last-child {
    margin-top: 24px;
}

.comment-item {
    background-color: #FFFFFF;
    border-radius: 8px;
    padding: 16px;
}

    .comment-item > *:nth-last-child(n+2) {
        margin-bottom: 16px;
    }

    .comment-item .user-status > * {
        display: inline-block;
        vertical-align: middle;
    }

    .comment-item .user-icon img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        margin-right: 16px;
    }

    .comment-item .user-info .name {
        font: 600 14px/20px var(--inter-font);
        margin-bottom: 4px;
    }

    .comment-item .user-info .comment-time {
        font: 400 12px/18px var(--inter-font);
        margin-bottom: 0px;
    }

.comment-content p {
    margin-bottom: 4px;
    font: 14px/20px var(--inter-font);
    color: var(--neutral-500);
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.comment-content label {
    cursor: pointer;
    font: 800 14px/16px var(--roboto-font);
    color: var(--primary-500);
}

.comment-content input[type="checkbox"] {
    display: none;
}

    .comment-content input[type="checkbox"]:checked ~ p {
        overflow: visible;
        display: block;
    }

    .comment-content input[type="checkbox"]:checked ~ label {
        display: none;
    }

.contest-comment__box {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.contest-comment__submit {
    background-color: transparent;
    border: none;
    padding: 13px 16px 13px 12px;
    cursor: pointer;
}

    .contest-comment__submit > * {
        width: 24px;
        height: 24px;
        display: block;
    }

.contest-comment__input {
    flex: 1;
    padding: 13px 16px;
    background-color: transparent;
    border: none;
    outline: none;
    font: 14px/22px var(--roboto-font);
}

.contest-comment > *:nth-last-child(n+2) {
    margin-bottom: 16px;
}

.contest-comment__title {
    font: 700 24px/32px var(--serif-font);
}

.contest-comment {
    margin-bottom: 45px;
}

.contest-relate__title {
    margin-bottom: 24px;
    font: 700 36px/48px var(--serif-font);
    color: var(--primary-500);
    text-align: center;
}

.contest-relate__list {
    display: flex;
}

    .contest-relate__list > * {
        width: calc((100% - 48px) / 3);
    }

        .contest-relate__list > *:nth-last-child(n+2) {
            margin-right: 24px;
        }

.video-card {
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 4px 16px 32px 0px #1111111F;
}

.video-wrapper {
    padding: 8px;
}

.video-title {
    font: 700 18px/28px var(--serif-font);
    color: var(--neutral-500);
}

.video-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-card__author > * {
    display: flex;
    align-items: center;
    gap: 8px;
}

.video-card__author-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

    .video-card__author-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.video-card__author-name {
    font: 700 14px/20px var(--inter-font);
    color: var(--neutral-500);
}

.video-card__control {
    display: flex;
    align-items: center;
}

    .video-card__control > *:first-child {
        margin-right: 16px;
    }

    .video-card__control > * {
        background-color: transparent;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
    }

.video-card__icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.video-card__count {
    font: 500 14px/20px var(--inter-font);
    color: #920818;
}
