/*=========================================================
=            Anime Filter Layout
=========================================================*/

.anime-filter-row{

    display:flex;
    flex-wrap:wrap;
    align-items:flex-end;
    gap:18px;
    margin:30px 0;

}

.filter-item{

    flex:1 1 180px;
    min-width:180px;

}

.filter-item label{

    display:block;
    margin-bottom:10px;
    color:#d9d9d9;
    font-size:13px;
    font-weight:600;

}

/*=========================================================
=            Tom Select
=========================================================*/

.ts-wrapper{

    width:100%;

}

.ts-control{

    min-height:46px;
    padding:8px 12px;

    background:#1f232b !important;
    border:1px solid #303846 !important;
    border-radius:12px;

    color:#fff;

    box-shadow:none !important;

    transition:.25s;

}

.ts-control:hover{

    border-color:#5f7cff !important;

}

.ts-wrapper.focus .ts-control{

    border-color:#5f7cff !important;
    box-shadow:0 0 0 3px rgba(95,124,255,.18)!important;

}

.ts-control input{

    color:#fff !important;

}

.ts-control input::placeholder{

    color:#8f98a8;

}

/*=========================================================
=            Dropdown
=========================================================*/

.ts-dropdown{

    margin-top:8px;

    background:#1f232b;
    border:1px solid #303846;
    border-radius:12px;

    overflow:hidden;

}

.ts-dropdown .option{

    padding:12px 14px;
    color:#ddd;

}

.ts-dropdown .active{

    background:#5f7cff;
    color:#fff;

}

.ts-dropdown .selected{

    background:#2f3745;
    color:#fff;

}

/*=========================================================
=            Selected Items
=========================================================*/

.ts-wrapper.multi .ts-control > div{

    display:flex;
    align-items:center;
    gap:6px;

    background:#5568ff;

    color:#fff;

    border-radius:18px;

    padding:5px 11px;

    font-size:10px;
    font-weight:600;

    margin:3px;

    transition:.2s;

}

.ts-wrapper.multi .ts-control > div:hover{

    background:#6d83ff;

}

/* زر الحذف */

.ts-wrapper.plugin-remove_button .item .remove{

    display:flex;
    align-items:center;
    justify-content:center;

    width:18px;
    height:18px;

    margin-right:2px;

    border:none;

    border-radius:50%;

    background:rgba(255,255,255,.15);

    color:#fff;

    font-size:10px;

    transition:.2s;

}

.ts-wrapper.plugin-remove_button .item .remove:hover{

    background:#ff4d4d;
    color:#fff;

}

/*=========================================================
=            Buttons
=========================================================*/

.filter-buttons{

    display:flex;

    align-self:flex-end;

    gap:10px;

    transform:translateY(7px);

}

.filter-search,
.filter-reset{

    width:46px;
    height:46px;

    display:flex;
    justify-content:center;
    align-items:center;

    padding:0;

    border:none;
    border-radius:14px;

    cursor:pointer;

    transition:.25s;

}

/* زر البحث */

.filter-search{

    background:#5568ff;
    color:#fff;

    box-shadow:0 8px 20px rgba(85,104,255,.35);

}

.filter-search:hover{

    background:#6b7cff;

    transform:translateY(-2px);

}

/* زر إعادة التعيين */

.filter-reset{

    background:#2d3444;
    color:#d9dbe1;

}

.filter-reset:hover{

    background:#424b61;
    color:#fff;

    transform:translateY(-2px);

}

.filter-search i,
.filter-reset i{

    font-size:17px;
    line-height:1;

}

/*=========================================================
=            Responsive
=========================================================*/

@media(max-width:1200px){

    .filter-item{

        flex:1 1 calc(33.333% - 18px);

    }

}

@media(max-width:768px){

    .filter-item{

        flex:1 1 calc(50% - 18px);

    }

}

@media(max-width:520px){

    .filter-item{

        flex:1 1 100%;

    }

}