/* Sport predictions (/proqnozlar, /ru/prognozi): pd-* — the list of the day (a row a match), the share that came
   true, the match page's card and facts. Colours from the site's own variables, so light and dark follow body.dark. */
.pd { --pd-won: #12924F; --pd-lost: #E0452B; --pd-void: #8A9099; --pd-bar: #E4E6EA; --pd-soft: var(--menu-hover-bg-color); --pd-line: var(--tag-border-color); --pd-accent: var(--main-blue-color); color: var(--main-color); padding-bottom: 24px; }
body.dark .pd { --pd-won: #3DBE77; --pd-lost: #FF6A52; --pd-void: #6E7682; --pd-bar: #3A4550; --pd-soft: #2B3640; --pd-line: #3A4550; }

.pd-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; font-size: 13px; color: #88909d; }
.pd-crumbs a { color: inherit; }
.pd-crumbs a:hover { color: var(--pd-accent); }
.pd-crumbs [aria-current] { color: var(--main-color); }
.pd-head { margin: 10px 0 6px; }
.pd-head h1 { font-size: 30px; line-height: 1.15; }
.pd-lead { margin: 0 0 16px; max-width: 760px; font-size: 16px; line-height: 1.55; color: #88909d; }

.pd-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 20px; }
.pd-chips::-webkit-scrollbar { display: none; }
.pd-chips a { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--pd-line); border-radius: 6px; font-size: 14px; font-weight: 700; color: var(--main-color); white-space: nowrap; }
.pd-chips a:hover { border-color: var(--pd-accent); color: var(--pd-accent); }
.pd-chips a.is-active { background: var(--pd-accent); border-color: var(--pd-accent); color: #FFFFFF; }
.pd-chips small { font-size: 12px; opacity: .7; }

/* the share that came true */
.pd-stats { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 20px 24px; border-radius: 8px; background: var(--header-bg-color); border: 1px solid var(--pd-line); margin-bottom: 24px; }
.pd-stats-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pd-stats-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pd-accent); }
.pd-stats strong { font-size: 24px; line-height: 1.2; }
.pd-stats-text { font-size: 14px; color: #88909d; }
.pd-stats dl { display: flex; margin: 0; }
.pd-stats dl div { padding: 0 20px; border-left: 1px solid var(--pd-line); }
.pd-stats dt { font-size: 28px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.pd-stats dd { margin: 6px 0 0; font-size: 13px; color: #88909d; }

.pd-alert { padding: 12px 16px; border-left: 3px solid #F5A524; border-radius: 4px; background: var(--pd-soft); font-size: 14px; }
.pd-block { margin-top: 28px; }
.pd-block-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 10px; }
.pd-block-head h2 { margin: 0; font-size: 22px; }
.pd-block-head a { font-size: 14px; font-weight: 700; color: var(--pd-accent); }
.pd-day { margin: 18px 0 8px; font-size: 16px; }
.pd-day small { margin-left: 8px; font-size: 14px; font-weight: 600; color: #88909d; }
.pd-note { margin: 10px 0 0; font-size: 14px; line-height: 1.55; color: #88909d; }

/* the list: a row a match */
.pd-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--pd-line); }
.pd-item { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.15fr) 96px; align-items: center; gap: 8px 24px; padding: 14px 8px; border-bottom: 1px solid var(--pd-line); color: var(--main-color); transition: background .15s; }
.pd-item:hover { background: var(--pd-soft); color: var(--main-color); }
.pd-when { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pd-when time { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.pd-when small { font-size: 12px; font-weight: 700; line-height: 1.35; letter-spacing: .02em; text-transform: uppercase; color: #88909d; }
.pd-match { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pd-team { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 10px; font-size: 16px; line-height: 1.25; }
.pd-team img, .pd-team i { width: 22px; height: 22px; object-fit: contain; }
.pd-team img.is-flag { height: 15px; object-fit: cover; border: 1px solid var(--pd-line); }
.pd-team b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-team em { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; }
.pd-bet { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pd-bet span { font-size: 15px; font-weight: 600; line-height: 1.3; }
.pd-code { flex: none; min-width: 58px; padding: 6px 8px; border-radius: 6px; background: var(--pd-accent); color: #FFFFFF; font-size: 15px; font-weight: 800; text-align: center; white-space: nowrap; }
.pd-p { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pd-p b { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.pd-p i { display: block; width: 72px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--pd-accent) var(--p), var(--pd-bar) var(--p)); }
.pd-verdict { font-size: 14px; font-weight: 800; white-space: nowrap; color: var(--pd-void); }
.pd-item.is-won .pd-verdict { color: var(--pd-won); }
.pd-item.is-lost .pd-verdict { color: var(--pd-lost); }
.pd-item.is-won { box-shadow: inset 3px 0 0 var(--pd-won); }
.pd-item.is-lost { box-shadow: inset 3px 0 0 var(--pd-lost); }
.pd-item.is-live .pd-when time { color: var(--pd-accent); }

.pd-method { max-width: 820px; margin-top: 28px; border-top: 1px solid var(--pd-line); border-bottom: 1px solid var(--pd-line); }
.pd-method summary { padding: 14px 0; font-weight: 800; font-size: 17px; cursor: pointer; }
.pd-method ol { margin: 0 0 16px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.55; }
.pd-disclaimer { max-width: 820px; }

/* the match page */
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.pd-main { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
@media (min-width: 1024px) {
    .pd-main { position: sticky; top: 90px; }
}
.pd-card { display: flex; flex-direction: column; gap: 16px; padding: 22px 24px 18px; border: 1px solid var(--pd-line); border-top: 4px solid var(--pd-accent); border-radius: 8px; background: var(--header-bg-color); }
.pd-card.is-won { border-top-color: var(--pd-won); }
.pd-card.is-lost { border-top-color: var(--pd-lost); }
.pd-card.is-void { border-top-color: var(--pd-void); }
.pd-card-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; text-transform: uppercase; color: #88909d; }
.pd-card-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; }
.pd-side { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 20px; line-height: 1.25; }
.pd-side b { overflow-wrap: break-word; }
.pd-side.is-away { justify-content: flex-end; text-align: right; }
.pd-side img { width: 40px; height: 40px; flex: none; object-fit: contain; }
.pd-side img.is-flag { width: 32px; height: 22px; object-fit: cover; border: 1px solid var(--pd-line); }
.pd-card-score { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; color: #88909d; }
.pd-card.is-won .pd-card-score, .pd-card.is-lost .pd-card-score { color: var(--main-color); }
.pd-card-pick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 6px; background: var(--pd-soft); }
.pd-card-pick > span:not(.pd-p) { font-size: 16px; font-weight: 700; line-height: 1.3; }
.pd-card-text { margin: 0; font-size: 17px; line-height: 1.6; }
.pd-card-state { font-size: 14px; font-weight: 700; color: #88909d; }
.pd-card.is-won .pd-card-state { color: var(--pd-won); }
.pd-card.is-lost .pd-card-state { color: var(--pd-lost); }
.pd-card.is-live .pd-card-state { color: var(--pd-accent); }

.pd-facts { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pd-facts h2 { margin: 0; font-size: 20px; }
.pd-facts h3 { margin: 8px 0 0; font-size: 16px; }
.pd-form { display: flex; flex-direction: column; gap: 6px; }
.pd-form ol { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.pd-form li { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 13px; font-weight: 800; color: #FFFFFF; background: var(--pd-void); cursor: default; }
.pd-form li.is-w { background: var(--pd-won); }
.pd-form li.is-l { background: var(--pd-lost); }
.pd-form small { font-size: 13px; line-height: 1.45; color: #88909d; }
.pd-dl { margin: 0; }
.pd-dl div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--pd-line); font-size: 15px; }
.pd-dl dt { font-weight: 400; color: #88909d; }
.pd-dl dd { margin: 0; font-weight: 700; }
.pd-h2h { margin: 0; padding: 0; list-style: none; }
.pd-h2h li { display: grid; grid-template-columns: 96px minmax(0, 1fr) 52px minmax(0, 1fr); align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--pd-line); font-size: 14px; }
.pd-h2h time { color: #88909d; font-variant-numeric: tabular-nums; }
.pd-h2h span:nth-of-type(1) { text-align: right; }
.pd-h2h b { text-align: center; font-variant-numeric: tabular-nums; }

@media (max-width: 1023px) {
    .pd-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
    .pd-head h1 { font-size: 24px; }
    .pd-stats { padding: 16px; }
    .pd-stats strong { font-size: 20px; }
    .pd-stats dl { width: 100%; }
    .pd-stats dl div { flex: 1; padding: 0 12px; }
    .pd-stats dl div:first-child { padding-left: 0; border-left: 0; }
    .pd-item { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "when when" "match p" "bet bet"; gap: 10px 16px; padding: 14px 4px; }
    .pd-when { grid-area: when; flex-direction: row; align-items: baseline; gap: 10px; }
    .pd-match { grid-area: match; }
    .pd-p { grid-area: p; }
    .pd-bet { grid-area: bet; }
    .pd-bet span { font-size: 14px; }
    .pd-card { padding: 18px 16px 16px; }
    .pd-side { font-size: 17px; }
    .pd-card-pick { grid-template-columns: auto minmax(0, 1fr); }
    .pd-card-pick .pd-p { grid-column: 1 / -1; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 10px; }
    .pd-card-pick .pd-p i { flex: 1; max-width: 160px; }
    .pd-h2h li { grid-template-columns: 74px minmax(0, 1fr) 40px minmax(0, 1fr); font-size: 13px; }
}
