.elm-mc{max-width:1000px;margin:0 auto;font-family:system-ui,-apple-system,sans-serif;box-sizing:border-box}
.elm-mc *{box-sizing:border-box;font-family: 'Noto Kufi Arabic'}
.elm-mc-toolbar{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin-bottom:14px}
.elm-mc-tabs{display:flex;gap:6px;flex-wrap:wrap;background:#f1f3f6;padding:4px;border-radius:10px}
.elm-mc-tab{border:0;background:transparent;padding:8px 14px;border-radius:8px;font-size:13px;font-weight:700;cursor:pointer;color:#333;white-space:nowrap;font-family: 'Noto Kufi Arabic'}
.elm-mc-tab.is-active{background:#0969d6;color:#fff}
.elm-mc-filters{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.elm-mc-date{border:1px solid #ddd;border-radius:8px;padding:7px 10px;font-size:13px}
.elm-mc-search{border:1px solid #ddd;border-radius:8px;padding:7px 12px;font-size:13px;min-width:170px}
.elm-mc-comp-filter{position:relative}
.elm-mc-comp-toggle{border:1px solid #ddd;background:#fff;border-radius:8px;padding:7px 12px;font-size:13px;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:6px;font-family: 'Noto Kufi Arabic'}
.elm-mc-comp-badge{background:#0969d6;color:#fff;border-radius:10px;padding:1px 7px;font-size:11px;font-family: 'Noto Kufi Arabic'}
.elm-mc-comp-panel{position:absolute;z-index:20;top:calc(100% + 6px);right:0;min-width:230px;max-height:280px;overflow:auto;background:#fff;border:1px solid #e2e2e2;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.12);padding:8px}
.elm-mc-comp-row{display:flex;align-items:center;gap:5px;border-radius:6px}.elm-mc-comp-row:hover{background:#f4f6f9}.elm-mc-comp-item{display:flex;align-items:center;gap:8px;padding:6px 8px;font-size:13px;border-radius:6px;cursor:pointer;flex:1}.elm-mc-comp-solo{border:0;background:transparent;color:#0969d6;font-size:11px;font-weight:800;cursor:pointer;padding:5px 7px;border-radius:5px}.elm-mc-comp-solo:hover{background:#eaf2ff}
.elm-mc-comp-item:hover{background:#f4f6f9}
.elm-mc-comp-actions{display:flex;justify-content:space-between;gap:8px;padding:6px 8px 2px;border-top:1px solid #eee;margin-top:4px}
.elm-mc-comp-actions button{border:0;background:transparent;color:#0969d6;font-size:12px;font-weight:700;cursor:pointer}
.elm-mc-status{font-size:12px;color:#888;margin-bottom:8px;min-height:16px;font-family: 'Noto Kufi Arabic'}
.elm-mc-groups{position:relative;min-height:80px;font-family: 'Noto Kufi Arabic'}
.elm-mc-groups.is-loading{opacity:.5;pointer-events:none}
.elm-mc-group{margin-bottom:22px;border:1px solid #eee;border-radius:12px;overflow:hidden}
.elm-mc-group-head{display:flex;align-items:center;justify-content:space-between;background:#f8f9fb;padding:10px 14px;font-weight:800;font-size:14px}
.elm-mc-standings-btn{border:1px solid #d7dde5;background:#fff;border-radius:20px;padding:4px 12px;font-size:12px;font-weight:700;cursor:pointer;color:#0969d6}
.elm-mc-standings-btn:hover{background:#0969d6;color:#fff;border-color:#0969d6}
.elm-mc-group-matches{display:flex;flex-direction:column}
.elm-mc-match{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;padding:10px 14px;border-top:1px solid #f2f2f2;text-decoration:none;color:inherit}
.elm-mc-match:first-child{border-top:0}
.elm-mc-match:hover{background:#fafbfd}
.elm-mc-team{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:600;overflow:hidden}
.elm-mc-team img{width:22px;height:22px;object-fit:contain;flex:0 0 22px}
.elm-mc-home{justify-content:flex-start}
.elm-mc-away{justify-content:flex-end;text-align:left}
.elm-mc-away span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.elm-mc-home span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.elm-mc-score{display:flex;flex-direction:column;align-items:center;min-width:56px}
.elm-mc-score b{font-size:15px}
.elm-mc-score small{font-size:10px;opacity:.65;margin-top:2px}
.elm-mc-live .elm-mc-score small{color:#c62828;font-weight:800;opacity:1}
.elm-mc-finished .elm-mc-score small{color:#555}
.elm-mc-empty{text-align:center;color:#888;padding:30px 10px;font-size:13.5px}

.elm-mc-modal{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:20px}
.elm-mc-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.5)}
.elm-mc-modal-box{position:relative;background:#fff;border-radius:12px;max-width:520px;width:100%;max-height:80vh;overflow:auto;padding:20px;direction:rtl}
.elm-mc-modal-close{position:absolute;top:8px;left:10px;border:0;background:transparent;font-size:22px;cursor:pointer;color:#666;line-height:1}
.elm-mc-standings-table{width:100%;border-collapse:collapse;font-size:13px}
.elm-mc-standings-table th,.elm-mc-standings-table td{padding:6px 4px;text-align:center;border-bottom:1px solid #f0f0f0}
.elm-mc-st-team{text-align:right !important;font-weight:700}

@media(max-width:640px){
  .elm-mc-toolbar{flex-direction:column;align-items:stretch}
  .elm-mc-tabs{overflow-x:auto}
  .elm-mc-filters{justify-content:stretch}
  .elm-mc-search{flex:1;min-width:0}
  .elm-mc-team{font-size:12.5px}
  .elm-mc-team img{width:20px;height:20px;flex:0 0 20px}
}
