/* =========================================================================
   konkurs_prognoz.css — страница «Прогнозы из конкурсов» (/konkurs-prognoz)
   Оформление в духе match2.css / konkurs_reiting.css / hall_of_fame.css.
   ========================================================================= */

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

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

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

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

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

/* ---------- Первый экран ---------- */
.bt-kp__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(--kp-line);
    border-radius: var(--kp-radius);
    background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 58%, #fff8e1 100%);
    box-shadow: var(--kp-shadow);
}

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

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

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

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

.bt-kp__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-kp__eyebrow::before {
    content: "";
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--kp-green);
    box-shadow: 0 0 0 3px rgba(47, 154, 77, .18);
}

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

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

.bt-kp__hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bt-kp__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(--kp-ink) !important;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;
    box-shadow: var(--kp-shadow-sm);
    transition: transform .12s ease, border-color .15s ease, box-shadow .15s ease;
}

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

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

.bt-kp__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-kp__filters {
    margin-top: 16px;
    padding: 20px 24px;
    border: 1px solid var(--kp-line);
    border-radius: var(--kp-radius);
    background: var(--kp-card);
    box-shadow: var(--kp-shadow-sm);
}

.bt-kp__selects {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
}

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

.bt-kp__field > span {
    color: var(--kp-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.bt-kp select {
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 9px 34px 9px 12px;
    border: 1px solid #dbe2ec;
    border-radius: 10px;
    background-color: #fff;
    color: var(--kp-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-kp select:focus {
    outline: 0;
    border-color: var(--kp-blue);
    box-shadow: 0 0 0 3px rgba(42, 90, 159, .13);
}

.bt-kp__quick {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--kp-line-soft);
}

.bt-kp__chip {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    margin: 0;
    padding: 8px 13px;
    border: 1px solid var(--kp-line);
    border-radius: 999px;
    background: #f8f9fc;
    color: #33415a;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.bt-kp__chip:hover {
    border-color: #c6d4e8;
    background: #f1f5fb;
}

.bt-kp__chip.is-active {
    border-color: var(--kp-brand);
    background: var(--kp-brand);
    color: #fff;
    box-shadow: 0 4px 12px rgba(204, 29, 20, .24);
}

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

.bt-kp__hidden-filters {
    display: none;
}

/* ---------- Результаты ---------- */
.bt-kp__results {
    margin-top: 16px;
    padding: 22px 24px;
    border: 1px solid var(--kp-line);
    border-radius: var(--kp-radius);
    background: var(--kp-card);
    box-shadow: var(--kp-shadow);
}

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

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

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

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

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

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

.bt-kp__status.is-error {
    color: var(--kp-danger);
}

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

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

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

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

.bt-kp__table thead th {
    padding: 12px 10px;
    border-bottom: 1px solid var(--kp-line);
    background: #f6f8fc;
    color: var(--kp-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: nowrap;
}

.bt-kp__table thead th:nth-child(3) {
    text-align: left;
}

.bt-kp__table thead th img {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

.bt-kp__table tbody td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--kp-line-soft);
    color: #33415a;
    font-size: 13.5px;
    line-height: 1.4;
    text-align: center;
    vertical-align: middle;
}

.bt-kp__table tbody tr:last-child td {
    border-bottom: 0;
}

.bt-kp__table tbody tr:nth-child(even) td {
    background: #fbfcfe;
}

.bt-kp__table tbody tr:hover td {
    background: #f5f8fd;
}

.bt-kp__table .pick-date {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.bt-kp__table .pick-sport {
    white-space: nowrap;
}

.bt-kp__table .pick-sport img {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 6px;
    vertical-align: middle;
    object-fit: contain;
}

.bt-kp__table .pick-sport span {
    color: var(--kp-ink-soft);
    font-size: 12.5px;
    font-weight: 600;
    vertical-align: middle;
}

.bt-kp__table .pick-forecast {
    min-width: 220px;
    text-align: left;
}

.bt-kp__table .pick-time {
    color: var(--kp-ink-soft);
    font-size: 12.5px;
    white-space: normal;
}

.bt-kp__table .pick-koef {
    min-width: 108px;
    line-height: 1.35;
}

.bt-kp__table .pick-koef-value {
    display: block;
    margin: 0 0 4px;
    color: var(--kp-green);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.bt-kp__table .pick-bk {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 18px;
    margin: 3px auto 0;
    text-decoration: none;
}

.bt-kp__table .pick-bk img {
    display: block;
    width: auto;
    max-width: 82px;
    height: 18px;
    object-fit: contain;
}

.bt-kp__table .pick-action {
    min-width: 92px;
}

.bt-kp__table .pick-action .buttons {
    min-width: 0;
    margin: 0;
    padding: 8px 12px !important;
    font-size: 12px;
    line-height: 1.2;
    text-transform: none;
}

.bt-kp__table .pick-empty td {
    padding: 28px 16px;
    color: var(--kp-ink-soft);
    font-size: 14px;
    text-align: center;
}

.bt-kp__table .pick-count-row {
    display: none;
}

/* ---------- Пагинация ---------- */
.bt-kp__pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.bt-kp__page-arrow {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0;
    padding: 0;
    border: 1px solid #d7e1f0;
    border-radius: 50%;
    background: #fff;
    color: var(--kp-ink);
    font-family: inherit;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--kp-shadow-sm);
    transition: background .15s ease, border-color .15s ease;
}

.bt-kp__page-arrow:hover:not(:disabled) {
    border-color: #c6d4e8;
    background: #f8fbff;
}

.bt-kp__page-arrow:disabled {
    opacity: .4;
    cursor: default;
}

.bt-kp__pages {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bt-kp__pages li {
    list-style: none;
    margin: 0;
}

.bt-kp__pages a,
.bt-kp__pages li.current span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--kp-line);
    border-radius: 10px;
    background: #fff;
    color: var(--kp-ink) !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
}

.bt-kp__pages a:hover {
    border-color: #c6d4e8;
    background: #f8fbff;
}

.bt-kp__pages li.current span {
    border-color: var(--kp-brand);
    background: var(--kp-brand);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(204, 29, 20, .24);
}

.bt-kp__ellipsis {
    padding: 0 2px;
    color: var(--kp-muted);
    font-size: 13px;
}

.bt-kp__count-note {
    margin-top: 10px;
    color: var(--kp-muted);
    font-size: 12px;
    line-height: 1.4;
    text-align: center;
}

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

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

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

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

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

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

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

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

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

    .bt-kp__filters,
    .bt-kp__results {
        padding: 18px 15px;
        border-radius: 14px;
    }

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

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

    .bt-kp__quick {
        gap: 6px;
    }

    .bt-kp__chip {
        min-height: 36px;
        padding: 7px 10px;
        font-size: 12px;
    }

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

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

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

    .bt-kp__table {
        min-width: 620px;
        font-size: 13px;
    }

    .bt-kp__table thead th {
        padding: 10px 7px;
        font-size: 9.5px;
    }

    .bt-kp__table tbody td {
        padding: 9px 7px;
        font-size: 12px;
    }

    .bt-kp__table .pick-forecast {
        min-width: 180px;
    }

    .bt-kp__table .pick-koef {
        min-width: 96px;
    }

    .bt-kp__table .pick-bk img {
        max-width: 72px;
        height: 16px;
    }

    .bt-kp__table .pick-sport span {
        display: none;
    }

    .bt-kp__pagination {
        gap: 5px;
    }

    .bt-kp__page-arrow {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .bt-kp__pages a,
    .bt-kp__pages li.current span {
        min-width: 32px;
        height: 32px;
        padding: 0 6px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bt-kp__btn,
    .bt-kp__chip,
    .bt-kp__page-arrow,
    .bt-kp select,
    .bt-kp__table-scroll {
        transition: none !important;
    }
}
