/* v2 "floodlit scoreboard": dark stadium-night chrome + hero, light paper data
   area, scoreboard number tiles as the signature element, one self-hosted
   display face (Barlow Condensed 700, 15KB) for big numerals and headings.
   Bump ?v= in layout on change. */

@font-face {
  font-family: 'Score';
  src: url('/fonts/barlow-condensed-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f8f4;
  --ink: #17241d;
  --muted: #5c6b60;
  --line: #d9e0d7;
  --pitch: #1e7a46;
  --pitch-deep: #145a33;
  --night: #0f231a;
  --night-2: #163426;
  --floodlight: #eaf6ee;
  --amber: #f0b23e;
  --amber-deep: #7a5510;
  --flag: #e2574c;
  --draw: #c9d2cb;
  --away: #37516e;
  --card: #ffffff;
  --display: 'Score', 'Arial Narrow', -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
a { color: var(--pitch-deep); text-underline-offset: 2px; }
a:hover { color: var(--pitch); }
:focus-visible { outline: 2px solid var(--pitch); outline-offset: 2px; }
b, th { font-weight: 650; }
h1, h2 { line-height: 1.15; }
h1 { font-family: var(--display); font-size: 1.9rem; letter-spacing: 0.015em; text-transform: uppercase; margin: 0.2em 0; }
/* proper-noun headings (team/league/country names) keep their real casing:
   all-caps flattens brand casing and misbehaves across locales (tr i/İ, el accents) */
h1.entity { text-transform: none; }
h2 { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; margin: 1.8em 0 0.6em;
     padding-left: 10px; border-left: 4px solid var(--pitch); }
.h1-soft { color: var(--muted); }

/* SIGNATURE: scoreboard tiles — dark tiles mean REAL scores only. Predicted
   scores use the dashed ghost style so the two can never be confused. */
.tile { font-family: var(--display); background: var(--night); color: #fff;
  border-radius: 6px; padding: 1px 10px 3px; letter-spacing: 0.09em; display: inline-block;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.35); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tile-s { font-family: var(--display); background: var(--night); color: #fff; border-radius: 4px;
  padding: 0 7px 1px; font-size: 0.95rem; letter-spacing: 0.08em; display: inline-block;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.35); white-space: nowrap; }
.pred-score .score { font-family: var(--display); color: var(--ink);
  font-size: 1.15rem; letter-spacing: 0.09em; display: inline-block;
  font-variant-numeric: tabular-nums; white-space: nowrap; }
/* real (live/final) scores go pitch green; prediction tiles stay night */
.tile.real, .tile-s.real { background: var(--pitch-deep); }

/* chrome: stadium-night bands */
.site-head { background: linear-gradient(180deg, var(--night-2), var(--night)); border-bottom: 3px solid var(--pitch); }
.site-head .bar { display: flex; align-items: center; gap: 22px; padding: 13px 16px; flex-wrap: wrap; }
.brand { font-family: var(--display); font-size: 1.45rem; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; text-decoration: none; line-height: 1; }
.brand::first-letter { color: var(--amber); }
.site-nav { display: flex; gap: 4px; font-size: 0.88rem; }
.site-nav a { text-decoration: none; font-weight: 650; color: var(--floodlight); opacity: 0.85; padding: 5px 11px; border-radius: 15px; }
.site-nav a:hover { opacity: 1; background: rgba(255, 255, 255, 0.09); color: #fff; }
.site-foot { background: var(--night); margin-top: 48px; padding: 26px 0 36px; color: #9fb3a6; font-size: 0.85rem; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 12px; }
.foot-nav a { color: #c4d4c9; text-decoration: none; }
.foot-nav a:hover { color: #fff; text-decoration: underline; }
.site-foot p a { color: #c4d4c9; }
.site-foot p a:hover { color: #fff; }
main { padding-top: 16px; }

.byline { color: var(--muted); font-size: 0.85rem; margin: 2px 0 0; }
/* guides index: question-first cards */
.guide-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 16px; }
.guide-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; background: var(--card);
  border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); }
.guide-card:hover { border-color: var(--pitch); color: var(--ink); }
.guide-card b { font-size: 1.02rem; color: var(--pitch-deep); }
.guide-card span { font-size: 0.85rem; color: var(--muted); line-height: 1.45; }
.guide-card i { font-style: normal; font-size: 0.75rem; color: var(--muted); }
.foot-cols h3 a { color: inherit; text-decoration: none; }
.foot-cols h3 a:hover { color: #fff; }
.byline a { color: var(--muted); }
.byline a:hover { color: var(--pitch-deep); }
.crumbs { font-size: 0.8rem; color: var(--muted); margin: 4px 0 12px; }
.crumbs a { color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 650; color: var(--pitch-deep); margin: 0; }
.kickoff { color: var(--muted); font-size: 0.9rem; margin: 4px 0 0; }
.notice { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--muted); padding: 12px 14px; font-size: 0.95rem; }

/* prediction band */
.pred-band { display: flex; gap: 24px; align-items: stretch; background: var(--card); border: 1px solid var(--line); padding: 14px 16px; margin-top: 16px; flex-wrap: wrap; }
.pred-band .label, .corner-split span, .duo-legend, .tri-legend { font-variant-numeric: tabular-nums; }
.label { display: block; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.7rem; color: var(--muted); font-weight: 650; }
.pred-score .score { font-size: 2.6rem; }
.pred-score .score.score-flat { font-size: 1.15rem; }
.pred-cells { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.pred-cells b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.pick-badge { background: var(--pitch); color: #fff; padding: 2px 10px; border-radius: 4px; font-size: 0.95rem; }

/* 1x2 stacked bar */
.tri-bar { display: flex; height: 20px; border-radius: 10px; overflow: hidden; margin-top: 16px; background: var(--line);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12); }
.seg.home { background: var(--pitch); }
.seg.draw { background: var(--draw); }
.seg.away { background: var(--away); }
.tri-legend { display: flex; gap: 18px; font-size: 0.88rem; margin-top: 6px; flex-wrap: wrap; }
.tri-legend b { font-variant-numeric: tabular-nums; }
.tri-legend .is-pick { font-weight: 650; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; }
.dot.home { background: var(--pitch); }
.dot.draw { background: var(--draw); }
.dot.away { background: var(--away); }

/* neutral stat panel (match page corners block post general-pivot) */
.panel { background: var(--card); border: 1px solid var(--line); margin-top: 24px; padding: 4px 16px 16px; }
.panel h2 { margin-top: 12px; }
.panel .corner-split .total b { color: var(--pitch-deep); }
.panel .duo-bar .over { background: var(--pitch); }
.panel .duo-bar { background: var(--draw); }

/* SIGNATURE (corners pages only): corner panel with corner-flag striped crown */
.corner-panel { background: var(--card); border: 1px solid var(--line); border-top: 0; margin-top: 24px; padding: 0 16px 16px; }
.corner-panel::before { content: ""; display: block; height: 8px; margin: 0 -16px 12px;
  background: repeating-linear-gradient(-45deg, var(--flag) 0 12px, #fff 12px 24px); }
.corner-panel h2 { margin-top: 4px; color: var(--flag); }
.corner-split { display: flex; align-items: end; justify-content: space-between; gap: 12px; text-align: center; }
.corner-split .total { margin: 0 auto; }
.corner-split b { display: block; font-family: var(--display); font-size: 1.7rem; font-variant-numeric: tabular-nums; }
.corner-split .total b { font-size: 2.5rem; color: var(--flag); }
.corner-split span { display: block; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.corner-line { margin-top: 14px; font-size: 0.88rem; }
.duo-bar { height: 12px; border-radius: 4px; background: var(--away); overflow: hidden; margin-top: 6px; }
.duo-bar .over { display: block; height: 100%; background: var(--flag); }
.duo-legend { display: flex; justify-content: space-between; margin-top: 4px; }
.duo-legend .is-pick { font-weight: 650; }

/* tables */
.table-scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; background: var(--card); }
table.data th, table.data td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; }
table.data thead th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); border-bottom: 2px solid var(--ink); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
/* in-table links stay clean; underline only on hover */
table.data a { text-decoration: none; }
table.data a:hover { text-decoration: underline; }
table.data.compact { font-size: 0.85rem; }
.dim { color: var(--muted); }
table.data td.dim { white-space: nowrap; }
table.data td.t-sm { font-size: 0.78rem; }

/* League blocks: identical column grid across every table on the page.
   Fixed layout + explicit widths; the match column absorbs the remainder.
   Scoped to hub projection tables only — match-page sidebar tables must
   stay auto-width inside their narrow column. */
table.p-default, table.p-market, table.p-corners, table.p-finished {
  table-layout: fixed; min-width: 780px; width: 100%; }
table.p-default th:nth-child(1) { width: 92px; }
table.p-default th:nth-child(3) { width: 88px; }
table.p-default th:nth-child(4) { width: 84px; }
table.p-default th:nth-child(5) { width: 110px; }
table.p-default th:nth-child(6) { width: 96px; }
table.p-default th:nth-child(7) { width: 132px; }
table.p-default th:nth-child(8) { width: 78px; }
table.p-market th:nth-child(1) { width: 92px; }
table.p-market th:nth-child(3) { width: 70px; }
table.p-market th:nth-child(4) { width: 130px; }
table.p-market th:nth-child(5) { width: 90px; }
table.p-market th:nth-child(6) { width: 90px; }
table.p-market th:nth-child(7) { width: 90px; }
/* markets without a Line column (1x2/btts/dc/cs): columns shift left one slot */
table.p-market.no-line th:nth-child(3) { width: 130px; text-align: left; }
table.p-market.no-line th:nth-child(4) { width: 90px; text-align: right; }
/* correct score: extra "other likely scores" column in slot 4. Each alternative
   reads score-first: bold ink scoreline, small muted percentage tucked under it. */
table.p-market.no-line.has-scores th:nth-child(4) { width: 190px; text-align: left; }
td.cs-alt { white-space: nowrap; }
td.cs-alt .alt { display: inline-block; margin-right: 14px; text-align: center; }
td.cs-alt .alt:last-child { margin-right: 0; }
td.cs-alt .alt b { display: block; font-variant-numeric: tabular-nums; line-height: 1.2; }
td.cs-alt .alt i { display: block; font-style: normal; font-size: 0.7rem; color: var(--muted); line-height: 1.1; }
table.p-corners th:nth-child(1) { width: 92px; }
table.p-corners th:nth-child(3) { width: 110px; }
table.p-corners th:nth-child(4) { width: 64px; }
table.p-corners th:nth-child(5) { width: 80px; }
table.p-corners th:nth-child(6) { width: 100px; }
table.p-corners th:nth-child(7) { width: 90px; }
table.p-finished th:nth-child(1) { width: 92px; }
table.p-finished th:nth-child(3) { width: 90px; }
table.p-finished th:nth-child(4) { width: 130px; }
table.p-finished th:nth-child(5) { width: 80px; }

/* numeric-column headers align right, mirroring their .num cells */
table.p-default th:nth-child(3), table.p-default th:nth-child(5),
table.p-default th:nth-child(6), table.p-default th:nth-child(7), table.p-default th:nth-child(8),
table.p-market th:nth-child(3), table.p-market th:nth-child(5),
table.p-market th:nth-child(6), table.p-market th:nth-child(7),
table.p-corners th:nth-child(3), table.p-corners th:nth-child(4),
table.p-corners th:nth-child(5), table.p-corners th:nth-child(7),
table.p-finished th:nth-child(3) { text-align: right; }
/* header timezone picker (top-right): compact chip shows the offset; the real
   select sits transparent on top so tapping opens the native full-city list */
.tz-form { margin-left: auto; position: relative; font-size: 0.78rem; }
.tz-chip { display: inline-block; padding: 4px 10px; border: 1px solid #2c4a3a; border-radius: 14px;
  background: var(--night-2); color: #e6efe9; white-space: nowrap; line-height: 1.2; }
.tz-form select { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; font: inherit; }
.tz-form:focus-within .tz-chip { outline: 2px solid var(--amber); outline-offset: 1px; }
.tz-form button { font: inherit; margin-left: 6px; padding: 3px 10px; position: relative; }
/* sit right next to the tz picker: cancel most of the bar's 22px flex gap */
.lang-form { margin-left: -16px; }
.tz-chip img.lang-flag { width: 16px; height: 16px; vertical-align: -3px; border-radius: 2px; }
/* language dropdown: details/summary popover with flag + native-name links */
.lang-menu { position: relative; }
.lang-menu summary { cursor: pointer; list-style: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu[open] .tz-chip { outline: 2px solid var(--amber); outline-offset: 1px; }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; margin: 0; padding: 6px 0;
  list-style: none; min-width: 170px; max-height: 60vh; overflow-y: auto; background: var(--card);
  border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
.lang-list a { display: flex; align-items: center; gap: 8px; padding: 6px 14px; font-size: 0.85rem;
  color: var(--ink); text-decoration: none; white-space: nowrap; }
.lang-list a:hover { background: var(--paper); color: var(--pitch-deep); }
.lang-list a.is-cur { font-weight: 700; color: var(--pitch-deep); }
.lang-list img.lang-flag { flex: none; border-radius: 2px; }

/* footer columns: product links grouped, legal pinned to the bottom bar */
.foot-cols { display: flex; gap: 20px 56px; flex-wrap: wrap; margin-bottom: 18px; }
.foot-cols h3 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em;
  color: #7e948a; margin: 0 0 8px; font-weight: 800; }
.foot-col-nav { display: flex; flex-direction: column; gap: 6px; }
.foot-col-nav a { color: #c4d4c9; text-decoration: none; }
.foot-col-nav a:hover { color: #fff; text-decoration: underline; }

/* footer language links (crawlable switcher) */
.lang-nav { font-size: 0.8rem; gap: 4px 14px; border-top: 1px solid #234534; padding-top: 14px; }
.lang-nav .lang-cur { color: #fff; font-weight: 650; }

/* bottom legal bar */
.foot-legal { border-top: 1px solid #234534; padding-top: 14px; margin-top: 4px; }
.foot-legal .foot-nav { font-size: 0.8rem; margin-bottom: 8px; }
.foot-legal p { margin: 0; font-size: 0.78rem; color: #7e948a; }

/* mobile header: single line — smaller brand, short nav labels, tight chip */
.nav-short { display: none; }
@media (max-width: 640px) {
  .site-head .bar { flex-wrap: nowrap; gap: 10px; padding: 11px 12px; }
  .brand { font-size: 1.1rem; }
  .site-nav { gap: 0; font-size: 0.8rem; overflow-x: auto; scrollbar-width: none; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { padding: 4px 7px; white-space: nowrap; }
  .nav-long { display: none; }
  .nav-short { display: inline; }
  .tz-form { font-size: 0.72rem; }
  /* bar gap shrinks to 10px here — rescale the desktop -16px pull-in */
  .lang-form { margin-left: -4px; }
  .tz-chip { padding: 3px 8px; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* match status badges: LIVE = flag red, FT = neutral */
.badge-live, .badge-ft { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.06em;
  border-radius: 3px; padding: 1px 6px 2px; display: inline-block; vertical-align: 2px; white-space: nowrap; }
.badge-live { background: var(--flag); color: #fff; }
.badge-ft { background: var(--line); color: var(--muted); }
.match-status { margin: 8px 0 0; }
.match-status .ht-note { color: var(--muted); font-size: 0.85rem; margin-left: 6px; }
.live-stats { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 0 0; }
.live-stats b { font-variant-numeric: tabular-nums; font-size: 1.02rem; white-space: nowrap; }
.cardbox { display: inline-block; width: 9px; height: 12px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.cardbox.y { background: var(--amber); }
.cardbox.r { background: var(--flag); }

/* value = betting-slip amber highlight */
.value-chip { background: var(--amber); color: var(--night); font-size: 0.72rem; font-weight: 800;
  padding: 1px 8px 2px; border-radius: 10px; margin-left: 8px; white-space: nowrap; letter-spacing: 0.02em; }

/* form strips */
.form-row { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.form-row .team { flex: 0 0 40%; font-size: 0.88rem; font-weight: 650; }
.strip { display: flex; gap: 4px; }
.cell { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; font-style: normal; font-size: 0.72rem; font-weight: 800; color: #fff; }
.cell.w { background: var(--pitch); }
.cell.d { background: #9aa8a0; }
.cell.l { background: var(--flag); }

/* trends + faq */
.trends { padding-left: 18px; margin: 0; }
.trends li { margin: 6px 0; }
.faq dt { font-weight: 650; margin-top: 12px; }
.faq dd { margin: 4px 0 0; color: #2c3a31; }

/* layout: two columns on desktop */
.two-col { display: grid; gap: 0 40px; }
@media (min-width: 900px) {
  h1 { font-size: 1.9rem; }
  .two-col { grid-template-columns: 3fr 2fr; }
}

/* hub tabs */
.hub-intro { font-size: 0.88rem; margin: 10px 0 4px; }

.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 12px 0 4px; }
.tabs.sub { margin-top: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.tabs a { text-decoration: none; font-size: 0.85rem; font-weight: 650; color: var(--muted); padding: 5px 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); }
.tabs a:hover { color: var(--pitch-deep); border-color: var(--pitch); }
.tabs a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.league-block { margin-top: 22px; }
.league-h { margin: 0 0 6px; font-size: 0.9rem; border-left: 0; padding-left: 0; }
.league-h img.flag { width: 20px; height: 20px; vertical-align: -5px; margin-right: 7px; }
/* flat top/value list: league leads the row, TotalCorner-style. Flag and text
   sit in flex columns so wrapped league names align under the text, not the flag. */
.league-cell { max-width: 260px; min-width: 180px; }
table.data td.league-cell { padding: 7px 14px 7px 6px; }
.league-cell a { display: flex; align-items: flex-start; gap: 9px; color: var(--ink); text-decoration: none; }
.league-cell a:hover { color: var(--pitch-deep); text-decoration: underline; }
.league-cell img.flag { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.league-h a { color: var(--ink); text-decoration: none; }
.league-h a:hover { color: var(--pitch-deep); text-decoration: underline; }
.hit { color: var(--pitch); font-weight: 800; }
.miss { color: var(--flag); font-weight: 800; }
.lede { color: var(--muted); max-width: 640px; margin-top: -4px; }

.league-links { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; font-size: 0.92rem; }
.league-links a { text-decoration: none; font-weight: 650; }
.method-blurb { max-width: 680px; color: #2c3a31; }

/* home: full-bleed stadium band hero */
.home-hero { margin: -16px calc(50% - 50vw) 8px; padding: 52px calc(50vw - 50%) 46px;
  background: radial-gradient(ellipse 90% 120% at 50% -30%, var(--night-2) 0%, var(--night) 68%);
  color: var(--floodlight); max-width: none; }
.home-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); color: #fff; max-width: 720px; }
.home-hero p { max-width: 620px; color: #b9cbc0; }
.home-hero .btn { background: var(--amber); color: var(--night); font-weight: 800; }
.home-hero .btn:hover { background: #f6c463; color: var(--night); }
.home-hero .btn.ghost { background: transparent; color: var(--floodlight); border: 1px solid rgba(255, 255, 255, 0.45); }
.home-hero .btn.ghost:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
.btn { display: inline-block; background: var(--pitch); color: #fff; font-weight: 650; padding: 10px 18px; border-radius: 6px; text-decoration: none; }
.btn:hover { background: var(--pitch-deep); color: #fff; }
.btn.ghost { background: transparent; color: var(--pitch-deep); border: 1px solid var(--pitch); }
.btn.ghost:hover { background: var(--pitch); color: #fff; }

.mini-bar { display: inline-block; height: 10px; background: var(--flag); border-radius: 2px; min-width: 4px; }
.odds-cell { white-space: nowrap; letter-spacing: 0.02em; }
.odds-note { font-size: 0.78rem; margin-top: 6px; }
/* corner-count unit icon (corner flag) — mask so it inherits the cell's text color */
.ic-corner { display: inline-block; width: 10px; height: 11px; vertical-align: -1px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 0h1.3v12H3zM4.3 0l6.5 2.3-6.5 2.3z'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 0h1.3v12H3zM4.3 0l6.5 2.3-6.5 2.3z'/%3E%3C/svg%3E") no-repeat center / contain; }
.corner-links { font-size: 0.85rem; margin: 10px 0 0; }

/* reserved ad slots (future): zero CLS when ads launch */
.ad-slot { min-height: 250px; }
.ad-slot.leader { min-height: 90px; }
