/* ---------- Torneos (ligas profesionales) ---------- */

.tn-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; scrollbar-width: thin; }
.tn-chip {
  display: flex; align-items: center; gap: 8px; flex: none; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--card); color: var(--muted-fg); font-size: 13.5px; white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.tn-chip b { color: var(--fg); }
.tn-chip:hover { border-color: var(--brand-line); }
.tn-chip.active { background: var(--brand-soft); border-color: var(--brand-line); color: var(--brand-light); }
.tn-chip.active b { color: var(--brand); }

.tn-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #ff4655; box-shadow: 0 0 0 0 rgba(255, 70, 85, 0.6); animation: tn-pulse 1.6s infinite; }
@keyframes tn-pulse { 70% { box-shadow: 0 0 0 7px rgba(255, 70, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 70, 85, 0); } }

.tn-title { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 18px; }
.tn-live { margin-bottom: 22px; }
.tn-live-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
.tn-live-card {
  display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 14px; padding: 16px 18px;
  border-color: rgba(255, 70, 85, 0.35); background: linear-gradient(135deg, rgba(255, 70, 85, 0.07), transparent 60%), var(--card);
}
.tn-live-team { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 15px; }
.tn-live-mid { text-align: center; font-size: 12.5px; }
.tn-live-score { font: 800 30px var(--font); letter-spacing: -0.02em; }
.tn-live-score span { margin: 0 6px; color: var(--dim-fg); font-weight: 600; }
.tn-watch { white-space: nowrap; }

.tn-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.tn-side-col { display: grid; gap: 16px; }

.tn-logo, .tn-logo-lg { width: 22px; height: 22px; flex: none; object-fit: contain; }
.tn-logo-lg { width: 52px; height: 52px; }
.tn-logo-empty { display: inline-block; border-radius: 6px; background: var(--muted); }

.tn-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tn-table th { padding: 0 8px 10px; color: var(--dim-fg); font-size: 12px; font-weight: 600; text-align: left; text-transform: uppercase; letter-spacing: 0.04em; }
.tn-table td { padding: 9px 8px; border-top: 1px solid var(--border); }
.tn-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.tn-place { width: 30px; color: var(--muted-fg); font-weight: 700; }
.tn-team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tn-full { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.tn-num { white-space: nowrap; font-variant-numeric: tabular-nums; }

.tn-matches { list-style: none; margin: 0; padding: 0; }
.tn-match { display: grid; grid-template-columns: 128px 1fr auto 1fr; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 14px; }
.tn-match:first-child { border-top: 0; }
.tn-when { font-size: 12px; }
.tn-side { display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: var(--muted-fg); font-weight: 600; min-width: 0; }
.tn-side.right { justify-content: flex-start; }
.tn-side.win { color: var(--fg); font-weight: 800; }
.tn-score { min-width: 44px; text-align: center; font: 700 13px var(--mono); color: var(--fg); }
.tn-source { margin-top: 18px; }

@media (max-width: 900px) {
  .tn-grid { grid-template-columns: 1fr; }
  .tn-live-list { grid-template-columns: 1fr; }
  .tn-live-card { grid-template-columns: 1fr auto 1fr; }
  .tn-watch { grid-column: 1 / -1; justify-self: center; }
  .tn-full { display: none; }
  .tn-match { grid-template-columns: 1fr auto 1fr; }
  .tn-when { grid-column: 1 / -1; }
}

/* En vivo de lolesports (vista previa): la partida en curso con oro, kills y objetivos. */
.tn-es { margin-bottom: 22px; }
.tn-es .badge { margin-left: 4px; font-size: 11px; }
.tn-es-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
.tn-es-card { display: grid; gap: 14px; padding: 16px 18px; border-color: rgba(255, 70, 85, 0.35); }
.tn-es-card > .btn { justify-self: center; }
.tn-es-league { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.tn-es-series { display: flex; align-items: center; justify-content: space-around; }
.tn-es-team { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.tn-es-game { display: grid; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); }
.tn-es-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; }
.tn-es-side { display: flex; align-items: center; gap: 6px; }
.tn-es-side.blue { color: #5b9cff; }
.tn-es-side.red { color: #ff6b6b; }
.tn-es-clock { color: var(--muted-fg); font: 600 12.5px var(--mono); }
.tn-es-kills, .tn-es-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.tn-es-kills b { font-size: 26px; }
.tn-es-kills b:last-child, .tn-es-row b:last-child { text-align: right; }
.tn-es-kills span, .tn-es-row span { color: var(--muted-fg); font-size: 12.5px; text-align: center; }
.tn-es-row b { font-variant-numeric: tabular-nums; }
.tn-es-goldbar { height: 8px; border-radius: 4px; background: rgba(255, 107, 107, 0.55); overflow: hidden; margin-bottom: 6px; }
.tn-es-goldbar span { display: block; height: 100%; background: #5b9cff; transition: width 0.6s ease; }
.tn-es-wait { margin: 0; text-align: center; }
@media (max-width: 900px) { .tn-es-list { grid-template-columns: 1fr; } }
