/* ================= Server-rendered SEO pages ================= */
.seo-page .btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.seo-main { max-width: 980px; margin: 1.2rem auto 2rem; padding: 0 16px; }
.seo-main h1 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); margin: .3rem 0 .5rem; }
.seo-main h2 { font-size: 1.15rem; }
.crumbs { font-size: .82rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.lead { color: var(--muted); font-size: 1.02rem; max-width: 46rem; line-height: 1.6; }
.league-links { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0 1.2rem; }
.league-links .chip { text-decoration: none; }
.seo-group h2 { margin: 1.4rem 0 .6rem; }

.seo-match {
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr) minmax(9rem, 13rem) 8.5rem; gap: .9rem; align-items: center;
  padding: .75rem 1rem; margin-bottom: .45rem; border-radius: 12px; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
}
.seo-match:hover { border-color: var(--border-strong, var(--accent)); }
.sm-time { display: flex; flex-direction: column; font-size: .78rem; color: var(--muted); }
.sm-time b { color: var(--text); font-size: .9rem; }
.sm-teams { display: flex; flex-direction: column; min-width: 0; }
.sm-teams b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sm-nums { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: .25rem; font-variant-numeric: tabular-nums; }
.sm-tip { display: flex; flex-direction: column; font-weight: 700; font-size: .85rem; }
.sm-tip small { font-weight: 500; color: var(--muted); font-size: .7rem; }

.prob-bar { display: block; width: 100%; height: 10px; border-radius: 5px; overflow: hidden; }
.pb-home { fill: #22c55e; background: #22c55e; }
.pb-draw { fill: #94a3b8; background: #94a3b8; }
.pb-away { fill: #60a5fa; background: #60a5fa; }
.prediction-card .prob-bar { height: 14px; margin: .6rem 0 .4rem; }
.prob-legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .9rem; }
.prob-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .5rem; margin: 1rem 0; }
.kpis > div, .odds-row > div {
  display: flex; flex-direction: column; padding: .65rem .8rem; border-radius: 10px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--border);
}
.kpis small, .odds-row small { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.kpis b { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.kpis span { color: var(--muted); font-size: .78rem; }
.odds-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: .4rem; margin: .5rem 0 1rem; }
.odds-row b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.odds-row small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cta { margin: .3rem .3rem .3rem 0; padding: .7rem 1.2rem; font-weight: 800; }

.result-card .final { font-size: 1.3rem; }
.result-card .final b { font-size: 1.6rem; margin: 0 .4rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-block h3 { font-size: .95rem; margin-bottom: .4rem; }
.form-list, .h2h { list-style: none; margin: 0; padding: 0; }
.form-list li { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) auto; gap: .5rem; align-items: center; padding: .3rem 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.form-list li span:nth-child(2) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr { width: 1.4rem; height: 1.4rem; border-radius: 5px; display: grid; place-items: center; font-size: .72rem; font-weight: 800; }
.fr-W { background: rgba(34, 197, 94, .2); color: #4ade80; }
.fr-D { background: rgba(148, 163, 184, .2); color: #cbd5e1; }
.fr-L { background: rgba(248, 113, 113, .2); color: #f87171; }
.h2h li { display: grid; grid-template-columns: 6rem minmax(0, 1fr) auto minmax(0, 1fr); gap: .6rem; padding: .35rem 0; border-bottom: 1px solid var(--border); align-items: center; }
.h2h li span:last-child { text-align: right; }

.seo-faq details, .seo-faq-home details { border-bottom: 1px solid var(--border); padding: .6rem 0; }
.seo-faq summary, .seo-faq-home summary { cursor: pointer; font-weight: 700; }
.seo-faq p, .seo-faq-home p { color: var(--muted); margin: .45rem 0 0; }
.seo-text { line-height: 1.65; }
.seo-text ol { padding-left: 1.2rem; }

.hero-seo { padding: 1.5rem 0 .5rem; }
.hero-seo h1 { max-width: 40rem; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; margin: 1.2rem 0; }
.feature-grid .card { margin: 0; }
.feature-grid h2 { font-size: 1rem; }
.feature-grid p { color: var(--muted); margin: 0; line-height: 1.55; }

/* Text block on the home page (visible to players and search engines). */
.seo-home { max-width: 1200px; margin: 2rem auto 0; padding: 0 16px; color: var(--muted); line-height: 1.65; }
.seo-home h2 { color: var(--text); font-size: 1.1rem; }
.seo-home a { color: var(--accent-strong); }

@media (max-width: 720px) {
  .seo-match { grid-template-columns: minmax(0, 1fr) auto; }
  .sm-time { grid-column: 1 / -1; flex-direction: row; gap: .5rem; }
  .sm-probs { grid-column: 1 / -1; grid-row: 3; }
  .form-grid { grid-template-columns: 1fr; }
  .h2h li { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .h2h li span:first-child { display: none; }
}
