/* === KFK: Sütunları zorla (# | Takımlar | P | A) === */
.kfk-table .kfk-row{
  display: grid !important;
  grid-template-columns: 32px 1fr 28px 28px !important; /* # | team | P | A */
  align-items: center;
  gap: 6px;
  padding-right: 6px;
}
.kfk-table .kfk-row.kfk-head{
  grid-template-columns: 32px 1fr 28px 28px !important;
}

/* her hücre blok olsun, inline akmasın */
.kfk-table .kfk-col{ display:block; }

/* takım adı tek satır ve solda */
.kfk-table .kfk-team{
  justify-self:start; text-align:left;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
font-size:12px;
margin-left: -25px;
}

/* P ve A dar ve tamamen sağda */
.kfk-table .kfk-points,
.kfk-table .kfk-avg{
  width:28px; justify-self:end; text-align:right;
  font-variant-numeric: tabular-nums;
}

/* başlık satırında da aynı hizalar */
.kfk-table .kfk-head .kfk-team{ justify-self:start; text-align:left; }
.kfk-table .kfk-head .kfk-points,
.kfk-table .kfk-head .kfk-avg{ justify-self:end; text-align:right; }



.kfk-standings{--bg:#0f0f12;--fg:#e9e9f0;--muted:#9aa0a6;--row:#14161a;--row2:#191b21;--accent:#00ff75;--play:#4bd1ff;--drop:#ff3647;--hl:#ffe081; font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif; color:var(--fg); background:linear-gradient(180deg,#0b0c10, #0f1117); padding:16px; border-radius:14px; box-shadow:0 6px 20px rgba(0,0,0,.35)}
.kfk-header{display:flex; justify-content:space-between; align-items:center; margin-bottom:12px}
.kfk-title{font-size:18px; font-weight:700}
.kfk-title span{font-weight:500; color:var(--muted); margin-left:8px}
.kfk-updated{font-size:12px; color:var(--muted)}
.kfk-table{border:1px solid #1f232c; border-radius:12px; overflow:hidden}
.kfk-row{display:grid; grid-template-columns:44px 1fr 60px 60px 60px; gap:0; align-items:center; padding:10px 12px; background:var(--row); border-bottom:1px solid #1a1d24}
.kfk-row:nth-child(odd){background:var(--row2)}
.kfk-head{background:#0c0e13; position:sticky; top:0; z-index:1; text-transform:uppercase; font-size:12px; letter-spacing:.06em; color:var(--muted)}
.kfk-col.kfk-rank{font-weight:700; color:#7aa2ff;     margin-left: -9px;}
.kfk-col.kfk-team{font-weight:600}
.kfk-col.kfk-points{font-weight:700; font-size:12px;}
.kfk-col.kfk-avg, .kfk-col.kfk-played{color:var(--muted)}
.kfk-row.status-promotion .kfk-rank::before{content:''; display:inline-block; width:8px; height:8px; border-radius:2px; background:var(--accent); margin-right:8px}
.kfk-row.status-playoff .kfk-rank::before{content:''; display:inline-block; width:8px; height:8px; border-radius:2px; background:var(--play); margin-right:8px}
.kfk-row.status-relegation .kfk-rank::before{content:''; display:inline-block; width:8px; height:8px; border-radius:2px; background:var(--drop); margin-right:8px}
.kfk-highlight{background:linear-gradient(90deg, rgba(255,224,129,.15), transparent)}
.kfk-legend{display:flex; gap:10px; align-items:center; margin-top:10px; font-size:12px; color:var(--muted)}
.kfk-legend .legend-item{display:inline-block; width:10px; height:10px; border-radius:2px; margin-right:4px}
.kfk-legend .promo{background:var(--accent)}
.kfk-legend .playoff{background:var(--play)}
.kfk-legend .releg{background:var(--drop)}
/* --- Rank sayısını statü rengine boya --- */
.kfk-row .kfk-rank{ color:#94a3b8; }                 /* varsayılan (nötr) */
.kfk-row.status-promotion .kfk-rank{ color:var(--promo); }    /* yeşil */
.kfk-row.status-playoff   .kfk-rank{ color:var(--play); }     /* mavi */
.kfk-row.status-relegation .kfk-rank{ color:var(--releg); }   /* kırmızı */

/* Nokta istemiyorsan kaldır: */
.kfk-row .kfk-rank::before{ display:none; }
/* Noktayı kaldır – sadece rakam kalsın */
.kfk-row .kfk-rank::before{ content:none !important; display:none !important; }

/* Rank için statü renkleri – ezilmeyi engelle */
.kfk-standings .kfk-table .status-promotion .kfk-rank { color: #22c55e !important; } /* yeşil */
.kfk-standings .kfk-table .status-playoff   .kfk-rank { color: #38bdf8 !important; } /* mavi  */
.kfk-standings .kfk-table .status-relegation .kfk-rank{ color: #ef4444 !important; } /* kırmızı */

/* Nötrü gri yapacaksan: */
.kfk-standings .kfk-table .kfk-row:not(.status-promotion):not(.status-playoff):not(.status-relegation) .kfk-rank{
  color:#94a3b8 !important;
}
.kfk-row.kfk-highlight{ background: rgba(255,255,255,.06); outline: 1px solid rgba(255,255,255,.15); }
/* === FULL TABLO (O,G,B,M,A,Y,AV,P) DÜZENİ — KFK SKIN === */
.kfk-standings.kfk-skin .kfk-row{
  display: grid;
  grid-template-columns: 44px 1fr repeat(8, minmax(32px, 48px)) !important; /* 10 kolon */
  gap: 12px;
  align-items: center;
}
.kfk-standings.kfk-skin .kfk-col{min-width:0;}
.kfk-standings.kfk-skin .kfk-row .kfk-col:not(.kfk-team):not(.kfk-rank){
  text-align: right; font-variant-numeric: tabular-nums;
}
.kfk-standings.kfk-skin .kfk-head .kfk-col{font-weight:700;}

/* Mobilde sadece AV ve P kalsın */
@media (max-width: 720px){
  .kfk-standings.kfk-skin .kfk-row{
    grid-template-columns: 36px 1fr 40px 40px !important; /* #, Takım, AV, P */
  }
  .kfk-standings.kfk-skin .kfk-row > .kfk-col:nth-child(3), /* O */
  .kfk-standings.kfk-skin .kfk-row > .kfk-col:nth-child(4), /* G */
  .kfk-standings.kfk-skin .kfk-row > .kfk-col:nth-child(5), /* B */
  .kfk-standings.kfk-skin .kfk-row > .kfk-col:nth-child(6), /* M */
  .kfk-standings.kfk-skin .kfk-row > .kfk-col:nth-child(7), /* A */
  .kfk-standings.kfk-skin .kfk-row > .kfk-col:nth-child(8)  /* Y */ { display:none; }
}
