/* ============================================================
   LiveScoreHub.css — unified multi-sport live score page.
   Loads AFTER LiveScoreModern.css and extends its ls- design
   language. The racquet-sport cards (badminton / table tennis /
   tennis / pickleball) use the UNCHANGED ls-card markup from
   LiveScoreModern.css; the lsx- classes below style the
   TSR-backed team/combat sports (football, basketball,
   volleyball, cricket, wrestling, ...).
   ============================================================ */

/* ---------- sport tabs ----------
   Same wrapping pill design as the Results/Upcoming pages (mc-sporttabs):
   rows wrap instead of scrolling sideways. On a white card strip below the
   dark header so the pills read exactly like the reference. */
.lsx-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #fff;
    border: 1px solid #e7ecf3;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(34, 58, 158, 0.08), 0 1px 3px rgba(20, 35, 59, 0.06);
    padding: 14px;
    margin-bottom: 14px;
}

.lsx-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 700;
    color: #51637a;
    background: #f1f4f9;
    border: 1.5px solid transparent;
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.lsx-tab:hover { background: #e7edf6; }

.lsx-tab .lsx-tab-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, #223A9E, #0ca7d5);
}

.lsx-tab-count {
    min-width: 20px;
    text-align: center;
    font-size: 11.5px;
    font-weight: 800;
    color: #8595a8;
    background: #fff;
    border-radius: 999px;
    padding: 1px 7px;
}

.lsx-tab.is-active {
    color: #fff;
    background: linear-gradient(135deg, #223A9E, #0ca7d5);
    box-shadow: 0 6px 16px rgba(34, 58, 158, 0.22);
}

.lsx-tab.is-active .lsx-tab-dot { background: #fff; }
.lsx-tab.is-active .lsx-tab-count { color: #223A9E; background: rgba(255, 255, 255, 0.92); }

/* section header when showing "All sports" */
.lsx-sect {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 2px 10px;
    font-size: 14px;
    font-weight: 800;
    color: #14233b;
}

.lsx-sect small { font-weight: 600; color: #8595a8; }
.lsx-sect .lsx-sect-line { flex: 1; height: 1px; background: #e7ecf3; }

/* ---------- shared bits for TSR cards (inside the standard .ls-card) ---------- */
.lsx-clock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    color: #c22333;
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.28);
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.lsx-clock i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #dc3545;
    animation: lsx-pulse 1.4s ease-in-out infinite;
}

@keyframes lsx-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .lsx-clock i { animation: none; } }

.lsx-session {
    font-size: 11.5px;
    font-weight: 700;
    color: #51637a;
    white-space: nowrap;
}

/* big scoreline (football / hockey / handball / generic) */
.lsx-scoreline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 2px 6px;
}

.lsx-team {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.lsx-team img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: #f4f7fb;
    border: 1px solid #e7ecf3;
}

.lsx-team-name {
    font-size: 13px;
    font-weight: 700;
    color: #14233b;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lsx-big {
    flex: 0 0 auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 34px;
    font-weight: 800;
    color: #14233b;
    font-variant-numeric: tabular-nums;
}

.lsx-big i { font-style: normal; font-size: 20px; color: #8595a8; }
.lsx-big .is-ahead { color: #0f9d6b; }

.lsx-note {
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #b76e00;
    background: #fdf2dd;
    border-radius: 8px;
    padding: 4px 8px;
    margin-top: 6px;
}

/* mini period/quarter grid (basketball / netball) */
.lsx-periods {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 8px;
}

.lsx-periods .p {
    min-width: 34px;
    text-align: center;
    font-size: 10.5px;
    color: #8595a8;
    font-weight: 800;
}

.lsx-periods .p b {
    display: block;
    font-size: 12px;
    color: #14233b;
    font-weight: 700;
    background: #f4f7fb;
    border-radius: 6px;
    padding: 2px 4px;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

/* combat corners (wrestling / boxing / judo / taekwondo / karate) */
.lsx-combat {
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 8px 2px 4px;
}

.lsx-corner {
    flex: 1 1 0;
    min-width: 0;
    border-radius: 12px;
    padding: 10px 12px;
    text-align: center;
}

.lsx-corner--red { background: rgba(220, 53, 69, 0.08); border: 1px solid rgba(220, 53, 69, 0.3); }
.lsx-corner--blue { background: rgba(34, 58, 158, 0.07); border: 1px solid rgba(34, 58, 158, 0.3); }

.lsx-corner .nm {
    font-size: 12.5px;
    font-weight: 700;
    color: #14233b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lsx-corner .pt { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.lsx-corner--red .pt { color: #c22333; }
.lsx-corner--blue .pt { color: #223A9E; }

.lsx-vsmid {
    flex: 0 0 auto;
    align-self: center;
    font-size: 12px;
    font-weight: 800;
    color: #8595a8;
}

/* cricket rows */
.lsx-cricket { padding: 6px 2px 2px; }

.lsx-inn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border-radius: 10px;
}

.lsx-inn + .lsx-inn { margin-top: 4px; }
.lsx-inn.is-batting { background: rgba(15, 157, 107, 0.07); }

.lsx-inn .nm {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    color: #14233b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lsx-inn .bat {
    font-size: 10px;
    font-weight: 800;
    color: #0f9d6b;
    letter-spacing: .04em;
}

.lsx-inn .runs { font-size: 17px; font-weight: 800; color: #14233b; font-variant-numeric: tabular-nums; }
.lsx-inn .ov { font-size: 11.5px; color: #8595a8; font-weight: 700; font-variant-numeric: tabular-nums; }

.lsx-target {
    margin-top: 6px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: #51637a;
}

/* sport chip on every TSR card */
.lsx-sportchip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #0a8fb8;
    background: rgba(12, 167, 213, 0.10);
    border-radius: 999px;
    padding: 2px 8px;
}

@media (max-width: 640px) {
    .lsx-big { font-size: 28px; }
    .lsx-corner .pt { font-size: 24px; }
}
