/*
 * Kora OnLive — entity-v2.css
 * تصميم كامل من الصفر لصفحتي الفريق والدوري (page-team.php و
 * page-league.php V2 REBUILD). فئات kol-ent-* فريدة كليًا، صفر تقاطع مع
 * .entity-*, .team-profile-*, .ko-entity-* القديمة. نفس لغة التصميم
 * المستخدمة في header-v2.css و article-v2.css للاتساق الكامل عبر الموقع.
 */

.kol-ent-page{
  --ke-bg:#eef3f8; --ke-surface:#ffffff; --ke-surface-2:#f6f9fc;
  --ke-ink:#0c1d33; --ke-muted:#566b82; --ke-line:rgba(12,35,60,.10);
  --ke-blue:#1565c0; --ke-blue-2:#35a1ff; --ke-green:#18a94f; --ke-red:#ff4350;
  --ke-cta:#1565c0; --ke-cta-2:#1976d2;
  --ke-shadow:0 10px 28px rgba(12,35,60,.08); --ke-shadow-lg:0 20px 48px rgba(12,35,60,.12);
  background:var(--ke-bg); max-width:1180px; margin:0 auto; padding:18px 16px 60px;
  font-family:Tajawal,"Noto Sans Arabic",Arial,sans-serif; color:var(--ke-ink);
}
html[data-theme="dark"] .kol-ent-page{
  --ke-bg:#050d19; --ke-surface:#0e1b2c; --ke-surface-2:#101f33;
  --ke-ink:#f3f7fb; --ke-muted:#8da3bb; --ke-line:rgba(255,255,255,.09);
  --ke-blue:#4da3ff; --ke-blue-2:#6fd0ff; --ke-green:#2fe08a;
  --ke-shadow:0 10px 28px rgba(0,0,0,.35); --ke-shadow-lg:0 24px 56px rgba(0,0,0,.45);
}

.kol-ent-crumbs{ font-size:10px; font-weight:800; color:var(--ke-muted); display:flex; align-items:center; gap:7px; margin-bottom:14px; }
.kol-ent-crumbs a{ color:var(--ke-blue); }
.kol-ent-crumbs b{ color:var(--ke-ink); }

/* ---------- Hero ---------- */
.kol-ent-hero{
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  background:linear-gradient(135deg,#06172d 0%,#0a2c52 55%,#0d3f6b 100%);
  border:1px solid rgba(53,161,255,.20); border-radius:22px; padding:30px 34px;
  box-shadow:0 18px 48px rgba(2,12,24,.28); margin-bottom:18px; position:relative; overflow:hidden;
}
.kol-ent-hero::before{ content:""; position:absolute; inset:0; background:radial-gradient(circle at 85% 15%,rgba(24,232,117,.14),transparent 32%); pointer-events:none; }
.kol-ent-hero-body{ position:relative; z-index:1; max-width:680px; }
.kol-ent-kicker{ font-size:9px; font-weight:1000; letter-spacing:.07em; color:var(--ke-blue-2); }
.kol-ent-hero h1{ font-size:28px; font-weight:1000; color:#fff !important; margin:9px 0; } /* !important: the theme has html[data-theme=light] h1{color:#0a1b2f!important}, which otherwise paints this heading dark on the dark hero */
.kol-ent-hero-body>p{ font-size:12.5px; color:#b9cde3; margin:0 0 16px; line-height:1.7; }
.kol-ent-hero-actions{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.kol-ent-hero-actions a{ font-size:10.5px; font-weight:800; color:#9fb7d1; padding:8px 14px; border-radius:9px; border:1px solid rgba(53,161,255,.18); }
.kol-ent-hero-actions a.is-active{ background:rgba(53,161,255,.14); color:#fff; border-color:rgba(53,161,255,.35); }
.kol-ent-fav-btn{ font-size:10.5px; font-weight:900; color:#5be89a; background:rgba(24,232,117,.12); border:1px solid rgba(24,232,117,.25); padding:8px 14px; border-radius:9px; cursor:pointer; }
.kol-ent-fav-btn.is-saved{ background:var(--ke-green); color:#06301a; }
.kol-ent-hero-mark{ position:relative; z-index:1; flex:none; width:96px; height:96px; border-radius:18px; background:rgba(255,255,255,.05); border:1px solid rgba(53,161,255,.20); display:grid; place-items:center; }
.kol-ent-hero-mark img{ width:62px; height:62px; object-fit:contain; }
.kol-ent-hero-mark span{ font-size:34px; }
.kol-ent-hero-mark small{ position:absolute; bottom:6px; font-size:7px; font-weight:900; color:#7e9ab4; letter-spacing:.08em; }
@media(max-width:700px){ .kol-ent-hero{ flex-direction:column; text-align:center; padding:24px 20px; } .kol-ent-hero-actions{ justify-content:center; } .kol-ent-hero h1{ font-size:22px; } }

/* ---------- Stats strip ---------- */
.kol-ent-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:18px; }
.kol-ent-stats div{ background:var(--ke-surface); border:1px solid var(--ke-line); border-radius:14px; padding:14px; text-align:center; box-shadow:var(--ke-shadow); }
.kol-ent-stats b{ display:block; font-size:20px; font-weight:1000; color:var(--ke-ink); }
.kol-ent-stats span{ font-size:9px; color:var(--ke-muted); font-weight:800; }

/* ---------- Grid layout ---------- */
.kol-ent-grid{ display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:20px; align-items:start; }
@media(max-width:900px){ .kol-ent-grid{ grid-template-columns:1fr; } }

/* ---------- Club profile ---------- */
.kol-ent-profile{ background:var(--ke-surface); border:1px solid var(--ke-line); border-radius:18px; padding:22px; box-shadow:var(--ke-shadow); margin-bottom:18px; }
.kol-ent-profile-head span{ font-size:8.5px; font-weight:1000; color:var(--ke-blue); letter-spacing:.06em; }
.kol-ent-profile-head h2{ font-size:16px; margin:6px 0; color:var(--ke-ink); }
.kol-ent-profile-head p{ font-size:11.5px; color:var(--ke-muted); line-height:1.7; margin:0 0 16px; }
.kol-ent-profile-facts{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.kol-ent-profile-facts div{ background:var(--ke-surface-2); border-radius:11px; padding:10px 12px; }
.kol-ent-profile-facts small{ display:block; font-size:8.5px; color:var(--ke-muted); margin-bottom:3px; }
.kol-ent-profile-facts strong{ font-size:11.5px; color:var(--ke-ink); }
.kol-ent-profile-honors{ margin-top:14px; padding-top:14px; border-top:1px solid var(--ke-line); }
.kol-ent-profile-honors small{ display:block; font-size:8.5px; color:var(--ke-muted); margin-bottom:4px; }
.kol-ent-profile-honors strong{ font-size:11.5px; color:var(--ke-ink); }
@media(max-width:620px){ .kol-ent-profile-facts{ grid-template-columns:repeat(2,1fr); } }

/* ---------- Section heads ---------- */
.kol-ent-section-head{ display:flex; align-items:center; justify-content:space-between; margin:4px 0 12px; }
.kol-ent-section-head span{ font-size:8.5px; font-weight:1000; color:var(--ke-blue); letter-spacing:.06em; }
.kol-ent-section-head h2{ font-size:16px; margin:3px 0 0; color:var(--ke-ink); }
.kol-ent-section-head a{ font-size:10.5px; font-weight:800; color:var(--ke-blue); }

/* ---------- Match list ---------- */
.kol-ent-match-list{ display:flex; flex-direction:column; gap:8px; margin-bottom:22px; }
.kol-ent-match-row{ display:flex; align-items:center; justify-content:space-between; gap:12px; background:var(--ke-surface); border:1px solid var(--ke-line); border-radius:13px; padding:12px 16px; box-shadow:var(--ke-shadow); transition:transform .15s ease, box-shadow .15s ease; }
.kol-ent-match-row:hover{ transform:translateY(-2px); box-shadow:var(--ke-shadow-lg); }
.kol-ent-match-row>div{ display:flex; align-items:center; gap:8px; font-weight:800; font-size:12px; color:var(--ke-ink); }
.kol-ent-match-row>div span{ color:var(--ke-muted); font-size:10px; }
.kol-ent-match-row small{ color:var(--ke-muted); font-size:9.5px; white-space:nowrap; }
.kol-ent-match-row time{ color:var(--ke-muted); font-size:9px; white-space:nowrap; }
.kol-ent-match-row.is-live{ border-color:rgba(255,67,80,.3); background:rgba(255,67,80,.04); }
.kol-ent-match-row.is-live small{ color:var(--ke-red); font-weight:900; }
.kol-ent-match-row.is-done small{ color:var(--ke-green); }
@media(max-width:560px){ .kol-ent-match-row{ flex-wrap:wrap; } }

.kol-ent-empty, .kol-ent-empty-inline{ text-align:center; padding:30px 16px; background:var(--ke-surface); border:1px solid var(--ke-line); border-radius:16px; color:var(--ke-muted); margin-bottom:20px; }
.kol-ent-empty span{ font-size:30px; display:block; margin-bottom:8px; }
.kol-ent-empty b{ display:block; color:var(--ke-ink); font-size:12px; margin-bottom:5px; }
.kol-ent-empty small{ font-size:9.5px; }

/* ---------- News / form ---------- */
.kol-ent-news, .kol-ent-form{ margin-bottom:22px; }
.kol-ent-news-list, .kol-ent-form-grid{ display:flex; flex-direction:column; gap:7px; }
.kol-ent-news-list a{ display:flex; align-items:center; justify-content:space-between; gap:10px; background:var(--ke-surface); border:1px solid var(--ke-line); border-radius:12px; padding:11px 15px; box-shadow:var(--ke-shadow); }
.kol-ent-news-list span{ font-size:9px; color:var(--ke-muted); flex:none; }
.kol-ent-news-list strong{ font-size:11.5px; color:var(--ke-ink); flex:1; }
.kol-ent-news-list i{ color:var(--ke-blue); font-style:normal; }
.kol-ent-form-grid{ flex-direction:row; flex-wrap:wrap; }
.kol-ent-form-item{ flex:1 1 130px; background:var(--ke-surface); border:1px solid var(--ke-line); border-radius:13px; padding:13px; text-align:center; box-shadow:var(--ke-shadow); }
.kol-ent-form-item small{ display:block; font-size:8.5px; color:var(--ke-muted); margin-bottom:5px; }
.kol-ent-form-item b{ display:block; font-size:16px; font-weight:1000; color:var(--ke-ink); margin-bottom:3px; }
.kol-ent-form-item span{ font-size:8.5px; color:var(--ke-blue); font-weight:800; }

/* ---------- Sidebar ---------- */
.kol-ent-side{ display:flex; flex-direction:column; gap:14px; position:sticky; top:90px; }
@media(max-width:900px){ .kol-ent-side{ position:static; } }
.kol-ent-card{ background:var(--ke-surface); border:1px solid var(--ke-line); border-radius:16px; padding:18px; box-shadow:var(--ke-shadow); }
.kol-ent-card>span{ font-size:8.5px; font-weight:1000; color:var(--ke-blue); letter-spacing:.06em; }
.kol-ent-card h2{ font-size:14px; margin:6px 0; color:var(--ke-ink); }
.kol-ent-card>p{ font-size:10.5px; color:var(--ke-muted); line-height:1.7; margin:0 0 12px; }
.kol-ent-card a{ display:flex; align-items:center; gap:7px; font-size:11px; font-weight:800; color:var(--ke-ink); padding:9px 0; border-top:1px solid var(--ke-line); }
.kol-ent-card a:first-of-type{ border-top:none; }
.kol-ent-card-primary{ margin-top:6px; justify-content:center !important; background:linear-gradient(135deg,var(--ke-cta),var(--ke-cta-2)); color:#fff !important; border-radius:10px; border-top:none !important; padding:10px !important; }

/* ==========================================================================
 * page-portal.php V2 REBUILD — shares .kol-ent-crumbs/.kol-ent-hero/* above
 * for the breadcrumb and hero (live/stats/competitions/national-teams/
 * favorites/scorers all reuse the same hero markup). Portal-specific
 * pieces (date bar, match cards, stat grid, empty state) below, using the
 * same --ke-* variables for full visual consistency with team/league.
 * ========================================================================== */
.kol-port-page{
  --ke-bg:#eef3f8; --ke-surface:#ffffff; --ke-surface-2:#f6f9fc;
  --ke-ink:#0c1d33; --ke-muted:#566b82; --ke-line:rgba(12,35,60,.10);
  --ke-blue:#1565c0; --ke-blue-2:#35a1ff; --ke-green:#18a94f; --ke-red:#ff4350;
  --ke-cta:#1565c0; --ke-cta-2:#1976d2;
  --ke-shadow:0 10px 28px rgba(12,35,60,.08); --ke-shadow-lg:0 20px 48px rgba(12,35,60,.12);
  background:var(--ke-bg); max-width:1180px; margin:0 auto; padding:18px 16px 60px;
  font-family:Tajawal,"Noto Sans Arabic",Arial,sans-serif; color:var(--ke-ink);
}
html[data-theme="dark"] .kol-port-page{
  --ke-bg:#050d19; --ke-surface:#0e1b2c; --ke-surface-2:#101f33;
  --ke-ink:#f3f7fb; --ke-muted:#8da3bb; --ke-line:rgba(255,255,255,.09);
  --ke-blue:#4da3ff; --ke-blue-2:#6fd0ff; --ke-green:#2fe08a;
  --ke-shadow:0 10px 28px rgba(0,0,0,.35); --ke-shadow-lg:0 24px 56px rgba(0,0,0,.45);
}

.kol-port-datebar{ display:flex; gap:8px; margin-bottom:18px; }
.kol-port-datebar button{
  flex:1; padding:11px; border-radius:13px; background:var(--ke-surface); border:1px solid var(--ke-line);
  color:var(--ke-muted); font-weight:900; font-size:11.5px; cursor:pointer; box-shadow:var(--ke-shadow);
}
.kol-port-datebar button.is-active{ background:linear-gradient(135deg,#06172d,#0d3f6b); color:#fff; border-color:transparent; }

.kol-port-loading{ text-align:center; padding:50px 16px; color:var(--ke-muted); }
.kol-port-loading i{ display:inline-block; width:7px; height:7px; margin:0 3px; border-radius:50%; background:var(--ke-blue); animation:kolPortPulse 1s infinite; }
.kol-port-loading i:nth-child(2){ animation-delay:.15s; } .kol-port-loading i:nth-child(3){ animation-delay:.3s; }
.kol-port-loading b{ display:block; margin-top:10px; font-size:11px; font-weight:800; }
@keyframes kolPortPulse{ 50%{ opacity:.3; transform:scale(.8); } }

.kol-port-list{ display:grid; grid-template-columns:repeat(auto-fill,minmax(270px,1fr)); gap:14px; }
.kol-port-match{
  display:flex; flex-direction:column; background:var(--ke-surface); border:1px solid var(--ke-line);
  border-radius:16px; overflow:hidden; box-shadow:var(--ke-shadow); transition:transform .18s ease, box-shadow .18s ease;
}
.kol-port-match:hover{ transform:translateY(-3px); box-shadow:var(--ke-shadow-lg); }
.kol-port-match-top{ display:flex; align-items:center; justify-content:space-between; gap:8px; padding:9px 13px; background:var(--ke-surface-2); border-bottom:1px solid var(--ke-line); font-size:9px; font-weight:900; color:var(--ke-muted); }
.kol-port-state{ display:inline-flex; align-items:center; gap:5px; padding:3px 8px; border-radius:999px; background:rgba(120,135,155,.1); }
.kol-port-match.is-live .kol-port-state{ background:rgba(255,67,80,.12); color:var(--ke-red); }
.kol-port-state i{ width:6px; height:6px; border-radius:50%; background:var(--ke-red); animation:kolPortPulse2 1.3s infinite; }
@keyframes kolPortPulse2{ 50%{ opacity:.35; } }
.kol-port-match-body{ display:grid; grid-template-columns:1fr 60px 1fr; align-items:center; gap:8px; padding:16px 12px; }
.kol-port-team{ display:flex; flex-direction:column; align-items:center; gap:7px; text-align:center; min-width:0; }
.kol-port-team b{ font-size:10.5px; font-weight:900; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--ke-ink); }
.kol-port-avatar{ width:38px; height:38px; border-radius:12px; display:grid; place-items:center; background:var(--ke-surface-2); border:1px solid var(--ke-line); font-size:12px; font-weight:1000; color:var(--ke-blue); }
.kol-port-score{ text-align:center; font-size:15px; font-weight:1000; color:var(--ke-ink); }
.kol-port-score em{ font-style:normal; font-size:10px; color:var(--ke-muted); }
.kol-port-match.is-live .kol-port-score{ color:var(--ke-red); }
.kol-port-match-bottom{ display:flex; align-items:center; justify-content:space-between; padding:9px 13px; font-size:9px; font-weight:900; color:var(--ke-blue); background:var(--ke-surface-2); border-top:1px solid var(--ke-line); }

.kol-port-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(180px,1fr)); gap:12px; }
.kol-port-grid-stats{ grid-template-columns:repeat(4,minmax(0,1fr)); }
.kol-port-stat{ background:var(--ke-surface); border:1px solid var(--ke-line); border-radius:14px; padding:16px; box-shadow:var(--ke-shadow); }
.kol-port-stat b{ display:block; font-size:10.5px; font-weight:900; color:var(--ke-muted); margin-bottom:6px; }
.kol-port-stat strong{ display:block; font-size:22px; font-weight:1000; color:var(--ke-ink); }
.kol-port-stat small{ font-size:9px; color:var(--ke-muted); }
.kol-port-stat-icon{ display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:10px; margin-bottom:6px; font-size:13px; }
.is-total .kol-port-stat-icon{ background:rgba(25,118,210,.1); color:var(--ke-blue); }
.is-live .kol-port-stat-icon{ background:rgba(255,67,80,.1); color:var(--ke-red); }
.is-done .kol-port-stat-icon{ background:rgba(24,232,117,.12); color:var(--ke-green); }
.is-upcoming .kol-port-stat-icon{ background:rgba(120,135,155,.1); color:var(--ke-muted); }
.kol-port-stat-link{ display:flex; align-items:center; justify-content:space-between; text-decoration:none; }
.kol-port-stat-link strong{ color:var(--ke-blue); font-size:16px; }

.kol-port-empty{ grid-column:1/-1; text-align:center; padding:44px 20px; background:var(--ke-surface); border:1px solid var(--ke-line); border-radius:18px; }
.kol-port-empty span{ font-size:34px; display:block; margin-bottom:10px; }
.kol-port-empty b{ display:block; font-size:12.5px; color:var(--ke-ink); margin-bottom:6px; }
.kol-port-empty small{ display:block; font-size:10px; color:var(--ke-muted); max-width:380px; margin:0 auto 16px; line-height:1.7; }
.kol-port-empty a{ display:inline-flex; padding:10px 20px; border-radius:11px; background:linear-gradient(135deg,var(--ke-cta),var(--ke-cta-2)); color:#fff; font-weight:900; font-size:11px; }

@media(max-width:620px){
  .kol-port-list{ grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); }
  .kol-port-grid-stats{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* ==========================================================================
 * page-compare.php + page-rankings.php V2 REBUILD
 * Both templates use <main class="kol-ent-page ..."> so they inherit the
 * --ke-* light/dark variables, breadcrumb, hero, grid, sidebar card, match
 * rows and empty states defined above. Only the pieces unique to these two
 * pages are styled here (kol-cmp-* and kol-rk-*).
 * ========================================================================== */

/* ---------- Compare: picker form ---------- */
.kol-cmp-form{
  display:flex; align-items:flex-end; gap:14px; flex-wrap:wrap;
  margin:0 0 20px; padding:18px 20px;
  background:var(--ke-surface); border:1px solid var(--ke-line); border-radius:20px; box-shadow:var(--ke-shadow);
}
.kol-cmp-field{ flex:1 1 220px; display:flex; flex-direction:column; gap:6px; }
.kol-cmp-field label{ font-size:10px; font-weight:900; color:var(--ke-muted); }
.kol-cmp-field select{
  width:100%; padding:11px 12px; border-radius:12px;
  border:1px solid var(--ke-line); background:var(--ke-surface-2); color:var(--ke-ink);
  font-family:inherit; font-size:12.5px; font-weight:800; color-scheme:light;
}
html[data-theme="dark"] .kol-cmp-field select{ color-scheme:dark; }
.kol-cmp-vs{
  flex:0 0 auto; align-self:center; margin-bottom:2px; width:34px; height:34px; border-radius:50%;
  display:grid; place-items:center; background:linear-gradient(135deg,var(--ke-cta),var(--ke-cta-2));
  color:#fff; font-size:10px; font-weight:1000;
}
.kol-cmp-submit{
  flex:0 0 auto; padding:12px 26px; border:0; border-radius:12px; cursor:pointer;
  background:linear-gradient(135deg,#18e875,#0a9c4a); color:#06301a; font-weight:1000; font-size:12.5px;
  box-shadow:0 8px 18px rgba(24,232,117,.25);
}
.kol-cmp-submit:hover{ filter:brightness(1.05); }

/* ---------- Compare: head-to-head tally ---------- */
.kol-cmp-summary{
  display:flex; align-items:center; justify-content:center; gap:22px; flex-wrap:wrap;
  margin:0 0 20px; padding:22px;
  background:linear-gradient(135deg,#06172d,#0d3f6b); border:1px solid rgba(53,161,255,.20); border-radius:20px;
  color:#fff; box-shadow:0 14px 32px rgba(8,29,52,.18);
}
.kol-cmp-side{ display:flex; flex-direction:column; align-items:center; gap:8px; min-width:110px; }
.kol-cmp-side a{ color:#fff; font-weight:900; font-size:12px; text-align:center; }
.kol-cmp-avatar{
  width:52px; height:52px; border-radius:14px; display:grid; place-items:center;
  background:rgba(255,255,255,.10); border:1px solid rgba(255,255,255,.18); color:#fff; font-size:16px; font-weight:1000;
}
.kol-cmp-tally{ display:flex; gap:22px; }
.kol-cmp-tally div{ text-align:center; }
.kol-cmp-tally strong{ display:block; font-size:26px; font-weight:1000; }
.kol-cmp-tally small{ font-size:9px; opacity:.75; font-weight:800; }

.kol-cmp-nohth{
  display:flex; align-items:center; gap:14px; margin:0 0 20px; padding:16px 20px;
  background:var(--ke-surface); border:1px dashed var(--ke-line); border-radius:16px; color:var(--ke-muted);
}
.kol-cmp-nohth>span{ font-size:26px; }
.kol-cmp-nohth strong{ display:block; font-size:12px; color:var(--ke-ink); margin-bottom:3px; }
.kol-cmp-nohth small{ font-size:10px; line-height:1.7; }

.kol-cmp-recent{ display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:16px; }
.kol-cmp-recent-col h3{ font-size:11.5px; font-weight:900; margin:0 0 10px; color:var(--ke-ink); }
.kol-cmp-recent-col .kol-ent-match-row{ margin-bottom:8px; }

@media(max-width:680px){
  .kol-cmp-summary{ gap:14px; padding:18px; }
  .kol-cmp-tally{ gap:12px; }
  .kol-cmp-tally strong{ font-size:20px; }
}

/* ---------- Rankings: top-3 podium ---------- */
.kol-rk-podium{ display:grid; grid-template-columns:repeat(3,1fr); gap:12px; align-items:end; margin:0 0 18px; }
.kol-rk-podium-card{
  position:relative; display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center;
  padding:22px 12px 16px; background:var(--ke-surface); border:1px solid var(--ke-line); border-radius:18px;
  box-shadow:var(--ke-shadow); transition:transform .18s ease, box-shadow .18s ease;
}
.kol-rk-podium-card:hover{ transform:translateY(-3px); box-shadow:var(--ke-shadow-lg); }
.kol-rk-podium-card.is-p1{ padding-top:34px; padding-bottom:22px; border-color:rgba(232,180,0,.45); background:linear-gradient(180deg,rgba(232,180,0,.10),var(--ke-surface) 60%); }
.kol-rk-podium-card em{
  position:absolute; top:-12px; right:50%; transform:translateX(50%);
  width:26px; height:26px; border-radius:50%; display:grid; place-items:center;
  font-style:normal; font-weight:1000; font-size:12px; color:#fff; background:#5f6b78; box-shadow:0 6px 14px rgba(0,0,0,.2);
}
.kol-rk-podium-card.is-p1 em{ background:#946400; }
.kol-rk-podium-card.is-p3 em{ background:#9a5b1f; }
.kol-rk-podium-card strong{ font-size:12.5px; color:var(--ke-ink); }
.kol-rk-podium-card b{ font-size:20px; font-weight:1000; color:var(--ke-blue); }
.kol-rk-podium-card b small{ font-size:9px; color:var(--ke-muted); font-weight:800; }
.kol-rk-avatar{
  width:38px; height:38px; border-radius:12px; display:grid; place-items:center; flex:none;
  background:var(--ke-surface-2); border:1px solid var(--ke-line); color:var(--ke-blue); font-size:12px; font-weight:1000;
}
.kol-rk-podium-card.is-p1 .kol-rk-avatar{ width:48px; height:48px; font-size:15px; border-color:rgba(232,180,0,.5); }

/* ---------- Rankings: table ---------- */
.kol-rk-wrap{ overflow-x:auto; border-radius:18px; border:1px solid var(--ke-line); box-shadow:var(--ke-shadow); }
.kol-rk-table{ width:100%; min-width:680px; border-collapse:collapse; background:var(--ke-surface); font-size:11px; }
.kol-rk-table thead th{
  position:sticky; top:0; padding:12px 10px; text-align:center; font-size:9px; font-weight:900; color:#fff;
  background:linear-gradient(90deg,#06172d,#0d3f6b);
}
.kol-rk-table thead th:nth-child(2){ text-align:right; }
.kol-rk-table tbody td{ padding:11px 10px; text-align:center; border-top:1px solid var(--ke-line); font-weight:800; color:var(--ke-ink); }
.kol-rk-table tbody tr:nth-child(odd){ background:var(--ke-surface-2); }
.kol-rk-table tbody tr:hover{ background:rgba(25,118,210,.07); }
.kol-rk-pos{ width:28px; font-weight:1000; color:var(--ke-muted); }
.kol-rk-table tbody tr.is-top:nth-child(1) .kol-rk-pos{ color:#946400; }
.kol-rk-table tbody tr.is-top:nth-child(2) .kol-rk-pos{ color:#5f6b78; }
.kol-rk-table tbody tr.is-top:nth-child(3) .kol-rk-pos{ color:#9a5b1f; }
html[data-theme="dark"] .kol-rk-table tbody tr.is-top:nth-child(1) .kol-rk-pos{ color:#e8b400; }
html[data-theme="dark"] .kol-rk-table tbody tr.is-top:nth-child(2) .kol-rk-pos{ color:#b4bec9; }
html[data-theme="dark"] .kol-rk-table tbody tr.is-top:nth-child(3) .kol-rk-pos{ color:#d9965a; }
.kol-rk-team{ text-align:right !important; }
.kol-rk-team a{ display:flex; align-items:center; gap:9px; color:inherit; font-weight:900; }
.kol-rk-team .kol-rk-avatar{ width:26px; height:26px; font-size:9px; }
.kol-rk-pts{ font-size:12.5px; font-weight:1000; color:var(--ke-blue) !important; }
.kol-rk-table .is-pos{ color:#0b7a3a; }
html[data-theme="dark"] .kol-rk-table .is-pos{ color:#2fe08a; }
.kol-rk-table .is-neg{ color:var(--ke-red); }
.kol-rk-form{ white-space:nowrap; }
.kol-rk-form span{ display:inline-grid; place-items:center; width:16px; height:16px; margin-inline-start:2px; border-radius:5px; font-size:8px; font-weight:1000; color:#fff; }
.kol-rk-form .is-w{ background:#18a94f; } .kol-rk-form .is-d{ background:#9aa5b1; } .kol-rk-form .is-l{ background:var(--ke-red); }
html:root .kol-ent-hero h1{ color:#fff !important; }
.kol-rk-note{ max-width:640px; margin:12px auto 0; text-align:center; font-size:9px; color:var(--ke-muted); }

@media(max-width:620px){
  .kol-rk-podium{ gap:8px; }
  .kol-rk-podium-card{ padding:20px 6px 12px; }
  .kol-rk-podium-card strong{ font-size:10.5px; }
  .kol-rk-podium-card b{ font-size:16px; }
  .kol-rk-table{ font-size:10px; }
}

/* Touch targets (phones): small text links keep their look; padding + equal negative margin enlarges only the hit area. */
@media(max-width:820px){
  .kol-ent-crumbs a, .kol-ent-section-head a, .kol-cmp-side a, .kol-rk-team a{ display:inline-flex; align-items:center; padding:11px 8px; margin:-11px -8px; }
  .kol-rk-team a{ margin:-8px 0; padding:8px 0; }
}
