/* picks-v2 (15 Nov 2026, owner): the three picks on league pages, team pages and the match page's latest results.
   The picks line (partials/picks_line.blade.php) and the rows around it: the star, the status and the competition on a
   top line; the two teams and the score on their own line, the away team at the far right; the picks line under them. */
html {
    --pl-home: #2857d9; --pl-draw: #6b7690; --pl-away: #a86f0e; --pl-over: #128a64; --pl-btts: #6a4bd0;
    --pl-hit: #1a8c54; --pl-miss: #c2333a; --pl-amber: #a86f0e; --pl-live: #d92d20; --pl-muted: #667085; --pl-line: #e3e8ef;
    --pl-mkink: #ffffff; --pl-score: #eef2f8;
    --pl-m-hit: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.6 8.3l2.2 2.2 4.6-4.9'/%3E%3C/svg%3E");
    --pl-m-miss: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M5.4 5.4l5.2 5.2M10.6 5.4l-5.2 5.2'/%3E%3C/svg%3E");
}
html[data-theme="dark"] {
    --pl-home: #82a0ff; --pl-draw: #b8c1d1; --pl-away: #eaa73c; --pl-over: #45d19d; --pl-btts: #ae9bfb;
    --pl-hit: #3bbf7f; --pl-miss: #f0746a; --pl-amber: #eaa73c; --pl-live: #ff6b5f; --pl-muted: #aab7ca; --pl-line: #2a3850;
    --pl-mkink: #0b1220; --pl-score: #1a2740;
}

/* the picks line */
.sp-pl { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 10px; min-width: 0; }
.sp-pl-k { display: inline-flex; align-items: center; gap: 5px; }
.sp-pl-k.c-home { color: var(--pl-home); }
.sp-pl-k.c-draw { color: var(--pl-draw); }
.sp-pl-k.c-away { color: var(--pl-away); }
.sp-pl-k.c-over { color: var(--pl-over); }
.sp-pl-k.c-btts { color: var(--pl-btts); }
.sp-pl-k b { color: inherit; font-size: 12.5px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.sp-pl-k > i { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; }
.sp-pl-k > i::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sp-pl-k.is-hit > i::before { width: 100%; height: 100%; background: var(--pl-hit); }
.sp-pl-k.is-miss > i::before { width: 100%; height: 100%; background: var(--pl-miss); }
.sp-pl-k.is-hit > i::after,
.sp-pl-k.is-miss > i::after { content: ""; position: absolute; inset: 0; background: var(--pl-mkink); -webkit-mask: var(--pl-m-hit) center / 100% 100% no-repeat; mask: var(--pl-m-hit) center / 100% 100% no-repeat; }
.sp-pl-k.is-miss > i::after { -webkit-mask-image: var(--pl-m-miss); mask-image: var(--pl-m-miss); }
.sp-pl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp-pl-t,
.sp-pl-lv { display: inline-flex; align-items: baseline; gap: 5px; margin-left: 2px; padding-left: 10px; border-left: 1px solid var(--pl-line); white-space: nowrap; }
.sp-pl-t > span { color: var(--pl-muted); font-size: 12px; }
.sp-pl-t > b { font-size: 13.5px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sp-pl-t.h0 > b { color: var(--pl-miss); }
.sp-pl-t.h1 > b { color: var(--pl-amber); }
.sp-pl-t.h2 > b, .sp-pl-t.h3 > b { color: var(--pl-hit); }
.sp-pl-lv { align-items: center; color: var(--pl-live); font-size: 12px; font-weight: 700; }
.sp-pl-lv > i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* league and team pages: the match rows */
.ld-m.ld-m2 { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 10px; row-gap: 6px; }
.ld-m.ld-m2 > .ld-m-s { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.ld-m.ld-m2 > .ld-m-s > time, .ld-m.ld-m2 > .ld-m-s > span:not(.ld-m-c), .ld-m.ld-m2 > .ld-m-s > b { flex: none; }
.ld-m.ld-m2 .ld-m-c { grid-column: auto; display: inline-flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; font-weight: 500; font-size: 12px; color: var(--muted); }
.ld-m.ld-m2 .ld-m-c > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ld-m.ld-m2 > .ld-m-h { justify-content: flex-start; }
.ld-m.ld-m2 > .ld-m-a { justify-content: flex-end; text-align: right; }
.ld-m.ld-m2 > .ld-m-p,
.ld-m.ld-m2 > .ld-m-k,
.ld-m.ld-m2 > .sp-pl { grid-column: 1 / -1; }

/* the match page: latest results */
.fx-res.fx-res2 { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: 10px; row-gap: 6px; }
.fx-res.fx-res2 > .fx-res-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--pl-muted); font-size: 12.5px; }
.fx-res.fx-res2 > .fx-res-top > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fx-res.fx-res2 .wdl { flex: none; width: 22px; height: 22px; border-radius: 6px; font-size: 11.5px; }
.fx-res.fx-res2 > .fx-res-h,
.fx-res.fx-res2 > .fx-res-a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.fx-res.fx-res2 > .fx-res-a { text-align: right; }
.fx-res.fx-res2 > .sc { margin: 0; padding: 1px 8px; border-radius: 6px; background: var(--pl-score); font-weight: 800; font-variant-numeric: tabular-nums; }
.fx-res.fx-res2 > .sp-pl,
.fx-res.fx-res2 > .fx-pickchip { grid-column: 1 / -1; justify-self: end; }
.fx-res.fx-res2 .sp-st { position: relative; z-index: 1; }

/* narrow phones (360-399 px, longer words in es/pt/fr/it): tighter so the line stays on one line */
@media (max-width: 399px) {
    .sp-pl { column-gap: 7px; }
    .sp-pl-k { gap: 4px; }
    .sp-pl-k b { font-size: 12px; }
    .sp-pl-k > i { width: 13px; height: 13px; }
    .sp-pl-t, .sp-pl-lv { gap: 4px; margin-left: 0; padding-left: 7px; }
    .sp-pl-t > span { font-size: 11.5px; }
    .sp-pl-t > b { font-size: 13px; }
}
