@charset "UTF-8";
@import url("https://fonts.googleapis.com/css?family=Roboto:400,400i,700");
:root {
    --font: "Roboto", helvetica, sans-serif;
    --text-size: 18px;
    --text-color: #0f0f0f;
    --text-invert: #f1f1f1;
    --channelText: #606060;
}



img {
    max-width: 100%;
     border-radius: 0.5vw;
}

.video {
    text-decoration: none;
}
@media (max-width: 495px) {
    .video--wrapper {
        width: 320px;
        max-width: 100%;
    }
}
@media (max-width: 320px) {
    .video--wrapper {
        width: 100%;
    }
}
.video:hover {

}
.video--container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px 14px;
}
@media (max-width: 1200px) {
    .video--container {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 992px) {
    .video--container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 495px) {
    .video--container {
        grid-template-columns: 1fr;
        justify-items: center;
        margin: 0;
    }
}
@media (max-width: 480px) {
    .video--container {
        margin-left: -15px;
        margin-right: -15px;
    }
}
.video--thumbnail {
    display: block;
    aspect-ratio: 16/9;
}
.video--thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;

    box-shadow: 0 0 7px #dd212c;
    border-color: #dd212c;
    border-width: 2px;
}
.video--thumbnail__overlays {
    position: absolute;
    bottom: 0;
    right: 0;
    display: inline-flex;
    flex-direction: row;
    height: 12px;
    margin: 4px;
    padding: 3px 4px;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    border-radius: 4px;
    box-sizing: content-box;
}
.video--thumbnail__overlays span {
    max-height: 1.2rem;
    overflow: hidden;
    font-size: 12px;
    font-weight: 500;
    line-height: 12px;
    letter-spacing: 0.35px;
    color: white;
}
.video--details {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
}
.video--details__avatar {
    height: 36px;
    margin-top: 12px;
    margin-right: 12px;
    display: inline-block;
}
.video--details__avatar img {
    background-color: var(--placeholderBg);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    aspect-ratio: 1/1;
    display: inline-block;
}
.video--details__meta {
    overflow-x: hidden;
    padding-right: 24px;
}
.video--details__meta-data {
    max-height: 36px;
    overflow: hidden;
    display: block;
    -webkit-line-clamp: 2;
    display: box;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    white-space: normal;
    display: flex;
    color: var(--text-color);
}
.video--details__meta-data-views,
.video--details__meta-data-published {
    display: inline-block;
    color: var(--channelText);
    font-family: var(--font);
    font-size: 12px;
    line-height: 18px;
    font-weight: 400;
}
.video--details__meta-data-published::before {
    content: "•";
    margin: 0 4px;
}
.video--details__title {
    margin: 12px 0 4px;
    color: var(--text-color);
    font-family: var(--font);
    font-size: 16px;
    line-height: 22px;
    font-weight: 500;
    max-height: 44px;
    overflow: hidden;
    display: block;
    -webkit-line-clamp: 2;
    display: box;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    white-space: normal;
}
.video--details__channelTitle {
    color: var(--channelText);
    font-family: var(--font);
    font-size: 12px;
    font-weight: 400;
    margin: 0;
}
@media (max-width: 495px) {
    .video--placeholder {
        width: 320px;
    }
}
@media (max-width: 480px) {
    .video--placeholder {
        width: 100%;
    }
}
@keyframes loading {
    100% {
        transform: translateX(100%);
    }
}
.video--placeholder .video--thumbnail {
    border-radius: 12px;
}
.video--placeholder .video--thumbnail img {
    aspect-ratio: 16/9;
    background-color: var(--placeholderBg);
}
.video--placeholder .video--thumbnail__overlays {
    display: none;
}
.video--placeholder .video--details__title,
.video--placeholder .video--details__channelTitle {
    background: var(--placeholderBg);
    height: 16px;
    border-radius: 2px;
}
.video--placeholder .video--details__title {
    width: 100%;
    margin-bottom: 10px;
}
.video--placeholder .video--details__channelTitle {
    width: 66.66666%;
}
.video--placeholder .video--details__meta-data {
    display: none;
}
.video--wrapper.loading .loader,
.video--wrapper.loading .video--details__title,
.video--wrapper.loading .video--details__channelTitle,
.video--wrapper.loading .video--thumbnail {
    overflow: hidden;
}
.video--wrapper.loading .loader::after,
.video--wrapper.loading .video--details__title::after,
.video--wrapper.loading .video--details__channelTitle::after,
.video--wrapper.loading .video--thumbnail::after {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: loading 1.5s infinite;
}
.darkmode {
    --text-color: #f1f1f1;
    --text-invert: #0f0f0f;
    --channelText: #aaa;
    --background: #0f0f0f;
    --placeholderBg: #232323;
    --placeholderGradient: rgba(255, 255, 255, 0.05);
}
