/* ============================================================
   TICKER — ZohnStats
   Sticky scores strip below the header.
   ============================================================ */

/* Ticker is now embedded inside the header (.header-ticker in main.css) */

/* "SCORES" label pill — now a button linking to the scores page */
.ticker-title {
    background: var(--bg-raised);
    color: var(--accent);
    padding: 0 14px;
    align-self: stretch;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 900;
    font-size: 0.68rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: inset -1px 0 0 var(--border-mid);
    position: relative;
    z-index: 1;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background var(--transition-fast), color var(--transition-fast);
}
.ticker-title:hover {
    background: var(--accent-subtle);
    color: var(--accent-light);
}
.ticker-title:active { background: var(--bg-surface); }

/* "N LIVE" badge inside the title pill */
.ticker-live-badge {
    display: inline-block;
    background: rgba(245,158,11,0.25);
    border: 1px solid rgba(245,158,11,0.5);
    color: var(--color-live);
    font-size: 0.58rem;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: var(--radius-xs);
    letter-spacing: 0.3px;
    animation: tickerLivePulse 1.8s ease-in-out infinite;
}

/* Scrolling strip */
.ticker {
    display: flex;
    white-space: nowrap;
    animation: tickerScroll 50s linear infinite;
    will-change: transform;
}
.ticker:hover { animation-play-state: paused; }

/* Individual game item */
.ticker__item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 18px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    border-right: 1px solid var(--border-default);
    transition: background 0.12s;
}
.ticker__item:hover { background: var(--bg-subtle); }

/* Team logos inside ticker */
.ticker-logo {
    width: 18px;
    height: 18px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.9;
}

/* Team abbreviation */
.ticker-team {
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
}

/* Score numbers */
.ticker-score {
    font-weight: 900;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-variant-numeric: tabular-nums;
    min-width: 1.4ch;
    text-align: center;
}
.ticker-score--win { color: var(--color-win); }

/* Live game: pulsing dot before the item */
.ticker__item--live::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-live);
    animation: liveDot 1.4s ease-in-out infinite;
    flex-shrink: 0;
    margin-right: 6px;
    align-self: center;
}

/* Muted color for final scores */
.ticker__item--final .ticker-score {
    color: var(--text-muted);
}
.ticker__item--final .ticker-team {
    color: var(--text-muted);
}
.ticker__item--final .ticker-logo {
    opacity: 0.55;
}

/* Divider between scores */
.ticker-divider {
    color: var(--text-subtle);
    font-weight: 300;
    margin: 0 1px;
}

/* Status pill */
.ticker-status-pill {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    padding: 1px 5px;
    border-radius: var(--radius-xs);
    margin-left: 3px;
    flex-shrink: 0;
    text-transform: uppercase;
}
.ticker-status-pill--final {
    background: rgba(34,211,160,0.10);
    color: var(--color-win);
    border: 1px solid rgba(34,211,160,0.25);
}
.ticker-status-pill--live {
    background: rgba(245,158,11,0.14);
    color: var(--text-primary);
    border: 1px solid rgba(245,158,11,0.3);
    animation: tickerLivePulse 1.8s ease-in-out infinite;
}
.ticker-status-pill--sched {
    background: var(--bg-subtle);
    color: var(--text-muted);
    border: 1px solid var(--border-default);
}
.ticker-status-pill--other {
    background: var(--bg-subtle);
    color: var(--text-subtle);
    border: 1px solid var(--border-default);
}

/* Mobile — slightly smaller */
@media (max-width: 600px) {
    .ticker-wrap  { height: 32px; }
    .ticker-title { padding: 0 10px; font-size: 0.62rem; }
    .ticker__item { padding: 0 12px; font-size: 0.72rem; }
    .ticker-logo  { width: 15px; height: 15px; }
}
