/**

 * FreeBestPlayersWidget («ИГРОКИ ИЩУТ КЛУБ»): овальный чип заголовка + отдельные градиентные карточки.

 * Стиль согласован с arena-hub-title-chip и строками таблицы рейтинга клубов (acf-clubs-rating-table).

 * Подключается из FreeBestPlayersWidget::run().

 */



.free-best-players-block {

    padding: 0 !important;

    margin: 0;

    background: transparent !important;

    border: none !important;

    box-shadow: none !important;

}



.free-best-players-block__title-head {

    display: flex !important;

    justify-content: center !important;

    align-items: center !important;

    width: 100% !important;

    margin: 0 0 14px !important;

    padding: 0 !important;

}



.free-best-players-block__title-pill {

    display: inline-flex !important;

    align-items: center !important;

    justify-content: center !important;

    min-height: 34px !important;

    padding: 7px 16px !important;

    border-radius: 999px !important;

    font-size: 12px !important;

    font-weight: 600 !important;

    letter-spacing: 0.05em !important;

    text-transform: uppercase !important;

    text-align: center !important;

    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);

    border: 1px solid #dfe6ef;

    color: #334155;

    box-sizing: border-box;

}



.free-best-players-block__list {

    list-style: none !important;

    list-style-type: none !important;

    padding-left: 0 !important;

    padding-right: 0 !important;

    margin: 0 !important;

}



.free-best-players-block__list > li.free-best-players-block__item {

    list-style: none !important;

    display: block !important;

    margin-bottom: 10px !important;

    padding: 11px 12px !important;

    border-radius: 12px !important;

    border: 1px solid #e6ecf5;

    background: linear-gradient(180deg, #ffffff 0%, #eef2f6 100%);

    box-shadow:

        inset 0 1px 0 rgba(255, 255, 255, 0.55),

        0 4px 14px rgba(15, 23, 42, 0.08);

    box-sizing: border-box;

}



.free-best-players-block__list > li.free-best-players-block__item:last-child {

    margin-bottom: 0 !important;

}



.free-best-players-block__item > .media {

    margin-top: 0 !important;

    overflow: visible;

    border: 0 none !important;

}



.free-best-players-block__item > .media::before,

.free-best-players-block__item > .media::after {

    display: none !important;

    content: none !important;

}



.free-best-players-block__star-premium.flex-in {

    background-color: #ffd700 !important;

    color: #000 !important;

    font-weight: bold;

    box-shadow: none !important;

    display: flex !important;

    align-items: center !important;

    justify-content: center !important;

    line-height: 17px !important;

    padding: 0 !important;

}



.free-best-players-block__avatar.img-circle {

    vertical-align: middle;

}



/* Тёмная тема */

html[data-theme="dark"] .free-best-players-block__title-pill {

    background: linear-gradient(180deg, #1f2937 0%, #111827 100%) !important;

    border: 1px solid rgba(148, 163, 184, 0.18) !important;

    color: #cbd5e1 !important;

    font-weight: 700 !important;

    box-shadow: none !important;

}



html[data-theme="dark"] .free-best-players-block__list > li.free-best-players-block__item {

    background: linear-gradient(180deg, rgba(31, 41, 55, 0.96) 0%, rgba(17, 24, 39, 0.98) 100%) !important;

    border-color: rgba(148, 163, 184, 0.2) !important;

    box-shadow: none !important;

}



html[data-theme="dark"] .free-best-players-block__item .dotted-link,

html[data-theme="dark"] .free-best-players-block__item .media-heading a {

    color: #f8fafc !important;

}



html[data-theme="dark"] .free-best-players-block__meta,

html[data-theme="dark"] .free-best-players-block__item .text-muted {

    color: #94a3b8 !important;

}



html[data-theme="dark"] .free-best-players-block__avatar.img-circle {

    box-shadow: none !important;

    outline: 2px solid rgba(148, 163, 184, 0.16);

    outline-offset: 0;

}



/* Классический вид светлой темы (.uiblock + .black-head + строки списка) — тёмная тема не затрагивается */

html:not([data-theme="dark"]) .free-best-players-block {

    padding: 10px !important;

    margin: 0 0 20px 0;

    background: #ffffff !important;

    border: 1px solid #e6ecf5 !important;

    border-radius: 5px;

    box-shadow: 0px 0px 20px 0 rgba(63, 66, 87, 0.1);

    box-sizing: border-box;

}



html:not([data-theme="dark"]) .free-best-players-block__title-head {

    justify-content: flex-start !important;

    margin: 0 0 12px !important;

}



html:not([data-theme="dark"]) .free-best-players-block__title-pill {

    display: block !important;

    width: 100% !important;

    min-height: 0 !important;

    padding: 0 !important;

    border-radius: 0 !important;

    border: none !important;

    background: transparent !important;

    box-shadow: none !important;

    font-size: 15px !important;

    font-weight: bold !important;

    letter-spacing: normal !important;

    text-align: left !important;

    color: #63768d !important;

}



html:not([data-theme="dark"]) .free-best-players-block__list > li.free-best-players-block__item {

    margin-bottom: 0 !important;

    padding: 10px 0 !important;

    border-radius: 0 !important;

    border: none !important;

    border-bottom: 1px solid #edf2f6 !important;

    background: transparent !important;

    box-shadow: none !important;

}



html:not([data-theme="dark"]) .free-best-players-block__list > li.free-best-players-block__item:last-child {

    border-bottom: none !important;

}



html:not([data-theme="dark"]) .free-best-players-block__star-premium.flex-in {

    border: 1px solid #c9a000;

}



html:not([data-theme="dark"]) .free-best-players-block__avatar.img-circle {

    border: 1px solid #e6ecf5;

    box-shadow: none !important;

}


