﻿.browse-channels-section {
    background-image: url("../../images/backgrounds/bg-6-v2.svg");
    background-position: 35% 25%;
    background-repeat: no-repeat;
    background-attachment: scroll;
    display: flex;
    width: auto;
    padding: 64px 0px;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 42px;
}

.channels-header {
    padding: 0px 64px;
    display: flex;
    gap: 12px;
    align-items: flex-end;
    width:100%;
}

.channel-header-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    gap: 12px;
}


.channels-header-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    align-self: stretch;
}

    .channels-header-text > h2 {
        color: var(--clr-text-neutral-500);
        font-family: var(--font-family-head);
        font-size: var(--font-size-hero-title);
        font-style: normal;
        font-weight: 800;
        line-height: normal;
    }

    .channels-header-text > p {
        color: var(--clr-text-neutral-500);
        font-family: var(--font-family-body);
        font-size: var(--font-size-body-02);
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }

@media (max-width: 992px) {
    .channels-header {
        flex-direction: column;
        align-items: center;
        padding: 0 16px;
    }

    .channel-header-filter {
        flex-direction: column;
    }

    .channels-header-text {
        align-items: center;
        text-align: center;
    }

    .browse-channels-section {
        padding: 32px 0px;
    }

    .channels-header-text > h2 {
        font-size: var(--font-size-head-05);
    }

    .channels-header-text > p {
        font-size: var(--font-size-body-04);
    }

    .browse-channels-section{
        gap: 24px;
    }

}

.genre-filter-wrapper {
    position: relative;
    flex-shrink: 0;
}

.genre-filter-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--clr-bg-white);
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.10);
    min-width: 160px;
    z-index: 99999;
    padding: 12px;
}

.genre-filter-dropdown.open {
    display: block;
}

.genre-filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    border-radius: 8px;
    padding: 4px 12px;
    gap: 4px;
    font-size: var(--font-size-body-05);
    font-weight: 400;
    color: var(--clr-text-neutral-600);
    height: 34px;
    white-space: nowrap;
}

.genre-filter-option:hover {
    background: var(--clr-bg-nav-primary);
    color: var(--clr-bg-white) !important;
}

.genre-filter-option.active {
    color: var(--clr-bg-nav-primary);
    font-weight: 600;
}

.genre-filter-chevron {
    transition: transform 0.2s ease;
}

#genreFilterBtn.open .genre-filter-chevron {
    transform: rotate(180deg);
}

/* Override .btn-secondary.contents fixed 150px width so long genre names are not cut off */
#genreFilterBtn {
    width: auto;
    min-width: 150px;
    white-space: nowrap;
}

/* Prevent the filter icon and chevron from being clipped or shrunk when text is long */
#genreFilterBtn > svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

/* Keep white background when a filter is active; signal the selection through label colour only */
#genreFilterBtn.filter-active {
    background: var(--clr-bg-white);
}

#genreFilterBtn.filter-active #genreFilterLabel {
    color: var(--clr-text-neutral-600);
    font-weight: 600;
}

#genreFilterBtn:hover #genreFilterLabel {
    color: var(--clr-text-white) !important;
}

.no-channels-result {
    padding: 40px 64px;
    text-align: center;
    width: 100%;
}

.no-channels-result > p {
    color: var(--clr-text-neutral-500);
    font-family: var(--font-family-body);
    font-size: var(--font-size-body-02);
}
