body {
    margin: 0;
    padding: 0;
}

.wrapper {
    margin-left: 272px;
    top: 81px;
    width: calc(100vw - 272px);
    height: calc(100vh - 81px) !important;
    height: 100px;
    position: relative;
}

.videos-container {
    width: 98%;
    margin-left: 15px;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    overflow-x: hidden;
}

.video-card {
    width: 450px;
    height: 330px;
    max-width: 35%; 
    min-width: 330px !important;
}

.video-card-template {
    display: none;
}

.video-thumbnail {
    width: 98%;
    aspect-ratio: 16/9;
    border-radius: 16px;
    margin-left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
}

.video-thumbnail-container {
    position: relative;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 20px;
    background-color: hsl(var(--secondary));
    color: hsl(var(--primary));
    padding: 5px;
    border-radius: 5px;
    font-size: 14px;
}

.video-info {
    width: 94%;
    position: relative;
    bottom: 0px;
    height: 70px;
    margin-left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: row;
}

.video-author {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
    margin-left: 5px;
}

.author-avatar {
    width: 50px;
    border-radius: 50px;
}

.video-meta {
    position: relative;
    width: 85%;
    height: 100%;
    display: flex;
    flex-direction: column;
    right: 0;
    left: 60px;
    position: absolute;
    font-size: 14px !important;
    justify-content: center;
}

.video-title,
.views,
.author-name {
    margin: 0;
    padding: 0;
    margin-left: 5px;
}

.hidden {
    display: flex;
}

@media (max-width: 1280px) {
    .videos-container {
        width: 98%;
        margin-left: 15px;
        height: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
        gap: 15px;
    }

    .video-card {
        min-width: 98% !important;
    }
}

@media (max-width: 800px) {
    .videos-container {
        width: 98%;
        height: 100%;
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .video-card {
        width: 100%;
        height: auto;
        min-width: 330px;
        max-width: none;
        box-sizing: border-box;
    }
}