/* الملعب - جدول المباريات | Plugin styles (self-contained, works with any theme) */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&display=swap');

/* ============ [matches_today] - جدول بطاقات فاتح ============ */
.jdwal-wrap { display:flex; flex-direction:column; gap:12px; font-family:'Cairo',sans-serif; direction:rtl; }
.jdwal-match { background:#ffffff; border:1px solid #e7e8ec; border-radius:12px; padding:14px 16px; }
.jdwal-league { font-size:11px; font-weight:800; color:#D62828; margin-bottom:10px; text-align:center; }
.jdwal-row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.jdwal-team { display:flex; align-items:center; gap:10px; flex:1; min-width:0; }
.jdwal-team.reverse { flex-direction:row-reverse; text-align:left; }
.jdwal-logo { width:34px; height:34px; border-radius:50%; object-fit:contain; background:#f4f5f7; border:1px solid #e7e8ec; flex-shrink:0; }
.jdwal-logo-fallback {
  width:34px; height:34px; border-radius:50%; background:linear-gradient(135deg,#3a3f47,#14171c);
  color:#fff; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:800; flex-shrink:0;
}
.jdwal-team-name { font-size:13px; font-weight:700; color:#14171c; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.jdwal-center { display:flex; flex-direction:column; align-items:center; gap:4px; min-width:70px; flex-shrink:0; }
.jdwal-time { font-size:11px; color:#8a8f98; font-weight:700; }
.jdwal-score { font-size:16px; font-weight:900; color:#14171c; }
.jdwal-empty, .amx-empty { text-align:center; padding:24px 16px; color:#8a8d95; font-size:12.5px; font-family:'Cairo',sans-serif; }
.jdwal-empty a, .amx-empty a { color:#D62828; font-weight:700; }
.lw-status { font-size:10px; font-weight:800; padding:2px 8px; border-radius:5px; }
.lw-status.live { background:rgba(214,40,40,0.1); color:#D62828; }
.lw-status.ft { background:#f4f5f7; color:#8a8f98; }

/* ============ [jadwal_matches] - لوحة داكنة بحال Livescore ============ */
.amx-board {
  background: #0d0e12; color:#fff; border-radius:14px; overflow:hidden;
  font-family:'Cairo',sans-serif; direction:rtl; max-width:720px; margin:0 auto;
  border:1px solid #23252c;
}
.amx-tabs { display:flex; justify-content:center; gap:6px; background:#15161c; padding:12px 10px; border-bottom:1px solid #23252c; }
.amx-tab-btn {
  background:transparent; border:none; color:#9a9da5; font-family:'Cairo',sans-serif; font-size:12.5px; font-weight:700;
  padding:8px 14px; cursor:pointer; border-bottom:2px solid transparent;
}
.amx-tab-btn.active { color:#fff; border-color:#2f7bff; }

.amx-date-nav { display:flex; align-items:center; justify-content:space-between; background:#1c1d24; padding:12px 18px; }
.amx-quick-link { font-size:12.5px; font-weight:700; color:#c7c9d1; text-decoration:none; }
.amx-date-center { text-align:center; }
.amx-dayname { font-size:11px; color:#8a8d95; margin-bottom:4px; }
.amx-date-picker { display:flex; align-items:center; gap:10px; font-size:13px; font-weight:700; color:#fff; }
.amx-date-picker a { color:#c7c9d1; font-size:16px; text-decoration:none; }

.amx-countdown {
  background: linear-gradient(90deg,#0a3d1f,#0f7a3c 55%,#12a34e);
  padding:16px 18px; display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap;
}
.amx-cd-boxes { display:flex; gap:8px; }
.amx-cd-box { background:rgba(0,0,0,0.28); border-radius:8px; padding:8px 10px; text-align:center; min-width:44px; }
.amx-cd-num { display:block; font-size:16px; font-weight:900; color:#fff; }
.amx-cd-label { font-size:9px; color:#d7ffe4; }
.amx-cd-info { display:flex; align-items:center; gap:8px; font-size:13px; font-weight:800; color:#fff; }
.amx-cd-info img { width:22px; height:22px; object-fit:contain; }

.amx-live-bar { display:flex; align-items:center; gap:8px; justify-content:flex-end; padding:10px 18px; font-size:12px; color:#c7c9d1; }
.amx-live-dot { width:7px; height:7px; border-radius:50%; background:#2ecc71; animation:amxPulse 1.1s infinite; display:inline-block; }
@keyframes amxPulse { 0%,100%{opacity:1} 50%{opacity:.3} }

.amx-league-head { display:flex; align-items:center; gap:10px; background:#1c1d24; padding:10px 16px; border-top:1px solid #23252c; }
.amx-star { background:transparent; border:none; color:#4a4d57; font-size:14px; cursor:pointer; }
.amx-star.active { color:#ffb400; }
.amx-league-name { font-size:12.5px; font-weight:700; flex:1; text-align:right; color:#fff; }
.amx-league-logo { width:20px; height:20px; object-fit:contain; border-radius:4px; }

.amx-match-row { display:flex; align-items:center; justify-content:space-between; padding:14px 16px; border-top:1px solid #1c1d24; gap:10px; }
.amx-team { display:flex; align-items:center; gap:10px; flex:1; min-width:0; }
.amx-team.reverse { flex-direction:row-reverse; }
.amx-team-name { font-size:13px; font-weight:700; color:#fff; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.amx-flag { width:22px; height:16px; object-fit:cover; border-radius:3px; flex-shrink:0; }
.amx-flag-fallback {
  width:22px; height:22px; border-radius:50%; background:#2a2c34; color:#c7c9d1;
  display:flex; align-items:center; justify-content:center; font-size:10px; font-weight:800; flex-shrink:0;
}
.amx-mid { display:flex; flex-direction:column; align-items:center; gap:4px; min-width:64px; }
.amx-score { font-size:14px; font-weight:900; color:#fff; }
.amx-badge { font-size:9px; font-weight:800; padding:2px 8px; border-radius:5px; }
.amx-badge.live { background:rgba(46,204,113,0.15); color:#2ecc71; }
.amx-badge.ft { background:rgba(255,255,255,0.08); color:#8a8d95; }

@media (max-width:480px) {
  .amx-team-name { font-size:11.5px; }
  .amx-cd-box { min-width:36px; padding:6px 8px; }
  .amx-cd-num { font-size:14px; }
}
