/* ============================================
   LIVE PAGES CHROME (/live and /live/{id})
   --------------------------------------------
   Everything around the scoresheet: the board's filter bar and rows, and
   the match page's compact head. Both stay on the site's own light
   surface and reuse .page-container, .ui-compact-row and friends — these
   are pages of the website, not the scoreboard bolted onto it. The
   scoresheet itself is still live-scoring.css.
   ============================================ */

.live-now-status {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    min-height: 28px;
    margin-bottom: var(--spacing-md, 24px);
}

.live-now-status__updated {
    font-size: 13px;
    color: var(--text-muted, #64748b);
}

/* The one place the board borrows the scoreboard's language: a red dot
   reads as "happening now" everywhere else in the product. */
.live-now-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(225, 29, 72, 0.10);
    border: 1px solid rgba(225, 29, 72, 0.28);
    color: #be123c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.live-now-badge__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e11d48;
    animation: live-now-pulse 1.6s ease-in-out infinite;
}

@keyframes live-now-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .35; }
}

@media (prefers-reduced-motion: reduce) {
    .live-now-badge__dot {
        animation: none;
    }
}

.live-now-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--surface-2, #f8fafc);
    border: 1px solid var(--border, #e2e8f0);
    color: var(--text-muted, #64748b);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

/* ---- Tournament group ---- */

.live-now-group {
    margin-bottom: var(--spacing-lg, 32px);
}

.live-now-group__head {
    margin-bottom: var(--spacing-sm, 16px);
}

.live-now-group__org {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted, #64748b);
}

.live-now-group__title {
    margin: 2px 0 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--text, #0f172a);
}

/* ---- Toolbar: filters on the left, freshness on the right ---- */

.live-now-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md, 24px);
}

.live-now-toolbar .live-now-status {
    margin-bottom: 0;
}

.live-now-toolbar__filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* The shared .ui-filter-select is width:100%, which is what a filter bar of
   its own wants; here two of them share a row, so each gets a sane basis
   and is still allowed to grow into the space on a narrow screen. */
.live-now-filter {
    flex: 1 1 220px;
    min-width: 180px;
    max-width: 320px;
}

/* ---- Match row ---- */

/* The trailing LIVE badge is the row's status, not a second title: it must
   not push the teams out of their line on a narrow screen. */
.ui-compact-row .live-now-badge {
    flex-shrink: 0;
}

/* ---- Match page head (/live/{id}) ---- */

.live-match-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.live-match-head__org {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-muted, #64748b);
}

.live-match-head__title {
    margin: 2px 0 0;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text, #0f172a);
}

.live-match-head__teams {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 6px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text, #0f172a);
}

.live-match-head__vs {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--text-muted, #64748b);
}

.live-match-head__status {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .live-now-group__title {
        font-size: 18px;
    }

    .live-now-filter {
        flex-basis: 100%;
        max-width: none;
    }

    .live-match-head__title {
        font-size: 21px;
    }

    .live-match-head__teams {
        font-size: 15px;
    }
}
