/* General Body Styles */
body {
    background-color: #121212;
    color: #ffffff;
}

/* Header Styles */
header {
    background-color: #1f1f1f;
}

/* Player Section Styles */
#player-section {
    width: 100%;
}

.video-player-container {
    max-width: 1000px; /* Max width for a 720p (1280x720) player */
    margin: 0 auto; /* Center the container horizontally */
    background-color: #1f1f1f;
    border-radius: 8px;
    overflow: hidden; /* Ensures the border-radius is applied to the video player */
}

.video-details {
    background-color: #1f1f1f;
}

.video-js {
    width: 100%;
    height: 100%;
}

/* Category Navigation */
#category-filters {
    justify-content: center;
    gap: 0.5rem;
}

#category-filters .nav-link {
    color: #a9a9a9;
    background-color: #282828;
    border-radius: 1.5rem;
    padding: 0.5rem 1.25rem;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

#category-filters .nav-link.active,
#category-filters .nav-link:hover {
    color: #121212;
    background-color: #ffffff;
}


/* Video Grid & Card Styles */
.content-section {
    margin-bottom: 2rem;
}

.section-header {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.video-card {
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.video-card:hover {
   transform: scale(1.03);
}

.thumbnail-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    border-radius: 8px;
    overflow: hidden;
    background-color: #333;
}

.thumbnail-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-card .card-body {
    padding-top: 0.75rem !important;
}

.video-card .card-title {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #f1f1f1;
}

.video-card .card-text {
    font-size: 0.875rem;
    color: #aaa;
}

.ratio::before {
    padding-top: 0;
}