.stock-ticker-wrap {
    overflow: hidden;
    white-space: nowrap;
    background: #1a1a2e;
    color: #fff;
    padding: 12px 0;
    border-radius: 4px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

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

.stock-ticker-track {
    display: inline-flex;
    animation: stock-ticker-scroll 30s linear infinite;
    will-change: transform;
}

.stock-ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 30px;
    font-size: 14px;
    line-height: 1.4;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.stock-ticker-symbol {
    font-weight: 700;
    color: #e0e0e0;
}

.stock-ticker-price {
    font-weight: 600;
}

.stock-ticker-change {
    font-size: 12px;
}

.stock-ticker-change.up {
    color: #00a32a;
}

.stock-ticker-change.down {
    color: #d63638;
}

.stock-ticker-table-wrap {
    overflow-x: auto;
    margin: 1em 0;
}

.stock-ticker-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.stock-ticker-table th,
.stock-ticker-table td {
    padding: 10px 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.stock-ticker-table th {
    background: #f0f0f1;
    font-weight: 600;
    color: #1d2327;
}

.stock-ticker-table .up {
    color: #00a32a;
}

.stock-ticker-table .down {
    color: #d63638;
}

.stock-ticker-error {
    padding: 15px;
    background: #fef0f0;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

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