
.news-ticker {
    width: 90%;
    max-width: 95%;
    margin: 12px auto;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: #000;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.4;
    min-height: 40px;
    box-sizing: border-box;
    border-radius: 999px;
    overflow: hidden;
}

.news-ticker__label {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    background: #d71920;
    color: #fff;
    font-weight: bold;
    z-index: 1;
}

.news-ticker__viewport {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.news-ticker__track {
    display: flex;
    align-items: center;
    width: max-content;
    white-space: nowrap;
    will-change: transform;
    animation: ticker-scroll 350s linear infinite;
    animation-delay: 0s;
}

.news-ticker__text {
    display: inline-block;
    font-weight: 600;
    padding-left: 30px;
    padding-right: 60px;
}

.news-ticker__text--copy {
    padding-left: 0;
}

@keyframes ticker-scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 600px) {
    .news-ticker {
        font-size: 14px;
        min-height: 36px;
    }

    .news-ticker__label {
        padding: 0 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .news-ticker__track {
        animation: none;
        white-space: normal;
    }

    .news-ticker__text--copy {
        display: none;
    }
}
