@import url(./header.css);

main {
    margin-top: 50px;
}

.title {
    display: flex;
}

.title>div {
    display: flex;
    align-items: center;
    flex: 1;
    height: 14vmin;
}

.video {
    width: 90%;
    margin: 0 auto;
}

.video .video-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 10px 20px;
    grid-auto-rows: 70vmin;
}

.video .video-list .video-list-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 68vmin;
}

.video-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-wrapper .video-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10vmin;
    color: #ffffff;
}

.video-wrapper .video-content {
    position: absolute;
}

.video-wrapper .video-content {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 20vmin;
    background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .7));
    padding-top: 10px;
}

.video-wrapper .video-content .video-name {
    display: block;
    width: 90%;
    margin: 0 auto;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 3.5vmin;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-transform: capitalize;
}

.video-content .info {
    display: flex;
    width: 90%;
    margin: 0 auto;
}

.video-content .info>span {
    width: 100%;
}

.video-content .info .clock {
    color: #ffffff;
    font-size: 3.5vmin;
}

.video-content .info .heart {
    color: #df0e62;
    font-size: 3.5vmin;
    text-align: right;
}

.swiper-banner {
    width: 100%;
    height: 100vmin;
}

.swiper-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.swiper-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: diffuse 900ms linear;
    animation-iteration-count: infinite;
    animation-fill-mode: forwards;
}

.video-play::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 6vmin;
    animation: insetDiffuse 900ms linear;
    animation-iteration-count: infinite;
    animation-delay: 700ms;
    transform: scale(1);
}

.video-play_icon {
    color: #df0e62;
}

@keyframes insetDiffuse {
    0% {
        box-shadow: 0px 0px 0px 0px rgba(255, 255, 255, .5)
    }

    100% {
        box-shadow: 0px 0px 0px 20px rgba(255, 255, 255, 0)
    }
}

@keyframes diffuse {
    0% {
        box-shadow: 0px 0px 0px 0px rgba(255, 255, 255, .5)
    }

    100% {
        box-shadow: 0px 0px 0px 20px rgba(255, 255, 255, 0)
    }
}

@media screen and (min-width: 769px) and (max-width: 1440px) {
    .video .video-list {
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 10px 30px;
        grid-auto-rows: 400px;
    }

    .swiper-banner {
        height: 35vh;
    }
}

@media screen and (min-width: 1441px) {
    .video .video-list {
        grid-template-columns: repeat(6, 1fr);
        grid-gap: 10px 30px;
        grid-auto-rows: 400px;
    }

    .swiper-banner {
        height: 600px;
    }
}

@media screen and (min-width: 768px) {
    main {
        margin-top: 65px;
    }

    .title {
        display: flex;
    }

    .title>div {
        display: flex;
        align-items: center;
        flex: 1;
        height: 80px;
    }

    .video {
        width: 80%;
        margin: 0 auto;
    }

    .video .video-list {
        grid-gap: 10px 30px;
        grid-auto-rows: 320px;
    }

    .video-wrapper {
        height: 312px;
        cursor: pointer;
    }

    .video-wrapper .video-icon {
        font-size: 50px;
    }

    .video-wrapper .video-content {
        height: 80px;
        transition: height .4s ease-in-out;
    }

    .video-wrapper:hover {
        filter: brightness(.8);
    }

    .video-wrapper:hover .video-content {
        height: 110px;
    }

    .video-wrapper .video-content .video-name {
        font-size: 14px;
    }

    .video-content .info .clock {
        font-size: 14px;
    }

    .video-content .info .heart {
        font-size: 14px;
        width: fit-content;
    }
}