.fn-movie-filter-bar {
    width: 100%;
    min-width: 0;
    overflow: visible;
    position: relative;
    z-index: 30;
}

.fn-filter-dropdowns {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    overflow: visible;
}

.fn-filter-dropdown {
    position: relative;
    flex-shrink: 0;
}

.fn-filter-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.85);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.fn-filter-dropdown-trigger:hover:not(:disabled):not([aria-expanded="true"]) {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(168, 85, 247, 0.35);
    box-shadow: var(--fn-neon-purple-glow-subtle);
}

.fn-filter-dropdown-trigger:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.fn-filter-dropdown-trigger[aria-expanded="true"] {
    background: transparent;
    border-color: var(--fn-neon-purple);
    color: #fff;
    box-shadow: var(--fn-neon-purple-glow-btn);
}

.fn-filter-dropdown-label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.78rem;
}

.fn-filter-dropdown-value {
    max-width: 8rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fn-filter-chevron {
    flex-shrink: 0;
    opacity: 0.6;
    transition: transform 0.15s;
}

.fn-filter-dropdown-trigger[aria-expanded="true"] .fn-filter-chevron {
    transform: rotate(180deg);
}

.fn-filter-dropdown-panel {
    position: absolute;
    top: calc(100% + 0.35rem);
    inset-inline-start: 0;
    z-index: 120;
    min-width: 10rem;
    max-width: 16rem;
    max-height: 14rem;
    overflow-y: auto;
    padding: 0.35rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(18, 22, 48, 0.97);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    scrollbar-width: thin;
}

.fn-filter-dropdown-panel--scroll {
    max-height: 16rem;
}

.fn-filter-option {
    display: block;
    width: 100%;
    text-align: start;
    padding: 0.45rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
}

.fn-filter-option:hover:not(.is-selected),
.fn-filter-option:focus-visible:not(.is-selected) {
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    box-shadow: var(--fn-neon-purple-glow-subtle);
}

.fn-filter-option.is-selected {
    background: transparent;
    border-color: var(--fn-neon-purple);
    color: #fff;
    font-weight: 600;
    box-shadow: var(--fn-neon-purple-glow-btn);
}

.fn-filter-chips-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.65rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.fn-filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    flex: 1;
    min-width: 0;
}

.fn-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.55rem 0.3rem 0.7rem;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--fn-neon-purple);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
    box-shadow: var(--fn-neon-purple-glow-btn);
}

.fn-filter-chip-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.12s;
}

.fn-filter-chip-remove:hover {
    background: rgba(255, 255, 255, 0.22);
}

.fn-filter-clear-all {
    flex-shrink: 0;
    padding: 0.3rem 0.65rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    font-family: inherit;
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.fn-filter-clear-all:hover {
    color: rgba(255, 255, 255, 0.85);
}

.fn-category-spotlight .fn-movie-filter-bar {
    margin-bottom: 0;
}

.search-page .fn-movie-filter-bar {
    margin-bottom: 0;
}

.search-page .fn-search-filters,
.search-page .fn-page-container {
    overflow: visible;
}

.search-page .fn-search-toolbar {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin-bottom: 1rem;
}

.search-page .fn-search-toolbar::-webkit-scrollbar {
    display: none;
}

.search-page .fn-search-toolbar-input {
    flex: 1 1 12rem;
    min-width: 8rem;
    max-width: none;
}

.search-page .fn-search-toolbar-input .input-search {
    height: 50px;
}

.search-page .fn-search-toolbar-filters {
    flex: 0 0 auto;
}

.search-page .fn-search-toolbar .fn-movie-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    width: auto;
}

.search-page .fn-search-toolbar .fn-filter-dropdowns {
    flex-wrap: nowrap;
    width: auto;
}

.search-page .fn-search-toolbar .fn-filter-chips-row {
    flex-basis: 100%;
}

.search-page .fn-search-toolbar:has(.fn-filter-chips-row:not([hidden])) {
    flex-wrap: wrap;
    overflow-x: visible;
}

.search-page .fn-search-toolbar:has(.fn-filter-chips-row:not([hidden])) .fn-movie-filter-bar {
    flex: 1 1 100%;
    justify-content: flex-end;
}

@media (max-width: 575px) {
    .fn-filter-dropdowns {
        gap: 0.4rem;
    }

    .fn-filter-dropdown-trigger {
        padding: 0.4rem 0.7rem;
        font-size: 0.8rem;
    }

    .fn-filter-dropdown-value {
        max-width: 5.5rem;
    }
}
