/* ══════════════════════════════════════════
   Next To Jump – Single Race Card
   UI v2 – compact inline row style
══════════════════════════════════════════ */

/* ── Widget wrapper ── */
#ntj-laurel-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 420px;
}

/* ── Card ── */
.nlp-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(8, 27, 51, 0.10);
    color: #111e40;
}

/* ── Header row ── */
.nlp-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
}

/* Track badge – dark navy pill */
.nlp-track-badge {
    width: 44px;
    height: 44px;
    background: #1a2744;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Info block */
.nlp-header-info {
    flex: 1;
    min-width: 0;
}

/* Status line – "● LIVE" or "● NEXT TO POST" */
.nlp-status-line {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    white-space: nowrap;
}
.nlp-status-line.nlp-live    { color: #e03030; }
.nlp-status-line.nlp-urgent  { color: #c84b00; }
.nlp-status-line.nlp-upcoming { color: #111e40; }

/* Blinking dot */
.nlp-live-dot {
    width: 7px;
    height: 7px;
    background: currentColor;
    border-radius: 50%;
    display: inline-block;
    animation: nlp-dot-blink 1s ease-in-out infinite;
    flex-shrink: 0;
}

/* Track name */
.nlp-track-name {
    font-size: 15px;
    font-weight: 700;
    color: #111e40;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

/* Subtitle – race + surface */
.nlp-race-sub {
    font-size: 12px;
    color: #8a9bbf;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Right-side action: status label stacked above time */
.nlp-card-action {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.nlp-card-action-inner {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}

/* Compact countdown shown inline */
.nlp-inline-time {
    font-size: 13px;
    font-weight: 700;
    color: #111e40;
    min-width: 52px;
    text-align: right;
}
.nlp-inline-time.nlp-time-urgent {
    color: #e03030;
    animation: nlp-pulse 1s ease-in-out infinite;
}
.nlp-inline-time.nlp-time-live {
    color: #e03030;
    animation: nlp-pulse 0.85s ease-in-out infinite;
}

/* ── Animations ── */
@keyframes nlp-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.55; }
}
@keyframes nlp-dot-blink {
    0%, 100% { opacity: 1;   transform: scale(1);   }
    50%      { opacity: 0.3; transform: scale(0.65); }
}

/* ── Empty state ── */
.nlp-card--empty {
    padding: 28px 20px;
    text-align: center;
}
.nlp-empty-icon {
    font-size: 30px;
    margin-bottom: 8px;
}
.nlp-empty-text {
    font-size: 13px;
    color: #8a9bbf;
}

/* ── Error ── */
#ntj-laurel-error {
    font-size: 12px;
    color: #e74c3c;
    padding: 6px 4px;
    display: none;
}

/* ── Loading ── */
.nlp-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px 18px;
    color: #8a9bbf;
    font-size: 13px;
}
.nlp-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #e0e4ef;
    border-top-color: #1a2744;
    border-radius: 50%;
    animation: nlp-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes nlp-spin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 480px) {
    .nlp-track-name     { font-size: 14px; }
    .nlp-inline-time    { font-size: 12px; min-width: 44px; }
}
