/* ========================================================================
   RANKINGS — FILTERS / SEARCH
   ======================================================================== */

.rankings-controls {
    display: flex;
    align-items: flex-end;
    gap: 10px;

    margin-bottom: 16px;
    padding: 13px;

    background:
        linear-gradient(
            180deg,
            rgba(19, 23, 27, .96),
            rgba(12, 15, 18, .94)
        );

    border:
        1px solid
        rgba(255, 255, 255, .055);

    border-radius: 5px;

    box-shadow:
        0 8px 26px rgba(0, 0, 0, .12),
        inset 0 1px 0 rgba(255, 255, 255, .02);
}


.rankings-controls__search {
    flex: 1 1 280px;
    min-width: 220px;
}


.rankings-controls__group {
    flex: 0 0 auto;
}


.rankings-controls__sort {
    width: 122px;
}


.rankings-control-label {
    margin-bottom: 5px;

    color: #737d87;

    font-size: 9px;
    line-height: 11px;
    letter-spacing: .6px;
    text-transform: uppercase;
}


/* ------------------------------------------------------------------------
   SEARCH
   ------------------------------------------------------------------------ */

.rankings-controls__search {
    flex: 1 1 300px;
    min-width: 260px;
}

.rankings-search {
    position: relative;

    width: 100%;
    height: 36px;
}


/* Поле */

.rankings-search__input {
    display: block;

    width: 100%;
    height: 36px;

    margin: 0;

    padding:
        0 38px
        0 40px;

    color: #d9dee3;

    background:
        linear-gradient(
            180deg,
            rgba(14, 17, 20, .98),
            rgba(10, 13, 16, .98)
        );

    border:
        1px solid
        rgba(255, 255, 255, .08);

    border-radius: 4px;

    font-family:
        HelveticaNeue,
        Arial,
        sans-serif;

    font-size: 12px;
    line-height: 34px;

    box-shadow:
        inset 0 1px 2px
        rgba(0, 0, 0, .25);

    transition:
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.rankings-search__input::placeholder {
    color: #68717b;
    opacity: 1;
}

.rankings-search__input:focus {
    color: #ffffff;

    background: #0e1216;

    border-color:
        rgba(208, 198, 150, .42);

    box-shadow:
        0 0 0 2px
        rgba(208, 198, 150, .055),
        inset 0 1px 2px
        rgba(0, 0, 0, .28);
}


/* Лупа */

.rankings-search__icon {
    position: absolute;

    left: 14px;
    top: 50%;

    z-index: 3;

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

    width: 14px;
    height: 14px;

    color: #818b95;

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

    transform:
        translateY(-50%);

    pointer-events: none;

    transition:
        color .18s ease;
}

.rankings-search:focus-within .rankings-search__icon {
    color: #d0c696;
}


/* Крестик очистки */

.rankings-search__clear {
    position: absolute;

    right: 9px;
    top: 50%;

    z-index: 3;

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

    width: 22px;
    height: 22px;

    color: #6e7780;
    background: transparent;

    border-radius: 3px;

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

    text-decoration: none;

    transform:
        translateY(-50%);

    transition:
        color .15s ease,
        background .15s ease;
}

.rankings-search__clear:hover {
    color: #e9dfb0;

    background:
        rgba(208, 198, 150, .08);

    text-decoration: none;
}


/* Autofill */

.rankings-search__input:-webkit-autofill,
.rankings-search__input:-webkit-autofill:hover,
.rankings-search__input:-webkit-autofill:focus {
    -webkit-text-fill-color: #d9dee3 !important;

    -webkit-box-shadow:
        0 0 0 1000px
        #0d1114
        inset !important;

    transition:
        background-color 9999s ease-in-out 0s;
}


/* ------------------------------------------------------------------------
   FACTION TABS
   ------------------------------------------------------------------------ */

.rankings-tabs {
    display: flex;
    align-items: center;

    height: 36px;

    padding: 3px;

    background: #0d1114;

    border:
        1px solid
        rgba(255, 255, 255, .07);

    border-radius: 4px;
}


.rankings-tab {
    position: relative;

    margin: 0;
}


.rankings-tab input {
    position: absolute;

    opacity: 0;
    pointer-events: none;
}


.rankings-tab span {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 28px;

    padding:
        0 10px;

    color: #7f8993;

    border:
        1px solid
        transparent;

    border-radius: 3px;

    font:
        10px
        HelveticaNeue,
        Arial,
        sans-serif;

    white-space: nowrap;

    cursor: pointer;

    transition:
        color .16s ease,
        background .16s ease,
        border-color .16s ease;
}


.rankings-tab span:hover {
    color: #cfd4d9;

    background:
        rgba(255, 255, 255, .035);
}


.rankings-tab input:checked + span {
    color: #e9dfb0;

    background:
        rgba(208, 198, 150, .10);

    border-color:
        rgba(208, 198, 150, .16);
}


.rankings-tab--light input:checked + span {
    color: #68d1df;

    background:
        rgba(42, 156, 170, .10);

    border-color:
        rgba(66, 190, 205, .17);
}


.rankings-tab--dark input:checked + span {
    color: #e87575;

    background:
        rgba(170, 49, 49, .11);

    border-color:
        rgba(206, 76, 76, .17);
}


/* ------------------------------------------------------------------------
   SORT
   ------------------------------------------------------------------------ */

.rankings-sort {
    width: 100%;
    height: 36px;

    padding:
        0 27px
        0 10px;

    color: #ced4da;

    background:
        #0d1114;

    border:
        1px solid
        rgba(255, 255, 255, .08);

    border-radius: 4px;

    font:
        11px
        HelveticaNeue,
        Arial,
        sans-serif;

    cursor: pointer;
}


.rankings-sort:focus {
    border-color:
        rgba(208, 198, 150, .35);
}


/* ------------------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------------------ */

.rankings-search-button,
.rankings-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 36px;

    margin: 0;
    padding:
        0 15px;

    border-radius: 4px;

    font:
        11px
        HelveticaNeue,
        Arial,
        sans-serif;

    text-decoration: none;

    cursor: pointer;

    transition:
        color .16s ease,
        background .16s ease,
        border-color .16s ease,
        box-shadow .16s ease;
}


.rankings-search-button {
    color: #17150e;

    background:
        linear-gradient(
            180deg,
            #d8ce98,
            #bbb078
        );

    border:
        1px solid
        #d0c696;

    font-weight: 700;

    box-shadow:
        0 4px 13px
        rgba(208, 198, 150, .08);
}


.rankings-search-button:hover {
    color: #111;

    background:
        linear-gradient(
            180deg,
            #e4d9a2,
            #c7bc83
        );
}


.rankings-reset {
    color: #9ba4ad;

    background: #161b20;

    border:
        1px solid
        rgba(255, 255, 255, .08);
}


.rankings-reset:hover {
    color: #e5dab0;

    border-color:
        rgba(208, 198, 150, .22);
}


/* ------------------------------------------------------------------------
   EMPTY RESULT
   ------------------------------------------------------------------------ */

.rankings-empty {
    padding: 46px 20px;

    background:
        rgba(13, 16, 19, .72);

    border:
        1px solid
        rgba(255, 255, 255, .055);

    border-radius: 5px;

    text-align: center;
}


.rankings-empty__icon {
    color: #7e8791;

    font-size: 30px;
    line-height: 36px;
}


.rankings-empty__title {
    margin-top: 7px;

    color: #e7eaed;

    font:
        18px
        HelveticaNeue,
        Arial,
        sans-serif;

    font-weight: 700;
}


.rankings-empty__text {
    max-width: 380px;
    margin:
        7px auto
        17px;

    color: #7d8791;

    font-size: 12px;
    line-height: 18px;
}


.rankings-empty__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 34px;

    padding:
        0 14px;

    color: #ddd4a8;

    background:
        rgba(208, 198, 150, .07);

    border:
        1px solid
        rgba(208, 198, 150, .17);

    border-radius: 4px;

    font-size: 11px;

    text-decoration: none;
}


.rankings-empty__button:hover {
    color: #fff1ba;

    background:
        rgba(208, 198, 150, .11);
}


/* ------------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------------ */

@media (max-width: 1250px) {

    .rankings-controls {
        flex-wrap: wrap;
    }

    .rankings-controls__search {
        flex:
            1 1
            100%;
    }

}
/* ==============================================================
   FIX — ВЫРАВНИВАНИЕ СОРТИРОВКИ
   ============================================================== */

.rankings-controls__sort {
    width: 122px;

    display: flex;
    flex-direction: column;

    align-self: flex-end;

    margin: 0;
    padding: 0;
}


.rankings-controls__sort .rankings-control-label {
    margin: 0 0 5px;
    padding: 0;

    height: 11px;
    line-height: 11px;
}


.rankings-controls__sort .rankings-sort {
    display: block;

    width: 100%;
    height: 36px;

    margin: 0;
    padding-top: 0;
    padding-bottom: 0;

    box-sizing: border-box;

    vertical-align: top;
}
