/*----------------------------*/
.video-viewer-container {
    background-color: rgb(51, 51, 51);
    /* background-color: #111; */
    color: rgb(255, 255, 255);
}

.video-viewer-container a {
    color: rgb(255, 255, 255);
}

/*----------------------------*/
.video-viewer-top {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.video-viever-chanel-meta {
    display: flex;
    align-items: center;
}

.video-viever-chanel-meta h2 {
    margin: 0;
    font-weight: 700;
}

.video-viever-chanel-meta h2 a {
    color: white;
}

.video-viewer-categories-container {
    position: relative;
}

.video-viewer-categories-container-shadow {
    position: absolute;
    left: -1px;
    background-image: linear-gradient(0.25turn, rgb(51, 51, 51) 0%, #00000000 10%, #00000000 90%, rgb(51, 51, 51) 100%);
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    padding-right: calc(var(--bs-gutter-x) * 1);
}

.video-viewer-categories-container .owl-item {
    display: flex;
    align-items: center;
}

.video-viewer-owl-carousel-container {
    height: 100%;
}

.video-viewer-category-slide a {
    font-size: 16px;
    text-transform: uppercase;
    color: white;
    font-weight: 600;
    display: inline-block;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 16px;
    padding-right: 16px;
    margin: 4px;
    letter-spacing: 2px;
    background-color: rgb(89 89 89);
}

.video-viewer-category-slide a:hover,
.video-viewer-category-slide a:focus,
.video-viewer-category-slide a:active {
    background-color: rgb(255, 255, 255);
    color: rgb(51, 51, 51);
}

.video-viewer-bottom {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    max-height: 600px;
}

/*----------------------------левый блок*/
.video-viewer-first-posts {
    display: flex;
    width: 60%;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.video-viewer-first-post {
    display: flex;
    width: 65%;
    align-items: stretch;
    justify-content: space-between;
}

.video-viewer-first-posts-title {
    text-decoration: none;
    text-transform: uppercase;
    /* color: rgb(197, 197, 197); */
    color: #161616;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 24px;
    padding: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-align: center;
    background-color: rgb(128 128 128);
    /* background-color: #111; */
}

.video-viewer-first-post-card {
    position: relative;
    width: calc(100% - 2.75rem);
    overflow: hidden;
}

.video-viewer-first-post-thumbnail {
    height: 100%;
    position: absolute;
    object-fit: cover;
}

.video-viewer-first-post-title {
    position: absolute;
    bottom: 0px;
    padding: 1rem;
    font-weight: 700;
    pointer-events: none;
    z-index: 3;
}

.video-viewer-first-post-iframe {
    opacity: 0;
    position: relative;
    width: 100%;
    height: 100%;
}

/*----------------------------иконка плей и градиент*/
.video-viewer-post-grad {
    position: absolute;
    display: flex;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to top, rgba(51, 51, 51, 1), rgba(51, 51, 51, 0));
    flex-direction: row;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.video-viewer-post-play {
    position: relative;
    pointer-events: none;
    width: 50px;
    height: 50px;
}

.video-viewer-first-post-card:hover .video-viewer-post-play svg path,
.video-viewer-secondary-post-slide:hover .video-viewer-post-play svg path {
    fill: red !important;
    pointer-events: none;
}

.video-viewer-video-post-container svg {
    pointer-events: none;
}

/*----------------------------левый блок список*/
.video-viewer-first-list {
    width: 35%;
    height: 100%;
    overflow-y: scroll;
}

.video-viewer-first-list-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
}

.video-viewer-first-list-item:hover {
    background-color: rgb(85, 85, 85);
}

.video-viewer-first-list-title {
    font-size: 1.25rem;
}

.video-viewer-first-list-date {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

/*----------------------------правый блок*/
.video-viewer-secondary-posts {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 40%;
}

.video-viewer-secondary-post-slide {
    width: 50%;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    max-height: 300px;
}

.video-viewer-secondary-post-slide a {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
    border: 1px solid #333;
}

.video-viewer-secondary-post-meta {
    position: absolute;
    bottom: 0px;
    padding: 0.5rem;
}

.video-viewer-secondary-post-title {
    font-size: 1.15rem;
    line-height: 100%;
}

.video-viewer-secondary-post-time {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
}

.video-viewer-secondary-post-slide-image {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 0px) and (max-width: 540px) {
    .video-viever-chanel-meta h2 {
        width: 100%;
        padding-bottom: 1rem;
        text-align: center;
    }

    .video-viewer-bottom {
        flex-direction: column;
        max-height: none;
    }

    .video-viewer-first-posts {
        display: flex;
        width: 100%;
        flex-direction: column;
    }

    .video-viewer-first-post {
        width: 100%;
        min-height: 300px;
    }

    .video-viewer-first-posts-title {
        padding: 0.5rem;

        font-size: 1rem;
        font-weight: 500;
        letter-spacing: 3px;
        text-align: center;

        color: #fff;
        background-color: #111;
        /*background-color: rgb(128, 128, 128);*/
    }

    .video-viewer-first-post-card {
        width: calc(100% - 2rem);
    }

    .video-viewer-first-list {
        width: 100%;
        height: 300px;

    }

    .video-viewer-secondary-posts {
        width: 100%;
        padding: 1rem;
    }

    .video-viewer-secondary-post-slide {
        width: 100%;

    }
}

@media (min-width: 0px) and (max-width: 768px) {
    .video-viever-chanel-meta h2 {
        width: 100%;
        padding-bottom: 1rem;
        text-align: center;
    }

    .video-viewer-bottom {
        flex-direction: column;
        max-height: none;
    }

    .video-viewer-first-posts {
        display: flex;
        width: 100%;
        flex-direction: column;
    }

    .video-viewer-first-post {
        width: 100%;
        min-height: 300px;
    }

    .video-viewer-first-posts-title {
        padding: 0.5rem;

        font-size: 1rem;
        font-weight: 500;
        letter-spacing: 3px;
        text-align: center;

        color: #fff;
        background-color: #111;
        /*background-color: rgb(128, 128, 128);*/
    }

    .video-viewer-first-post-card {
        width: calc(100% - 2rem);
    }

    .video-viewer-first-list {
        width: 100%;
        height: 300px;

    }

    .video-viewer-secondary-posts {
        width: 100%;
        padding: 1rem;
    }

    .video-viewer-secondary-post-slide {
        width: 100%;

    }
}

@media (min-width: 768px) and (max-width: 1200px) {

    .video-viewer-bottom {
        flex-direction: column;
        max-height: none;
    }

    .video-viewer-first-posts {
        display: flex;
        width: 100%;
        flex-direction: row;
    }

    .video-viewer-first-post {
        width: 60%;
        min-height: 400px;
    }

    .video-viewer-first-posts-title {
        font-size: 1rem;
        padding: 0.5rem;
        font-weight: 500;
        letter-spacing: 3px;
        text-align: center;
        background-color: rgb(128, 128, 128);
    }

    .video-viewer-first-post-card {
        width: calc(100% - 2rem);
    }

    .video-viewer-first-list {
        width: 40%;
        height: 400px;

    }

    .video-viewer-secondary-posts {
        width: 100%;
        padding: 1rem;
    }

    .video-viewer-secondary-post-slide {
        width: 50%;

    }
}