﻿#ticker-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(128,0,128, 0.5);
    border-top: 2px solid #00d4ff;
    box-shadow: 0 -4px 20px rgba(0, 212, 255, 0.3);
    z-index: 9999;
    transition: transform 0.3s ease;
}

#ticker-container.hidden {
    transform: translateY(100%);
}

.ticker-content {
    position: relative;
    height: 37.5px;
    overflow: hidden;
    background: transparent;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

.ticker-close-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #00d4ff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    z-index: 10;
    transition: all 0.3s ease;
}

.ticker-close-btn:hover {
    background: rgba(0, 212, 255, 0.3);
    border-color: #00d4ff;
    transform: scale(1.1);
}

.ticker-track {
    display: flex;
    width: fit-content;
    animation: scroll 120s linear infinite;
    white-space: nowrap;
}

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

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 40px;
    flex-shrink: 0;
}

.ticker-item-icon {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #00d4ff, #0099ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    flex-shrink: 0;
}

.ticker-item-icon svg {
    width: 11px;
    height: 11px;
    fill: white;
}

.ticker-item-text {
    color: #ffffff;
    font-size: 14.3px;
    max-width: 400px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticker-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
}

.ticker-item-source {
    padding: 1px 6px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 2px;
}

@media (max-width: 768px) {
    .ticker-content {
        height: 35px;
    }

    .ticker-item {
        padding: 0 20px;
    }

    .ticker-item-icon {
        width: 16px;
        height: 16px;
        margin-right: 6px;
    }

    .ticker-item-icon svg {
        width: 10px;
        height: 10px;
    }

    .ticker-item-text {
        font-size: 12.5px;
        max-width: 200px;
    }

    .ticker-item-meta {
        display: none;
    }

    .ticker-close-btn {
        width: 20px;
        height: 20px;
        top: 3px;
        right: 3px;
        font-size: 11px;
    }
}
