/* ==========================================================================
   Smart News — Breaking News Ticker (v7.5.8)
   ========================================================================== */

.sn-bnt {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e7e7e7;
    position: relative;
    z-index: 30;
}

.sn-bnt-bottom {
    border-bottom: none;
    border-top: 1px solid #e7e7e7;
    /* Always-visible, fixed to the device's bottom edge — it no longer
       sits inline with the footer, so it stays on screen no matter how
       far up or down the page the visitor scrolls. */
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
}

.sn-bnt-inner {
    max-width: var(--sn-site-max-width, 1200px);
    margin: 0 auto;
    display: flex;
    align-items: stretch;
    height: 58px;
}

/* ---------- Left "BREAKING NEWS" badge ---------- */

.sn-bnt-badge {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 22px 0 16px;
    background: linear-gradient(135deg, #ff2d2d 0%, #c3121f 100%);
    color: #ffffff;
    position: relative;
    -webkit-clip-path: polygon(0 0, 100% 0, 84% 100%, 0% 100%);
    clip-path: polygon(0 0, 100% 0, 84% 100%, 0% 100%);
    margin-right: -14px;
    z-index: 2;
}

.sn-bnt-badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
}

.sn-bnt-badge-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: 0.4px;
    font-size: 15px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ---------- Scrolling items viewport ---------- */

.sn-bnt-viewport {
    flex: 1 1 auto;
    overflow: hidden;
    position: relative;
    min-width: 0;
    background: #ffffff;
    padding-left: 24px;
}

.sn-bnt-track {
    display: flex;
    align-items: stretch;
    height: 100%;
    will-change: transform;
    /* No CSS transition here on purpose: the JS drives a continuous,
       frame-by-frame translateX so the ticker glides non-stop like a
       train instead of snapping between fixed "pages". A transition
       would fight that per-frame update and look jerky. */
}

.sn-bnt-item {
    flex: 0 0 25%;
    max-width: 25%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 0 22px 0 0;
    border-right: 1px solid #e2e2e2;
    margin-right: 22px;
    min-width: 0;
}

.sn-bnt-item:last-child {
    border-right: none;
}

.sn-bnt-item-title {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 14.5px;
    line-height: 1.35;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sn-bnt-item-title:hover {
    color: #c3121f;
}

.sn-bnt-dot {
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d81212;
    margin-top: 6px;
}

/* ---------- Right controls pill ---------- */

.sn-bnt-controls {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0;
    background: #10161f;
    border-radius: 999px;
    margin: 10px 10px 10px 16px;
    padding: 4px;
}

.sn-bnt-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    color: #ffffff;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s ease;
}

.sn-bnt-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.sn-bnt-btn.sn-bnt-play {
    background: linear-gradient(135deg, #ff2d2d 0%, #c3121f 100%);
}

.sn-bnt-btn.sn-bnt-play:hover {
    background: linear-gradient(135deg, #ff4747 0%, #d3131f 100%);
}

/* ---------- Responsive ---------- */

@media (max-width: 992px) {
    .sn-bnt-item {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .sn-bnt-inner {
        height: auto;
        padding: 8px 10px;
        flex-wrap: nowrap;
    }
    .sn-bnt-badge {
        clip-path: none;
        -webkit-clip-path: none;
        padding: 8px 12px;
        border-radius: 6px;
        margin-right: 8px;
    }
    .sn-bnt-badge-text {
        flex-direction: row;
        gap: 4px;
        font-size: 12px;
    }
    .sn-bnt-viewport {
        padding-left: 10px;
    }
    .sn-bnt-item {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 10px;
        border-right: none;
        margin-right: 10px;
    }
    .sn-bnt-item-title {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
    .sn-bnt-controls {
        margin: 0 0 0 6px;
    }
    .sn-bnt-btn {
        width: 28px;
        height: 28px;
        font-size: 11px;
    }
}
