:root { --main: #00ff88; --bg: #0a0a0a; --card: #161616; --text: #ffffff; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
body { background: var(--bg); color: var(--text); direction: rtl; }

.container { max-width: 1000px; margin: 0 auto; padding: 15px; }
header { text-align: center; padding: 20px 0; border-bottom: 2px solid var(--main); }

.control-bar {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--card); padding: 10px; border-radius: 12px;
    margin: 20px 0; gap: 10px; flex-wrap: wrap;
}
.mini-tabs { display: flex; gap: 5px; }
.date-btn {
    padding: 7px 12px; background: #222; border: none; color: white;
    border-radius: 6px; cursor: pointer; font-size: 0.85rem;
}
.date-btn.active { background: var(--main); color: #000; font-weight: bold; }

.actions { display: flex; gap: 8px; }
select { background: #222; color: white; border: 1px solid #444; padding: 6px; border-radius: 6px; }
.standings-toggle-btn {
    background: transparent; color: var(--main); border: 1px solid var(--main);
    padding: 6px 12px; border-radius: 6px; cursor: pointer; font-weight: bold;
}

.league-wrapper { background: var(--card); border-radius: 15px; padding: 15px; margin-bottom: 20px; }
.league-header { font-size: 1rem; color: var(--main); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #333; padding-bottom: 5px; }
.league-header img { width: 25px; }

.match-card {
    background: #1e1e1e; padding: 15px; border-radius: 10px; margin-bottom: 8px;
    display: flex; justify-content: space-between; align-items: center; cursor: pointer;
}
.team-name { width: 35%; display: flex; align-items: center; gap: 8px; font-weight: bold; font-size: 0.9rem; }
.team-name img { width: 30px; height: 30px; }
.score-area { width: 30%; text-align: center; }
.score { font-size: 1.5rem; font-weight: 800; color: var(--main); }

.live-btn {
    background: #ff0000; color: white; padding: 4px 10px; border-radius: 15px;
    border: none; font-size: 0.7rem; cursor: pointer; animation: pulse 1.5s infinite; margin-top: 5px;
}
@keyframes pulse { 50% { opacity: 0.5; } }

.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9); display: none; justify-content: center; align-items: center; z-index: 1000;
}
.modal-content {
    background: #1a1a1a; width: 90%; max-width: 500px; padding: 20px;
    border-radius: 15px; position: relative; max-height: 80vh; overflow-y: auto;
}
.close-btn { position: absolute; top: 10px; left: 15px; font-size: 24px; color: #888; cursor: pointer; }
.modal-tabs { display: flex; gap: 10px; margin-bottom: 15px; border-bottom: 1px solid #333; }
.m-tab { background: none; border: none; color: #888; padding: 10px; cursor: pointer; }
.m-tab.active { color: var(--main); border-bottom: 2px solid var(--main); }

table { width: 100%; border-collapse: collapse; }
td, th { padding: 10px; border-bottom: 1px solid #222; text-align: center; }