/* =========================================
   FILTER BAR
========================================= */

.filter-bar-container{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
}

/* =========================================
   SEARCH BAR
========================================= */
.search-bar-container{
    position:relative;
    flex:1;
    min-width:250px;
    margin-bottom:15px;
}

#searchInput{
    width:100%;
    box-sizing:border-box;
    height:30px;

    padding:0 90px 0 12px;

    border:none;
    border-radius:8px;

    box-sizing:border-box;
}

#searchBtn{
    position:absolute;

    top:50%;
    right:4px;

    transform:translateY(-50%);

    height:26px;

    padding:0 15px;

    border:none;
    border-radius:6px;

    cursor:pointer;
}

/* =========================================
   EPISODE DROPDOWN
========================================= */

.episode-dropdown {

    position: relative;
    display: inline-block;

    width: auto;
    min-width: 200px;

    margin-bottom: 15px;

}

.episode-button {

    width:auto;
    min-width:200px;

    padding:8px 12px;

    background:#222;
    color:#fff;

    border:1px solid #444;

    cursor:pointer;

    text-align:left;

    font-size:12px;

    border-radius:4px;

    white-space:nowrap;

}

.episode-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    background: #222;
    border: 1px solid #444;

    display: none;
    z-index: 999;

    max-height: 300px;
    overflow-y: auto;
    border-radius: 4px;
}

.episode-list.show {
    display: block;
}

.episode-item {
    padding: 8px;
    color: white;
    cursor: pointer;
    font-size: 12px;
}

.episode-item:hover {
    background: #444;
}

.episode-item.active {
    background: #ff6600;
    border-radius: 4px;
}

#searchSuggestions{

    position:absolute;

    top:45px;

    left:0;

    width:100%;

    background:#111;

    border-radius:8px;

    overflow:hidden;

    z-index:9999;

}



.search-suggestion-item{

    display:flex;

    align-items:center;

    gap:12px;

    padding:10px;

    color:white;

    cursor:pointer;

    border-bottom:1px solid #333;

}



.suggestion-title{

    font-weight:bold;
    
    font-size:13px;

    white-space:nowrap;

}



.suggestion-info{

    font-size:12px;

    color:#ccc;

    white-space:nowrap;

}


.search-suggestion-item:hover{

    background:#333;

}

/* =========================================
   MOBILE
========================================= */

@media(max-width:768px){

    .filter-bar-container{
        flex-direction:column;
        align-items:stretch;
        gap:10px;
        margin-bottom:20px;
    }

    .episode-dropdown{
        flex:none;
        width:100%;
        margin-bottom:0;
    }

    .search-bar-container{
        flex:none;
        width:100%;
        margin-bottom:0;
    }

    #searchInput{
        width:100%;
    }

    #searchBtn{
        right:4px;
    }

}