/* Match details (new) */
.match-details-container.md-root{
    max-width: 980px;
    margin: 0 auto;
    padding: 18px 14px 26px;
}

.md-header{
    display:flex;
    align-items:flex-start;
    gap:14px;
    padding: 16px 18px;
    background: rgba(255,255,255,0.035);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 20px;
    margin-bottom: 14px;
}

.md-league-emoji{
    font-size: 30px;
    line-height: 1;
    width: 42px;
    text-align:center;
    flex: 0 0 auto;
}

.md-header-main{
    min-width:0;
    flex:1;
}

.md-league{
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.md-teams{
    font-size: 20px;
    font-weight: 750;
    margin-top: 4px;
    line-height: 1.2;
}

.md-score-inline{
    margin-top: 6px;
    font-size: 18px;
    font-weight: 800;
    color: #00d2ff;
}

.md-time{
    margin-top: 6px;
    font-size: 13px;
    color: rgba(255,255,255,0.50);
}

.md-status{
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    border: 1px solid transparent;
    white-space: nowrap;
    margin-left: auto;
}
.md-live{ background: rgba(255, 68, 68, 0.18); color: #ff5a5a; border-color: rgba(255, 68, 68, 0.30); }
.md-scheduled{ background: rgba(255, 200, 0, 0.14); color: #ffc800; border-color: rgba(255, 200, 0, 0.28); }
.md-finished{ background: rgba(0, 255, 136, 0.10); color: #00ff88; border-color: rgba(0, 255, 136, 0.22); }

.md-grid{
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.md-card{
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 18px;
    padding: 14px 14px;
}
.md-card-wide{
    grid-column: 1 / -1;
}

.md-card-title{
    font-size: 14px;
    font-weight: 800;
    color: rgba(255,255,255,0.92);
    margin-bottom: 10px;
}

.md-muted{
    color: rgba(255,255,255,0.50);
    font-size: 13px;
}

.md-kv{
    display:flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}
.md-kv-row{
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.68);
}
.md-kv-row b{
    color: rgba(255,255,255,0.95);
    font-weight: 850;
}

.md-h2h-list{
    display:flex;
    flex-direction: column;
    gap: 8px;
}
.md-h2h-row{
    display:grid;
    grid-template-columns: 86px 1fr 56px;
    gap: 10px;
    align-items:center;
    padding: 10px 10px;
    background: rgba(0,0,0,0.16);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
}
.md-h2h-date{ font-size: 12px; color: rgba(255,255,255,0.55); }
.md-h2h-teams{ font-size: 13px; color: rgba(255,255,255,0.88); overflow:hidden; text-overflow: ellipsis; white-space: nowrap; }
.md-h2h-score{ font-size: 13px; font-weight: 900; text-align:right; color: #00d2ff; }
.md-h2h-extra{ grid-column: 1 / -1; margin-top: -2px; font-size: 12px; color: rgba(255,255,255,0.45); }

.md-form{
    display:flex;
    flex-direction: column;
    gap: 12px;
}
.md-form-team{
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 10px;
    background: rgba(0,0,0,0.16);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
}
.md-form-name{ font-size: 13px; font-weight: 800; color: rgba(255,255,255,0.92); overflow:hidden; text-overflow:ellipsis; white-space: nowrap; }
.md-form-badges{ display:flex; gap: 6px; flex-wrap: nowrap; }
.md-badge{
    width: 28px;
    height: 22px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid rgba(255,255,255,0.10);
    user-select:none;
}
.md-win{ background: rgba(0, 255, 136, 0.10); color: #00ff88; border-color: rgba(0, 255, 136, 0.25); }
.md-draw{ background: rgba(255, 200, 0, 0.12); color: #ffc800; border-color: rgba(255, 200, 0, 0.24); }
.md-loss{ background: rgba(255, 68, 68, 0.12); color: #ff5a5a; border-color: rgba(255, 68, 68, 0.24); }

.md-live-score, .md-final-score{
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 10px 4px;
}
.md-live-team{
    flex: 1 1 0;
    font-size: 14px;
    font-weight: 850;
    color: rgba(255,255,255,0.90);
    overflow:hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.md-live-team.md-right{ text-align: right; }
.md-live-mid{
    flex: 0 0 auto;
    font-weight: 950;
    font-size: 22px;
    color: #00d2ff;
    display:flex;
    align-items:baseline;
    gap: 6px;
}
.md-live-sep{ opacity: 0.6; }

.md-live-title{
    margin-top: 2px;
    padding: 0 10px 10px;
    font-size: 13px;
    color: rgba(255,255,255,0.70);
    font-weight: 800;
}
.md-stats{
    display:flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 10px 10px;
}
.md-stat-row{
    display:flex;
    align-items:center;
    justify-content: space-between;
    gap: 10px;
}
.md-stat-label{
    font-size: 13px;
    color: rgba(255,255,255,0.60);
    flex: 1 1 auto;
}
.md-stat-values{
    display:grid;
    grid-template-columns: 52px 20px 52px;
    gap: 6px;
    align-items:center;
    justify-items:center;
    font-size: 13px;
    color: rgba(255,255,255,0.88);
}
.md-stat-home, .md-stat-away{
    width: 52px;
    padding: 5px 6px;
    border-radius: 12px;
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.06);
    text-align:center;
    font-weight: 900;
}
.md-stat-mid{
    opacity: 0.35;
    font-weight: 900;
}

@media (max-width: 860px){
    .md-grid{ grid-template-columns: 1fr; }
    .md-card-wide{ grid-column: auto; }
}

