#lesson-videos-section {
    margin-top: 30px;
}

#lesson-videos-section .see-all-btn {
    font-size: 0.9em;
    color: #4f46e5;
    cursor: pointer;
    background: none;
    border: none;
    font-weight: bold;
    transition: color 0.2s;
}

#lesson-videos-section .see-all-btn:hover {
    color: #3730a3;
}

.video-carousel-header {
    font-size: 1.5em;
    font-weight: bold;
    line-height: 200%;
    text-align: center;
}

.video-carousel {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
    padding: 5px 0;
}

.video-carousel::-webkit-scrollbar {
    height: 6px;
}

.video-carousel::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

.video-carousel .video-card {
    flex: 0 0 160px;
    background-color: #666666;
    color: white;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
/* Responsive design for small screens */
@media (max-width: 600px) {
    .videos-grid  {
        grid-template-columns: repeat(2, 1fr);  /* 2 items per row on small screens */
    }
}

.videos-grid .video-card {
    width: 100%;
    margin: 10px auto;
}

.video-card {
    height: 250px;
    box-shadow: none;
    padding: 0;
    border: none;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.video-card-info {
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
    padding: 10px;
    color: white;
    background-color: rgba(0, 0, 0, 0.7);
}

.video-card img {
    width: 100%;
    object-fit: cover;
    border: none;
    background: #eaeaea;
}

@media (max-width: 768px) {
    .video-card img {
        height: 290px;
    }
}

@media (max-width: 480px) {
    .video-card img {
        height: 250px;
    }
}

.video-card .viewed-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 10px;
    font-size: 16px;
    background-color: green;
    color: white;
    border-radius: 50%;
}

#video-player-popup {
    z-index: 99999;
}

#video-player-popup .popup-container,
#lesson-videos-popup .popup-container {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 100% !important;
    background: #000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
#video-player-popup .popup-content {
    padding: 0px !important;
    overflow: hidden;
    position: relative;
}

#lesson-video-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.video-uploader {
    display: flex;
    gap: 10px;
    align-items: center;
    font-weight: bold;
    color: #66b3ff;
    cursor: pointer;
}
.video-uploader img {
    height: 20px;
    width: 20px;
    object-fit: cover;
    border-radius: 50%;
}

.video-info {
    display: flex;
    justify-content: space-between;
    align-items: top;
    padding: 0px 10px 10px;
    gap: 25px;
    background-color: black;
    color: white;
    z-index: 999;
}

.video-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.stat-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    font-size: 1.0em;
    font-weight: bold;
}
#tutorialVideoTitle {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#likeVideoBtn {
    margin-top: 10px;
    padding: 5px;
    border: 2px solid red;
    border-radius: 6px;
    color: red;
    cursor: pointer;
    display: none;
}

#likeVideoBtn.liked {
    background-color: red;
    color: white;
}

.no-videos {
    color: #777;
    font-style: italic;
}