* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0a0a0a;
    color: #e8e8e8;
    font-family: 'Consolas', 'Courier New', monospace;
    min-height: 100vh;
}

/* ===== Cabecalho ===== */
header {
    padding: 28px 32px 12px 32px;
    border-bottom: 1px solid #ff8c00;
}

header h1 {
    color: #ff8c00;
    font-size: 22px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

header p {
    color: #888;
    font-size: 12px;
    margin-top: 6px;
    letter-spacing: 0.5px;
}

/* ===== Painel com as 10 faixas ===== */
.ticker-board {
    padding: 20px 0 40px 0;
}

.ticker-wrap {
    position: relative;
    width: 100%;
    background-color: #111;
    border-bottom: 1px solid #222;
    overflow: hidden;
    height: 42px;
    display: flex;
    align-items: center;
}

.ticker-wrap:nth-child(even) {
    background-color: #0d0d0d;
}

.ticker-wrap .label {
    flex-shrink: 0;
    background-color: #ff8c00;
    color: #000;
    font-weight: bold;
    font-size: 12px;
    padding: 0 14px;
    height: 100%;
    display: flex;
    align-items: center;
    letter-spacing: 1px;
    z-index: 2;
    min-width: 130px;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation-name: scroll-left;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    /* animation-duration e animation-direction sao definidas via JS,
       de acordo com os dados de cada faixa (ver script.js) */
}

.ticker-wrap:hover .ticker-track {
    animation-play-state: paused;
}

@keyframes scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== Cada item dentro da faixa ===== */
.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 26px;
    font-size: 13px;
    border-right: 1px solid #262626;
    gap: 8px;
    color: #d8d8d8;
}

.ticker-item .dot::before {
    color: #ff8c00;
    content: "\25CF";
    margin-right: 2px;
}

.ticker-item.up {
    color: #00ff7f;
}

.ticker-item.down {
    color: #ff4040;
}

.ticker-item.up .dot::before {
    content: "\25B2";
    color: inherit;
}

.ticker-item.down .dot::before {
    content: "\25BC";
    color: inherit;
}

/* ===== Rodape ===== */
footer {
    text-align: center;
    padding: 24px;
    color: #5c6773;
    font-size: 12px;
    border-top: 1px solid #222;
}

/* ===== Acessibilidade: respeita preferencia por menos movimento ===== */
@media (prefers-reduced-motion: reduce) {
    .ticker-track {
        animation: none !important;
    }
    .ticker-wrap {
        overflow-x: auto;
    }
}

/* ===== Responsivo ===== */
@media (max-width: 600px) {
    header h1 {
        font-size: 16px;
    }
    .ticker-wrap .label {
        min-width: 96px;
        font-size: 11px;
    }
    .ticker-item {
        font-size: 12px;
        padding: 0 16px;
    }
}
