/* Heropredict UI Variables */
:root {
    --hm-bg: #f4f7f6;
    --hm-card: #ffffff;
    --hm-card-alt: #f8f9fa;
    --hm-border: #e2e8f0;
    --hm-text-dark: #1e293b;
    --hm-text-muted: #64748b;
    
    /* Heropredict Brand Colors */
    --hm-primary: #008000; /* Deep Green */
    --hm-primary-light: #e6f7e6;
    --hm-header-bg: #1c2e3d; /* Dark Slate for Leagues */
    --hm-header-text: #ffffff;
    
    --hm-accent: #f5a623; /* Orange for Odds */
    --hm-red: #ef4444;
    --hm-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.hm-wrapper {
    background-color: var(--hm-bg);
    color: var(--hm-text-dark);
    font-family: var(--hm-font);
    padding: 15px;
    border-radius: 8px;
    max-width: 950px;
    margin: 0 auto;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.hm-empty-state {
    text-align: center;
    padding: 40px;
    background: var(--hm-card);
    border: 1px solid var(--hm-border);
    border-radius: 6px;
    color: var(--hm-text-muted);
    font-weight: 500;
}

/* =========================================
   FIXTURES LIST UI (Heropredict Style)
========================================= */
.hm-league-header {
    background: var(--hm-header-bg);
    color: var(--hm-header-text);
    padding: 10px 15px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 20px 0 0 0;
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hm-matches-container {
    background: var(--hm-card);
    border: 1px solid var(--hm-border);
    border-top: none;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
}

.hm-match-row {
    display: grid;
    grid-template-columns: 60px 1fr 140px 70px 100px;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid var(--hm-border);
    background: var(--hm-card);
    transition: background 0.2s ease;
}
.hm-match-row:nth-child(even) { background: var(--hm-card-alt); }
.hm-match-row:hover { background: #f1f5f9; }
.hm-match-row:last-child { border-bottom: none; }

.hm-time {
    color: var(--hm-text-muted);
    font-size: 14px;
    font-weight: 600;
}

.hm-teams {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 15px;
    font-weight: 600;
    color: var(--hm-text-dark);
}
.hm-team-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}
.hm-team-inline img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.hm-prediction-badge {
    background: var(--hm-primary-light);
    color: var(--hm-primary);
    border: 1px solid var(--hm-primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    display: inline-block;
    white-space: nowrap;
}

.hm-odds-badge {
    background: #fff;
    border: 1px solid var(--hm-border);
    color: var(--hm-text-dark);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.hm-action-btn {
    background: var(--hm-primary);
    color: #fff;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    display: block;
    transition: background 0.2s;
}
.hm-action-btn:hover { background: #006600; color: #fff; }

.hm-btn-back {
    display: inline-block;
    background: var(--hm-card);
    color: var(--hm-text-dark);
    border: 1px solid var(--hm-border);
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}
.hm-btn-back:hover { background: var(--hm-card-alt); }

/* =========================================
   MATCH OVERVIEW UI (Heropredict Style)
========================================= */
.hm-overview-header {
    background: var(--hm-card);
    border: 1px solid var(--hm-border);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.hm-league-tag {
    color: var(--hm-primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.hm-header-teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hm-header-team { flex: 1; text-align: center; }
.hm-header-team img { width: 70px; height: 70px; margin-bottom: 10px; }
.hm-header-team h3 { margin: 0; font-size: 20px; color: var(--hm-text-dark); }

.hm-header-center { flex: 0.5; }
.hm-kickoff { font-size: 16px; font-weight: 700; color: var(--hm-text-muted); }
.hm-status { display: inline-block; background: var(--hm-primary); color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 12px; margin-top: 5px; font-weight: 600;}

.hm-main-prediction {
    background: var(--hm-header-bg);
    color: #fff;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}
.hm-main-prediction h4 { margin: 0 0 15px 0; color: #94a3b8; font-size: 14px; text-transform: uppercase; }
.hm-big-tip {
    font-size: 28px;
    font-weight: 800;
    color: var(--hm-accent);
    margin-bottom: 15px;
}

/* Prediction Probability Bars */
.hm-bar-row { margin-bottom: 12px; text-align: left;}
.hm-bar-row label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; font-weight: 600; color: #fff;}
.hm-progress { width: 100%; background: rgba(255,255,255,0.1); height: 8px; border-radius: 4px; overflow: hidden; }
.hm-fill { height: 100%; border-radius: 4px; transition: width 1s ease-in-out;}
.hm-green { background: var(--hm-primary); }
.hm-gray { background: #94a3b8; }
.hm-red { background: var(--hm-red); }

/* Stats Grid */
.hm-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hm-panel { background: var(--hm-card); border: 1px solid var(--hm-border); padding: 20px; border-radius: 8px; }
.hm-panel h4 { margin: 0 0 15px 0; padding-bottom: 10px; border-bottom: 1px solid var(--hm-border); font-size: 15px; color: var(--hm-header-bg);}

.hm-stat-row { margin-bottom: 15px; }
.hm-stat-labels { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--hm-text-dark);}
.stat-title { color: var(--hm-text-muted); font-size: 12px; text-transform: uppercase; }
.hm-stat-bar-split { display: flex; height: 6px; border-radius: 3px; overflow: hidden; gap: 2px;}
.hm-split-left { background: var(--hm-primary); }
.hm-split-right { background: var(--hm-accent); }

/* Form Circles */
.hm-form-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-weight: 600; font-size: 14px;}
.hm-form-circles { display: flex; gap: 4px; }
.hm-circle { width: 22px; height: 22px; border-radius: 3px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff;}
.hm-w { background: var(--hm-primary); }
.hm-d { background: var(--hm-text-muted); }
.hm-l { background: var(--hm-red); }

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hm-match-row {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px;
    }
    .hm-time { font-size: 12px; border-bottom: 1px solid var(--hm-border); padding-bottom: 8px; margin-bottom: 4px; }
    .hm-prediction-badge { display: block; text-align: center; padding: 8px;}
    .hm-odds-badge { display: none; /* Hide odds box on mobile for cleaner look, usually put inside the button or badge */ }
    
    .hm-grid-2 { grid-template-columns: 1fr; }
    .hm-header-teams { flex-direction: column; gap: 15px; }
    .hm-header-center { margin: 15px 0; }
}