/* ── Live Scores TdB ── */

.lstdb-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #0f0f0f;
    border-radius: 12px;
    padding: 1rem;
    color: #e8e8e8;
    max-width: 720px;
    margin: 0 auto;
}

/* Nav de anclas */
.lstdb-nav {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    border-bottom: 0.5px solid #2a2a2a;
    padding-bottom: 12px;
    margin-bottom: 1.25rem;
}

.lstdb-anc {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 11px;
    border-radius: 20px;
    border: 0.5px solid #333;
    background: transparent;
    color: #888;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s, border-color 0.2s;
}

.lstdb-anc.has-live {
    border-color: #e03131;
    color: #e8e8e8;
}

/* Punto rojo parpadeante */
.lstdb-dot {
    width: 5px;
    height: 5px;
    background: #e03131;
    border-radius: 50%;
    flex-shrink: 0;
    animation: lstdb-blink 1.2s infinite;
}

@keyframes lstdb-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.1; }
}

/* Sección de liga */
.lstdb-league {
    margin-bottom: 1.75rem;
}

.lstdb-league-hdr {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.lstdb-league-name {
    font-size: 11px;
    font-weight: 500;
    color: #555;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.lstdb-live-count {
    font-size: 10px;
    color: #e03131;
    display: flex;
    align-items: center;
    gap: 3px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* Card de partido */
.lstdb-card {
    background: #181818;
    border: 0.5px solid #242424;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
}

.lstdb-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.lstdb-status-live {
    font-size: 10px;
    color: #e03131;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.05em;
}

.lstdb-status-final {
    font-size: 10px;
    color: #555;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.lstdb-status-pre {
    font-size: 10px;
    color: #555;
    letter-spacing: 0.04em;
}

.lstdb-venue {
    font-size: 10px;
    color: #444;
}

/* Scoreboard */
.lstdb-scores {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.lstdb-team {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
}

.lstdb-team.away {
    flex-direction: row-reverse;
}

.lstdb-badge {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 600;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.lstdb-team-name {
    font-size: 13px;
    font-weight: 500;
    color: #d8d8d8;
}

.lstdb-team-record {
    font-size: 10px;
    color: #444;
}

.lstdb-score-mid {
    text-align: center;
    flex-shrink: 0;
    padding: 0 12px;
}

.lstdb-score-big {
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -1px;
    line-height: 1;
    color: #e8e8e8;
}

.lstdb-score-sep {
    color: #333;
    margin: 0 4px;
}

.lstdb-score-win  { color: #ffffff; }
.lstdb-score-lose { color: #444; }
.lstdb-score-vs   { font-size: 18px; color: #2a2a2a; font-weight: 500; }

/* Parciales por cuarto */
.lstdb-qtrs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 0.5px solid #222;
    padding-top: 8px;
    margin-bottom: 8px;
}

.lstdb-qtr {
    text-align: center;
    padding: 0 4px;
    border-right: 0.5px solid #222;
}

.lstdb-qtr:last-child {
    border-right: none;
}

.lstdb-ql {
    font-size: 9px;
    color: #444;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.lstdb-qs {
    font-size: 11px;
    color: #555;
    line-height: 1.6;
}

.lstdb-qs.win     { color: #d8d8d8; font-weight: 500; }
.lstdb-qs.pending { color: #222; }

/* Líderes */
.lstdb-leaders {
    display: grid;
    grid-template-columns: 1fr 0.5px 1fr;
    border-top: 0.5px solid #222;
    padding-top: 8px;
}

.lstdb-leader-team {
    padding: 0 8px;
}

.lstdb-leader-team:first-child { padding-left: 0; }

.lstdb-leader-divider {
    background: #222;
}

.lstdb-leader-stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.lstdb-leader-stat:last-child { margin-bottom: 0; }

.lstdb-lcat {
    font-size: 9px;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.lstdb-lname {
    font-size: 11px;
    color: #bbb;
    font-weight: 500;
}

.lstdb-lval {
    font-size: 11px;
    color: #e8a020;
    font-weight: 500;
    margin-left: 4px;
}

/* Estados vacíos */
.lstdb-loading,
.lstdb-empty,
.lstdb-error {
    text-align: center;
    padding: 16px;
    font-size: 12px;
    color: #333;
    border: 0.5px solid #1e1e1e;
    border-radius: 10px;
}

.lstdb-error { color: #7a2020; border-color: #2a1010; }

/* Próximo partido (pre) */
.lstdb-card.is-pre {
    opacity: 0.5;
}
