/* ScoreProb football market prediction pages (pred-v1, 18 Nov 2026). Everything is scoped to .pr2. */
body:has(.pr2) { background: #f5f7fa; }
html[data-theme="dark"] body:has(.pr2) { background: #0b1220; }

.pr2 {
    --bg: #f5f7fa; --surf: #ffffff; --surf2: #eef2f8; --line: #e3e8ef; --line2: #c9d2e2;
    --ink: #18212f; --ink2: #44526b; --muted: #5a6680;
    --acc: #2857d9; --acc-ink: #ffffff; --acc-soft: #e6edfc; --acc-text: #1f4ed0;
    --home: #2857d9; --draw: #6f7a93; --away: #b86e00; --over: #0a8f6a; --btts: #7958d8;
    --good: #0a7a5a; --bad: #b3261e; --track: #e3e8f1; --said: #8fa0bf;
    --c: var(--over);
    max-width: 1180px; margin: 0 auto; padding: 20px 24px 64px;
    display: flex; flex-direction: column; gap: 28px;
    color: var(--ink); font-size: 15px; line-height: 1.5;
}
html[data-theme="dark"] .pr2 {
    --bg: #0b1220; --surf: #111a29; --surf2: #16213a; --line: #243249; --line2: #3a4d6b;
    --ink: #ecf2ff; --ink2: #b4c0d3; --muted: #8f9db5;
    --acc: #5b87ff; --acc-ink: #0b1220; --acc-soft: #17284d; --acc-text: #8aa8ff;
    --home: #5b87ff; --draw: #b7c0d6; --away: #dc9a1e; --over: #1fbf8f; --btts: #9a82f5;
    --good: #2bd3a0; --bad: #ff8a7a; --track: #1f2c44; --said: #5d6f8f;
}
.pr2-home { --c: var(--home); } .pr2-draw { --c: var(--draw); --said: #c3ccdc; } .pr2-away { --c: var(--away); }
html[data-theme="dark"] .pr2-draw { --said: #3d4b66; }
.pr2-over { --c: var(--over); } .pr2-btts { --c: var(--btts); }

.pr2 *, .pr2 *::before, .pr2 *::after { box-sizing: border-box; }
.pr2 h1, .pr2 h2, .pr2 h3, .pr2 p, .pr2 ul, .pr2 ol { margin: 0; }
.pr2 a { color: var(--acc-text); text-decoration: none; }
.pr2 a:hover { text-decoration: underline; }
.pr2 b { font-variant-numeric: tabular-nums; }
.pr2 .pr2-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pr2 .pr2-muted { color: var(--ink2); line-height: 1.6; }
.pr2 .pr2-small { font-size: 13px; color: var(--muted); line-height: 1.5; }

.pr2-crumb { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.pr2-crumb [aria-current] { color: var(--ink); font-weight: 600; }

.pr2-hero { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.pr2-hero h1 { font-size: clamp(28px, 4.2vw, 40px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
.pr2-lead { font-size: 18px; line-height: 1.55; color: var(--ink2); }
.pr2-meta { font-size: 13px; color: var(--muted); }

.pr2-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.pr2-days, .pr2-filters, .pr2-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.pr2-days a { padding: 9px 16px; border-radius: 10px; background: var(--surf); border: 1px solid var(--line2); color: var(--ink); font-weight: 600; font-size: 14px; }
.pr2-days a.on { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); font-weight: 700; }
.pr2-filters a { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surf); color: var(--ink); font-size: 14px; font-weight: 600; }
.pr2-filters a.on { border-color: var(--acc); background: var(--acc-soft); color: var(--acc-text); font-weight: 700; }
.pr2-days a:hover, .pr2-filters a:hover, .pr2-chips a:hover { text-decoration: none; border-color: var(--acc); }
.pr2-country select, .pr2-country button { font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); background: var(--surf); border: 1px solid var(--line2); border-radius: 999px; padding: 7px 12px; max-width: 220px; }

.pr2-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pr2-tile { background: var(--surf); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.pr2-tile b { font-size: 30px; letter-spacing: -0.02em; line-height: 1.15; }
.pr2-tile b.good { color: var(--good); }
.pr2-tile span { font-size: 14px; color: var(--ink2); line-height: 1.4; }

.pr2-card { background: var(--surf); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.pr2-card h2 { font-size: 20px; letter-spacing: -0.01em; }
.pr2-card h3 { font-size: 17px; margin-top: 6px; }
.pr2-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.pr2 h2 { font-size: 22px; letter-spacing: -0.01em; }

/* the list */
.pr2-list { padding: 0; gap: 0; overflow: hidden; }
.pr2-list-top { padding: 18px 20px 12px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px; }
.pr2-list-top span { font-size: 13px; color: var(--muted); }
.pr2-scroll { overflow-x: auto; }
.pr2-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: 15px; }
.pr2-table th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; background: var(--bg); padding: 8px 10px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); white-space: nowrap; }
.pr2-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pr2-table th:first-child, .pr2-table td:first-child { padding-left: 20px; width: 44px; }
.pr2-table th:last-child, .pr2-table td:last-child { padding-right: 20px; }
.pr2-rank { font-weight: 800; color: var(--muted); }
.pr2-time { white-space: nowrap; color: var(--ink2); font-variant-numeric: tabular-nums; width: 92px; }
.pr2-dow { color: var(--muted); font-size: 13px; }
.pr2-match { min-width: 260px; }
.pr2-teams { display: block; color: var(--ink) !important; font-weight: 700; }
.pr2-league { display: block; font-size: 13px; color: var(--muted); }
.pr2-league a { color: var(--muted); }
.pr2-prob { width: 210px; }
.pr2-prob, .pr2-gp { display: flex; align-items: center; gap: 10px; }
td.pr2-prob { display: table-cell; }
td.pr2-prob > * { vertical-align: middle; }
td.pr2-prob .pr2-track { display: inline-block; width: calc(100% - 66px); }
td.pr2-prob b { display: inline-block; min-width: 54px; text-align: right; }
.pr2-track { flex: 1 1 auto; height: 10px; border-radius: 999px; background: var(--track); overflow: hidden; }
.pr2-track > span { display: block; height: 100%; border-radius: 999px; background: var(--c); }
.pr2-track.said > span { background: var(--said); }
.pr2 td.pr2-small { font-size: 14px; color: var(--ink2); white-space: nowrap; }
.pr2-go { white-space: nowrap; font-size: 14px; font-weight: 700; text-align: right; }
.pr2-res { white-space: nowrap; }
.pr2-res.yes, .pr2-mark.yes { color: var(--good); }
.pr2-res.no, .pr2-mark.no { color: var(--bad); }
.pr2-res b { color: var(--ink); }
.pr2-note { padding: 12px 20px 16px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.pr2-empty { padding: 4px 20px 20px; color: var(--ink2); }

/* big-league cards */
.pr2-big { display: flex; flex-direction: column; gap: 12px; }
.pr2-big .pr2-head a { font-size: 14px; font-weight: 700; }
.pr2-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pr2-gcard { background: var(--surf); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; color: var(--ink) !important; }
a.pr2-gcard:hover { text-decoration: none; border-color: var(--acc); }
.pr2-gl { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.pr2-gm { font-weight: 700; font-size: 15px; line-height: 1.3; }
.pr2-gp .pr2-track { height: 8px; }
.pr2-gr { font-size: 12px; color: var(--muted); }

/* record */
.pr2-rec { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; }
.pr2-rec-main { display: flex; flex-direction: column; gap: 14px; }
.pr2-bands { display: flex; flex-direction: column; gap: 10px; }
.pr2-band { display: grid; grid-template-columns: 92px minmax(0, 1fr) 250px; gap: 12px; align-items: center; font-size: 14px; }
.pr2-bl { font-weight: 700; }
.pr2-bb { display: flex; flex-direction: column; gap: 4px; }
.pr2-bb .pr2-track { height: 9px; }
.pr2-bv { color: var(--ink2); font-variant-numeric: tabular-nums; }
.pr2-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.pr2-legend span { display: flex; align-items: center; gap: 6px; }
.pr2-legend i { width: 14px; height: 8px; border-radius: 4px; background: var(--c); }
.pr2-legend i.said { background: var(--said); }
.pr2-last { display: flex; flex-direction: column; gap: 10px; }
.pr2-last ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pr2-last li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 44px; gap: 8px; align-items: center; font-size: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.pr2-last li > a, .pr2-last li > span:nth-child(2) { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr2-mark { font-weight: 800; }

.pr2-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.pr2-rates { display: flex; flex-direction: column; gap: 10px; }
.pr2-rate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 48px 92px; gap: 10px; align-items: center; font-size: 14px; }
.pr2-rate > a, .pr2-rate > span:first-child { color: var(--ink); font-weight: 600; }
.pr2-rate .pr2-track { height: 8px; }

.pr2-faq { display: flex; flex-direction: column; gap: 10px; }
.pr2-faq details { background: var(--surf); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.pr2-faq summary { font-weight: 700; cursor: pointer; }
.pr2-faq details p { margin-top: 10px; color: var(--ink2); line-height: 1.6; }

.pr2-rel { display: flex; flex-direction: column; gap: 10px; }
.pr2-rel h2 { font-size: 18px; }
.pr2-chips a, .pr2-chips span { padding: 9px 14px; border-radius: 10px; background: var(--surf); border: 1px solid var(--line2); color: var(--ink); font-weight: 600; font-size: 14px; }
.pr2-chips .later { background: var(--surf2); border-color: var(--surf2); color: var(--muted); }
.pr2-foot { border-top: 1px solid var(--line); padding-top: 16px; font-size: 13px; color: var(--muted); line-height: 1.6; }

/* hub */
.pr2-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.pr2-mcard { border-top: 4px solid var(--c); }
.pr2-mcard h2 a { color: var(--ink); }
.pr2-mcard ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.pr2-mcard li > a, .pr2-mcard li > span:first-child { display: block; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr2-mcard li { position: relative; }
.pr2-mcard li .pr2-track { display: inline-block; width: calc(100% - 52px); height: 8px; vertical-align: middle; }
.pr2-mcard li b { display: inline-block; width: 44px; text-align: right; vertical-align: middle; }
.pr2-mlinks { font-size: 14px; font-weight: 700; margin-top: auto !important; }
.pr2-mcard.later { border-top-color: var(--line2); background: var(--surf2); }
.pr2-mcard.later h2 { font-size: 17px; color: var(--ink2); }

@media (max-width: 900px) {
    .pr2-tiles, .pr2-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pr2-rec, .pr2-two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .pr2 { padding: 14px 16px 48px; gap: 22px; }
    .pr2-lead { font-size: 16px; }
    .pr2-tile { padding: 12px; }
    .pr2-tile b { font-size: 24px; }
    .pr2-cards { grid-template-columns: minmax(0, 1fr); }
    .pr2-bar { flex-direction: column; align-items: stretch; }
    .pr2-days a { flex: 1 1 auto; text-align: center; padding: 9px 10px; }
    /* the list becomes stacked rows on a phone */
    .pr2-table { min-width: 0; }
    .pr2-table thead { display: none; }
    .pr2-table, .pr2-table tbody, .pr2-table tr { display: block; }
    .pr2-table tr { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 2px 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
    .pr2-table td { display: block; padding: 0; border: 0; }
    .pr2-table td:first-child { padding-left: 0; width: auto; grid-row: span 2; }
    .pr2-table td:last-child { padding-right: 0; }
    .pr2-time { grid-column: 3; grid-row: 1; width: auto; text-align: right; font-size: 13px; }
    .pr2-match { grid-column: 2; grid-row: 1; min-width: 0; }
    .pr2-match .pr2-teams { overflow: hidden; text-overflow: ellipsis; }
    td.pr2-prob { grid-column: 2 / 4; grid-row: 2; width: auto; }
    td.pr2-prob .pr2-track { width: calc(100% - 66px); }
    .pr2 td.pr2-small { display: none; }
    .pr2-go { display: none !important; }
    .pr2-note { padding: 12px 16px 16px; }
    .pr2-list-top { padding: 16px 16px 10px; }
    .pr2-band { grid-template-columns: 72px minmax(0, 1fr); }
    .pr2-bv { grid-column: 1 / -1; font-size: 13px; }
    .pr2-rate { grid-template-columns: minmax(0, 1fr) 70px 44px; }
    .pr2-rate .pr2-small { display: none; }
}
