.bsx-news-ticker-layer {
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 99 !important;
}

.bsx-news-ticker {
    display: flex;
    align-items: center;
    width: 100%;
    background: #030204;
    border-bottom: 1px solid #37353a;
}

.bsx-news-ticker__line {
    background: none;
    border: none;
    cursor: pointer;
    color: #edcb81;
    font-size: 14px;
    line-height: 1.4;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.bsx-news-ticker__viewport {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 1.4em;
    overflow: hidden;
}

.bsx-news-ticker__row {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    transform: translateY(0);
}

.bsx-news-ticker__date {
    flex: 0 0 auto;
    opacity: 0.7;
    font-variant-numeric: tabular-nums;
}

.bsx-news-ticker__title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bsx-news-ticker__row--transition {
    transition: transform 0.9s ease;
}

.bsx-news-ticker__row--offscreen {
    transform: translateY(100%);
}

.bsx-news-ticker__row--offscreen-up {
    transform: translateY(-100%);
}

.bsx-news-ticker__close {
    background: none;
    border: none;
    cursor: pointer;
    color: #edcb81;
    font-size: 20px;
    line-height: 1;
    padding: 6px 16px;
    flex: 0 0 auto;
}

.bsx-news-ticker__close:hover {
    opacity: 0.7;
}

@media (max-width: 600px) {
    .bsx-news-ticker__line {
        font-size: 12px;
        padding: 5px 12px;
    }

    .bsx-news-ticker__row {
        gap: 8px;
    }

    .bsx-news-ticker__close {
        font-size: 16px;
        padding: 5px 12px;
    }
}

/* News item modal — pre-rendered per linkless item, toggled via JS only. */
.bsx-news-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
}

.bsx-news-modal--open {
    display: block;
}

.bsx-news-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(3, 2, 4, 0.75);
}

.bsx-news-modal__panel {
    position: relative;
    max-width: 600px;
    width: calc(100% - 32px);
    margin: 10vh auto 0;
    background: #21201e;
    border: 1px solid #37353a;
    border-radius: 4px;
    padding: 24px;
    color: #fff;
}

.bsx-news-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #edcb81;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.bsx-news-modal__date {
    font-size: 12px;
    color: #edcb81;
}

.bsx-news-modal__title {
    font-size: 20px;
    font-weight: 600;
    margin-top: 4px;
}

.bsx-news-modal__image img {
    display: block;
    max-width: 100%;
    height: auto;
    margin-top: 12px;
}

.bsx-news-modal__body {
    margin-top: 12px;
}

@media (max-width: 600px) {
    .bsx-news-modal__panel {
        margin-top: 5vh;
        padding: 16px;
    }

    .bsx-news-modal__title {
        font-size: 18px;
    }
}
