﻿.videosWrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(380px,1fr));
    grid-gap: 16px;
    width: 100%;

    height: calc(100% - 56px);
    padding: 2rem 2rem 4rem 2rem;
    background-color: #fff;
    overflow: auto;
}

.videoContent:hover {
    transform: scale(1.02);
}

@media (max-width: 520px) {
    .videosWrapper {
        padding: 4rem 2rem;
    }
}

.videoContent {
    display: flex;
    flex-direction: column;
    min-width: 380px;
    cursor: pointer;
    transition: transform 0.5s ease 0s;
}

.videoPlay {
    aspect-ratio: 16 / 9;
    width: 100%;
    max-width: 380px;
    min-width: 380px;
    display: none;
}

.thumbnailImage {
    aspect-ratio: 16 / 9;
    width: 100%;
    /*max-width: 380px;*/
    min-width: 380px;
    object-fit: cover;
    position: relative;
    cursor: pointer;
    display: block;
}

.videoDetails {
    display: flex;
    margin-top: 1.2rem;
    width: 100%;
}

.avatar {
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #0672cb;
    display: flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    overflow: hidden;
}

.avatarText {
    color: rgb(255, 255, 255);
    font-size: 1rem;
    margin-bottom: .5rem;
    margin-top: .5rem;
}

.videoInfo {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-left: 1.2rem;
}

.videoTitle {
    font-weight: 400;
    color: rgb(3, 3, 3);
    font-size: 14px;
    line-height: 1.2rem;
    overflow: hidden;
    -webkit-line-clamp: 2;
    text-overflow: ellipsis;
    white-space: normal;
    margin-bottom: 0.2rem;
}

.subInfoText {
    color: rgb(96, 96, 96);
    font-size: 12px;
}


/* Details Page*/

.video-details-container {
    width: 100%;
    /* height: calc(100vh - 56px);*/
    min-height: calc(100vh - 256px);
    display: flex;
   /* overflow: auto;*/
    background-color: #fff;
}

.video-details-content{
    padding: 20px;
    display: flex;
    flex-direction: row;
    -webkit-box-pack: justify;
    justify-content: space-between;
    width: 100%;
}

.video-details-video {
    width: calc(100% - 350px);
    height: 100%;
}

.video-details-side-panel {
    width: 350px;
    height: 100%;
    background-color: #ededed;
    -webkit-box-pack: end;
    justify-content: flex-end;
}

.video-details-info-container {
    width: 100%;
    padding-top: 15px;
}

.video-details-info-title {
    word-break: break-word;
    color: rgb(3, 3, 3);
    font-size: 24px;
}

.video-details-info-hr {
    width: 100%;
    height: 1px;
    background-color: rgb(204, 204, 204);
    margin-top: 1rem;
}

.video-details-info-text {
    color: rgb(3, 3, 3);
    font-size: 14px;
    padding-left: 0;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.video-details-side-panel-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 2rem;
    padding-bottom: 2rem;
    width: 350px;
}

.video-details-side-panel-item-Container {
    display: flex;
    flex-direction: row;
}

.video-details-side-panel-image {
    aspect-ratio: 16 / 9;
    width: 200px;
    height:116px;
    object-fit: cover;
    cursor: pointer;
    display: block;
}

.video-details-side-panel-text-container {
    display: flex;
    flex-direction: column;
    padding: 0 1rem 0 1rem;
    overflow: hidden;
}

.video-details-side-panel-text {
    color: rgb(3, 3, 3);
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    margin-bottom: 4px;
    display: -webkit-box;
    
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-details-action-row {
    display: flex;
    margin-top: 1rem;
    width: 100%;
    -webkit-box-align: center;
    align-items: center;
    padding-bottom: 1rem;
}

.video-details-action-row-header {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-left: 1.2rem;
    flex: 1 1 0%;
}

.video-details-action-button {
    display: flex !important;
}

.tag-filter-container {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    -webkit-box-align: center;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgb(204, 204, 204);
    border-bottom: 1px solid rgb(204, 204, 204);
    /*padding: 0.5rem 2rem;*/
}

.tag-filter-button {
    height: 32px;
    width: fit-content;
    min-width: 12px;
    padding: 0px 10px;
    border-radius: 16px;
    box-sizing: border-box;
    outline: none;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    -webkit-box-align: center;
    align-items: center;
    color: rgb(3, 3, 3);
    background-color: rgb(232, 232, 232);
    border: 1px solid rgb(204, 204, 204);
}

.tag-filter-button-selected {
    color: rgb(255, 255, 255);
    background-color: #0672cb;
}