/* Factor Partido — Tablas Reales API-Football v3 */
#ptab-tablas .ptab-inner{
  background:
    radial-gradient(circle at 12% 0%,rgba(0,212,232,.07),transparent 28%),
    radial-gradient(circle at 90% 16%,rgba(34,197,94,.045),transparent 30%);
}

.fp-real-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
  padding:16px;
  border:1px solid rgba(0,212,232,.14);
  background:linear-gradient(135deg,rgba(0,212,232,.075),rgba(255,255,255,.025));
  border-radius:18px;
}

.fp-real-title{
  font-family:var(--font-h);
  font-size:24px;
  font-weight:900;
  color:var(--white);
  line-height:1;
}

.fp-real-sub{
  color:var(--gray);
  font-size:12px;
  margin-top:7px;
  line-height:1.5;
}

.fp-real-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

.fp-real-badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border-radius:999px;
  padding:7px 10px;
  background:rgba(34,197,94,.10);
  border:1px solid rgba(34,197,94,.20);
  color:#bbf7d0;
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
}

.fp-real-refresh{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.045);
  color:var(--white);
  border-radius:999px;
  padding:8px 12px;
  cursor:pointer;
  font-size:11px;
  font-weight:900;
}

.fp-real-refresh:hover{
  border-color:rgba(0,212,232,.35);
  color:var(--cyan);
}

.fp-real-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
}

.fp-real-card{
  overflow:hidden;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.018));
  box-shadow:0 16px 42px rgba(0,0,0,.17);
}

.fp-real-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.07);
  background:rgba(0,0,0,.12);
}

.fp-real-card-title{
  display:flex;
  align-items:center;
  gap:9px;
  font-family:var(--font-h);
  font-size:16px;
  font-weight:900;
  color:var(--white);
}

.fp-real-card-meta{
  color:var(--gray2);
  font-size:10px;
  font-weight:900;
  text-transform:uppercase;
  text-align:right;
}

.fp-real-table-wrap{
  overflow:auto;
}

.fp-real-table{
  width:100%;
  border-collapse:collapse;
  min-width:650px;
}

.fp-real-table th{
  position:sticky;
  top:0;
  z-index:1;
  background:#0e1728;
  color:var(--gray2);
  font-size:9px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  text-align:center;
  padding:9px 7px;
  border-bottom:1px solid rgba(255,255,255,.07);
}

.fp-real-table th:nth-child(2),
.fp-real-table td:nth-child(2){
  text-align:left;
}

.fp-real-table td{
  padding:9px 7px;
  border-bottom:1px solid rgba(255,255,255,.045);
  text-align:center;
  color:rgba(255,255,255,.87);
  font-size:11px;
}

.fp-real-table tr:hover td{
  background:rgba(0,212,232,.045);
}

.fp-rank{
  display:inline-flex;
  width:24px;
  height:24px;
  border-radius:9px;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.055);
  color:var(--gray);
  font-family:var(--font-h);
  font-size:12px;
  font-weight:900;
}

.fp-rank.top{background:rgba(0,212,232,.12);color:var(--cyan)}
.fp-rank.mid{background:rgba(34,197,94,.10);color:var(--green)}
.fp-rank.low{background:rgba(239,68,68,.10);color:#fecaca}

.fp-real-team{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:180px;
  max-width:260px;
}

.fp-real-logo{
  width:23px;
  height:23px;
  border-radius:50%;
  object-fit:contain;
  background:rgba(255,255,255,.06);
  padding:2px;
  flex-shrink:0;
}

.fp-real-team strong{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  color:var(--white);
}

.fp-pts{
  display:inline-flex;
  min-width:30px;
  justify-content:center;
  padding:5px 7px;
  border-radius:9px;
  background:rgba(0,212,232,.09);
  color:var(--cyan);
  font-family:var(--font-h);
  font-weight:900;
}

.fp-positive{color:var(--green)!important}
.fp-negative{color:#fca5a5!important}
.fp-neutral{color:var(--gray2)!important}

.fp-real-empty,
.fp-real-loading{
  padding:28px;
  border:1px dashed rgba(0,212,232,.22);
  border-radius:18px;
  background:rgba(0,212,232,.035);
  color:var(--gray);
  text-align:center;
  line-height:1.55;
}

.fp-real-provider{
  display:inline-flex;
  margin-left:8px;
  color:var(--cyan);
  font-weight:900;
}

@media(max-width:1050px){
  .fp-real-grid{grid-template-columns:1fr}
}

@media(max-width:720px){
  .fp-real-head{display:block}
  .fp-real-actions{justify-content:flex-start;margin-top:12px}
  .fp-real-table{min-width:590px}
}
