/* ==========================================================================
   БЕГУЩАЯ СТРОКА (LIVE TICKER)
   ========================================================================== */
.live-ticker-wrap {
    grid-column: 1 / -1; /* Чтобы занимала всю ширину сетки */
    width: 100%;
    overflow: hidden;
    background: linear-gradient(90deg, rgba(192, 132, 252, 0.05), rgba(147, 51, 234, 0.1), rgba(192, 132, 252, 0.05));
    border: 1px solid rgba(192, 132, 252, 0.2);
    border-radius: 12px;
    padding: 10px 0;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Градиенты по краям для плавного исчезновения текста */
.live-ticker-wrap::before,
.live-ticker-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    width: 40px;
    height: 100%;
    z-index: 2;
}
.live-ticker-wrap::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-card, #111) 0%, transparent 100%);
}
.live-ticker-wrap::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-card, #111) 0%, transparent 100%);
}

.live-ticker-track {
    display: flex;
    width: max-content;
    animation: tickerScroll 25s linear infinite; /* 25s - скорость прокрутки */
}

/* Пауза при наведении */
.live-ticker-wrap:hover .live-ticker-track {
    animation-play-state: paused;
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* Сдвигаем ровно на половину, так как контент дублируется */
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 25px;
    font-size: 0.85rem;
    color: #e2e8f0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.2s;
}

.ticker-item:hover {
    color: #c084fc;
}

.ticker-item img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ticker-badge {
    background: rgba(250, 204, 21, 0.2);
    color: #facc15;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
}