Match modules
Scoreboard, match rows, timeline, pitch, ratings, players, leaderboard, predictions, mood meter, form / H2H and charts. Copy the markup from this page’s source; classes, modifiers and JS hooks are documented in system-match.md.
Scoreboard
The signature piece: ink island, white digits, only the live minute / countdown seconds accented. One skeleton for Home hero, Match-center header and compact headers; the centre slot swaps by state.
Hero · follows the Match state
Root .scoreboard.on-dark + data-follow: JS mirrors <html data-match> into data-state (switch it in the Prototype panel). Parts carry data-for="pre|live|ft" (space list) and show only in those states. Wrap in <section class="app-hero"> on Home / Match center. Names switch full → code below 1100px of container width.
Paris Saint-GermainPSG
Home · 4-3-3Thu 26 Nov00:00Tbilisi · 21:00 CET
Full time · 90+5'
RomaROM
Away · 3-4-2-1- Kvaratskhelia 31'
- Malen 12'
- Mora 45+2'
- Dybala 88'
- Parc des Princes, Paris
- Referee: Erik Lindqvist
- 6°C, light rain
- Parc des Princes, Paris
- Attendance 47,112
Phone layout · 390px container, one instance per fixed state
Fixed state = data-state="pre" (no data-follow). The Match center sets data-state from its tab: ASRMatch.scoreboard.setState(el, "live"). Container queries, so the same markup is the phone layout in any narrow column.
Paris Saint-GermainPSG
Home · 4-3-3Thu 26 Nov00:00Tbilisi · 21:00 CET
Full time · 90+5'
RomaROM
Away · 3-4-2-1- Kvaratskhelia 31'
- Malen 12'
- Mora 45+2'
- Dybala 88'
- Parc des Princes, Paris
- Referee: Erik Lindqvist
- 6°C, light rain
- Parc des Princes, Paris
- Attendance 47,112
Paris Saint-GermainPSG
Home · 4-3-3Thu 26 Nov00:00Tbilisi · 21:00 CET
Full time · 90+5'
RomaROM
Away · 3-4-2-1- Kvaratskhelia 31'
- Malen 12'
- Mora 45+2'
- Dybala 88'
- Parc des Princes, Paris
- Referee: Erik Lindqvist
- 6°C, light rain
- Parc des Princes, Paris
- Attendance 47,112
Paris Saint-GermainPSG
Home · 4-3-3Thu 26 Nov00:00Tbilisi · 21:00 CET
Full time · 90+5'
RomaROM
Away · 3-4-2-1- Kvaratskhelia 31'
- Malen 12'
- Mora 45+2'
- Dybala 88'
- Parc des Princes, Paris
- Referee: Erik Lindqvist
- 6°C, light rain
- Parc des Princes, Paris
- Attendance 47,112
Compact and light
.scoreboard--compact (smaller digits, no watermark) for report headers, prediction pages and sticky bars. .scoreboard--light drops the ink island (omit .on-dark) for light pages.
Paris Saint-GermainPSG
Home · 4-3-3Thu 26 Nov00:00Tbilisi · 21:00 CET
Full time · 90+5'
RomaROM
Away · 3-4-2-1- Kvaratskhelia 31'
- Malen 12'
- Mora 45+2'
- Dybala 88'
- Parc des Princes, Paris
- Referee: Erik Lindqvist
- 6°C, light rain
- Parc des Princes, Paris
- Attendance 47,112
Paris Saint-GermainPSG
Home · 4-3-3Thu 26 Nov00:00Tbilisi · 21:00 CET
Full time · 90+5'
RomaROM
Away · 3-4-2-1- Kvaratskhelia 31'
- Malen 12'
- Mora 45+2'
- Dybala 88'
- Parc des Princes, Paris
- Referee: Erik Lindqvist
- 6°C, light rain
- Parc des Princes, Paris
- Attendance 47,112
Paris Saint-GermainPSG
Home · 4-3-3Thu 26 Nov00:00Tbilisi · 21:00 CET
Full time · 90+5'
RomaROM
Away · 3-4-2-1- Kvaratskhelia 31'
- Malen 12'
- Mora 45+2'
- Dybala 88'
- Parc des Princes, Paris
- Referee: Erik Lindqvist
- 6°C, light rain
- Parc des Princes, Paris
- Attendance 47,112
JS
ASRMatch.scoreboard.setState(el, "pre|live|ft") · .setScore(el, home, away) (flashes the changed digit, updates the aria-label via data-home-name / data-away-name) · .setMinute(el, "68'", pct). Events scoreboard:score, scoreboard:state.
Match row & mini card
Fixtures and results for lists, the sidebar, prediction cards and results pages. Roma is always highlighted; PSG–Roma stays home–away order.
Match rows in a list
One-line fixture / result: date + competition · home – score or time – away · status chip or W/D/L marker. Container-query driven: single row ≥ 560px, two lines below, and a team with .match-row__code swaps name → code under 420px. Wrap rows in .match-list (card chrome + hairlines). a.match-row for links, div otherwise. Modifiers --live (red score outline), --ft, --compact; the Roma side gets .is-roma.
Narrow (360px column) — codes instead of names
Same markup in a phone-width column. The sidebar-width card (320px) behaves the same.
Compact rows with W/D/L marker
.match-row--compact (date only, 24px discs) with a core .form-dot in .match-row__end. Used by the H2H list and form guides.
Mini cards
.match-mini — two team lines + a footer. For horizontal scrollers (.scroll-x), prediction headers, "Up next". Plain div or a; --live adds the live top rule.
Event timeline
Vertical minute spine for the Match center (Live) and the Report (compact). Goals get an ink minute tile and score pill.
Live timeline · M1 at 67'
Newest first, .timeline__item--now on top. Home events left / away right (≥ 480px container); below that one column with the spine on the left, a side tag (.timeline__team) and the side tint. Modifiers on the item: type --goal --pen --og --pen-miss --yellow --red --sub --var --save --post · side --home --away · .is-roma = red accent edge. Every event has an icon AND a text label.
- Live now 67'
-
66'
Big saveSvilarROM
Tips Gonçalo Ramos’ header over the bar.
-
64'
SubstitutionROM
- Pisilli
- Mora
-
62'
SubstitutionPSG
- Doué
- Barcola
-
58'
VAR checkNo penaltyROM
Possible penalty: Pacho’s challenge on Malen. Referee plays on; check complete at 60' — no penalty.
-
53'
Yellow cardCristanteROM
Foul on Vitinha.
- Second half
- Half-time 1–2
-
45+2'
GoalMora1–2ROM
Assist Wesley — cut-back from the left byline, first-time finish.
-
38'
Yellow cardJoão NevesPSG
Stops a Koné counter.
-
31'
GoalKvaratskhelia1–1PSG
Assist Vitinha — cuts in from the left, curls it inside the far post.
-
24'
Yellow cardManciniROM
Late on Kvaratskhelia.
-
12'
GoalMalen0–1ROM
Assist Soulé — Koné wins it in midfield, low finish past Safonov.
- Kick-off
Phone-width column (390px)
Container query, not viewport: the same markup in a narrow column.
- Live now 67'
-
66'
Big saveSvilarROM
Tips Gonçalo Ramos’ header over the bar.
-
64'
SubstitutionROM
- Pisilli
- Mora
-
62'
SubstitutionPSG
- Doué
- Barcola
-
58'
VAR checkNo penaltyROM
Possible penalty: Pacho’s challenge on Malen. Referee plays on; check complete at 60' — no penalty.
-
53'
Yellow cardCristanteROM
Foul on Vitinha.
- Second half
- Half-time 1–2
-
45+2'
GoalMora1–2ROM
Assist Wesley — cut-back from the left byline, first-time finish.
Compact variant — one line per event
.timeline--compact: single column at any width, detail and type label hidden, side tag at the end. For the collapsed full timeline in the Match report and sidebars.
- Full time 1–3
-
88'
GoalDybala1–3ROM
Assist Malen — PSG corner cleared, Malen carries it 50 metres and squares.
-
86'
Yellow cardWesleyROM
Foul on Hakimi.
-
81'
WoodworkKvaratskheliaPSG
Free kick off the crossbar.
-
80'
SubstitutionROM
- De Roon
- Koné
-
79'
SubstitutionPSG
- Lee Kang-in
- João Neves
-
75'
SubstitutionROM
- Dybala
- Soulé
-
73'
Yellow cardPachoPSG
Pulls back Malen.
-
70'
SubstitutionPSG
- Zaïre-Emery
- Fabián Ruiz
Event type gallery
Penalty goal, own goal (red-tinted icon), missed penalty (muted), red card. Illustrative events — not part of the M1 canon.
-
27'
Penalty goalHermoso1–0ROM
Converted from the spot. Type gallery — illustrative.
-
55'
Own goalZabarnyi0–2PSG
Deflected into his own net.
-
71'
Penalty missedRamosPSG
Saved by Svilar.
-
77'
Red cardSample playerROM
Second yellow card, sent off.
Pitch & bench
Pure-CSS pitch on the pitch tokens (calm green in both themes). Formations are just markup: rows of markers, any numbers.
Two-team mode · live at 67'
.pitch.pitch--duo with two .pitch__team: the default team has its GK at the bottom, .pitch__team--top at the top. Write the rows GK first → attack last, and each row left → right from that team's own left (the top team is mirrored by CSS). Markers: a.pitch__player (Roma tile = red/yellow) or .pitch__player--opp (ink tile). Badges .pitch__badges (goal, --yellow, --red, --off, --on), .pitch__cap captain, .rating-badge.pitch__rating fan rating. Lines are drawn by .pitch__lines (JS injects it when missing). Works from 300px to 720px.
Single-team mode + bench · predicted line-up
One .pitch__team on the pitch (the GK sits at the bottom). .bench beside / below it: .bench__item (a or div) with a core .jersey--sm, .bench__main (__name, __sub) and optional .bench__end. .bench--stack forces one column.
Half pitch with fan ratings · FT
.pitch--half (own half only, shorter) with .rating-badge.rating-badge--sm.pitch__rating on every marker: ≥ 8 yellow, 6–7.9 neutral. Good for the Report tab on mobile.
Slot mode · All-time XI builder
.pitch[data-pitch-slots] holds button.pitch__slot with .is-empty (dashed, "+", position label), .is-filled (name, tile text) and .is-selected (yellow ring). Click selects one slot (exclusive, aria-pressed) and fires pitch:select {slot, pos, filled}. ASRMatch.pitch.fill/clear/select/count; pitch:change {filled, total}; data-pitch-output="#sel" mirrors "3/11". Positions are free text in data-pos.
Select a slot on the pitch, then pick a candidate. (Demo — the real page opens a popover / bottom sheet; it only calls ASRMatch.pitch.fill(slot, {name, number}).)
Event log: —
Rating controls
Everything for "Your rating": tap scale, badge, distribution bar, compare row and the player rating card used by the Match report and the ratings flow.
Rating scale · sizes
.rating-scale (role="radiogroup", 10 × button.rating-scale__btn[role="radio"][aria-checked][data-value]): default 44px (5 × 2 on phones, one row from 600px), --sm 36px one row (inside cards), --lg 52–56px (ratings flow). Arrow keys move + select, Home / End jump; roving tabindex. Selected = yellow ("yours"). Add data-rating-output="#id" (or a [data-rating-output] inside the nearest .player-rating-card / [data-rating-group]) to mirror the value into a .rating-badge; data-clearable lets a second tap clear; .is-locked freezes. Event rating:change {value, previous}.
Last event: —
Rating badge · tiers
.rating-badge + --high (≥ 8: yellow fill, ink text) · --mid (6–7.9: neutral) · --low (< 6: dashed, muted) · --none ("—") · --you (yellow ring) · sizes --sm --lg. The number is always shown; tier also changes fill / border style, never colour alone. With no tier class JS sets data-tier from the text.
Distribution bar
.dist: ten buckets, heights from --b1…--b10 (percent of votes, scale --dist-max default 50), the fan average as a vertical marker via --avg (the bar-set 1–10 → left: (avg − .5) × 10%), i.is-peak (ink), i.is-mine (yellow). --sm 28px, --lg 88px. Optional ol.dist-axis 1–10. JS shorthand: data-dist="…10 numbers…" data-avg data-mine builds the bars. Give it role="img" + aria-label.
Compare row (ratings flow · compare state)
.rating-compare with style="--you:6;--fans:6.9": two markers on a 1–10 track (fans ink, you yellow), the gap shaded, a delta chip --up / --down / default with icon + sign.
Player rating card · Match report grid
.player-rating-card[data-fan-avg] (add data-rating-group if it is not a .player-rating-card): number tile · name (→ player.html) · facts · .rating-badge--lg fan average + votes · .dist · "Your rating" (.rating-scale--sm + [data-rating-output] + [data-rating-delta]). Rating adds .is-rated, shows "+0.1 vs fans" and moves the yellow bar of the distribution. Try it: the third card is unrated.
Player card & row
Squad grid cards and the compact list row. Names are split first / last so the surname can carry the condensed display type.
Player card · squad grid
a.player-card (media placeholder, no photo): .jersey--roma number tile, optional .player-card__cap (captain), .rating-badge.player-card__rating (season fan rating), .player-card__body (__first, __name, __meta) and dl.player-card__stats (3 × .player-card__stat = dd value + dt label). .is-out + .player-card__status chip for unavailable players. Grid it with .grid.grid--4 or --grid-min:170px.
Player row · list view
a.player-row: jersey tile · name (+ .player-row__cap) · role + flag + age · inline stats (≥ 600px) · rating badge. The squad list view and sidebar rosters.
Leaderboard
Prediction-points ranking: global, league and sidebar versions. Top 3 get medal tiles; your row is always highlighted and can be pinned.
Global leaderboard · season
A real table.leaderboard inside .leaderboard-wrap (the scroll container; --tall = 440px with a sticky header and the tr.is-pinned "You" row stuck to the bottom). Rank tile: .leaderboard__rank.is-1/2/3 (yellow · ink · yellow outline). Movement: .leaderboard__move--up/--down = arrow icon + number + hidden text. User cell: avatar + .username (truncates) + core .level. tr.is-you yellow tint + rule; tr.is-gap separator; .is-extra columns fold under 440px.
| Rank | Movement | Fan | Exact | Pts |
|---|---|---|---|---|
| 1 | No change | DCdato_curvasudL4 | 7 | 285 |
| 2 | 1 places up | MJmariam_lupaL4 | 6 | 275 |
| 3 | 1 places down | LTlasha_totti10L5 | 6 | 270 |
| 4 | 3 places up | GTgio_testaccioL3 | 6 | 260 |
| 5 | No change | TGtako_giallorossaL5 | 5 | 250 |
| 6 | 2 places up | BGbeka_tbilisi_asrL3 | 5 | 245 |
| 7 | 3 places down | LDluka_dajeromaL4 | 5 | 240 |
| 8 | 1 places up | NAnata_asrL2 | 5 | 235 |
| 9 | 2 places down | SPsandro_er_puponeL4 | 4 | 230 |
| 10 | No change | IRirakli_83L3 | 4 | 225 |
| 212 | 14 places up | NBnika_lupo (you)L3 | 3 | 155 |
Compact · sidebar / card / mini-league
.leaderboard--compact: no header, no extra columns, 44px rows; put it in a .card (use .leaderboard-wrap--bare to drop the wrapper chrome). Below: a mini-league standing (Tbilisi Lupi) and a This-month top 5.
Tbilisi Lupi · top 3
AllThis month
NovemberPrediction pieces
Score entry, first-scorer pick, lock countdown, points on offer, the locked state and the points breakdown for Results. Built on the core stepper, select, split bar and chips.
Prediction card · open (no pick) and saved
article.predict[data-predict][data-home][data-away]: head (comp + kickoff + reward chip) · .predict__entry (two .predict__side = .predict__team disc + name, core [data-stepper]) · core .field select for the first Roma scorer · .points-offer · .predict__lock (core countdown-inline) · .predict__community with a core 3-part .split · .predict__foot. States on the root: default (open) · .is-saved · .is-locked; data-show="open saved locked" on any child shows it only in those states. [data-predict-save] saves (adds .is-saved, toast, predict:save {id, home, away, scorer}); touching a stepper / select after saving reopens it. Try both cards.
- +5Correct result
- +15Exact score
- +10First scorer
Locks in 8d 22h 20m (at kickoff)
- +5Correct result
- +15Exact score
- +10First scorer
Locks in 3d 19h 35m
Locked state · follows the Match state
data-lock-when="live ft" on the root: JS adds .is-locked in those match states (steppers become read-only, the select and the save button are disabled) and removes it in pre (listens to proto:change). Gate the live / final strips with the core data-when plus data-show="locked". ASRMatch.predict.lock(el, true|false) locks manually; event predict:lock {locked}. Switch the Prototype panel to Upcoming to see it open.
Locked at kickoff· your pick is final
Locks in 2d 04h 15m
Points on offer
ul.points-offer tiles (3 columns); li.is-hit = earned (yellow top rule), li.is-miss = faded; --inline = chip line for tight spaces. The "Up to 30 pts" reward chip is the core .chip--reward.
- +5Correct result
- +15Exact score
- +10First scorer
- +5Correct result
- 0Exact score
- +10First scorer
- +5result
- +15exact
- +10first scorer
Points breakdown
ul.points-breakdown > li.points-breakdown__row (icon · __label + small detail · __pts) + li.points-breakdown__total. Zero lines: .is-zero (muted, dash icon). --compact drops the detail lines (results lists).
Parma 1–5 Roma
21 Nov · Serie AYour pick: 1–3 · first scorer Malen
- Correct resultRoma win+5
- Exact scorePredicted 1–3 · final 1–50
- First Roma scorerMalen 39'+10
- Total+15
Roma 3–0 Sassuolo
7 Nov · Serie ACompact variant, with an exact score
- Correct result+5
- Exact score+15
- First Roma scorer0
- Total+20
PSG 1–3 Roma
PendingPending lines: .is-pending
- Correct resultRoma win+5
- Exact scorePredicted 1–2 · final 1–30
- First Roma scorerMalen 12'+10
- Total+15
Mood meter & fan presence
The two live-pulse pieces of the Match center: how the crowd feels, and how many are watching.
Mood meter · live (74 "Confident")
section.mood[data-mood][data-value="74"][data-split="14,18,12,31,25"]: big value + band label, 5-band gauge (.mood__track five empty <i>, .mood__marker, CSS fills from --val; band 5 turns yellow), band names .mood__bands and the quick-feel .mood__btn row. JS: tapping a button sets aria-pressed (yours = yellow), reveals the split % behind each button (.is-voted), bumps [data-mood-checkins], nudges the value and fires mood:change {value, feel}. Labels never use emoji.
Crowd mood
912 check-insHow do you feel?
Check-in recorded. You can change it.
Other values · pre 58 and FT 96
data-value drives everything (--val, data-band, label, .is-current band). Page CSS / JS can swap the value per match state.
Crowd mood
640 check-insHow do you feel?
Check-in recorded. You can change it.
Crowd mood
1,480 check-insHow do you feel?
Check-in recorded. You can change it.
Fan presence
.presence: pulsing core .dot--pulse + .presence__text (b = the count) + core .avatar-stack (it sets its ring from --ring-color). data-presence-live + [data-presence-count] lets the number drift every 5s (off for reduced motion). --block = bordered strip. Works inside any .on-dark island.
Form guide & H2H
Preview-tab building blocks: last five results for each side and the head-to-head record.
Form guide · last 5
section.form-guide: .form-guide__head (club disc, __name, __summary) + ol.form-guide__list of .form-guide__row = core .form-dot (W / D / L letter always inside; .is-latest = yellow ring) · __match (__team with .is-subject bold, __score) · __meta (__comp, __ha H / A). Make a row an a to link to the report. The compact dots variant is core .form-dots.
Roma
W4 D0 L1- WParma1–5Roma
- WRoma3–0Sassuolo
- LMan United3–2Roma
- WUdinese2–5Roma
- WRoma4–2Cagliari
PSG
W5 D0 L0- WPSG3–0Toulouse
- WStrasbourg1–2PSG
- WVillarreal1–5PSG
- WPSG4–1Lens
- WMonaco0–2PSG
H2H summary
.h2h (container-aware: records side by side from 640px): __headline + __note, then .h2h__record = __label · .h2h__bar of .h2h__seg--w / --d / --l sized by style="--n:3" (omit zero segments) · .h2h__legend (swatch .h2h__key--* + count) · a .match-list of compact match rows with a W/D/L marker. Works for team-vs-team too (w = home wins, l = away wins).
First competitive meeting
Roma and PSG have only met once before: a 1–1 summer friendly in 2017.
Roma vs French clubs in Europe
- 3 Won
- 0 Drawn
- 2 Lost
PSG vs Italian clubs in Europe
- 4 Won
- 0 Drawn
- 1 Lost
Chart primitives
Token-styled inline SVG: a responsive line chart with tooltips, W/D/L markers and an average line, a bar chart and sparklines — or just the classes for hand-written SVG.
Line chart · Malen fan rating per match (JSON renderer)
div.linechart[data-linechart='{"points":[{"v","x","title","sub","res","note"}],"avg","avgLabel","min","max","step","label","highlight"}'] — the renderer draws a responsive SVG at the real width (12px axis text, re-rendered by a ResizeObserver) using the classes below; hover / focus / tap a column for the tooltip (each column is a focusable role="img" with an aria-label). res adds the W / D / L tiles under the axis. highlight: "latest"|"best" picks the yellow point. Programmatic: ASRMatch.chart.line(el, cfg). Add a text alternative (the visually-hidden list) for the whole series.
- Fan rating
- Last-10 average
- Latest match
- WDL result
Fan ratings, oldest to newest: Como 0–0 Roma 6.5, Roma 3–4 Real Madrid 7.6, Roma 2–0 Genoa 7.9, Roma 4–0 Slovan Bratislava 8.8, Napoli 3–3 Roma 6.9, Roma 4–2 Cagliari 7.8, Udinese 2–5 Roma 8.2, Man United 3–2 Roma 7.3, Roma 3–0 Sassuolo 7.0, Parma 1–5 Roma 9.6.
Bar chart · points per match (JSON renderer)
div.barchart[data-barchart='{"bars":[{"v","x","title","sub"}],"max","unit","latest","label"}']. v: null = no pick (dashed outline, "—"); the tallest bar is ink, the latest yellow with latest:true. Values / labels thin out automatically on narrow widths; every bar has a tooltip and an aria-label. ASRMatch.chart.bar(el, cfg).
Sparkline
span.spark[data-spark="6.5,7.6,…"][data-spark-avg] (96 × 28, --lg 160 × 40) — JS injects the SVG at its real size; the last point is the yellow dot. Always give it an aria-label.
Hand-written SVG · the class conventions
Page builders may also write the SVG geometry themselves and only reuse the classes: .linechart__grid(--base), __axis(--x/--y), __series, __area, __avg + __avg-label, __point(.is-latest/.is-best/.is-active), __hit, __cursor, __res--w/d/l; bars .barchart__bar(.is-max/.is-latest/.is-none), __value; tooltip .chart-tooltip.is-open (position it yourself); ul.chart-legend. Render at ~ the real width (viewBox ≈ container width) to keep the 12px text legible. Colours: series ink (--chart-1), highlight yellow (--chart-2), average dashed axis grey.