/* ══════════════════════════════════════════════════════════════
   HFB Live Scores — live.css
   Full-width scoreboard, no sidebar, big readable cards
   ══════════════════════════════════════════════════════════════ */

/* ── Live pulse dot ──────────────────────────────────────────── */
@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(255,48,48,.65); }
    70%  { box-shadow: 0 0 0 9px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes blinkTime {
    0%, 100% { opacity: 1; }
    50%       { opacity: .35; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scoreFlash {
    0%   { background: rgba(255,107,0,.0); }
    20%  { background: rgba(255,107,0,.28); color: #FF6B00; transform: scale(1.15); }
    70%  { background: rgba(255,107,0,.08); }
    100% { background: transparent; transform: scale(1); }
}
.score-flash {
    animation: scoreFlash 1.4s ease-out forwards;
    border-radius: 6px;
}
@keyframes skeletonShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Top stats bar ───────────────────────────────────────────── */
.scores-bar {
    display: flex; align-items: center; justify-content: space-between;
    background: #080808; border: 1px solid #161616;
    border-radius: 12px; padding: 12px 20px;
    margin-bottom: 16px; gap: 12px; flex-wrap: wrap;
}
.scores-bar-left { display: flex; align-items: center; gap: 12px; }
.scores-live-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: #ff3030;
    box-shadow: 0 0 0 0 rgba(255,48,48,.65);
    animation: livePulse 1.5s infinite;
    flex-shrink: 0;
}
.scores-live-label {
    font-family: 'Orbitron', sans-serif; font-size: .82rem;
    font-weight: 700; color: #fff; letter-spacing: .04em;
}
.scores-live-num { color: #ff3030; }
.scores-total-label { font-size: .72rem; color: #2e2e2e; }
.scores-refresh {
    display: flex; align-items: center; gap: 7px;
    font-size: .7rem; color: #2a2a2a;
}
.scores-refresh-spinner {
    width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid #222; border-top-color: #FF6B00;
    animation: spin .7s linear infinite; display: none;
}
.scores-refresh.loading .scores-refresh-spinner { display: block; }
.scores-refresh.loading span { color: #FF6B00; }

/* ── Sport filter tabs ───────────────────────────────────────── */
.scores-tabs {
    display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 20px;
}
.scores-tab {
    display: flex; align-items: center; gap: 7px;
    background: #080808; border: 1px solid #181818;
    color: #3a3a3a; border-radius: 8px;
    padding: 8px 16px; font-size: .8rem; font-weight: 600;
    cursor: pointer; transition: all .15s; white-space: nowrap;
    font-family: 'Rajdhani', sans-serif; letter-spacing: .04em;
    text-transform: uppercase;
}
.scores-tab:hover { border-color: #2e2e2e; color: #888; }
.scores-tab.active { background: #0f0f0f; border-color: #FF6B00; color: #fff; }
.tab-badge {
    background: #141414; border-radius: 20px;
    padding: 1px 8px; font-size: .68rem; color: #333; min-width: 20px; text-align: center;
    transition: all .15s;
}
.scores-tab.active .tab-badge { background: rgba(255,107,0,.18); color: #FF6B00; }
.tab-live-pip {
    width: 6px; height: 6px; border-radius: 50%; background: #ff3030;
    animation: livePulse 1.5s infinite; flex-shrink: 0;
}

/* ── Section divider ─────────────────────────────────────────── */
.scores-section-divider {
    display: flex; align-items: center; gap: 12px;
    margin: 24px 0 12px; padding-bottom: 8px;
    border-bottom: 1px solid #111;
}
.scores-section-divider .sdiv-label {
    font-size: .65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .16em; color: #333;
    white-space: nowrap;
}
.sdiv-live-badge {
    background: rgba(255,48,48,.12); border: 1px solid rgba(255,48,48,.25);
    color: #ff3030; border-radius: 20px;
    font-size: .62rem; font-weight: 700; padding: 2px 10px;
}

/* ── League card ─────────────────────────────────────────────── */
.league-card {
    background: #060606; border: 1px solid #111;
    border-radius: 14px; overflow: hidden; margin-bottom: 10px;
}

.league-card-header {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 18px; background: #090909;
    border-bottom: 1px solid #0e0e0e;
    cursor: pointer; user-select: none;
    transition: background .12s;
}
.league-card-header:hover { background: #0d0d0d; }
.lch-flag { font-size: 1.05rem; line-height: 1; }
.lch-name {
    flex: 1; font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em; color: #555;
}
.lch-live-badge {
    background: rgba(255,48,48,.14); border: 1px solid rgba(255,48,48,.28);
    color: #ff3030; font-size: .62rem; font-weight: 700;
    border-radius: 20px; padding: 2px 9px;
}
.lch-count { font-size: .65rem; color: #222; }
.lch-chevron {
    font-size: .58rem; color: #1e1e1e;
    transition: transform .15s;
}
.league-card.collapsed .lch-chevron  { transform: rotate(-90deg); }
.league-card.collapsed .league-matches { display: none; }

/* ── Match row ───────────────────────────────────────────────── */
.match-row {
    display: flex; align-items: center;
    padding: 12px 18px; gap: 14px;
    border-bottom: 1px solid #0c0c0c;
    transition: background .1s;
}
.match-row:last-child { border-bottom: none; }
.match-row:hover { background: #0c0c0c; }
.match-row.is-live { background: #0c0900; border-left: 2px solid #ff3030; }
.match-row.is-live:hover { background: #110d00; }

/* time cell */
.mr-time {
    font-family: 'Orbitron', sans-serif;
    font-size: .7rem; font-weight: 700;
    color: #383838; text-align: center; min-width: 46px;
}
.mr-time.live { color: #ff5020; animation: blinkTime 1.6s step-end infinite; }
.mr-time.upcoming { color: #FF6B00; font-size: .68rem; font-family: 'Rajdhani', sans-serif; font-weight: 600; }

/* home / away teams */
.mr-home { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: flex-end; }
.mr-away { display: flex; align-items: center; gap: 8px; flex: 1; }
.mr-team-dot {
    width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
    border: 1px solid rgba(255,255,255,.08);
}
.mr-team-name {
    font-size: .88rem; font-weight: 600; color: #aaa;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    max-width: 160px; font-family: 'Rajdhani', sans-serif;
    letter-spacing: .02em;
}
.mr-team-name.winner { color: #fff; }
.mr-team-abbr {
    display: none; /* shown only on very small screens */
    font-size: .8rem; font-weight: 700; color: #777;
    font-family: 'Orbitron', sans-serif;
}
@media (max-width: 600px) {
    .mr-team-name { display: none; }
    .mr-team-abbr { display: block; }
    .mr-team-name.winner + .mr-team-abbr,
    .mr-team-abbr { display: block; }
}

/* score */
.mr-score {
    display: flex; align-items: center; gap: 4px;
    font-family: 'Orbitron', sans-serif; font-weight: 700;
    min-width: 80px; justify-content: center;
}
.mr-score-home, .mr-score-away {
    font-size: 1.15rem; color: #555; min-width: 22px; text-align: center;
}
.mr-score-home.winner, .mr-score-away.winner { color: #fff; }
.mr-score-sep { font-size: .75rem; color: #222; padding: 0 2px; }
.mr-score-vs  { font-size: .72rem; color: #222; letter-spacing: .05em; font-family: 'Rajdhani', sans-serif; }

/* action */
.mr-action { flex-shrink: 0; }
.mr-bet-btn {
    display: inline-flex; align-items: center; gap: 5px;
    background: #0e0e0e; border: 1px solid #1c1c1c;
    color: #3a3a3a; border-radius: 7px;
    font-size: .68rem; font-weight: 600; padding: 5px 12px;
    cursor: pointer; white-space: nowrap; text-decoration: none;
    transition: all .15s; font-family: 'Rajdhani', sans-serif;
    letter-spacing: .04em; text-transform: uppercase;
}
.mr-bet-btn:hover { border-color: #FF6B00; color: #FF6B00; background: #160a00; }

/* ── Tennis tournament row ───────────────────────────────────── */
.tennis-tour-row {
    display: flex; align-items: center; gap: 14px;
    padding: 13px 18px; border-bottom: 1px solid #0c0c0c;
    transition: background .1s;
}
.tennis-tour-row:last-child { border-bottom: none; }
.tennis-tour-row:hover { background: #0c0c0c; }
.ttr-state {
    font-size: .62rem; font-weight: 700; letter-spacing: .08em;
    padding: 3px 10px; border-radius: 5px; white-space: nowrap; text-transform: uppercase;
    flex-shrink: 0;
}
.ttr-state.live   { background: rgba(255,48,48,.14); border:1px solid rgba(255,48,48,.28); color:#ff3030; }
.ttr-state.next   { background: rgba(255,107,0,.14); border:1px solid rgba(255,107,0,.28); color:#FF6B00; }
.ttr-state.post   { background: #111; border:1px solid #1a1a1a; color: #2a2a2a; }
.ttr-name { flex: 1; font-size: .9rem; font-weight: 600; color: #aaa; font-family: 'Rajdhani', sans-serif; }
.ttr-tour { font-size: .68rem; color: #2e2e2e; white-space: nowrap; }
.ttr-date { font-size: .68rem; color: #2e2e2e; white-space: nowrap; }

/* ── F1 event row ────────────────────────────────────────────── */
.f1-session-row {
    display: flex; align-items: center; gap: 14px;
    padding: 13px 18px; border-bottom: 1px solid #0c0c0c;
    transition: background .1s;
}
.f1-session-row:last-child { border-bottom: none; }
.f1-session-row:hover { background: #0c0c0c; }
.f1sr-state {
    font-size: .62rem; font-weight: 700; padding: 3px 10px;
    border-radius: 5px; white-space: nowrap; text-transform: uppercase;
    flex-shrink: 0;
}
.f1sr-state.live { background: rgba(255,48,48,.14); border:1px solid rgba(255,48,48,.28); color:#ff3030; }
.f1sr-state.next { background: rgba(255,107,0,.14); border:1px solid rgba(255,107,0,.28); color:#FF6B00; }
.f1sr-state.post { background: #111; border:1px solid #1a1a1a; color: #2a2a2a; }
.f1sr-name { flex: 1; font-size: .9rem; font-weight: 600; color: #aaa; font-family: 'Rajdhani', sans-serif; }
.f1sr-session { font-size: .72rem; color: #3e3e3e; }
.f1sr-date { font-size: .68rem; color: #2e2e2e; white-space: nowrap; }

/* ── Skeleton loading ────────────────────────────────────────── */
.score-skeleton { padding: 10px 0; }
.skeleton-line {
    height: 52px; border-radius: 8px; margin-bottom: 8px;
    background: linear-gradient(90deg, #0a0a0a 25%, #111 50%, #0a0a0a 75%);
    background-size: 400% 100%;
    animation: skeletonShimmer 1.6s ease infinite;
}
.skeleton-line:nth-child(2) { opacity: .7; width: 90%; }
.skeleton-line:nth-child(3) { opacity: .45; width: 80%; }

/* ── Empty state ─────────────────────────────────────────────── */
.scores-empty {
    text-align: center; padding: 50px 20px; color: #1e1e1e;
}
.scores-empty i { font-size: 2.2rem; margin-bottom: 14px; display: block; }
.scores-empty p { font-size: .82rem; color: #2a2a2a; }

/* ── Hero carousel ───────────────────────────────────────────── */
.hero-carousel-wrapper { position: relative; }
.hero-carousel-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.75); border: 1px solid #1e1e1e;
    color: #777; width: 34px; height: 34px;
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; cursor: pointer; z-index: 10;
    font-size: .72rem; transition: all .15s;
}
.hero-carousel-nav:hover { border-color: #FF6B00; color: #FF6B00; }
.hero-carousel-nav.prev { left: -15px; }
.hero-carousel-nav.next { right: -15px; }
.hero-carousel-counter {
    position: absolute; top: 10px; right: 14px;
    font-family: 'Orbitron', sans-serif; font-size: .58rem;
    color: #2e2e2e; font-weight: 600; letter-spacing: .06em;
}
.hero-multi-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .7rem; color: #ff3030; font-weight: 600; margin-bottom: 6px;
    font-family: 'Orbitron', sans-serif; letter-spacing: .04em;
}
.hero-multi-badge .pulse {
    width: 7px; height: 7px; border-radius: 50%; background: #ff3030;
    animation: livePulse 1.5s infinite;
}
.hero-league-tag {
    font-size: .65rem; color: #444; text-transform: uppercase;
    letter-spacing: .1em; margin: 4px 0;
    font-family: 'Rajdhani', sans-serif;
}
