/* ── Match Page Layout ── */
.of-match-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 16px 48px;
    color: #e6edf3;
}

/* Hero */
.of-mp-hero {
    background: linear-gradient(135deg, #0d1117 0%, #161b22 50%, #1c2128 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    margin-bottom: 24px;
}
.of-mp-hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.of-mp-h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e6edf3;
    margin: 0 0 8px;
    line-height: 1.3;
}
.of-mp-h1-league {
    font-weight: 400;
    color: #8b949e;
    font-size: 0.9em;
}
.of-mp-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.of-mp-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 80px;
    flex: 1;
    max-width: 200px;
}
.of-mp-team img,
.of-mp-team .of-flag-img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 50%;
    flex-shrink: 0;
}
.of-mp-team-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #e6edf3;
    text-align: center;
    word-break: break-word;
}
.of-mp-team-link {
    text-decoration: none;
    color: #e6edf3;
    transition: color 0.12s ease;
}
.of-mp-team-link:hover {
    color: #f5a623;
}
.of-mp-league-link {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    transition: color 0.12s ease;
}
.of-mp-league-link:hover {
    color: #f5a623;
}
.of-mp-detail-link {
    color: #e6edf3;
    text-decoration: none;
}
.of-mp-detail-link:hover {
    color: #f5a623;
}
.of-mp-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 0 8px;
}
.of-mp-vs-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.25);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.of-mp-score {
    font-size: 1.8rem;
    font-weight: 800;
    color: #e6edf3;
    letter-spacing: 0.04em;
}
.of-mp-score-label {
    font-size: 0.66rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.of-mp-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.of-mp-kickoff {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}
.of-mp-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.of-mp-status-upcoming {
    background: rgba(96, 165, 250, 0.12);
    color: #60a5fa;
}
.of-mp-status-live {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
}
.of-mp-status-ft {
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.4);
}
.of-mp-meta {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.02em;
}

/* Body: 2-col grid */
.of-mp-body {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 24px;
    align-items: start;
}

/* Main content */
.of-mp-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.of-mp-section {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 20px;
}
.of-mp-section-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #e6edf3;
    margin: 0 0 14px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Odds table wrapper */
.of-mp-odds-table .of-odds-mini {
    margin: 0;
    background: transparent;
    border: none;
}

/* Prediction widget */
.of-match-predict-gate {
    text-align: center;
    padding: 20px;
    background: rgba(245, 166, 35, 0.04);
    border: 1px dashed rgba(245, 166, 35, 0.2);
    border-radius: 8px;
}
.of-match-predict-gate-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 12px;
}
.of-match-predict-gate-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.of-match-predict-gate .of-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
}
.of-match-predict-gate .of-btn-cta {
    background: linear-gradient(135deg, #f5a623, #e8950f);
    color: #0d1117;
}
.of-match-predict-gate .of-btn-cta:hover {
    background: linear-gradient(135deg, #ffc857, #f5a623);
}
.of-match-predict-gate .of-btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e6edf3;
}
.of-match-predict-gate .of-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Prediction form */
.of-match-predict-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.of-match-predict-1x2 {
    display: flex;
    justify-content: center;
}
.of-match-predict-1x2 .of-predict-cells {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    max-width: 320px;
    width: 100%;
}
.of-match-predict-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.of-match-predict-quickpicks {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}
.of-match-predict-save {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    padding: 12px 24px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f5a623, #e8950f);
    color: #0d1117;
    font-size: 0.88rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}
.of-match-predict-save:hover {
    background: linear-gradient(135deg, #ffc857, #f5a623);
}

/* Locked prediction display */
.of-match-predict-locked {
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
}
.of-match-predict-pick {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 8px;
}
.of-match-predict-closed {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* Related matches grid */
.of-mp-related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.of-mp-related-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.12s ease;
}
.of-mp-related-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(245, 166, 35, 0.2);
}
.of-mp-related-teams {
    font-size: 0.78rem;
    font-weight: 600;
    color: #e6edf3;
}
.of-mp-related-score {
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
}
.of-mp-related-date {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Sidebar */
.of-mp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.of-mp-sidebar-cta .of-bet-cta {
    margin: 0;
}
.of-mp-info-card {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 16px;
}
.of-mp-info-card h3 {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e6edf3;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.of-mp-details {
    margin: 0;
}
.of-mp-details dt {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 8px;
}
.of-mp-details dt:first-child {
    margin-top: 0;
}
.of-mp-details dd {
    font-size: 0.82rem;
    color: #e6edf3;
    margin: 2px 0 0;
}

/* AI Prediction Badge (hero) */
.of-mp-prediction-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(46, 160, 67, 0.1);
    border: 1px solid rgba(46, 160, 67, 0.25);
    border-radius: 6px;
    margin-top: 4px;
}
.of-mp-prediction-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #2ea043;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.of-mp-prediction-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: #e6edf3;
}

/* Table of Contents */
.of-mp-toc {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 16px 20px;
}
.of-mp-toc-title {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}
.of-mp-toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: toc;
}
.of-mp-toc-list li {
    counter-increment: toc;
    margin-bottom: 6px;
}
.of-mp-toc-list li:last-child {
    margin-bottom: 0;
}
.of-mp-toc-list a {
    display: inline-block;
    font-size: 0.82rem;
    color: #e6edf3;
    text-decoration: none;
    transition: color 0.12s ease;
}
.of-mp-toc-list a::before {
    content: counter(toc) ". ";
    color: #f5a623;
    font-weight: 700;
}
.of-mp-toc-list a:hover {
    color: #f5a623;
}

/* Preview Article */
.of-mp-preview {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 24px 20px;
    line-height: 1.7;
}
.of-mp-preview h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #e6edf3;
    margin: 28px 0 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.of-mp-preview h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}
.of-mp-preview h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #c9d1d9;
    margin: 20px 0 8px;
}
.of-mp-preview p {
    font-size: 0.88rem;
    color: #c9d1d9;
    margin: 0 0 12px;
}
.of-mp-preview ul, .of-mp-preview ol {
    font-size: 0.88rem;
    color: #c9d1d9;
    padding-left: 20px;
    margin: 0 0 12px;
}
.of-mp-preview li {
    margin-bottom: 4px;
}
.of-mp-preview strong {
    color: #e6edf3;
}

/* Team Form Visual */
.of-mp-form-visual {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Related Tips Grid */
.of-mp-tips-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.of-mp-tip-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.12s ease;
}
.of-mp-tip-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(245, 166, 35, 0.2);
}
.of-mp-tip-card.of-mp-tip-win {
    border-left: 3px solid #2ea043;
}
.of-mp-tip-card.of-mp-tip-loss {
    border-left: 3px solid #f85149;
}
.of-mp-tip-type {
    display: inline-block;
    padding: 2px 8px;
    background: rgba(245, 166, 35, 0.1);
    border-radius: 3px;
    font-size: 0.66rem;
    font-weight: 700;
    color: #f5a623;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.of-mp-tip-title {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 600;
    color: #e6edf3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.of-mp-tip-date {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
}

/* H2H Sidebar Card */
.of-mp-h2h-card .of-mp-h2h-record {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.of-mp-h2h-stat {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}
.of-mp-h2h-stat strong {
    display: block;
    font-size: 1.1rem;
    color: #e6edf3;
    margin-bottom: 2px;
}

/* Sidebar CTA (redesigned for unique sportsbooks) */
.of-mp-sidebar-cta {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 14px;
}
.of-mp-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}
.of-mp-cta-name {
    font-size: 0.85rem;
    color: #e6edf3;
}
.of-mp-cta-rating {
    font-size: 0.75rem;
    color: #f5a623;
    font-weight: 700;
}
.of-mp-cta-bonus {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.3;
}
.of-mp-cta-inner .of-btn-cta {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #2ea043, #238636);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.12s ease;
    margin-top: 4px;
}
.of-mp-cta-inner .of-btn-cta:hover {
    background: linear-gradient(135deg, #3fb950, #2ea043);
}

/* Responsive */
@media (max-width: 780px) {
    .of-match-page {
        padding: 16px 12px 40px;
    }
    .of-mp-body {
        grid-template-columns: 1fr;
    }
    .of-mp-hero {
        padding: 20px 14px;
    }
    .of-mp-h1 {
        font-size: 1.05rem;
    }
    .of-mp-teams {
        gap: 10px;
    }
    .of-mp-team {
        min-width: 60px;
    }
    .of-mp-team img,
    .of-mp-team .of-flag-img {
        width: 44px;
        height: 44px;
    }
    .of-mp-team-name {
        font-size: 0.85rem;
    }
    .of-mp-vs {
        padding: 0 4px;
    }
    .of-mp-score {
        font-size: 1.3rem;
    }
    .of-mp-vs-text {
        font-size: 0.7rem;
    }
    .of-mp-kickoff {
        font-size: 0.75rem;
    }
    .of-mp-info {
        gap: 6px;
    }
    .of-mp-meta {
        font-size: 0.7rem;
    }
    .of-mp-prediction-badge {
        flex-wrap: wrap;
        justify-content: center;
    }
    .of-mp-related-grid {
        grid-template-columns: 1fr;
    }
    .of-mp-preview {
        padding: 16px 14px;
    }
    .of-mp-section {
        padding: 16px 14px;
    }
    .of-mp-h2h-card .of-mp-h2h-record {
        flex-direction: column;
        gap: 6px;
    }
    .of-mp-h2h-stat {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .of-mp-h2h-stat strong {
        display: inline;
        font-size: 0.9rem;
    }
}

/* Extra small screens */
@media (max-width: 400px) {
    .of-mp-teams {
        gap: 6px;
    }
    .of-mp-team img,
    .of-mp-team .of-flag-img {
        width: 36px;
        height: 36px;
    }
    .of-mp-team-name {
        font-size: 0.78rem;
    }
    .of-mp-score {
        font-size: 1.15rem;
    }
    .of-mp-h1 {
        font-size: 0.95rem;
    }
}
