/* ===== WRAPPER ===== */

.match-predictions-wrapper {
    max-width: 1200px;
    margin: auto;
    padding: 10px;
}

.mp-title {
    font-size: 28px;
    margin-bottom: 20px;
}

/* ===== FILTER BAR (PERFECT ALIGNMENT) ===== */

.mp-filters {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: nowrap;
}



/* LEFT SIDE */
.mp-filter-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Force same height + alignment */
.mp-filter-form select,
.mp-filter-form button {
    height: 40px;                 /* ?? KEY */
    padding: 0 14px;
    font-size: 14px;
    border-radius: 6px;
    display: flex;
    align-items: center;
}

/* RIGHT SIDE */
.mp-updated {
    margin-left: auto;
    height: 40px;                 /* ?? SAME HEIGHT */
    display: flex;               /* ?? CENTER TEXT */
    align-items: center;
    font-size: 14px;
    color: #444;
    white-space: nowrap;
}


/* Odds ratio text */
.mp-odds-ratio {
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
    font-weight: 500;
}


/* ===== GRID ===== */

.mp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* ===== CARD ===== */

.mp-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* ===== STATUS BADGE ===== */

.mp-status {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.mp-status-upcoming { background: #eef3ff; color: #3758f9; }
.mp-status-live { background: #e6fff0; color: #0a8f4a; }
.mp-status-finished { background: #f5f5f5; color: #666; }


/* ===== DATE ===== */

.mp-date {
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

/* ===== WIN PROBABILITY ===== */

.mp-win-probability {
    margin-top: 14px;
}

/* Header with team names + % */
.mp-prob-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 500;
}

.mp-prob-header strong {
    font-weight: 700;
}

/* Progress bar container */
.mp-prob-bar {
    display: flex;
    width: 100%;
    height: 10px;
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
}

/* Left team (Blue) */
.mp-prob-left {
    background: #0a4dbf;
    height: 100%;
}

/* Right team (Red) */
.mp-prob-right {
    background: #e53935;
    height: 100%;
}

/* ===== RESPONSIVE (Mobile) ===== */

@media (max-width: 768px) {
    .mp-filters {
        flex-wrap: wrap; /* stack on mobile */
        gap: 12px;
    }

    .mp-filter-form {
        flex-wrap: wrap;
    }

    .mp-updated {
        width: 100%;
        text-align: left;
    }
}


/* ===== TABS ===== */
.mp-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}

.mp-tab {
    padding: 8px 18px;
    border-radius: 20px;
    background: #eee;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.mp-tab.active {
    background: #0a4dbf;
    color: #fff;
}

/* ===== TABLE ===== */
.mp-table-wrap {
    overflow-x: auto;
}

.mp-table {
    table-layout: fixed; 
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

/* Home vs Away column – make it wider */
.mp-table th:first-child,
.mp-table td:first-child {
    width: 35%;            /* adjust: 35–45% works well */
}


/* Other columns get balanced widths */
.mp-table th:not(:first-child),
.mp-table td:not(:first-child) {
    width: auto;
}

.mp-table th,
.mp-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eee;
    text-align: center;
    font-size: 14px;
    
}

.mp-table th {
    background: #f8f9fb;
    font-weight: 600;
}

/* ===== TABLE HEADER WRAPPING FIX ===== */

.mp-table th {
    white-space: normal;        /* allow wrapping */
    word-break: break-word;     /* break long words */
    line-height: 1.3;
    text-align: center;
    vertical-align: middle;
    padding: 10px 8px;
}



/* Allow table cell content to wrap */
.mp-table td {
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    vertical-align: top;
}


/* ===== ODDS BAR ===== */
.mp-odds-bar {
    display: flex;
    height: 10px;
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 6px;
}

.odds {
    font-size: 11px;
    color: #fff;
    text-align: center;
    line-height: 10px;
}

.odds.green { background: #2ecc71; }
.odds.red   { background: #e74c3c; }
.odds.yellow{ background: #f1c40f; color:#000; }

.mp-odds-desc {
    margin-top: 6px;
    font-size: 13px;
    color: #444;
}

.mp-teams-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.mp-team {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mp-team-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.mp-team-logo.placeholder {
    width: 24px;
    height: 24px;
    background: #eee;
    border-radius: 50%;
}

.mp-vs {
    font-weight: 600;
    color: #666;
}

