/* Public match / league / day pages. Teal #2dd4bf on rgba(15,23,42,0.4) cards. */
body.seo-page #Content { margin-top: 84px !important; }

/* Matches the dashboard, which fills the viewport - 1200px looked narrow beside it.
   Text-heavy blocks keep a readable measure of their own (.sp-readable). */
.sp-wrap { width: min(96vw, 1600px); max-width: 1600px; margin: 0 auto; padding: 24px 16px 64px; color: #e2e8f0; }
.sp-summary p, .sp-card.sim-prose p, .sp-card.sim-prose li { max-width: 90ch; }
.sp-crumbs { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 18px; }
.sp-crumbs a { color: rgba(255,255,255,.65); text-decoration: none; }
.sp-crumbs a:hover { color: #2dd4bf; }
.sp-crumbs span { margin: 0 6px; }

.sp-card { background: rgba(15,23,42,.4); border: 1px solid rgba(255,255,255,.08); border-radius: 14px; padding: 20px; margin-bottom: 18px; }
.sp-card h2 { font-size: 17px; margin: 0 0 14px; color: #fff; font-weight: 700; }
.sp-card h3 { font-size: 14px; margin: 0 0 10px; color: rgba(255,255,255,.8); font-weight: 600; }

/* Match header */
.sp-hero { text-align: center; padding: 26px 18px; }
.sp-league { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.7); text-decoration: none; margin-bottom: 14px; }
.sp-league img { width: 22px; height: 22px; object-fit: contain; }
.sp-hero h1 { font-size: clamp(22px, 3.4vw, 32px); margin: 0 0 18px; color: #fff; line-height: 1.25; }
.sp-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.sp-team { display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 600; }
.sp-team img { width: 64px; height: 64px; object-fit: contain; }
.sp-mid { font-family: var(--font-mono, monospace); }
.sp-score { font-size: 38px; font-weight: 800; color: #fff; }
.sp-vs { font-size: 16px; color: rgba(255,255,255,.5); }
.sp-when { margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.7); }
.sp-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(45,212,191,.12); color: #2dd4bf; margin-top: 8px; }

.sp-summary p { margin: 0 0 10px; line-height: 1.7; color: rgba(226,232,240,.85); }

/* Locked pick */
.sp-lock { position: relative; overflow: hidden; border-color: rgba(45,212,191,.35); background: linear-gradient(135deg, rgba(45,212,191,.08), rgba(15,23,42,.5)); }
.sp-lock-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.sp-lock-icon { font-size: 34px; }
.sp-lock-text { flex: 1 1 260px; }
.sp-lock-text strong { display: block; color: #fff; font-size: 16px; margin-bottom: 4px; }
.sp-lock-text span { color: rgba(226,232,240,.7); font-size: 14px; }
.sp-btn { display: inline-block; padding: 10px 18px; border-radius: 10px; background: #2dd4bf; color: #0f172a; font-weight: 700; text-decoration: none; }
.sp-btn:hover { background: #5eead4; color: #0f172a; }
.sp-btn-ghost { background: rgba(255,255,255,.06); color: #e2e8f0; margin-left: 8px; }
.sp-btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Two-column team blocks */
.sp-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .sp-grid2 { grid-template-columns: 1fr; } }

.sp-form { display: flex; gap: 5px; margin-bottom: 10px; }
.sp-f { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #0f172a; }
.sp-f-W { background: #10b981; } .sp-f-R { background: #94a3b8; } .sp-f-P { background: #f87171; }

.sp-list { list-style: none; margin: 0; padding: 0; }
.sp-list li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.05); font-size: 14px; }
.sp-list li:last-child { border-bottom: 0; }
.sp-list a { color: rgba(226,232,240,.9); text-decoration: none; }
.sp-list a:hover { color: #2dd4bf; }
.sp-muted { color: rgba(255,255,255,.45); font-size: 13px; }
.sp-mono { font-family: var(--font-mono, monospace); font-variant-numeric: tabular-nums; }

.sp-stats { width: 100%; border-collapse: collapse; font-size: 14px; }
.sp-stats th, .sp-stats td { padding: 8px 6px; border-bottom: 1px solid rgba(255,255,255,.06); text-align: center; }
.sp-stats td:first-child, .sp-stats th:first-child { text-align: left; color: rgba(226,232,240,.7); }
.sp-stats th { color: #fff; font-weight: 700; }

.sp-odds { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.sp-odd { background: rgba(255,255,255,.04); border-radius: 10px; padding: 10px 12px; }
.sp-odd div:first-child { font-size: 12px; color: rgba(255,255,255,.55); margin-bottom: 4px; }
.sp-odd div:last-child { font-family: var(--font-mono, monospace); font-size: 15px; color: #fff; }

.sp-out li span:first-child::before { content: "🚑 "; }
.sp-out li.sp-ban span:first-child::before { content: "🟨 "; }

/* League / day lists: one row per match, teams stacked like a live-score site. */
.sp-fixture {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  text-decoration: none;
  color: #e2e8f0;
  border-radius: 8px;
}
.sp-fixture:hover { background: rgba(45,212,191,.07); }
.sp-fixture .tm {
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  color: rgba(255,255,255,.5);
  text-align: center;
  line-height: 1.3;
}
.sp-fixture .sides { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sp-fixture .side { display: grid; grid-template-columns: 20px minmax(0, 1fr) 22px; align-items: center; gap: 8px; }
.sp-fixture .side img { width: 20px; height: 20px; object-fit: contain; }
.sp-fixture .side b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-fixture .side .g { font-family: var(--font-mono, monospace); font-weight: 700; text-align: right; color: #fff; }
.sp-fixture .side.dim b, .sp-fixture .side.dim .g { color: rgba(255,255,255,.55); }
.sp-fixture .go { color: rgba(255,255,255,.25); text-align: right; font-size: 16px; }
.sp-fixture:hover .go { color: #2dd4bf; }
.sp-day { font-size: 12px; font-weight: 700; color: #2dd4bf; text-transform: capitalize; margin: 14px 0 4px; letter-spacing: .03em; }
.sp-live { color: #f87171; font-weight: 700; }
.sp-league-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sp-league-head img { width: 24px; height: 24px; object-fit: contain; }
.sp-league-head a { color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; }
.sp-league-head a:hover { color: #2dd4bf; }
.sp-league-head span { color: rgba(255,255,255,.4); font-size: 12px; }
@media (max-width: 560px) {
  .sp-fixture { grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 6px; padding: 6px 2px; }
  .sp-fixture .side b { font-size: 13px; }
}
.sp-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.sp-tabs a { padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.06); color: #e2e8f0; text-decoration: none; font-size: 14px; }
.sp-tabs a.on { background: #2dd4bf; color: #0f172a; font-weight: 700; }

/* Long-form articles: a readable measure, and headings that separate sections properly. */
/* One centred column for everything in an article - prose, tables and figures share the
   same edges - and the prose is justified with hyphenation so both margins stay flush
   without the word gaps justification produces in Polish otherwise. */
.sp-article { color: rgba(226,232,240,.88); line-height: 1.75; font-size: 16px; }
.sp-article > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
.sp-article > p, .sp-article > ul, .sp-article > ol {
  text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto; }
.sp-article > blockquote p { text-align: justify; hyphens: auto; }
.sp-article > .rb-table, .sp-article > .sp-figure, .sp-article > .sp-tiles { width: 100%; }
.sp-article h2 { font-size: 22px; color: #fff; margin: 30px auto 12px; font-weight: 700; }
.sp-article h3 { font-size: 17px; color: rgba(255,255,255,.9); margin: 22px auto 8px; font-weight: 600; }
.sp-article p { margin: 0 auto 14px; }
.sp-article ul, .sp-article ol { margin: 0 auto 16px; padding-left: 22px; }
.sp-article li { margin-bottom: 6px; }
.sp-article a { color: #2dd4bf; }
.sp-article strong { color: #fff; }
.sp-article blockquote { margin: 18px auto; padding: 12px 18px; border-left: 3px solid #2dd4bf;
                         background: rgba(45,212,191,.06); color: rgba(226,232,240,.92); }
.sp-article table { width: 100%; border-collapse: collapse; margin: 20px auto; font-size: 15px;
                    border: 1px solid rgba(255,255,255,.12); border-radius: 12px; overflow: hidden; }
.sp-article thead th, .sp-article tr:first-child th { background: rgba(255,255,255,.055); }
.sp-article th, .sp-article td { padding: 9px 8px; border-bottom: 1px solid rgba(255,255,255,.08); text-align: left; }
.sp-article th { color: #fff; font-weight: 700; }
.sp-article td:nth-child(n+2), .sp-article th:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; }
.sp-figure { margin: 22px auto; padding: 18px 14px; border-radius: 14px;
             background: rgba(15,23,42,.55); border: 1px solid rgba(255,255,255,.07); }
.sp-figure svg { display: block; }

/* Headline numbers: some findings are a number, not a chart. */
.sp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 22px auto; }
.sp-tile { background: rgba(15,23,42,.6); border: 1px solid rgba(255,255,255,.08);
           border-radius: 14px; padding: 16px 18px; }
.sp-tile-k { font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
             color: rgba(226,232,240,.5); font-weight: 700; }
.sp-tile-v { font-size: 34px; font-weight: 800; line-height: 1.1; margin: 8px 0 4px;
             font-variant-numeric: tabular-nums; }
.sp-tile-n { font-size: 13px; color: rgba(226,232,240,.6); }

/* Table as a component: a header strip, a real thead, and rows that become cards on a
   phone. Rows without an outline read as loose text on a dark page, which is exactly how
   the first version looked. */
.rb-table { margin: 24px auto; border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
            background: rgba(15,23,42,.62); overflow: hidden; }
.rb-table__head { display: flex; align-items: center; gap: 14px; padding: 16px 18px;
                  border-bottom: 1px solid rgba(255,255,255,.12);
                  background: linear-gradient(180deg, rgba(45,212,191,.07), transparent); }
.rb-table__icon { width: 42px; height: 42px; border-radius: 12px; display: grid;
                  place-items: center; font-size: 20px; flex: 0 0 auto;
                  background: rgba(45,212,191,.12); border: 1px solid rgba(45,212,191,.22); }
.rb-table__title { font-size: 16px; font-weight: 700; color: #fff; }
.rb-table__sub { font-size: 13px; color: rgba(226,232,240,.6); margin-top: 2px; }
.rb-table__wrap { overflow-x: auto; }
.rb-table table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 620px; }
.rb-table th { text-align: left; font-size: 11px; letter-spacing: .07em; text-transform: uppercase;
               color: rgba(226,232,240,.62); font-weight: 700; padding: 12px 14px;
               background: rgba(255,255,255,.04); border-bottom: 1px solid rgba(255,255,255,.1); }
.rb-table th.num { text-align: right; }
.rb-table td { padding: 14px; border-bottom: 1px solid rgba(255,255,255,.07); vertical-align: middle; }
.rb-table tbody tr:last-child td { border-bottom: 0; }
.rb-table tbody tr:nth-child(even) td { background: rgba(255,255,255,.028); }
.rb-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.rb-strong { display: block; color: #fff; font-weight: 600; }
.rb-sub { display: block; font-size: 12px; color: rgba(226,232,240,.5); margin-top: 2px; }
.rb-table .bar-cell { position: relative; min-width: 240px; }
.rb-table .bar { position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
                 height: 22px; border-radius: 5px; opacity: .9; }
.rb-table .thr { position: absolute; top: 50%; transform: translateY(-50%);
                 width: 2px; height: 30px; background: rgba(255,255,255,.9); }
.rb-table .v { position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
               font-weight: 700; color: #fff; }
.rb-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px;
            border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.rb-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rb-badge--good { background: rgba(52,211,153,.14); color: #34d399; border: 1px solid rgba(52,211,153,.3); }
.rb-badge--bad { background: rgba(251,113,133,.12); color: #fb7185; border: 1px solid rgba(251,113,133,.28); }

/* Phone: every row becomes its own card and each cell keeps its column name. */
@media (max-width: 680px) {
  .rb-table table, .rb-table tbody, .rb-table tr, .rb-table td { display: block; width: 100%; }
  .rb-table table { min-width: 0; }
  .rb-table thead { display: none; }
  .rb-table tbody tr { border-bottom: 1px solid rgba(255,255,255,.1); padding: 6px 0; }
  .rb-table tbody tr:last-child { border-bottom: 0; }
  .rb-table td, .rb-table tbody tr:nth-child(even) td { background: transparent;
      border-bottom: 0; display: flex; align-items: center; justify-content: space-between;
      gap: 14px; padding: 9px 14px; text-align: right; }
  .rb-table td::before { content: attr(data-label); font-size: 11px; letter-spacing: .06em;
      text-transform: uppercase; color: rgba(226,232,240,.5); font-weight: 700;
      text-align: left; flex: 0 0 auto; }
  .rb-table .bar-cell { min-width: 0; padding-right: 14px; }
  .rb-table .bar, .rb-table .thr { display: none; }
  .rb-table .v { position: static; transform: none; }
  .rb-strong, .rb-sub { text-align: right; }
}

/* Tables where the bar carries the magnitude, so a row is read at a glance.
   The whole thing sits in a bordered card: without an outline on a dark page the rows
   read as loose text rather than as a table. */
.sp-rich-wrap { overflow-x: auto; margin: 22px 0; border: 1px solid rgba(255,255,255,.12);
                border-radius: 14px; background: rgba(15,23,42,.6); }
.sp-rich { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.sp-rich th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
              color: rgba(226,232,240,.75); font-weight: 700; padding: 13px 14px;
              background: rgba(255,255,255,.055); border-bottom: 1px solid rgba(255,255,255,.14); }
.sp-rich th:not(:first-child) { text-align: right; }
.sp-rich td { padding: 14px; border-bottom: 1px solid rgba(255,255,255,.07); vertical-align: middle; }
.sp-rich tr:last-child td { border-bottom: 0; }
.sp-rich tr:nth-child(even) td { background: rgba(255,255,255,.03); }
.sp-rich td.num { text-align: right; font-variant-numeric: tabular-nums; }
.sp-rich td strong { color: #fff; font-weight: 600; }
.sp-rich .bar-cell { position: relative; min-width: 230px; }
.sp-rich .bar { position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
                height: 22px; border-radius: 4px; opacity: .9; }
.sp-rich .thr { position: absolute; top: 50%; transform: translateY(-50%);
                width: 2px; height: 30px; background: rgba(255,255,255,.9); }
.sp-rich .v { position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
              font-weight: 700; color: #fff; }

/* The article head shares the body's centred column so the title, lead and first
   paragraph line up on the same left and right edges. */
.rb-article > .rb-article__meta, .rb-article > .rb-article__title,
.rb-article > .rb-article__lead { max-width: 1040px; margin-left: auto; margin-right: auto; }
.rb-article__meta { font-size: 13px; color: rgba(255,255,255,.45); }
.rb-article__title { font-size: clamp(24px, 3.6vw, 36px); margin-top: 10px; margin-bottom: 18px;
                     color: #fff; line-height: 1.25; }
.rb-article__lead { font-size: 18px; color: rgba(226,232,240,.92); line-height: 1.7;
                    text-align: justify; hyphens: auto; -webkit-hyphens: auto; margin-bottom: 8px; }

/* The article head was a title floating straight into the body text. Give it its own
   block: an accent rule above the date, a heavier title, and a divider before the lead. */
.rb-article { padding-top: 28px; }
.rb-article__meta { display: flex; align-items: center; gap: 10px;
                    max-width: 1040px; margin-left: auto; margin-right: auto;
                    font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
                    color: rgba(226,232,240,.5); font-weight: 700; }
.rb-article__meta::before { content: ""; width: 26px; height: 2px; background: #2dd4bf;
                            border-radius: 2px; }
.rb-article__title { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800;
                     letter-spacing: -.015em; margin-top: 14px; margin-bottom: 20px; }
.rb-article__lead { font-size: 19px; color: rgba(226,232,240,.95); line-height: 1.65;
                    padding-bottom: 24px; margin-bottom: 26px;
                    border-bottom: 1px solid rgba(255,255,255,.1); }
.sp-article > h2 { padding-top: 10px; margin-top: 38px; border-top: 1px solid rgba(255,255,255,.07); }
.sp-article > h2:first-child { border-top: 0; margin-top: 0; }

/* Hero image and list thumbnails. Cached locally from Pexels - licensed for commercial
   use, credited anyway. */
.rb-hero { max-width: 1040px; margin: 0 auto 26px; border-radius: 14px; overflow: hidden;
           border: 1px solid rgba(255,255,255,.1); }
.rb-hero img { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; }
.rb-hero figcaption { padding: 8px 12px; font-size: 12px; color: rgba(226,232,240,.45);
                      background: rgba(15,23,42,.6); }
.rb-card { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 20px;
           text-decoration: none; align-items: center; }
.rb-card__thumb { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); }
.rb-card__thumb img { display: block; width: 100%; height: 100%; aspect-ratio: 16/10; object-fit: cover; }
@media (max-width: 680px) { .rb-card { grid-template-columns: 1fr; } }

/* Lists need their markers back - the global reset strips them. */
.sp-article ul { list-style: none; padding-left: 4px; }
.sp-article ul > li { position: relative; padding-left: 24px; }
.sp-article ul > li::before { content: ""; position: absolute; left: 4px; top: 12px;
                              width: 7px; height: 7px; border-radius: 50%; background: #2dd4bf; }
.sp-article ol { list-style: none; counter-reset: rb; padding-left: 4px; }
.sp-article ol > li { position: relative; padding-left: 34px; counter-increment: rb; }
.sp-article ol > li::before { content: counter(rb); position: absolute; left: 0; top: 2px;
    width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center;
    font-size: 12px; font-weight: 800; color: #2dd4bf;
    background: rgba(45,212,191,.12); border: 1px solid rgba(45,212,191,.25); }
.rb-card--pinned { border-color: rgba(45,212,191,.28);
                   background: linear-gradient(135deg, rgba(45,212,191,.06), rgba(15,23,42,.4)); }
.rb-card__label { display: inline-block; padding: 4px 10px; border-radius: 999px;
                  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
                  font-weight: 800; color: #2dd4bf; background: rgba(45,212,191,.12);
                  border: 1px solid rgba(45,212,191,.25); }

/* ---------------------------------------------------------------------------
   Match analyses: a lit background, and nothing else.
   Only the backdrop is ours here - the container widths, cards, tables and
   headings stay exactly as the rest of the site renders them.
   --------------------------------------------------------------------------- */
.ma-page { position: relative; }
.ma-page::before,
.ma-page::after {
    content: ""; position: fixed; z-index: -2; pointer-events: none;
    border-radius: 50%; filter: blur(90px);
}
.ma-page::before {
    top: -160px; left: -140px; width: 620px; height: 620px;
    background: radial-gradient(circle, rgba(45,212,191,.20), rgba(45,212,191,0) 68%);
}
.ma-page::after {
    right: -180px; bottom: -220px; width: 720px; height: 720px;
    background: radial-gradient(circle, rgba(234,88,12,.14), rgba(234,88,12,0) 70%);
}
/* A grid, not a texture: 1px lines at 5.5% keep it behind the content. */
.ma-page .ma-grid {
    position: fixed; inset: 0; z-index: -3; pointer-events: none;
    background-image: linear-gradient(rgba(148,163,184,.055) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(148,163,184,.055) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
@media (max-width: 900px) {
    .ma-page::before { width: 360px; height: 360px; top: -120px; left: -120px; }
    .ma-page::after { width: 420px; height: 420px; }
    .ma-page .ma-grid { background-size: 38px 38px; }
}
