body {
    padding-top: 56px;
    /* Adjust based on the height of your top bar */
    padding-bottom: 56px;
    /* Adjust based on the height of your bottom navbar */
}

.video-thumbnail {
    position: relative;
    margin-bottom: 5px;
    cursor: pointer;
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.video-title {
    margin-top: 0px;
    /* Remove top margin */
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    /* Center-align the text */
}

.video-resolution {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(243, 21, 21, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.video-stats {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

.video-stats .duration {
    background-color: #6c757d;
    /* Bootstrap's secondary color */
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-left: 4px;
}

.navbar {
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #f8f9fa;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}



/* Ensure toggle menu and brand logo are on the same line */
.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 30px;
}

/* Center brand logo on mobile */
@media (max-width: 767.98px) {
    .navbar-brand {
        justify-content: center;
        flex-grow: 1;
    }
}

/* Add spacing at the beginning and end on large screens */
@media (min-width: 992px) {
    .container {
        padding-left: 5%;
        padding-right: 5%;
    }
}


/* Styles for the loading spinner */
#loadingSpinner {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Overlay to dim the background while loading */
#loadingOverlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 5;
}

