/* World Cup 2026 match detail — standalone (league predictions_detail.html untouched) */

.pred-breadcrumb {
    padding: 12px 20px;
    font-size: 0.85rem;
    color: #666;
}
.pred-breadcrumb a { color: #666; text-decoration: none; }
.pred-breadcrumb a:hover { color: #333; text-decoration: underline; }
.pred-breadcrumb .sep { margin: 0 6px; color: #ccc; }

.pred-match-header {
    padding: 24px 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.pred-top-meta {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
}
.pred-top-meta .match-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    flex: 1;
}
.pred-match-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}
.pred-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.pred-team img { width: 64px; height: 64px; object-fit: contain; }
.pred-team .team-name {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    text-align: center;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pred-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.pred-center .center-datetime {
    font-size: 0.8rem;
    font-weight: 500;
    color: #888;
    margin-bottom: 2px;
}
.pred-score-row {
    display: flex;
    align-items: center;
    gap: 6px;
}
.pred-score-box {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    border-radius: 8px;
}
.pred-score-box.home { background: #43a047; }
.pred-score-box.away { background: #1565c0; }
.pred-score-box.is-xg {
    font-size: 1.05rem;
    font-weight: 700;
}
.pred-score-row.pred-score-hub {
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}
.pred-score-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 50px;
    padding: 6px 11px 8px;
    color: #fff;
    line-height: 1.15;
}
.pred-score-stack.home { background: #43a047; }
.pred-score-stack.away { background: #1565c0; }
.pred-score-stack .pred-score-goals {
    font-size: 1.22rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.pred-score-stack .pred-score-xg-line {
    font-size: 0.7rem;
    font-weight: 600;
    opacity: 0.94;
    margin-top: 3px;
}
.pred-score-stack .pred-score-xg-line.xg-missing {
    opacity: 0.58;
}
.pred-odds-row {
    display: flex;
    gap: 0;
    margin-top: 4px;
}
.pred-odds-row .odds-val {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 30px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}
.pred-odds-row .odds-home {
    background: #43a047;
    border-radius: 4px 0 0 4px;
}
.pred-odds-row .odds-draw {
    background: #ef6c00;
}
.pred-odds-row .odds-away {
    background: #1565c0;
    border-radius: 0 4px 4px 0;
}
.status-upcoming { background: #e3f2fd; color: #1565c0; }
.status-live { background: #fce4ec; color: #c62828; }
.status-finished { background: #f5f5f5; color: #666; }
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 600;
}
.pred-top-meta .favorite-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    min-width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
    color: #ccc;
    font-size: 0.9rem;
}
.pred-top-meta .favorite-star.favorited { color: #ffc107; }

.wc-round-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    background: #e8f5e9;
    color: #2e7d32;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.wc-round-ad-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    padding: 12px 20px 0;
}
.wc-round-ad-row--ad-only {
    justify-content: center;
}
.wc-inline-ad {
    flex: 1 1 220px;
    min-width: 0;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #1b5e20;
}
.wc-inline-ad--fallback {
    font-weight: 600;
}
@media (max-width: 767px) {
    .wc-round-ad-row {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px 16px 0;
    }
    .wc-round-badge {
        align-self: center;
        margin-top: 0;
    }
    .wc-inline-ad {
        flex: 1 1 auto;
        font-size: 0.88rem;
        line-height: 1.4;
        padding: 0 4px;
    }
}

.wc-forecast-wrap { padding: 0 20px 24px; }
.wc-forecast-section {
    background: #fff;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    margin-bottom: 16px;
    overflow: hidden;
}
.wc-forecast-section-hd {
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e8ecf0;
    font-weight: 700;
    font-size: 0.95rem;
    color: #1e293b;
}
.wc-forecast-section-bd { padding: 14px 16px; }
.wc-hero-lean {
    padding: 16px 20px;
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
    color: #fff;
    border-radius: 10px;
    margin-bottom: 16px;
}
.wc-hero-lean-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 6px;
}
.wc-hero-lean-team { font-size: 1.35rem; font-weight: 800; margin-bottom: 8px; }
.wc-hero-lean-summary { font-size: 0.92rem; line-height: 1.5; opacity: 0.95; }

.wc-prob-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.wc-prob-table th,
.wc-prob-table td { padding: 8px 10px; border-bottom: 1px solid #eef2f6; text-align: left; }
.wc-prob-table th { color: #64748b; font-weight: 600; font-size: 0.78rem; text-transform: uppercase; }
.wc-prob-table tr:last-child td { border-bottom: none; }
.wc-prob-table .prob { font-weight: 700; color: #0d47a1; text-align: right; }
.wc-prob-table tr.is-top td { background: #f0f7ff; }

.wc-exp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
@media (max-width: 576px) { .wc-exp-grid { grid-template-columns: 1fr; } }
.wc-exp-card {
    padding: 12px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.wc-exp-card-lbl { font-size: 0.78rem; color: #64748b; margin-bottom: 4px; }
.wc-exp-card-val { font-size: 1.05rem; font-weight: 700; color: #1e293b; }
.wc-exp-card-tag {
    display: inline-block;
    margin-top: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #1565c0;
}
.wc-muted { font-size: 0.88rem; color: #64748b; line-height: 1.55; margin: 0; }

.wc-conf-score { font-size: 1.1rem; font-weight: 700; color: #1e293b; margin-bottom: 8px; }
.wc-conf-list { margin: 0; padding-left: 18px; font-size: 0.82rem; color: #64748b; }

.wc-forecast-section--inset { margin-left: 20px; margin-right: 20px; }

.wc-data-line {
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.55;
    margin: 0;
}
.wc-muted--spaced { margin-top: 8px; }
.wc-meta-tag { color: #94a3b8; font-size: 0.8rem; }

.wc-clarity-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.wc-clarity-label { font-weight: 600; color: #334155; }
.wc-clarity-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.wc-clarity-badge--high { background: #e8f5e9; color: #1b5e20; }
.wc-clarity-badge--medium { background: #fff8e1; color: #e65100; }
.wc-clarity-badge--low { background: #eceff1; color: #455a64; }

.wc-faq-list { display: flex; flex-direction: column; gap: 8px; }
.wc-faq-item {
    border: 1px solid #e8ecf0;
    border-radius: 8px;
    padding: 0 12px;
    background: #fafbfd;
}
.wc-faq-q {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: #1e293b;
    padding: 10px 0;
    list-style: none;
}
.wc-faq-q::-webkit-details-marker { display: none; }
.wc-faq-a { margin: 0 0 12px; padding: 0; }

.wc-disclaimer {
    margin: 8px 20px 20px;
    padding: 14px 16px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}
.wc-disclaimer-title {
    font-weight: 700;
    font-size: 0.88rem;
    color: #475569;
    margin-bottom: 6px;
}

.wc-hub-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 8px 20px 20px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #1565c0;
    text-decoration: none;
}
.wc-hub-link:hover { text-decoration: underline; }

/* Right sidebar — group fixtures */
.wc-group-preds-card {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.wc-group-match-current {
    background-color: #e8f0fe;
}
.wc-group-match-link {
    text-decoration: none;
    font-size: 0.82rem;
    color: #333;
}
.wc-group-match-link.is-current {
    font-weight: 700;
}
.wc-group-match-teams {
    flex: 1;
    min-width: 0;
}
.wc-group-team-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    margin-right: 5px;
}
.wc-group-team-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wc-group-match-meta {
    flex-shrink: 0;
    text-align: right;
    margin-left: 8px;
}
.wc-group-match-time {
    font-size: 0.72rem;
    color: #999;
}
.wc-group-score {
    font-size: 0.78rem;
    font-weight: 700;
    color: #333;
}
.wc-group-stat-na {
    font-size: 0.68rem;
    color: #999;
}
.wc-group-preds-card .pred-xg-wrap.pred-xg-sidebar {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    justify-content: flex-end;
}
.pred-xg-wrap {
    display: inline-flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.15;
    white-space: nowrap;
}
.pred-xg-sep {
    color: #777;
    font-weight: 600;
    padding: 0 1px;
    flex-shrink: 0;
}
.pred-xg-none .pred-xg-h, .pred-xg-none .pred-xg-a { color: #999; font-weight: 500; }
.pred-xg-low .pred-xg-h, .pred-xg-high .pred-xg-h, .pred-xg-default .pred-xg-h { color: #43a047; }
.pred-xg-low .pred-xg-a, .pred-xg-high .pred-xg-a, .pred-xg-default .pred-xg-a { color: #1565c0; }

.pred-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 20px 24px;
    font-size: 0.88rem;
    color: #666;
    text-decoration: none;
}
.pred-back-link:hover { color: #333; }

.pred-narrative-html p { margin: 0.35rem 0; line-height: 1.5; }
