/* News Ticker - Jumbotron-style scrolling ticker */
:root {
    --nt-bg: #0b0d12;
    --nt-panel: #07090d;
    --nt-led-on: #ffb02e;
    --nt-led-on-2: #ff6a00;
    --nt-led-dim: rgba(255, 176, 46, 0.10);
    --nt-live: #ef3b3b;
    --nt-score: #19c37d;
    --nt-cool: #38bdf8;
    --nt-ink: #0a0d12;
}

/* ============ TICKER ============ */
.nt-jumbo {
    position: relative;
    height: 64px;
    background: var(--nt-panel);
    color: var(--nt-led-on);
    border-bottom: 2px solid #000;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 -2px 0 #1a1d24 inset,
        0 10px 26px -10px rgba(0, 0, 0, 0.55);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: stretch;
    overflow: hidden;
    --nt-dot: 3px;
    font-family: "Barlow Condensed", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-feature-settings: "tnum" 1;
}

/* dot-matrix overlay — emulates jumbotron LED panel grid */
.nt-jumbo::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image:
        radial-gradient(circle at center, rgba(0, 0, 0, 0.55) 0.9px, transparent 1.2px);
    background-size: var(--nt-dot) var(--nt-dot);
    pointer-events: none;
    mix-blend-mode: multiply;
    opacity: 0.55;
}

/* faint scanline for CRT/jumbotron feel */
.nt-jumbo::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.025) 0 1px,
        transparent 1px 3px
    );
    pointer-events: none;
}

.nt-jumbo > * {
    position: relative;
    z-index: 1;
}

/* Left score-bug: LIVE pill */
.nt-bug {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 18px;
    background: linear-gradient(180deg, #15171d 0%, #0a0c10 100%);
    border-right: 2px solid #000;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.nt-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--nt-live);
    box-shadow:
        0 0 0 2px rgba(239, 59, 59, 0.18),
        0 0 14px rgba(239, 59, 59, 0.85);
    -webkit-animation: nt-pulse 1.1s ease-in-out infinite;
    animation: nt-pulse 1.1s ease-in-out infinite;
}

.nt-live {
    font-weight: 900;
    font-size: 22px;
    letter-spacing: 0.12em;
    color: #fff;
    text-shadow: 0 0 12px rgba(239, 59, 59, 0.55);
}

.nt-sep {
    width: 2px;
    height: 26px;
    background: #000;
    box-shadow: 1px 0 0 #20232a;
}

.nt-label {
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.22em;
    color: rgba(255, 255, 255, 0.55);
}

/* Marquee */
.nt-feed {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.nt-track {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    flex-wrap: nowrap;
    min-width: max-content;
    width: max-content;
    gap: 0;
    white-space: nowrap;
    will-change: transform;
    -webkit-animation: nt-scroll 48s linear infinite;
    animation: nt-scroll 48s linear infinite;
}

.nt-jumbo[data-paused="true"] .nt-track {
    animation-play-state: paused;
}

.nt-feed:hover .nt-track {
    animation-play-state: paused;
}

.nt-item {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 14px;
    padding: 0 22px;
    height: 64px;
}

.nt-item + .nt-item {
    border-left: 1px dashed rgba(255, 176, 46, 0.18);
}

.nt-tag {
    display: inline-flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    border-radius: 3px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.12em;
    color: #07090d;
    background: var(--nt-led-on);
    text-shadow: none;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 0 14px rgba(255, 176, 46, 0.35);
}

.nt-tag.nt-breaking {
    background: var(--nt-live);
    color: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 0 16px rgba(239, 59, 59, 0.55);
}

.nt-tag.nt-score-tag {
    background: var(--nt-score);
    color: #06140d;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 0 16px rgba(25, 195, 125, 0.45);
}

.nt-tag.nt-market {
    background: var(--nt-cool);
    color: #06192a;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 0 16px rgba(56, 189, 248, 0.45);
}

.nt-tag.nt-hot {
    background: linear-gradient(180deg, #ff8a1f, #ff5a00);
    color: #1a0a00;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5), 0 0 16px rgba(255, 106, 0, 0.55);
}

.nt-msg {
    font-weight: 700;
    font-size: 26px;
    line-height: 1;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--nt-led-on);
    text-shadow:
        0 0 6px rgba(255, 176, 46, 0.45),
        0 0 18px rgba(255, 106, 0, 0.18);
}

.nt-msg .nt-num {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.45), 0 0 18px rgba(255, 176, 46, 0.35);
}

.nt-msg .nt-up {
    color: var(--nt-score);
    text-shadow: 0 0 10px rgba(25, 195, 125, 0.55);
}

.nt-msg .nt-down {
    color: var(--nt-live);
    text-shadow: 0 0 10px rgba(239, 59, 59, 0.55);
}

.nt-msg .nt-accent {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.55);
}

.nt-bullet {
    width: 8px;
    height: 8px;
    background: var(--nt-led-on);
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(255, 176, 46, 0.65);
}

/* Right cluster: clock + controls */
.nt-meta {
    display: flex;
    align-items: center;
    gap: 0;
    background: linear-gradient(180deg, #15171d 0%, #0a0c10 100%);
    border-left: 2px solid #000;
}

.nt-clock {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 0 18px;
    height: 100%;
}

.nt-time {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-weight: 700;
    font-size: 22px;
    color: var(--nt-led-on);
    text-shadow: 0 0 10px rgba(255, 176, 46, 0.55);
    letter-spacing: 0.02em;
    align-self: center;
}

.nt-ampm {
    font-family: "JetBrains Mono", monospace;
    font-weight: 700;
    font-size: 12px;
    color: rgba(255, 176, 46, 0.7);
    letter-spacing: 0.1em;
    align-self: center;
}

.nt-ctrl {
    display: grid;
    place-items: center;
    width: 44px;
    height: 100%;
    border: none;
    border-left: 1px solid #000;
    background: transparent;
    color: rgba(255, 255, 255, 0.55);
    cursor: pointer;
    transition: color .15s ease, background .15s ease;
    padding: 0;
}

.nt-ctrl:hover {
    color: var(--nt-led-on);
    background: rgba(255, 176, 46, 0.06);
}

.nt-ctrl svg {
    width: 16px;
    height: 16px;
}

/* Court parquet hairline strip below ticker */
.nt-court-strip {
    height: 6px;
    background:
        repeating-linear-gradient(90deg,
            #b4823f 0 14px,
            #a9762f 14px 28px),
        #b4823f;
    border-bottom: 2px solid #5e3f17;
    box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.35);
}

@-webkit-keyframes nt-pulse {
    0%, 100% {
        -webkit-transform: scale(1);
        transform: scale(1);
        box-shadow: 0 0 0 2px rgba(239, 59, 59, 0.18), 0 0 14px rgba(239, 59, 59, 0.85);
    }
    50% {
        -webkit-transform: scale(1.25);
        transform: scale(1.25);
        box-shadow: 0 0 0 4px rgba(239, 59, 59, 0.10), 0 0 22px rgba(239, 59, 59, 1.00);
    }
}

@keyframes nt-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 2px rgba(239, 59, 59, 0.18), 0 0 14px rgba(239, 59, 59, 0.85);
    }
    50% {
        transform: scale(1.25);
        box-shadow: 0 0 0 4px rgba(239, 59, 59, 0.10), 0 0 22px rgba(239, 59, 59, 1.00);
    }
}

@-webkit-keyframes nt-scroll {
    from { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
    to   { -webkit-transform: translate3d(-50%, 0, 0); transform: translate3d(-50%, 0, 0); }
}

@keyframes nt-scroll {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}
