/* V2.8.40 — live ordering, sort controls, league grouping, hidden-state hardening */
.tfe-v15-live [hidden]{display:none!important}
.tfe-v15-live .tfe-public-empty[hidden]{display:none!important}

.tfe-v15-live .tfe-match-state{display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:82px}
.tfe-v15-live .tfe-match-state time{font-weight:800;font-variant-numeric:tabular-nums}
.tfe-v15-live .tfe-match-state.is-live{min-width:150px}
.tfe-v15-live .tfe-live-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:999px;background:rgba(220,38,38,.10);border:1px solid rgba(220,38,38,.24);color:#dc2626;font-size:.74rem;font-weight:900;letter-spacing:.035em;white-space:nowrap}
.tfe-v15-live .tfe-live-pill>i{width:7px;height:7px;border-radius:50%;background:currentColor;box-shadow:0 0 0 0 rgba(220,38,38,.35);animation:tfe-live-pulse 1.5s ease-out infinite}
.tfe-v15-live .tfe-live-pill>b{font-size:.76rem;font-variant-numeric:tabular-nums}
.tfe-v15-live .tfe-live-score{font-size:1.2rem;font-weight:950;line-height:1;font-variant-numeric:tabular-nums;letter-spacing:.02em}
.tfe-v15-live .tfe-public-match.is-live{border-color:rgba(220,38,38,.24)}
.tfe-v15-live .tfe-public-match.is-live .tfe-match-head{background:linear-gradient(90deg,rgba(220,38,38,.035),transparent 44%)}

.tfe-v15-live .tfe-sortbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:-7px 0 18px}
.tfe-v15-live .tfe-sortbar>span{font-size:.78rem;font-weight:800;opacity:.62;margin-right:2px}
.tfe-v15-live .tfe-sortbar>a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 11px;border:1px solid var(--border,#e5e7eb);border-radius:999px;background:var(--card,#fff);color:inherit;text-decoration:none;font-size:.82rem;font-weight:800;transition:.16s ease}
.tfe-v15-live .tfe-sortbar>a:hover{transform:translateY(-1px);border-color:rgba(232,18,76,.34)}
.tfe-v15-live .tfe-sortbar>a.active{color:#e8124c;border-color:rgba(232,18,76,.30);background:rgba(232,18,76,.07)}

.tfe-v15-live .tfe-list-divider{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 14px;margin-top:4px;border-radius:13px;border:1px solid var(--border,#e5e7eb);background:rgba(148,163,184,.06)}
.tfe-v15-live .tfe-list-divider>b{font-size:.92rem}
.tfe-v15-live .tfe-list-divider>span{font-size:.76rem;opacity:.62;text-align:right}
.tfe-v15-live .tfe-live-divider{border-color:rgba(220,38,38,.18);background:rgba(220,38,38,.045)}
.tfe-v15-live .tfe-live-divider>b{color:#dc2626}
.tfe-v15-live .tfe-upcoming-divider{margin-top:10px}

.tfe-v15-live .tfe-league-divider{display:flex;align-items:baseline;gap:8px;padding:10px 5px 0;margin-top:2px}
.tfe-v15-live .tfe-league-divider>span{font-size:.68rem;font-weight:900;letter-spacing:.08em;text-transform:uppercase;opacity:.48}
.tfe-v15-live .tfe-league-divider>b{font-size:.93rem}

@keyframes tfe-live-pulse{0%{box-shadow:0 0 0 0 rgba(220,38,38,.38)}70%{box-shadow:0 0 0 7px rgba(220,38,38,0)}100%{box-shadow:0 0 0 0 rgba(220,38,38,0)}}
html[data-theme="dark"] .tfe-v15-live .tfe-live-pill,.dark .tfe-v15-live .tfe-live-pill{background:rgba(248,113,113,.12);border-color:rgba(248,113,113,.28);color:#f87171}
html[data-theme="dark"] .tfe-v15-live .tfe-sortbar>a,.dark .tfe-v15-live .tfe-sortbar>a{background:rgba(255,255,255,.025)}
html[data-theme="dark"] .tfe-v15-live .tfe-sortbar>a.active,.dark .tfe-v15-live .tfe-sortbar>a.active{background:rgba(232,18,76,.12)}
html[data-theme="dark"] .tfe-v15-live .tfe-live-divider,.dark .tfe-v15-live .tfe-live-divider{background:rgba(248,113,113,.055)}

@media(max-width:620px){
  .tfe-v15-live .tfe-match-state{min-width:auto;flex-direction:column;align-items:flex-end;gap:5px}
  .tfe-v15-live .tfe-match-state.is-live{min-width:86px}
  .tfe-v15-live .tfe-live-pill{padding:5px 7px}
  .tfe-v15-live .tfe-live-score{font-size:1.08rem}
  .tfe-v15-live .tfe-list-divider{align-items:flex-start;flex-direction:column;gap:3px}
  .tfe-v15-live .tfe-list-divider>span{text-align:left}
}
