
/* A single server-rendered prediction remains readable without an API round trip. */
.prediction-page-body .match-breadcrumbs {
    padding: 12px 16px;
    background: var(--theme-soft, #f0f5fd);
    border: 1px solid var(--theme-line, #dfeaf2);
    border-radius: 10px;
    color: var(--theme-ink, #102d63);
}
.prediction-page-body .match-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.prediction-page-body .match-breadcrumbs li {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}
.prediction-page-body .match-breadcrumbs li > span {
    margin: 0;
    color: var(--theme-muted, #45699a);
}
.prediction-page-body .match-breadcrumbs a {
    color: inherit;
    font-weight: 650;
    line-height: 1.6;
    text-decoration: underline;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}
.prediction-page-body .match-breadcrumbs a[aria-current="page"] { font-weight: 800; }
.prediction-page-body .match-breadcrumbs a:hover { text-decoration-thickness: 2px; }
.prediction-page-body .match-breadcrumbs a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
    border-radius: 2px;
}
/* Restore the original dashboard composition on the server-rendered markup. */
.prediction-page-body #prediction-seo-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 17px;
    margin-top: 16px;
    padding: 0;
    color: var(--theme-ink);
    background: transparent;
    box-shadow: none;
}
#prediction-seo-content > * { min-width: 0; }
#prediction-seo-content > section,
#prediction-seo-content > details {
    margin: 0;
    padding: 22px;
    border: 1px solid var(--theme-line);
    border-radius: 10px;
    background: var(--theme-card);
    box-shadow: var(--theme-shadow);
}
.prediction-page-body #prediction-seo-content section[aria-labelledby="prediction-heading"] { margin: 0; border-top: 1px solid var(--theme-line); }
#prediction-seo-content h2 { margin: 0 0 18px; font-size: 18px; color: var(--theme-ink); }
#prediction-seo-content h3 { color: inherit; }
#prediction-seo-content .lead,
#prediction-seo-content .prediction-synthesis-list { font-size: 14px; line-height: 1.7; }
#prediction-seo-content .prediction-summary-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 16px 0 0; }
#prediction-seo-content .prediction-summary-facts dt { color: var(--theme-muted); font-size: 12px; }
#prediction-seo-content .prediction-summary-facts dd { margin: 4px 0 0; font-size: 14px; font-weight: 700; }
#prediction-seo-content .prediction-table-scroll { max-width: 100%; }
#prediction-seo-content table { width: 100%; min-width: 0; color: inherit; font-size: 13px; }
#prediction-seo-content th, #prediction-seo-content td { border-color: var(--theme-line); }
.server-factor-label { display: flex; align-items: center; gap: 5px; }
.server-factor-label > span { min-width: 0; }
.server-factor-label svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: var(--theme-green); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#prediction-seo-content thead, #prediction-seo-content .columns section { background: var(--theme-green-softer); }
#prediction-seo-content .columns section { min-width: 0; border-radius: 10px; }
#prediction-seo-content .server-recent-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.server-form-results { display: inline-flex; gap: 5px; }
.server-form-badge { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 5px; color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }
.server-form-w { background: #087a45; }
.server-form-l { background: #b42318; }
.server-form-d { background: #5d666f; }
#prediction-seo-content summary { cursor: pointer; font-weight: 700; }
#prediction-seo-content .prediction-provenance { margin: 0; padding: 0 4px; font-size: 12px; line-height: 1.6; }

.server-fixture-card {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 1.25fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr auto;
    align-items: center;
    gap: 12px 18px;
    min-height: 270px;
    padding: 36px 28px 24px;
    overflow: hidden;
    border: 1px solid var(--theme-line);
    border-radius: 10px;
    background: var(--theme-card);
    box-shadow: var(--theme-shadow);
}
.server-fixture-card::before, .server-fixture-card::after {
    content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; width: 24%; pointer-events: none;
}
.server-fixture-card::before { left: 0; background: linear-gradient(125deg, rgba(8,117,96,.18), transparent 70%); clip-path: polygon(0 0,100% 0,55% 100%,0 100%); }
.server-fixture-card::after { right: 0; background: linear-gradient(225deg, rgba(8,117,96,.18), transparent 70%); clip-path: polygon(0 0,100% 0,100% 100%,45% 100%); }
.server-fixture-league {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%); max-width: calc(100% - 80px);
    padding: 5px 18px; border-radius: 15px; background: var(--theme-green); color: #fff;
    font-size: 11px; font-weight: 800; line-height: 1.3; text-align: center; text-decoration: none;
}
.server-fixture-schedule { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; gap: 7px; margin: 0; color: var(--theme-ink); font-size: 12px; font-weight: 600; text-align: center; }
.server-fixture-schedule svg { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: var(--theme-green); stroke-width: 1.8; }
.server-fixture-team { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; text-align: center; grid-row: 2 / 4; }
.server-home-team { grid-column: 1; }
.server-away-team { grid-column: 3; }
.server-fixture-team img { width: 94px; height: 104px; object-fit: contain; }
.server-fixture-team a { color: var(--theme-ink); font-size: 20px; font-weight: 800; line-height: 1.2; text-decoration: none; overflow-wrap: anywhere; }
.server-fixture-center { grid-column: 2; grid-row: 2; text-align: center; min-width: 0; }
.server-fixture-versus { color: var(--theme-green); font-size: 24px; font-weight: 850; }
.server-fixture-venue, .server-fixture-status { margin: 5px 0 0; color: var(--theme-muted); font-size: 11px; }
.server-fixture-score { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 6px 0; }
.server-fixture-score small { color: var(--theme-muted); font-size: 10px; }
.server-fixture-score strong { font-size: 26px; }
.server-fixture-score.score-outcome-won strong { color: #16834d; }
.server-fixture-score.score-outcome-lost strong { color: #c54343; }
.server-recommendation { grid-column: 2; grid-row: 3; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 24px; background: linear-gradient(90deg,#c6f4e6,#dcf8f0); }
.server-recommendation > span:last-child { min-width: 0; }
.server-recommendation small { display: block; color: #08775c; font-size: 10px; font-weight: 800; }
.server-recommendation strong { display: block; margin-top: 3px; color: #08295e; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; }
.server-recommendation .server-selection-confidence { margin-top: 5px; font-size: 10px; font-weight: 500; }
.server-fixture-favorite { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 50%; }

#prediction-seo-content .server-market-strip { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-items: center; padding: 18px 12px; }
.server-market-strip > div { min-width: 0; padding: 0 12px; }
.server-market-strip > div + div { border-left: 1px solid var(--theme-line); }
.server-probability { display: flex; align-items: center; gap: 12px; min-height: 96px; }
.server-probability-ring { display: grid; place-items: center; width: 76px; height: 76px; flex: 0 0 76px; border-radius: 50%; background: conic-gradient(var(--theme-green) calc(var(--probability, 0) * 1%), var(--theme-probability-track) 0); }
.server-probability-ring > span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--theme-card); color: var(--theme-ink); font-size: 17px; font-weight: 800; }
.server-probability-copy { min-width: 0; flex: 1; }
.server-market-label { display: flex; align-items: center; gap: 6px; color: var(--theme-ink); font-size: 10px; font-weight: 800; }
.server-market-label svg { width: 26px; height: 26px; padding: 5px; flex: 0 0 26px; border-radius: 50%; background: var(--theme-green-soft); color: var(--theme-green); fill: none; stroke: currentColor; stroke-width: 1.8; }
.server-probability-team { display: block; overflow: hidden; margin-top: 5px; color: var(--theme-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.server-probability-bar { display: block; height: 8px; margin: 9px 0 5px; border-radius: 8px; background: var(--theme-probability-track); overflow: hidden; }
.server-probability-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--theme-green); }
.server-probability-copy > small, .server-goals-market small { display: block; color: var(--theme-muted); font-size: 10px; }
.server-goals-market { display: flex; align-items: center; gap: 12px; min-height: 96px; }
.server-goals-market > svg { width: 48px; height: 48px; padding: 10px; flex: 0 0 48px; border-radius: 50%; color: var(--theme-goals-icon); background: var(--theme-goals-icon-bg); fill: none; stroke: currentColor; stroke-width: 1.7; }
.server-goals-market > div { min-width: 0; }
.server-goals-market > div > span { display: block; margin: 5px 0; font-size: 23px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
@media (max-width: 900px) and (min-width: 721px) {
    .server-probability-ring { width: 58px; height: 58px; flex-basis: 58px; }
    .server-probability-ring > span { width: 44px; height: 44px; font-size: 14px; }
    .server-probability { gap: 8px; }
    .server-market-strip > div { padding: 0 8px; }
}
@media (max-width: 720px) {
    /* Keep complete table rows on screen, including expanded team statistics. */
    #prediction-seo-content table { table-layout: fixed; }
    #prediction-seo-content th, #prediction-seo-content td {
        padding: 8px 4px;
        white-space: normal;
        overflow-wrap: anywhere;
        vertical-align: top;
    }
    #prediction-seo-content th { letter-spacing: 0; }
    #prediction-seo-content .prediction-recent-table th:nth-child(1) { width: 20%; }
    #prediction-seo-content .prediction-recent-table th:nth-child(2) { width: 32%; }
    #prediction-seo-content .prediction-recent-table th:nth-child(3) { width: 16%; }
    #prediction-seo-content .prediction-recent-table th:nth-child(4) { width: 15%; }
    #prediction-seo-content .prediction-recent-table th:nth-child(5) { width: 17%; }
    #prediction-seo-content .prediction-detail-table th { width: 68%; }
    #prediction-seo-content .server-market-strip { grid-template-columns: repeat(2,minmax(0,1fr)); padding: 12px; }
    .server-market-strip > div { padding: 12px; }
    .server-market-strip > div:nth-child(3) { border-left: 0; }
    .server-market-strip > div:nth-child(n+3) { border-top: 1px solid var(--theme-line); }
    .server-fixture-card { grid-template-columns: minmax(0,1fr) 48px minmax(0,1fr); padding: 36px 16px 20px; gap: 16px 8px; }
    .server-fixture-team { grid-row: 2; }
    .server-fixture-center { display: contents; }
    .server-fixture-versus { grid-column: 2; grid-row: 2; text-align: center; }
    .server-fixture-score, .server-fixture-venue, .server-fixture-status { grid-column: 1 / -1; text-align: center; margin: 0; }
    .server-recommendation { grid-column: 1 / -1; grid-row: auto; justify-content: center; justify-self: center; width: min(100%,414px); }
    .server-fixture-team img { width: 72px; height: 78px; }
    .server-fixture-team a { font-size: 17px; }
}
@media (max-width: 480px) {
    .server-probability { gap: 8px; }
    .server-probability-ring { width: 54px; height: 54px; flex-basis: 54px; }
    .server-probability-ring > span { width: 40px; height: 40px; font-size: 14px; }
    .server-market-strip > div { padding: 10px 8px; }
    .server-market-label { font-size: 9px; }
    .server-market-label svg { display: none; }
    .server-goals-market { gap: 8px; }
    .server-goals-market > svg { width: 32px; height: 32px; flex-basis: 32px; padding: 6px; }
    .server-goals-market > div > span { font-size: 18px; }
    #prediction-seo-content > section, #prediction-seo-content > details { padding: 16px; }
    #prediction-seo-content .columns, #prediction-seo-content .prediction-summary-facts { grid-template-columns: minmax(0,1fr); }
}
:root[data-theme="dark"] .prediction-page-body { background: var(--theme-page) !important; }
