#topper-banner {
    --topper-accent: #1A18C7;
    background: transparent;
    color: #111;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.topper-banner__slider,
.topper-banner__item {
    height: 76px;
}

/* Override Slick vertical defaults:
   - global .slick-slide { height: 100% }
   - .slick-vertical .slick-slide { border: 1px solid transparent }
   The transparent 1px border shrinks the padding box; overlays cover only
   that box, so ~1px of raw background-image shows as top/bottom hairlines.
   #id raises specificity above .slick-vertical .slick-slide (slick.css loads later). */
#topper-banner .slick-list,
#topper-banner .slick-slide {
    border: 0;
    height: 76px !important;
}

.topper-banner__slider {
    background: transparent;
    overflow: hidden;
}

.topper-banner__slider .slick-list,
.topper-banner__slider .slick-track {
    background: transparent;
}

.topper-banner__slider:not(.slick-initialized) .topper-banner__item:not(:first-child) {
    display: none;
}

/* The scroll handler keeps this offset in sync as the topper leaves view. */
#topper-banner + #hd {
    top: var(--topper-header-offset, 76px);
}

#topper-banner + #hd .hd-menu li ol {
    top: calc(var(--topper-header-offset, 76px) + 70px);
}

.topper-banner__item {
    background-color: #f0f1f5;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
}

.topper-banner__item.has-image {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
        var(--topper-bg-image);
}

.topper-banner__inner {
    align-items: center;
    box-sizing: border-box;
    display: flex;
    gap: 20px;
    height: 100%;
    justify-content: center;
    margin: 0 auto;
    max-width: 1440px;
    /* Right reserve clears abs-positioned utils (arrows + today + close). */
    /*padding: 0 max(300px, calc((100% - 1440px) / 2 + 300px)) 0 180px;*/
    position: relative;
}

.topper-banner__text {
    font-size: 17px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topper-banner__btn {
    border: 1px solid currentColor;
    color: inherit;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 500;
    justify-content: center;
    line-height: 1;
    padding: 10px 14px;
    text-decoration: none;
    transition: background-color .2s, border-color .2s, color .2s;
    white-space: nowrap;
    border-radius: 20px;
}

.topper-banner__btn:hover,
.topper-banner__btn:focus-visible {
    background: var(--topper-accent);
    border-color: var(--topper-accent);
    color: #fff;
}

.topper-banner__utils {
    align-items: center;
    display: flex;
    gap: 18px;
    position: absolute;
    right: max(24px, calc((100% - 1440px) / 2));
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.topper-banner__ctl,
.topper-banner__close-box {
    align-items: center;
    display: flex;
    gap: 6px;
}

.topper-banner__ctl button,
.topper-banner__close {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(17, 17, 17, 0.42);
    border-radius: 50%;
    box-sizing: border-box;
    cursor: pointer;
    height: 25px;
    padding: 0;
    position: relative;
    transition: background-color .2s, border-color .2s;
    width: 25px;
}

.topper-banner__ctl button:hover,
.topper-banner__ctl button:focus-visible,
.topper-banner__close:hover,
.topper-banner__close:focus-visible {
    background: var(--topper-accent);
    border-color: var(--topper-accent);
}

.topper-banner__prev::before,
.topper-banner__next::before {
    border-bottom: 1px solid #111;
    border-left: 1px solid #111;
    content: '';
    height: 6px;
    left: 9px;
    position: absolute;
    top: 8px;
    transform: rotate(45deg);
    width: 6px;
}

.topper-banner__next::before {
    left: 7px;
    transform: rotate(225deg);
}

.topper-banner__pause::before,
.topper-banner__pause::after {
    background: #111;
    content: '';
    height: 8px;
    position: absolute;
    top: 7px;
    width: 2px;
}

.topper-banner__pause::before {
    left: 8px;
}

.topper-banner__pause::after {
    right: 8px;
}

.topper-banner__play::before {
    border-bottom: 5px solid transparent;
    border-left: 7px solid #111;
    border-top: 5px solid transparent;
    content: '';
    left: 9px;
    position: absolute;
    top: 6px;
}

.topper-banner__close::before,
.topper-banner__close::after {
    background: #111;
    content: '';
    height: 1px;
    left: 6px;
    position: absolute;
    top: 11px;
    transform: rotate(45deg);
    width: 11px;
}

.topper-banner__close::after {
    transform: rotate(-45deg);
}

.topper-banner__ctl button:hover::before,
.topper-banner__ctl button:hover::after,
.topper-banner__ctl button:focus-visible::before,
.topper-banner__ctl button:focus-visible::after,
.topper-banner__close:hover::before,
.topper-banner__close:hover::after,
.topper-banner__close:focus-visible::before,
.topper-banner__close:focus-visible::after {
    border-bottom-color: #fff;
    border-left-color: #fff;
    border-left-color: #fff;
    background-color: #fff;
}

.topper-banner__ctl button:hover.topper-banner__play::before,
.topper-banner__ctl button:focus-visible.topper-banner__play::before {
    border-left-color: #fff;
    background: transparent;
}

.topper-banner__today {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    gap: 5px;
    white-space: nowrap;
}

.topper-banner__today input {
    accent-color: var(--topper-accent);
    margin: 0;
}

@media (max-width: 768px) {
    .topper-banner__slider,
    .topper-banner__item {
        height: 148px;
    }

    #topper-banner .slick-list,
    #topper-banner .slick-slide {
        border: 0;
        height: 148px !important;
    }

    .topper-banner__inner {
        flex-direction: column;
        gap: 9px;
        height: 100%;
        padding: 12px 18px 34px;
        text-align: center;
    }

    .topper-banner__text {
        display: -webkit-box;
        font-size: 14px;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        max-height: 4.2em;
        overflow: hidden;
        text-overflow: unset;
        white-space: normal;
    }

    .topper-banner__btn {
        flex-shrink: 0;
        font-size: 11px;
        padding: 7px 10px;
        white-space: nowrap;
    }

    .topper-banner__utils {
        bottom: 7px;
        justify-content: space-between;
        left: 14px;
        right: 14px;
        top: auto;
        transform: none;
    }

    .topper-banner__ctl,
    .topper-banner__close-box {
        gap: 4px;
    }

    .topper-banner__ctl button,
    .topper-banner__close {
        height: 21px;
        width: 21px;
    }

    .topper-banner__prev::before,
    .topper-banner__next::before {
        left: 7px;
        top: 6px;
    }

    .topper-banner__next::before {
        left: 5px;
    }

    .topper-banner__pause::before,
    .topper-banner__pause::after {
        top: 6px;
    }

    .topper-banner__pause::before {
        left: 7px;
    }

    .topper-banner__pause::after {
        right: 7px;
    }

    .topper-banner__play::before {
        left: 8px;
        top: 5px;
    }

    .topper-banner__close::before,
    .topper-banner__close::after {
        left: 5px;
        top: 9px;
    }

    .topper-banner__today {
        font-size: 11px;
    }
}
