/* =========================================================================
   [ FLASH NEWS BROADCAST - GLOBAL OS BAR ]
   ========================================================================= */
.nx-flash-broadcast {
    width: 100%;
    height: 38px;
    background-color: #050508;
    border-bottom: 1px solid #ff2851;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: fixed;
    /* On utilise la variable de ton thème, avec 80px par défaut en cas de faille */
    top: calc(var(--header-height, 80px) + var(--topbar-height, 0px)); 
    left: 0;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0,0,0,0.8);
}

.nx-flash-wrapper {
    display: flex;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.nx-flash-track {
    display: flex;
    white-space: nowrap;
    align-items: center;
    animation: nxFlashScroll 30s linear infinite;
    will-change: transform;
}

.nx-flash-track:hover {
    animation-play-state: paused;
}

@keyframes nxFlashScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } 
}

.nx-flash-item {
    display: inline-flex;
    align-items: center;
}

.nx-flash-item a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: color 0.3s, text-shadow 0.3s;
}

.nx-flash-item a:hover {
    color: #ff2851;
    text-shadow: 0 0 8px rgba(255, 40, 81, 0.8);
}

.nx-flash-sep {
    color: #ff2851;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    margin: 0 20px;
    user-select: none;
    font-weight: bold;
}

@media (max-width: 768px) {
    .nx-flash-broadcast { top: var(--header-height, 60px); }
}