/* =========================================================================
   hall_of_fame.css — страница «Зал славы» (/hall-of-fame)
   Оформление в духе match2.css / contact.css / faq.css / results.css:
   мягкие карточки, токены цветов и адаптивные таблицы рейтинга.
   ========================================================================= */

.bt-hall {
    --bh-card: #ffffff;
    --bh-ink: #1c2b42;
    --bh-ink-soft: #5d6b81;
    --bh-muted: #8a94a3;
    --bh-line: #e6eaf0;
    --bh-line-soft: #f0f3f8;
    --bh-bg: #f8f9fc;
    --bh-brand: #cc1d14;
    --bh-accent: #ffda33;
    --bh-green: #2f9a4d;
    --bh-blue: #2a5a9f;
    --bh-danger: #b33a24;
    --bh-radius: 18px;
    --bh-radius-sm: 12px;
    --bh-shadow: 0 6px 24px rgba(19, 31, 53, .07);
    --bh-shadow-sm: 0 3px 12px rgba(19, 31, 53, .05);
    width: 100%;
    max-width: 1180px;
    padding-left: 14px;
    padding-right: 14px;
    color: var(--bh-ink);
}

.bt-hall *,
.bt-hall *::before,
.bt-hall *::after {
    box-sizing: border-box;
}

.bt-hall p {
    margin: 0 0 12px;
    color: #33415a;
    line-height: 1.65;
}

.bt-hall p:last-child {
    margin-bottom: 0;
}

.bt-hall .breadcrumb {
    margin: 6px 0 10px !important;
    padding-left: 0 !important;
}

/* ---------- Первый экран ---------- */
.bt-hall__hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
    align-items: center;
    gap: 28px;
    padding: 30px 32px;
    border: 1px solid var(--bh-line);
    border-radius: var(--bh-radius);
    background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 58%, #fff8e1 100%);
    box-shadow: var(--bh-shadow);
}

.bt-hall__hero::before,
.bt-hall__hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.bt-hall__hero::before {
    width: 240px;
    height: 240px;
    right: -80px;
    top: -110px;
    background: rgba(255, 218, 51, .22);
}

.bt-hall__hero::after {
    width: 180px;
    height: 180px;
    left: -70px;
    bottom: -110px;
    background: rgba(42, 90, 159, .07);
}

.bt-hall__hero-body,
.bt-hall__hero-art {
    position: relative;
    z-index: 1;
}

.bt-hall__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #fff3c4;
    color: #6f5500;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.bt-hall__eyebrow::before {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--bh-green);
    box-shadow: 0 0 0 3px rgba(47, 154, 77, .18);
}

.bt-hall__hero h1 {
    margin: 0 0 10px;
    color: var(--bh-ink);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    font-weight: 850;
    letter-spacing: -.015em;
    text-align: left;
}

.bt-hall__lead {
    max-width: 60ch;
    margin: 0 0 18px !important;
    color: var(--bh-ink-soft);
    font-size: 15px;
    line-height: 1.6;
}

.bt-hall__rating-picker {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    max-width: 560px;
    margin: 0;
}

.bt-hall__rating-picker > span,
.bt-hall__filter > span {
    color: var(--bh-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.bt-hall select {
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 10px 36px 10px 12px;
    border: 1px solid #dbe2ec;
    border-radius: 10px;
    background-color: #fff;
    color: var(--bh-ink);
    font-family: inherit;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
    box-shadow: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.bt-hall select:focus {
    outline: 0;
    border-color: var(--bh-blue);
    box-shadow: 0 0 0 3px rgba(42, 90, 159, .13);
}

.bt-hall__hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.bt-hall__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid #d7e1f0;
    border-radius: 10px;
    background: #fff;
    color: var(--bh-ink) !important;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: var(--bh-shadow-sm);
    transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease;
}

.bt-hall__btn:hover {
    transform: translateY(-1px);
    border-color: #c6d4e8;
    box-shadow: 0 6px 16px rgba(19, 31, 53, .1);
}

.bt-hall__btn:focus-visible,
.bt-hall select:focus-visible {
    outline: 3px solid rgba(42, 90, 159, .35);
    outline-offset: 2px;
}

.bt-hall__hero-art {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bt-hall__hero-art img {
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
    margin: 0;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(19, 31, 53, .12));
}

/* ---------- Пояснение ---------- */
.bt-hall__info {
    margin-top: 16px;
    padding: 22px 26px;
    border: 1px solid var(--bh-line);
    border-radius: var(--bh-radius);
    background: var(--bh-card);
    box-shadow: var(--bh-shadow-sm);
}

.bt-hall__title {
    position: relative;
    margin: 0 0 10px;
    padding-left: 14px;
    color: var(--bh-ink);
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
    text-align: left;
}

.bt-hall__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: .18em;
    bottom: .18em;
    width: 4px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--bh-brand), var(--bh-accent));
}

.bt-hall__subtitle {
    margin: 0 !important;
    color: var(--bh-ink-soft);
    font-size: 13px;
    line-height: 1.55;
}

.bt-hall__criteria {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 26px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
}

.bt-hall__criteria li {
    position: relative;
    padding-left: 24px;
    color: var(--bh-ink-soft);
    font-size: 13.5px;
    line-height: 1.5;
}

.bt-hall__criteria li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 1px;
    width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #eaf7eb;
    color: var(--bh-green);
    font-size: 10px;
    font-weight: 900;
}

.bt-hall__criteria li:last-child {
    grid-column: 1 / -1;
}

.bt-hall__note {
    margin: 14px 0 0 !important;
    color: var(--bh-muted);
    font-size: 12px;
    line-height: 1.5;
}

/* ---------- Рейтинг ---------- */
.bt-hall__results {
    margin-top: 16px;
    padding: 22px 24px;
    border: 1px solid var(--bh-line);
    border-radius: var(--bh-radius);
    background: var(--bh-card);
    box-shadow: var(--bh-shadow);
}

.bt-hall__results-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.bt-hall__status {
    min-height: 20px;
    margin: 0;
    color: var(--bh-muted);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    text-align: right;
}

.bt-hall__status[hidden] {
    display: none;
}

.bt-hall__status.is-error {
    color: var(--bh-danger);
}

.bt-hall__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 28px 24px;
    color: var(--bh-ink-soft);
    text-align: center;
}

.bt-hall__empty strong {
    color: var(--bh-ink);
    font-size: 16px;
    font-weight: 800;
}

.bt-hall__empty span {
    font-size: 13px;
    line-height: 1.5;
}

.bt-hall__table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--bh-line);
    border-radius: 14px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    transition: opacity .15s ease;
}

.bt-hall__table-scroll.is-loading {
    opacity: .55;
    pointer-events: none;
}

.bt-hall__scroll-hint {
    display: none;
    margin: 10px 0 0 !important;
    color: var(--bh-muted);
    font-size: 12px;
    line-height: 1.45;
}

/* Фильтры, которые приходят вместе с AJAX-таблицей. */
.bt-hall__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 14px 16px;
    border-bottom: 1px solid var(--bh-line);
    background: #f8fafc;
}

.bt-hall__filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 190px;
    margin: 0;
}

.bt-hall__filter select {
    min-height: 42px;
}

/* ---------- Таблица ---------- */
#tableHalf .main_table {
    width: 100%;
    min-width: 760px;
    margin: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

#tableHalf .main_table thead th {
    padding: 12px 10px;
    border-bottom: 1px solid var(--bh-line);
    background: #f6f8fc;
    color: var(--bh-ink);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
    vertical-align: middle;
    white-space: normal;
}

/* Третий столбец — прогнозист; заголовок выравниваем по именам. */
#tableHalf .main_table thead th:nth-child(3) {
    padding-left: 12px;
    text-align: left;
}

#tableHalf .main_table tbody th,
#tableHalf .main_table tbody td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--bh-line-soft);
    color: #33415a;
    font-size: 13.5px;
    line-height: 1.35;
    text-align: center;
    vertical-align: middle;
}

#tableHalf .main_table tbody tr:last-child th,
#tableHalf .main_table tbody tr:last-child td {
    border-bottom: 0;
}

#tableHalf .main_table tbody tr:nth-child(even) th,
#tableHalf .main_table tbody tr:nth-child(even) td,
#tableHalf .main_table tbody tr.even th,
#tableHalf .main_table tbody tr.even td {
    background: #fbfcfe;
}

#tableHalf .main_table tbody tr:hover th,
#tableHalf .main_table tbody tr:hover td {
    background: #f5f8fd;
}

#tableHalf .main_table .m_hide {
    display: none;
}

#tableHalf .main_table td.center,
#tableHalf .main_table td.n {
    color: var(--bh-ink);
    font-size: 14px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

#tableHalf .main_table td.kol,
#tableHalf .main_table td.cnt,
#tableHalf .main_table th.kol,
#tableHalf .main_table th.cnt {
    font-variant-numeric: tabular-nums;
    font-weight: 650;
}

#tableHalf .main_table .rise,
#tableHalf .main_table .rise.itog {
    color: var(--bh-green);
    font-weight: 800;
}

#tableHalf .main_table .fall,
#tableHalf .main_table .fall.itog {
    color: var(--bh-danger);
    font-weight: 800;
}

#tableHalf .main_table .itog {
    font-weight: 800;
}

/* Автор: аватар + имя в одну строку. */
#tableHalf .main_table td.tipster {
    min-width: 200px;
    text-align: left;
}

#tableHalf .main_table td.tipster > a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    color: var(--bh-ink) !important;
    font-size: 13.5px;
    font-weight: 750;
    line-height: 1.3;
    text-align: left;
    text-decoration: none !important;
}

#tableHalf .main_table td.tipster > a:hover {
    color: var(--bh-blue) !important;
}

#tableHalf .icon-profile {
    position: relative;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin: 0;
    border-radius: 50%;
    background: #f1f4f8;
}

#tableHalf .icon-profile img {
    display: block;
    width: 42px !important;
    height: 42px !important;
    max-width: 42px;
    max-height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

#tableHalf .icon-profile .txt-stat {
    position: absolute;
    top: auto;
    right: -4px;
    bottom: -4px;
    min-width: 26px;
    padding: 2px 5px;
    border: 2px solid #fff;
    border-radius: 999px;
    background: var(--bh-green);
    color: #fff !important;
    font-size: 9px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: .04em;
    text-align: center;
}

/* Сортировка tablesorter: свои лёгкие стрелки вместо фоновых картинок. */
#tableHalf .tablesorter-header {
    position: relative;
    padding-right: 24px !important;
    background-image: none !important;
    cursor: pointer;
    user-select: none;
}

#tableHalf .tablesorter-header::after {
    content: "↕";
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    color: var(--bh-muted);
    font-size: 10px;
    line-height: 1;
}

#tableHalf .tablesorter-headerAsc::after {
    content: "↑";
    color: var(--bh-blue);
}

#tableHalf .tablesorter-headerDesc::after {
    content: "↓";
    color: var(--bh-blue);
}

#tableHalf .sorter-false {
    cursor: default;
}

#tableHalf .sorter-false::after {
    display: none;
}

/* ---------- Адаптив ---------- */
@media screen and (max-width: 1024px) {
    .bt-hall__hero {
        grid-template-columns: minmax(0, 1fr) minmax(180px, 280px);
        gap: 20px;
        padding: 26px;
    }
}

@media screen and (max-width: 900px) {
    .bt-hall__hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .bt-hall__hero-art {
        justify-content: flex-start;
    }

    .bt-hall__hero-art img {
        max-width: 260px;
    }
}

@media screen and (max-width: 640px) {
    .bt-hall {
        padding-left: 10px;
        padding-right: 10px;
    }

    .bt-hall__hero {
        gap: 14px;
        padding: 20px 18px;
        border-radius: 14px;
    }

    .bt-hall__hero h1 {
        font-size: clamp(26px, 8vw, 34px);
    }

    .bt-hall__lead {
        font-size: 14px;
    }

    .bt-hall__hero-art img {
        max-width: 220px;
    }

    .bt-hall__info,
    .bt-hall__results {
        padding: 18px 15px;
        border-radius: 14px;
    }

    .bt-hall__criteria {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    .bt-hall__results-head {
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
    }

    .bt-hall__status {
        text-align: left;
    }

    .bt-hall__filters {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }

    .bt-hall__scroll-hint {
        display: block;
    }

    .bt-hall__filter {
        min-width: 0;
    }

    #tableHalf .main_table {
        min-width: 700px;
        font-size: 13px;
    }

    #tableHalf .main_table thead th {
        padding: 10px 8px;
        font-size: 10px;
    }

    #tableHalf .main_table tbody th,
    #tableHalf .main_table tbody td {
        padding: 9px 8px;
        font-size: 12.5px;
    }

    #tableHalf .main_table td.tipster {
        min-width: 170px;
    }

    #tableHalf .icon-profile {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    #tableHalf .icon-profile img {
        width: 36px !important;
        height: 36px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bt-hall__btn,
    .bt-hall select,
    .bt-hall__table-scroll {
        transition: none !important;
    }
}
