/* Browse Page (Series/Movies) Styles */

/* Filter Bar */
.filter-scroll-container {
    padding: 20px var(--content-padding);
    background-color: #000;
    /* or slightly lighter if desired */
    /* Sticky removed as requested */
    /* position: sticky; */
    /* top: var(--header-height); */
    z-index: 90;
    border-bottom: 1px solid #222;
}

.filter-bar {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    /* Firefox */
    padding-bottom: 5px;
}

.filter-bar::-webkit-scrollbar {
    display: none;
    /* Chrome */
}

.filter-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    padding: 5px 0;
    transition: color 0.3s;
    font-family: 'Inter', sans-serif;
    position: relative;
}

.filter-btn:hover {
    color: white;
}

.filter-btn.active {
    color: white;
    font-weight: 700;
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
}

/* Media Grid Container */
.media-grid-container {
    padding: 20px var(--content-padding);
    min-height: 60vh;
}

/* Reuse search-grid but ensure it fits */
.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

@media (max-width: 768px) {
    .filter-scroll-container {
        top: 60px;
        /* Adjust based on mobile header */
        padding: 15px;
    }

    .filter-bar {
        gap: 20px;
    }

    .search-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
    }
}