/* Редизайн списка /free-bet/ и песочницы /free-bet-new/. Пути ассетов с -new не менять. */

body.free-forecast-list-new,
body.free-forecast-list {
    background: #00050b;
}

body.free-forecast-list-new.hv2-chrome:not(.home-v2) .hv2-header,
body.free-forecast-list.hv2-chrome:not(.home-v2) .hv2-header {
    background: transparent;
}

body.free-forecast-list-new .fbn-page,
body.free-forecast-list .fbn-page {
    overflow: hidden;
    background: #00050b;
    padding-bottom: 32px;
}

.fbn-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    height: auto;
    min-height: 260px;
    padding: 16px 0;
    aspect-ratio: auto;
    background-color: #00050b;
}

.fbn-hero__bg {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.fbn-hero__bg img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

.fbn-hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 38%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 5, 11, 0) 0%, #00050b 100%);
}

.fbn-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: calc(100% - 24px);
    max-width: 1280px;
    margin: 0 12px;
    padding: 14px 14px 12px;
    box-sizing: border-box;
    text-align: center;
    background: rgba(0, 5, 11, 0.28);
    border-radius: 16px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: none;
}

.fbn-hero__title {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-weight: 800;
    font-style: italic;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.52);
}

.fbn-hero__title-a,
.fbn-hero__title-b {
    display: block;
    white-space: nowrap;
}

.fbn-hero__title-a {
    color: #fafcff;
    font-size: clamp(22px, 8.6vw, 36px);
}

.fbn-hero__title-b {
    color: #34f523;
    font-size: clamp(26px, 10.4vw, 44px);
    margin-top: 2px;
}

.fbn-hero__lead {
    margin: 12px auto 0;
    max-width: 100%;
    color: #c9d4e3;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-size: clamp(13px, 3.9vw, 16px);
    line-height: 1.35;
}

.fbn-sheet {
    position: relative;
    z-index: 2;
    margin: 0 8px;
    padding: 16px;
    background: #fff;
    border-radius: 28px;
}

.fbn-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.fbn-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border: 1px solid #edf1f6;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06), 0 8px 20px -6px rgba(0, 13, 31, 0.14);
    text-decoration: none;
    color: inherit;
}

.fbn-card:hover,
.fbn-card:focus {
    text-decoration: none;
    color: inherit;
}

.fbn-card__art {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 450 / 284;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
    background: #edf1f6;
}

.fbn-card__art img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.fbn-card__body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 16px 20px 20px;
}

.fbn-card__title {
    margin: 0 0 16px;
    min-height: calc(1.35em * 3);
    overflow: hidden;
    color: #0a1422;
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.fbn-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}

.fbn-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1 1 calc(50% - 12px);
    padding: 8px 12px;
    background: #edf1f6;
    border-radius: 12px;
    color: #0a1422;
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 13px;
    line-height: 20px;
}

.fbn-chip img {
    display: block;
    width: 18px;
    height: 18px;
    max-width: 18px;
    flex-shrink: 0;
}

.fbn-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fbn-pager {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 16px 0 0;
    padding: 0;
    text-align: center;
}

.fbn-pager .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    float: none;
    list-style: none;
}

.fbn-pager .pagination > li {
    display: inline-flex;
    margin: 0;
    font-size: 13px;
}

.fbn-pager .pagination > li > a,
.fbn-pager .pagination > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 32px;
    height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    background: #edf1f6;
    color: #0a1422;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
}

.fbn-pager .pagination > li > a:hover,
.fbn-pager .pagination > li > a:focus {
    background: #d8e0ea;
    color: #0a1422;
    text-decoration: none;
}

.fbn-pager .pagination > li.active > a,
.fbn-pager .pagination > li.active > span {
    background: #001326;
    color: #34f523;
}

.fbn-pager .pagination > li.disabled > span,
.fbn-pager .pagination > li.disabled > a {
    background: #f4f6f9;
    color: #8a97a8;
    pointer-events: none;
}

@media (min-width: 1200px) {
    .fbn-hero {
        display: block;
        min-height: 0;
        padding: 0;
        aspect-ratio: 2560 / 440;
        height: auto;
    }

    .fbn-hero__bg img {
        object-fit: fill;
    }

    .fbn-hero__inner {
        height: 100%;
        width: auto;
        max-width: 1280px;
        margin: 0 auto;
        padding: 0 24px;
        background: none;
        border-radius: 0;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .fbn-hero__title {
        letter-spacing: -1.2px;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    }

    .fbn-hero__title-a {
        font-size: 50px;
    }

    .fbn-hero__title-b {
        font-size: 62px;
        margin-top: 8px;
    }

    .fbn-hero__lead {
        margin-top: 14px;
        max-width: none;
        font-size: 14px;
        line-height: 1.3;
        color: #c7d1e0;
        white-space: nowrap;
    }

    .fbn-sheet {
        width: 1120px;
        max-width: calc(100% - 32px);
        margin: 0 auto;
        padding: 24px 24px 24px;
    }

    .fbn-pager {
        margin-top: 24px;
    }

    .fbn-grid {
        display: grid;
        grid-template-columns: repeat(3, 338px);
        justify-content: center;
        gap: 16px;
        flex-direction: unset;
    }

    .fbn-card {
        width: 338px;
    }

    .fbn-card__art {
        aspect-ratio: 450 / 284;
        height: auto;
    }

    .fbn-card__body {
        padding: 12px 16px 16px;
    }

    .fbn-card__title {
        margin-bottom: 12px;
        font-size: 17px;
        line-height: 23px;
        min-height: 69px;
    }

    .fbn-meta {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .fbn-chip {
        flex: 1 1 calc(50% - 12px);
        padding: 8px;
        font-size: 12px;
        line-height: 16px;
        font-weight: 400;
    }
}

/* --- откат пунктов: .fbn-1a / .fbn-2a / .fbn-3a / .fbn-4a на .fbn-page --- */

.fbn-card__date {
    display: none;
}

.fbn-sports {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.fbn-sports::-webkit-scrollbar {
    display: none;
}

.fbn-sports__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 13, 31, 0.55);
    color: #f5f7fc;
    text-decoration: none;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.fbn-sports__icon {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.fbn-sports__link:hover,
.fbn-sports__link:focus {
    color: #fff;
    text-decoration: none;
}

.fbn-sports__link.is-active {
    border-color: #34f523;
    color: #f5f7fc;
    background: rgba(0, 19, 38, 0.88);
}

.fbn-sports__link.is-active .fbn-sports__label {
    color: #34f523;
}

.fbn-page > .fbn-sports {
    display: none;
}

.fbn-hero .fbn-sports {
    margin-top: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.fbn-empty {
    margin: 0;
    padding: 28px 8px;
    text-align: center;
    color: #5b6b80;
    font-family: "Inter", sans-serif;
    font-size: 15px;
}

@media (max-width: 1199px) {
    .fbn-page.fbn-3a .fbn-hero {
        display: none;
    }

    .fbn-page.fbn-3a > .fbn-sports {
        display: flex;
        flex-wrap: wrap;
        margin: 4px 8px 12px;
        padding-bottom: 2px;
        gap: 4px;
    }

    .fbn-page.fbn-3a > .fbn-sports .fbn-sports__link {
        background: #0d1a2c;
        border-color: #1d3551;
        padding: 6px 6px;
        font-size: 12px;
        gap: 3px;
    }

    .fbn-page.fbn-3a > .fbn-sports .fbn-sports__icon {
        width: 14px;
        height: 14px;
        flex-basis: 14px;
    }

    .fbn-page.fbn-1a .fbn-sheet {
        margin: 0 8px 16px;
        padding: 10px 10px 16px;
        border-radius: 20px;
    }

    .fbn-page.fbn-1a .fbn-grid {
        gap: 10px;
    }

    .fbn-page.fbn-1a .fbn-card {
        flex-direction: row;
        align-items: flex-start;
        height: auto;
        min-height: 0;
        border-radius: 12px;
    }

    .fbn-page.fbn-1a .fbn-card__art {
        flex: 0 0 160px;
        width: 160px;
        max-width: 160px;
        height: auto;
        aspect-ratio: 450 / 284;
        border-radius: 12px;
        align-self: flex-start;
        background: #edf1f6;
    }

    .fbn-page.fbn-1a .fbn-card__art img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

    .fbn-page.fbn-1a .fbn-card__body {
        padding: 2px 12px;
        min-width: 0;
    }

    .fbn-page.fbn-1a .fbn-card__title {
        margin: 0;
        min-height: 0;
        font-size: 15px;
        line-height: 1.3;
        -webkit-line-clamp: 3;
    }

    .fbn-page.fbn-1a .fbn-card__date {
        display: block;
        margin-top: 8px;
        color: #8a97a8;
        font-size: 12px;
        line-height: 1.3;
    }

    .fbn-page.fbn-1a .fbn-meta {
        display: none;
    }
}

@media (max-width: 389px) {
    .fbn-page.fbn-1a .fbn-card__title {
        font-size: 13px;
        line-height: 1.25;
    }

    .fbn-page.fbn-1a .fbn-card__date {
        font-size: 11px;
    }
}

@media (min-width: 1200px) {
    .fbn-page.fbn-2a .fbn-hero {
        display: flex;
        align-items: center;
        justify-content: center;
        aspect-ratio: 2560 / 300;
    }

    .fbn-page.fbn-2a .fbn-hero__inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 16px 24px 20px;
    }

    .fbn-page.fbn-2a .fbn-hero__title {
        display: block;
        white-space: nowrap;
    }

    .fbn-page.fbn-2a .fbn-hero__title-a,
    .fbn-page.fbn-2a .fbn-hero__title-b {
        display: inline;
        font-size: 46px;
        margin-top: 0;
    }

    .fbn-page.fbn-2a .fbn-hero__title-a {
        margin-right: 0.28em;
    }

    .fbn-page.fbn-2a .fbn-hero__lead {
        display: none;
    }

    .fbn-page.fbn-2a .fbn-hero .fbn-sports {
        margin-top: 18px;
    }

    .fbn-page.fbn-2a .fbn-sheet {
        margin-top: 0;
    }
}
