/* Fixture details page: ported from the app's widgets (fixture_details_page, morphing_match_header,
   summary cards, events, lineups, stats, standings, insights, h2h, compare, odds). */

.panels { padding-bottom: 32px; }
.js .panel { display: none; }
.js .panel.active { display: block; }
.panel { padding-top: 4px; }

/* ---------- Overview summary cards ---------- */
.ov-card { background: var(--card); border-radius: 12px; margin: 0 12px 10px; overflow: hidden; position: relative; }
.card-title { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 10px 14px; font-size: 11px; font-weight: 500; color: var(--white54); letter-spacing: .8px; }
.see-more { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; font-weight: 500; letter-spacing: 0; color: rgba(117,117,117,.7); }
.ov-body { padding: 12px 14px 14px; }
.ov-body.tight { padding: 0 0 4px; }
.sum-gap { height: 12px; }
.sum-line { display: flex; align-items: center; gap: 12px; }
.sum-ico { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; font-size: 16px; color: rgba(255,255,255,.9); flex: none; }
.sum-ico.green { background: rgba(42,185,118,.12); color: var(--green); }
.sum-txt { display: flex; flex-direction: column; min-width: 0; }
.sum-txt .cap { font-size: 10px; font-weight: 700; letter-spacing: 1px; color: rgba(117,117,117,.7); line-height: 1.2; }
.sum-txt .val { margin-top: 2px; font-size: 14px; font-weight: 700; line-height: 1.25; }
.sum-txt .val.green { color: var(--green); } .sum-txt .val.light { color: rgba(255,255,255,.9); font-weight: 400; }

.ov-odds-labels { display: flex; padding: 5px 2px; }
.ov-odds-labels span { flex: 1; text-align: center; font-size: 8px; color: var(--grey); }
.ov-odds-head { font-size: 8px; font-weight: 500; letter-spacing: .4px; color: var(--grey); margin-bottom: 6px; }
.ov-chips { display: flex; gap: 6px; }
.ov-chips .chip, .ov-chips .chip-empty { flex: 1; }
.chip { background: rgba(255,255,255,.06); border-radius: 9px; padding: 9px 6px; text-align: center; display: flex; flex-direction: column; gap: 3px; }
.chip span { font-size: 10px; font-weight: 500; color: var(--white54); }
.chip strong { font-size: 14px; font-weight: 700; color: #fff; }
.chip.compact { padding: 6px; gap: 2px; } .chip.compact span { font-size: 10px; } .chip.compact strong { font-size: 12px; }

.teams-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; gap: 8px; }
.th-team { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; font-weight: 600; flex: 1; }
.th-team.right { justify-content: flex-end; text-align: right; }
.th-team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* split bars (StatCompareRow / _BoldBar) */
.split-row { display: flex; align-items: center; gap: 8px; padding: 12px 16px; }
.sr-val { width: 52px; flex: none; font-size: 14px; font-weight: 500; }
.sr-val.left { text-align: left; } .sr-val.right { text-align: right; }
.sr-val .win { display: inline-block; padding: 3px 8px; border-radius: 6px; background: rgba(42,185,118,.14); color: var(--green); font-weight: 700; }
.sr-mid { flex: 1; min-width: 0; text-align: center; }
.sr-label { font-size: 11px; font-weight: 500; letter-spacing: .2px; color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 7px; }
.sr-bar { display: flex; align-items: center; }
.sr-bar .half { flex: 1; height: 7px; background: rgba(255,255,255,.06); display: flex; }
.sr-bar .half.left { justify-content: flex-end; } .sr-bar .half.right { justify-content: flex-start; }
.sr-bar .mid { width: 2px; height: 16px; background: rgba(255,255,255,.12); flex: none; }
.sr-bar .fill { display: block; height: 100%; background: rgba(255,255,255,.45); animation: grow .7s cubic-bezier(.22,1,.36,1) both; animation-delay: calc(var(--d, 0) * 80ms); }
.sr-bar .half.left .fill { border-radius: 4px 0 0 4px; transform-origin: right; }
.sr-bar .half.right .fill { border-radius: 0 4px 4px 0; transform-origin: left; }
.sr-bar .fill.win { background: var(--green); }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
hr.grp { border: 0; height: 8px; margin: 0; }

/* Recent form */
.form-block + .form-block { margin-top: 24px; }
.fb-head { display: flex; align-items: center; gap: 8px; }
.fb-name { flex: 1; font-size: 12px; font-weight: 500; color: var(--grey); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-sum { font-size: 10px; font-weight: 300; color: rgba(117,117,117,.6); }
.fb-letters { display: flex; margin-top: 6px; } .fb-letters span { flex: 1; text-align: center; font-size: 10px; font-weight: 600; color: var(--grey); }
.fb-letters .fl-W { color: #1d9e75; } .fb-letters .fl-L { color: #e24b4a; }
.fb-bar { display: flex; margin-top: 4px; } .fb-bar i { flex: 1; margin: 0 1.5px; height: 8px; border-radius: 3px; background: rgba(117,117,117,.3); }
.fb-bar i.fb-W { background: #1d9e75; } .fb-bar i.fb-L { background: #e24b4a; }

/* Team standings mini table */
.mini-table { padding-bottom: 14px; }
.mt-head, .mt-row { display: flex; align-items: center; }
.mt-head { padding: 7px 14px 7px 17px; font-size: 11px; color: var(--grey); font-weight: 500; letter-spacing: .4px; }
.mt-row { padding: 10px 14px 10px 11px; font-size: 13px; }
.mt-row.hl { background: rgba(248,100,7,.07); font-weight: 600; color: #fff; }
.c-rank { width: 26px; text-align: center; flex: none; color: var(--grey); font-weight: 500; }
.mt-row.hl .c-rank { color: #fff; }
.c-team { flex: 1; min-width: 0; margin-left: 8px; display: flex; align-items: center; gap: 8px; }
.c-team .tn { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-n { width: 40px; flex: none; text-align: center; }
.c-n.pts { font-weight: 600; } .gd.pos, .c-n.pos { color: #1d9e75; } .gd.neg, .c-n.neg { color: #e24b4a; }
.mt-gap { padding: 4px 14px; }
.mt-gap span { margin-left: 34px; font-size: 12px; color: rgba(117,117,117,.5); letter-spacing: 3px; }
.badge-h, .badge-a { font-style: normal; font-size: 10px; font-weight: 600; padding: 2px 5px; border-radius: 4px; margin-left: 6px; }
.badge-h { background: rgba(248,100,7,.15); color: var(--accent); } .badge-a { background: rgba(117,117,117,.15); color: var(--grey); }

/* Logos */
.lg { border-radius: 4px; object-fit: contain; flex: none; }
.lg-fallback { display: inline-block; border-radius: 4px; background: rgba(117,117,117,.15); flex: none; }
.lg-fallback.lg-20 { width: 20px; height: 20px; } .lg-fallback.lg-22 { width: 22px; height: 22px; } .lg-fallback.lg-18 { width: 18px; height: 18px; } .lg-fallback.lg-28 { width: 28px; height: 28px; }

/* ---------- No results ---------- */
.no-results { min-height: 360px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 40px; text-align: center; }
.glow { position: relative; width: 120px; height: 120px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 60px 10px rgba(248,100,7,.18); border-radius: 50%; background: radial-gradient(closest-side, rgba(248,100,7,.08), transparent); }
.glow-ring { position: absolute; width: 100px; height: 100px; border-radius: 50%; background: radial-gradient(rgba(248,100,7,.08), rgba(255,255,255,.03)); }
.glow-core { position: relative; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, rgba(248,100,7,.2), var(--card)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.75); box-shadow: 0 4px 16px rgba(248,100,7,.12); }
.nr-title { margin: 32px 0 0; font-size: 20px; font-weight: 700; letter-spacing: .3px; line-height: 1.2; background: linear-gradient(#fff, #b0b8c8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nr-sub { margin: 12px 0 0; font-size: 14px; color: #9e9e9e; line-height: 1.6; letter-spacing: .1px; }
.plain-empty { text-align: center; color: var(--white70); padding: 32px 16px; }

/* ghost logos behind some tabs */
.ghost-wrap { position: relative; padding: 0 16px; }
.ghost { position: absolute; top: 40%; width: 160px; height: 160px; object-fit: contain; opacity: .09; filter: grayscale(1); pointer-events: none; z-index: 0; }
.ghost.left { left: -50px; } .ghost.right { right: -50px; }
.ghost-wrap > *:not(.ghost) { position: relative; z-index: 1; }
.panel-box { background: var(--card); border-radius: 12px; overflow: hidden; margin-top: 12px; }
.stats-box { margin-top: 12px; } /* the Stats tab: no card of its own, the rows sit on the page */
.stats-box .split-row, .flow-step .split-row { padding: 11px 4px; gap: 10px; }
.stats-box .sr-val, .flow-step .sr-val { width: 46px; font-size: var(--fs-figure); font-weight: 500; color: #fff; }
.stats-box .sr-val .win, .flow-step .sr-val .win { padding: 0; background: none; color: var(--green); font-weight: 700; } /* the leader is the green figure, no pill */
.stats-box .sr-label, .flow-step .sr-label { margin-bottom: 7px; font-size: var(--fs-label); color: var(--white54); }
.stats-box .sr-bar, .flow-step .sr-bar { gap: 4px; }
.stats-box .sr-bar .mid, .flow-step .sr-bar .mid { display: none; }
.stats-box .sr-bar .half, .flow-step .sr-bar .half { height: 6px; border-radius: 3px; background: rgba(255,255,255,.07); overflow: hidden; }
.stats-box .sr-bar .half.left .fill, .stats-box .sr-bar .half.right .fill, .flow-step .sr-bar .half.left .fill, .flow-step .sr-bar .half.right .fill { border-radius: 3px; }
.stats-box .sr-bar .fill, .flow-step .sr-bar .fill { background: rgba(255,255,255,.4); }
.stats-box .sr-bar .fill.win, .flow-step .sr-bar .fill.win { background: var(--green); }

/* ---------- Events ---------- */
.events-box { margin: 8px 0; } /* no card of its own: the timeline sits on the page, so there is no panel inside a panel */
.ev-controls { display: flex; justify-content: space-between; padding: 4px 4px 8px; }
/* who is who: the home team above the left column, the away team above the right one */
.ev-teams { display: flex; align-items: center; padding: 4px 0 8px; }
.ev-team { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--white70); }
.ev-team.home { justify-content: flex-end; text-align: right; } .ev-team.away { justify-content: flex-start; }
.ev-team img { width: 20px; height: 20px; object-fit: contain; flex: none; }
.ev-team-gap { flex: none; width: 56px; }

.toggle { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 500; color: var(--grey); cursor: pointer; }
.toggle input { display: none; }
.toggle i { position: relative; width: 28px; height: 14px; border-radius: 8px; background: rgba(117,117,117,.2); transition: background .15s; }
.toggle i::after { content: ""; position: absolute; top: 1px; left: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--grey); transition: transform .15s, background .15s; }
.toggle input:checked + i { background: rgba(248,100,7,.35); }
.toggle input:checked + i::after { transform: translateX(14px); background: var(--accent); }
.events-list { padding: 4px 0; }
.events-list.compact { padding: 8px; }
.events-box.hide-subs .ev.is-sub { display: none; }
.milestone { display: flex; align-items: center; justify-content: center; margin: 10px 0; padding: 7px 0; border-radius: 10px; background: rgba(255,255,255,.05); } /* a quiet band across the list for Kick Off, HT, FT: it reads as a section break */
.milestone i { display: none; }
.milestone span { padding: 0 10px; font-size: 10px; font-weight: 700; color: rgba(255,255,255,.65); letter-spacing: .5px; }
.milestone.dim { background: none; }
.milestone.dim span { color: var(--white54); }
.ev-score { font-size: 11px; font-weight: 600; color: var(--grey); letter-spacing: .3px; white-space: nowrap; }
.ev { display: flex; align-items: center; margin: 2px 0; padding: 0 8px; }
.ev-side { flex: 1; min-width: 0; }
.ev-line { display: flex; flex-direction: column; align-items: center; flex: none; }
.ev-line b { width: 1px; height: 12px; background: rgba(117,117,117,.18); }
.ev-pill { padding: 5px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; background: rgba(158,158,158,.25); color: #fff; }
.ev-pill.goal { background: rgba(255,255,255,.85); color: #212121; }
.ev-pill.red { background: rgba(226,75,74,.85); }
.ev-content { padding: 4px 6px; display: flex; flex-direction: column; }
.ev-content.home { align-items: flex-end; text-align: right; } .ev-content.away { align-items: flex-start; text-align: left; }
.ev-main { display: flex; align-items: center; gap: 5px; max-width: 100%; }
.ev-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* More visible than the app (which uses a dim grey at weight 300). */
.ev-sub { margin-top: 2px; font-size: 11px; font-weight: 400; color: rgba(255,255,255,.7); }
.ico-ball { font-size: 14px; line-height: 1; }
.ico-card { width: 9px; height: 13px; border-radius: 2px; display: inline-block; flex: none; }
.ico-card.red { background: var(--red); } .ico-card.yellow { background: #ffc107; }
.ico-card2 { display: inline-flex; gap: 1px; flex: none; } .ico-card2 i { width: 8px; height: 12px; border-radius: 1.5px; display: block; }
.ico-card2 .yellow { background: #ffc107; } .ico-card2 .red { background: var(--red); }
.ico-var { font-size: 8px; font-weight: 800; padding: 2px 5px; border-radius: 4px; color: var(--accent); background: rgba(248,100,7,.15); }
.ico-swap { font-size: 13px; line-height: 1; color: var(--accent); }

/* ---------- Sub tabs (lineups, h2h) ---------- */
.sub-tabs { display: flex; padding: 12px 8px 8px; }
.sub-tabs.three { padding: 4px 8px; }
.sub-tab { flex: 1; min-width: 0; background: none; border: 0; cursor: pointer; height: 36px; color: var(--white54); font: inherit; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.sub-tab span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 4px 12px; border-radius: 8px; }
.sub-tab.active { color: #fff; font-weight: 700; }
.sub-tab.active span { background: rgba(255,255,255,.1); color: #fff; }
/* Segmented sub-menu (H2H: the two teams and Meetings; Lineups): one rounded track with a highlight that slides to the selected tab, like the Favourites tabs (static/js/match-page.js sets --n and --i) */
.sub-tabs.seg { position: relative; margin: 12px 12px 8px; padding: 4px; border-radius: 16px; background: rgba(255,255,255,.05); }
.sub-tabs.seg .sub-tab { position: relative; z-index: 1; height: 40px; border-radius: 12px; font-size: 14px; font-weight: 600; transition: color .2s; }
.sub-tabs.seg .sub-tab span { padding: 0 10px; background: none; }
.sub-tabs.seg .sub-tab:not(.active):hover { color: rgba(255,255,255,.85); }
.sub-tabs.seg .sub-tab.active { color: #fff; background: rgba(255,255,255,.12); } /* without script the selected tab carries the highlight itself */
.sub-tabs.seg .sub-tab.active span { background: none; }
.js .sub-tabs.seg .sub-tab.active { background: none; }
.js .sub-tabs.seg::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n, 3)); border-radius: 12px; background: rgba(255,255,255,.12); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .26s cubic-bezier(.3, .8, .3, 1); }
@media (prefers-reduced-motion: reduce) { .js .sub-tabs.seg::before { transition: none; } }
.js .sub-panel { display: none; } .js .sub-panel.active { display: block; }
.pad { padding: 0 16px; }

/* ---------- Lineups ---------- */
.lu-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 16px 16px 0; margin-bottom: 16px; }
.lh-team { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 1; }
.lh-team.right { justify-content: flex-end; text-align: right; }
.lh-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh-form { margin-top: 3px; font-size: 11px; font-weight: 600; letter-spacing: .4px; color: rgba(255,255,255,.5); }
.coaches { display: flex; gap: 12px; padding: 12px 16px 0; }
.coach { flex: 1; display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 4px 0; min-width: 0; }
.coach.right { justify-content: flex-end; text-align: right; }
.coach img { border-radius: 8px; object-fit: cover; }
.coach-fb { width: 24px; height: 24px; border-radius: 50%; background: rgba(248,100,7,.1); flex: none; }

.pitch { position: relative; border-radius: 14px; overflow: hidden; }
.pitch-full { aspect-ratio: 1 / 2; display: flex; flex-direction: column; }
.pitch-lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.pitch-half { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; }
.pitch-row { display: flex; justify-content: space-evenly; align-items: center; }
.pitch-half-view { aspect-ratio: 1 / 1.61; border-radius: 1px; }
.half-rows { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-evenly; }
.pitch-half-view .pitch-row { flex: 1; }
.pitch-lines-h { display: none; }
/* desktop: pitch lies on its side, home goalkeeper on the left, away on the right */
@media (min-width: 768px) {
  .pitch-full { aspect-ratio: 2 / 1; flex-direction: row; }
  .pitch-full .pitch-lines { display: none; }
  .pitch-full .pitch-lines-h { display: block; }
  .pitch-full .pitch-half { flex-direction: row; }
  .pitch-full .pitch-row { flex-direction: column; justify-content: space-evenly; flex: 1; align-self: stretch; padding: 4% 0; }
}
.no-lineup { color: var(--grey); font-size: 11px; text-align: center; }
.pn { width: 52px; display: flex; flex-direction: column; align-items: center; }
.pn-photo { position: relative; display: block; width: 40px; height: 40px; }
.pn-circle { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(248,100,7,.16); overflow: hidden; }
.pn.away .pn-circle { background: rgba(91,174,207,.16); }
.pn-circle em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); }
.pn.away .pn-circle em { color: #5baecf; }
.pn-circle img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--bg); }
.pn-badge { position: absolute; right: -2px; bottom: -2px; width: 15px; height: 15px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 8px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pn.away .pn-badge { background: #5baecf; }
.pn-name { margin-top: 4px; max-width: 64px; font-size: 10px; font-weight: 600; letter-spacing: .1px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pitch-half-view .pn { width: 58px; } .pitch-half-view .pn-photo, .pitch-half-view .pn-circle { width: 44px; height: 44px; } .pitch-half-view .pn-badge { width: 18px; height: 18px; font-size: 8px; }
.pitch-half-view .pn-name { font-size: 9px; background: rgba(10,10,10,.75); padding: 2px 5px; border-radius: 4px; }
/* each player gets an equal share of the row (inside the touchlines), so names never collide */
.pitch-half-view .pitch-row { padding: 0 4%; }
.pitch-half-view .pn { flex: 1 1 0; width: auto; min-width: 0; }
.pitch-half-view .pn-name { max-width: calc(100% - 4px); }
.lineup-card .lu-tabs { display: flex; padding: 10px 14px 0; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.lu-tab { background: none; border: 0; border-radius: 8px; color: var(--white54); font: inherit; font-size: 12px; display: flex; align-items: center; gap: 6px; padding: 10px 12px; cursor: pointer; white-space: nowrap; }
.lu-tab.active { color: #fff; background: rgba(255,255,255,.1); }
.lineup-card .sub-panel { padding: 12px 0 0; }

.subs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 12px; }
.sub-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; padding: 8px; border-radius: 8px; background: rgba(26,26,26,.5); }
.pn-photo.sm, .pn-photo.sm .pn-circle { width: 42px; height: 42px; flex: none; }
.pn-photo.sm .pn-circle { background: var(--bg); }
.pn-badge.sm { width: 16px; height: 16px; font-size: 7px; }
.sr-text { display: flex; flex-direction: column; min-width: 0; }
.sr-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-pos { margin-top: 2px; font-size: 10px; font-weight: 500; color: rgba(117,117,117,.75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inj-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 8px 12px 24px; }
.inj-head { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 12px; font-weight: 700; }
.inj-none { padding: 12px 10px; border-radius: 8px; background: rgba(26,26,26,.5); color: var(--grey); font-size: 11px; text-align: center; }

/* ---------- Standings table ---------- */
.standings-box { margin: 12px 12px 0; }
.st-scroll { overflow-x: auto; scrollbar-width: none; }
.st-scroll::-webkit-scrollbar, .lineup-card .lu-tabs::-webkit-scrollbar { display: none; }  /* no scrollbar: the table still scrolls sideways by swipe, trackpad or shift + wheel */
.st-table { border-collapse: separate; border-spacing: 0 2px; width: 100%; min-width: 560px; font-size: 12px; table-layout: auto; }
.st-table th, .st-table td { box-sizing: border-box; }
.st-table th { height: 36px; font-size: 11px; color: var(--grey); font-weight: 500; text-align: center; padding: 0 4px; }
.st-table td { height: 47px; text-align: center; padding: 0 4px; background: var(--bg); } /* every cell is the plain dark background: rows are not shaded */
.st-table tr.playing td { background: #1a120d; } /* only the teams of this match are tinted (a solid colour: the frozen columns must stay opaque) */
.st-table tr.playing .tn { font-weight: 600; color: #fff; }
.st-table tr.zone-end td { }
.s-rank { width: 38px; min-width: 38px; max-width: 38px; position: sticky; left: 0; z-index: 2; background: var(--bg); color: var(--grey); font-weight: 500; text-align: center; padding: 0 4px 0 3px !important; }
.s-logo { width: 40px; min-width: 40px; max-width: 40px; position: sticky; left: 38px; z-index: 2; background: var(--bg); }
/* the frozen # and logo cells must be opaque (solid versions of the row tints), or the columns scrolling under them show through */
.st-table tr .s-rank, .st-table tr .s-logo { background: var(--bg); }
.st-table tr.playing .s-rank, .st-table tr.playing .s-logo { background: #1a120d; }
.st-table thead th, .st-table thead th.s-rank, .st-table thead th.s-logo { background: var(--card); } /* the shade of the title row covers all of it, the frozen # and logo cells included */
/* the first-visit hint over a table that scrolls sideways (static/js/scroll-hint.js), as in the app: the table dimmed, a card with a sliding swipe icon; touches pass through */
.scroll-hint { position: absolute; inset: 0; z-index: 3; display: flex; justify-content: center; align-items: flex-start; padding-top: 118px; background: rgba(0,0,0,.35); border-radius: 12px; pointer-events: none; transition: opacity .3s; }
.scroll-hint.out { opacity: 0; }
.sh-card { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 14px; background: #2a2a2a; box-shadow: 0 4px 14px rgba(0,0,0,.35); font-size: 14px; font-weight: 600; line-height: 1.4; color: #fff; }
.sh-card svg { flex: none; animation: hint-slide .7s ease-in-out infinite alternate; }
@keyframes hint-slide { from { transform: translateX(0); } to { transform: translateX(-22px); } }
@media (prefers-reduced-motion: reduce) { .sh-card svg { animation: none; } }
.s-team { text-align: left !important; min-width: 140px; white-space: nowrap; padding-left: 10px !important; }
.s-team .tn { display: inline-block; max-width: 110px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.st-table .gd.pos { color: #1d9e75; } .st-table .gd.neg { color: #e24b4a; } .st-table .pts { font-weight: 600; }
.s-form { width: 76px; white-space: nowrap; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin: 0 1.5px; background: var(--grey); }
.dot.d-W { background: var(--green); } .dot.d-L { background: var(--red); }
.st-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 12px 14px 24px; }
.st-legend span { display: inline-flex; align-items: center; font-size: 11px; color: var(--grey); }
.st-legend i { display: inline-block; width: 3px; height: 14px; border-radius: 2px; margin-right: 6px; }

/* ---------- Insights ---------- */
.insight-wrap { padding: 16px 12px 32px; }
.ai-card { padding: 6px 0 4px; }
.ai-card.algo { padding-bottom: 8px; }
.ai-cap { padding: 0 4px; display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; color: var(--grey); }
.pred-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "cat add res" "val add res"; align-items: center; column-gap: 10px; row-gap: 2px; min-height: 56px; margin-top: 6px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.04); }
.pr-cat { grid-area: cat; align-self: end; font-size: 10px; font-weight: 600; letter-spacing: .8px; color: rgba(255,255,255,.38); }
.pr-val { grid-area: val; align-self: start; font-size: 15px; font-weight: 600; line-height: 1.25; }
.pr-add { grid-area: add; }
.pr-res { grid-area: res; min-width: 18px; text-align: right; font-size: 20px; font-weight: 700; } .pr-res:empty { display: none; } .pr-res .ok { color: var(--green); } .pr-res .no { color: var(--red); }
.ai-main { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.ai-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(42,185,118,.12); display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.ai-pick { font-size: 16px; font-weight: 800; } .ai-sub { margin-top: 2px; font-size: 12px; color: var(--grey); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pill-chip { padding: 5px 10px; border-radius: 20px; background: rgba(255,255,255,.04); font-size: 12px; font-weight: 700; color: var(--grey); }
.probs { display: flex; gap: 10px; margin-top: 14px; }
.prob { flex: 1; display: flex; flex-direction: column; align-items: center; }
.prob b { font-size: 16px; font-weight: 800; } .prob b.g, .prob em.g { color: var(--green); } .prob b.n, .prob em.n { color: var(--grey); }
.pbar { margin-top: 6px; width: 100%; height: 4px; border-radius: 4px; background: rgba(255,255,255,.08); overflow: hidden; display: block; }
.pbar i { display: block; height: 100%; } .pbar i.g { background: var(--green); } .pbar i.n { background: var(--grey); }
.prob em { margin-top: 5px; font-style: normal; font-size: 9px; font-weight: 700; letter-spacing: .8px; opacity: .7; }
.advice { margin: 12px 0 0; font-size: 13px; font-weight: 500; line-height: 1.45; }
.tw-pill { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 12px; border-radius: 16px; background: rgba(36,47,61,.5); }
.tw-ico { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.06); display: flex; align-items: center; justify-content: center; color: rgba(117,117,117,.9); flex: none; }
.tw-count { font-size: 26px; font-weight: 900; line-height: 1; letter-spacing: -.5px; }
.tw-text { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tw-h { font-size: 14px; font-weight: 500; line-height: 1.25; } .tw-c { font-size: 11px; color: rgba(117,117,117,.55); }
.tw-pill svg { color: rgba(117,117,117,.7); flex: none; }

/* ---------- H2H ---------- */
.h2h-list { padding: 3px 8px; display: flex; flex-direction: column; gap: 1px; }
.h2h-tile { background: var(--card); border-radius: var(--r-tile); padding: 8px 16px; margin: 4px 0; }
.h2h-league { font-size: 11px; color: var(--grey); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h2h-main { display: flex; align-items: center; }
.h2h-date { font-size: 12px; color: var(--grey); margin-right: 8px; flex: none; }
.h2h-teams { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.h2h-team { display: flex; align-items: center; gap: 6px; min-width: 0; }
.h2h-team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tick { font-style: normal; width: 14px; height: 14px; border-radius: 50%; background: var(--green); color: #212121; font-size: 10px; display: inline-flex; align-items: center; justify-content: center; margin-left: 4px; flex: none; }
.h2h-goals { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 14px; }
.h2h-res { margin-left: 12px; width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: #212121; flex: none; }
.h2h-res.r-W { background: var(--green); } .h2h-res.r-L { background: #ff5252; } .h2h-res.r-D { background: var(--grey); }

/* ---------- Compare ---------- */
.section-label { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 0 16px 0 0; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; }
.section-label i { width: 3px; height: 14px; border-radius: 2px; background: var(--accent); }
.section-label.gap { margin-top: 24px; }

/* ---------- Odds tab ---------- */
.panel[data-panel="odds"] { padding: 6px 12px 24px; }
.pre-match-note { text-align: center; font-size: 10px; font-style: italic; color: rgba(255,255,255,.35); margin: 4px 0 0; }
.o-title { margin: 16px 0 8px; font-size: 12px; font-weight: 500; color: var(--white70); letter-spacing: .2px; }
.odds-row { display: flex; gap: 6px; } .odds-row .chip { flex: 1; }
.odds-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ou-head, .ou-row { display: grid; grid-template-columns: 34px 1fr 1fr; gap: 6px; align-items: center; padding: 5px 10px; }
.ou-head { font-size: 10px; color: rgba(255,255,255,.38); font-weight: 500; text-align: center; padding-bottom: 2px; }
.ou-line { font-size: 11px; color: var(--white54); font-weight: 600; }
.panel[data-panel="events"], .panel[data-panel="stats"], .panel[data-panel="compare"] { overflow: hidden; }
.panel[data-panel="lineups"], .panel[data-panel="h2h"], .panel[data-panel="injuries"] { padding-left: 0; padding-right: 0; }
.panel[data-panel="standings"] { padding-bottom: 24px; }

/* ---------- League and team profile pages ---------- */
.pf-head { display: flex; align-items: center; gap: 16px; padding: 16px 16px 20px; }
/* The back arrow: its own row on wide screens. On phones it joins the header: the arrow and the name on the first line, the logo, the details and the star below, so the details have
   the whole width (a grid: the name and the details start at the same place). */
.pf-head .pf-back { display: none; }
.pf-info { display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 899px) {
  .app:has(.pf-head) .match-top { display: none; }
  .pf-head { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; grid-template-areas: "back name name" "logo info star"; column-gap: 12px; row-gap: 12px; align-items: center; }
  .pf-head .pf-back { grid-area: back; display: flex; width: 40px; height: 40px; margin-left: -6px; align-items: center; justify-content: center; }
  .pf-head .pf-text { display: contents; }
  .pf-head .pf-name { grid-area: name; }
  .pf-head .pf-logo { grid-area: logo; width: 48px; height: 48px; }
  .pf-head .pf-info { grid-area: info; }
  .pf-head .pf-info > :first-child { margin-top: 0; }
  .pf-head .fav-btn { grid-area: star; margin-left: 0; }
  /* a team has only a name and a country, so its header is one row: arrow, logo, the name with the country under it, star */
  .pf-head-team { grid-template-columns: 40px 52px minmax(0, 1fr) auto; grid-template-areas: "back logo text star"; column-gap: 12px; row-gap: 0; }
  .pf-head-team .pf-text { display: flex; grid-area: text; }
  .pf-head-team .pf-logo { width: 52px; height: 52px; }
  .pf-head-team .pf-info { grid-area: auto; }
  .pf-head-team .pf-chip { margin-top: 6px; }
}
.pf-logo { width: 60px; height: 60px; border-radius: 12px; object-fit: cover; flex: none; }
.pf-fallback { background: var(--card); }
.pf-text { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.pf-name { margin: 0; font-weight: 700; line-height: 1.2; letter-spacing: -.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pf-line { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 12px; font-weight: 500; color: var(--white70); letter-spacing: .2px; }
.pf-line.pf-dates { margin-top: 6px; font-size: 11px; color: rgba(255,255,255,.6); }
.pf-line.pf-dates svg { opacity: .8; }
.pf-flag { border-radius: 3px; object-fit: cover; }
.pf-chip { align-self: flex-start; margin-top: 6px; padding: 3px 8px; border-radius: 6px; background: rgba(255,255,255,.07); font-size: 12px; font-weight: 500; color: var(--white70); letter-spacing: .2px; }
.tabs.fill { justify-content: stretch; gap: 0; }
.tabs.fill > .tab { flex: 1; justify-content: center; margin: 0 !important; }
.sub-tabs.bar { padding: 0; }
.sub-tabs.bar .sub-tab { height: 48px; }
.sub-tabs.bar .sub-tab span { padding: 0; border-bottom: 0; }
.sub-tabs.bar .sub-tab.active { box-shadow: inset 0 -2px 0 var(--accent); }
.sub-tabs.scroll { overflow-x: auto; scrollbar-width: none; gap: 24px; padding: 10px 20px 8px; }
.sub-tabs.scroll::-webkit-scrollbar { display: none; }
.sub-tabs.scroll .sub-tab { flex: none; padding: 0 4px; }
.sub-tabs.squad { padding: 6px 20px; }
.pf-time { flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.pf-date { font-size: 11px; font-weight: 700; color: var(--grey); }
.pf-comp { margin: 0; padding: 8px 8px; font-size: 14px; font-weight: 300; color: var(--grey); }
.pf-empty { text-align: center; padding: 24px 0; color: var(--white70); font-size: 14px; }
.pf-stand { margin: 0 6px 12px; border-radius: 12px; overflow: hidden; }
.pf-stand-head { background: var(--card); display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 15px; font-weight: 600; }
.pf-stand-head img { border-radius: 6px; object-fit: contain; }
.pf-stand .panel-box { margin: 0; border: 0; border-radius: 0; }
.pst-card { margin: 12px 12px 8px; display: flex; flex-direction: column; gap: 6px; }  /* one tile per player, no card around them */
.pst-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 10px; background: rgba(255,255,255,.04); }
.pst-rank { min-width: 34px; text-align: center; font-size: 12px; font-weight: 700; }
.pst-photo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; background: rgba(158,158,158,.4); }
.pst-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pst-name { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pst-team { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--grey); min-width: 0; }
.pst-team span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pst-val { padding: 6px 10px; border-radius: 6px; font-size: 13px; white-space: nowrap; }
.pst-val b { color: #fff; margin-right: 4px; }
.pst-val.goals { background: #2e7d32; }
.pst-val.assists { background: #455a64; }
.pst-val.yellow { background: rgba(249,168,37,.2); }
.pst-val.red { background: rgba(198,40,40,.2); }
.pst-rules { text-align: center; margin: 12px 16px 32px; color: var(--grey); font-size: 13px; }
.pst-rules summary { cursor: pointer; list-style: none; font-weight: 500; }
.pst-rules summary::-webkit-details-marker { display: none; }
.pst-rules p, .pst-rules ol { text-align: left; color: var(--white70); font-size: 14px; line-height: 1.5; }
.sq-row { display: flex; align-items: center; gap: 18px; margin: 4px 8px; padding: 12px 14px; background: var(--card); border-radius: 12px; }
.sq-photo { position: relative; width: 56px; height: 56px; flex: none; }
.sq-photo img, .sq-init { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--white70); font-size: 14px; font-weight: 600; }
.sq-num { position: absolute; right: -8px; bottom: -3px; padding: 2px 5px; border-radius: 5px; background: var(--bg); color: var(--accent); font-size: 11px; font-weight: 800; line-height: 1; }
.sq-who { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.sq-name { font-size: 14px; font-weight: 600; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sq-meta { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--white54); }
.sq-meta em { font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: .2px; color: var(--white70); }

/* ---------- TipWall block on the insight tab ---------- */
.tw-block { margin: 12px 0 0; }
.tw-head { display: flex; align-items: center; gap: 12px; padding: 4px 12px 10px; }
.tw-avs { display: inline-flex; flex: none; }
.tw-avs { gap: 4px; }
.tw-sum { display: flex; flex-direction: column; font-size: 13px; min-width: 0; }
.tw-sum small { color: var(--grey); font-size: 11px; margin-top: 2px; }
a.h2h-tile { display: block; }
a.h2h-tile:hover { background: #202020; }
a.sum-line { display: flex; }
.tw-avs .wp-avatar { background: color-mix(in srgb, var(--av) 14%, #1a1a1a); width: 30px; height: 30px; font-size: 15px; }

/* compact TipWall block on phones: two slips, no captions, tighter spacing */
@media (max-width: 767px) {
  .tw-head { padding: 2px 10px 6px; gap: 10px; }
  .tw-block .wp { padding: 8px 10px; }
  .tw-block .wp:nth-of-type(n+3) { display: none; }
  .tw-block .wp-caption { display: none; }
  .tw-pill { margin-top: 8px; padding: 10px 12px; }
}

/* ---------- Overview: AI tips as the pre-match hook ---------- */
.hook-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.hook-pick { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 10px; background: rgba(255,255,255,.04); text-align: center; min-width: 0; }
.hp-cat { font-size: 9px; font-weight: 700; letter-spacing: 1px; color: rgba(117,117,117,.85); }
.hp-val { font-size: 14px; font-weight: 600; line-height: 1.2; color: #fff; overflow-wrap: anywhere; }
.hook-pick .ok, .hook-pick .no { position: absolute; top: 4px; right: 6px; font-size: 11px; }
.hook-pick .ok { color: var(--green); } .hook-pick .no { color: var(--red); }
.see-more.hook-cta { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 8px; padding: 10px 4px 0; color: var(--white54); font-size: 12px; font-weight: 500; }
.see-more.hook-cta:hover { color: #fff; }
.hook-cta-text { display: flex; flex-direction: column; gap: 2px; }
.hook-cta small { font-size: 11px; font-weight: 400; color: var(--grey); }

.match-intro { margin: 8px 12px 4px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); }
.match-recap { margin: 0; font-size: 13px; line-height: 1.55; color: var(--white70); }

.pf-h1 { padding: 8px 14px 4px; font-size: 18px; font-weight: 700; }
.pf-h2 { padding: 14px 14px 6px; font-size: 15px; font-weight: 600; }
.pf-note { margin: 0; padding: 4px 14px 8px; font-size: 13px; color: var(--white54); }
.pf-note a:hover { color: #fff; }

/* related pages under the match */
.related { margin: 4px 12px 28px; padding: 14px; border-radius: 12px; background: var(--card); }
.related h2 { margin: 0 0 10px; font-size: 11px; font-weight: 500; letter-spacing: .8px; color: var(--white54); text-transform: uppercase; }
.related div { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.related a { padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.05); font-size: 12px; color: var(--white70); }
.related a:hover { color: #fff; background: rgba(255,255,255,.09); }

/* the AI picks that can go on a slip */
button.hook-pick { border: 0; color: inherit; font: inherit; cursor: pointer; width: 100%; }
button.hook-pick:hover { background: rgba(255,255,255,.08); }
.hook-pick.sel { background: rgba(248,100,7,.32) !important; }
.hp-odds { font-size: 11px; font-weight: 600; color: var(--white54); }

/* match preview card and section headings */
.preview-card { padding: 14px 16px 12px; }
.pv-title { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.pv-body p { margin: 0 0 10px; font-size: 13px; line-height: 1.6; color: var(--white70); }
.pv-stats { width: 100%; margin: 4px 0 10px; border-collapse: separate; border-spacing: 0 3px; font-size: 12px; }
.pv-stats th, .pv-stats td { padding: 7px 10px; text-align: center; background: rgba(255,255,255,.04); }
.pv-stats thead th { background: none; color: var(--white54); font-weight: 500; }
.pv-stats tbody th { text-align: left; font-weight: 500; color: var(--white54); border-radius: 8px 0 0 8px; }
.pv-stats td:last-child { border-radius: 0 8px 8px 0; }
.pv-stats td { font-weight: 700; color: #fff; }
.pv-body .pv-updated { margin: 0; font-size: 11px; color: var(--grey); }
.panel-h { margin: 0; padding: 12px 16px 6px; text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .2px; line-height: 1.35; color: rgba(255,255,255,.82); }
.pt-text { margin: 0; font-size: 13px; line-height: 1.6; color: var(--white70); }

/* one market of one match */
.mk-head { padding: 6px 16px 10px; }
.mk-head h1 { margin: 6px 0 4px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.mk-meta { margin: 0; font-size: 12px; color: var(--white54); }
.mk-meta b { color: #fff; }
.mk-odds { margin: 0 12px 14px; padding: 12px 14px 14px; border-radius: 12px; background: var(--card); }
.mk-odds .o-title { margin: 0 0 10px; font-size: 13px; font-weight: 500; color: var(--white70); text-transform: none; }
.mk-odds .odds-row { display: flex; gap: 6px; }
.chip { position: relative; }
.mk-res { position: absolute; top: 4px; right: 6px; font-style: normal; font-size: 11px; font-weight: 800; }
.mk-res.won { color: var(--green); } .mk-res.lost { color: var(--red); }
.chip.res-won { background: rgba(42,185,118,.14); } .chip.res-lost { opacity: .7; }
.mk-text .pv-title { font-size: 14px; }

/* Overview: the AI predictions and odds cards, tighter on a phone */
.tips-hook .ov-body, .ov-odds .ov-body { padding: 8px 10px 10px; }
.hook-picks { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px; }
.hook-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "cat odds" "val odds"; align-items: center; column-gap: 8px; row-gap: 1px; padding: 7px 10px; text-align: left; }
.hp-cat { grid-area: cat; font-size: 8px; letter-spacing: .8px; }
.hp-val { grid-area: val; font-size: 13px; line-height: 1.2; }
.hp-odds { grid-area: odds; padding: 3px 7px; border-radius: 6px; background: rgba(255,255,255,.07); font-size: 12px; font-weight: 700; color: #fff; }
.see-more.hook-cta { margin-top: 6px; padding: 6px 4px 0; }
.ov-odds .ov-odds-labels { display: none; }
.ov-odds .sum-gap { height: 6px; }
.ov-odds .ov-odds-head { margin: 0 0 4px; }
.ov-odds .ov-chips { gap: 5px; }
.ov-odds .chip { flex-direction: row; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 10px; border-radius: 8px; }
.ov-odds .chip span { font-size: 10px; }
.ov-odds .chip strong { font-size: 13px; }

/* colour and hierarchy: Preview tab, market write-ups and the Overview cards */
.pv-body p { color: rgba(255,255,255,.82); }
.pv-body .tn, .pt-text .tn { color: #fff; font-weight: 700; }
.pv-body .px, .pt-text .px { color: var(--accent); font-weight: 700; }
.pt-text { color: rgba(255,255,255,.82); }
.pv-block { padding: 12px 0 2px; }
.pv-block:first-child { padding-top: 0; }
.pv-block + .pv-block { margin-top: 2px; }
.pv-label { margin: 0 0 5px; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); }
.preview-card .pv-block p { margin: 0 0 6px; font-size: 14px; line-height: 1.65; }
.pv-stats { margin-top: 12px; }
.pv-stats thead th { color: #fff; font-weight: 700; }
.pv-stats tbody th { color: var(--white70); }
.pv-body .pv-updated { margin-top: 4px; color: var(--white54); }
.ov-card .card-title { color: var(--white70); font-weight: 600; }
.ov-card .card-title .see-more { min-height: 36px; padding: 0 0 0 10px; border-radius: 8px; font-size: var(--fs-body); font-weight: 600; color: var(--accent-soft); } /* reads as a link: orange, a little larger, with room to tap */
.ov-card .card-title .see-more:active { background: rgba(248,100,7,.14); color: var(--accent); }
.ov-card .card-title .see-more svg { width: 15px; height: 15px; }
.hp-cat { color: rgba(255,255,255,.55); }
.hp-val { color: #fff; font-weight: 700; }
.hp-odds { color: #fff; font-weight: 700; background: none; } /* plain white: the primary colour and a tinted background here were too much */
.hook-pick .hp-odds { font-weight: 800; }
.ov-odds .chip span { color: var(--white70); font-weight: 600; }
.ov-odds .chip strong { color: #fff; font-size: 14px; }
.ov-odds .ov-odds-head { color: var(--white54); font-size: 9px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
.inj-list { padding: 4px 12px 8px; }
.inj-page { padding: 0; }

/* ---------- Preview tab: each part of the preview (match, form of each team, head to head, team news ...) in a card of its own ----------
   Hierarchy: the heading is the strongest line, the sentence is softer, and the facts inside it (names, positions, prices, counts, results) stand out. */
.pv-cards { display: flex; flex-direction: column; gap: 10px; padding: 4px 8px 24px; }
.pv-card { padding: 17px 18px 18px; border-radius: 16px; background: var(--card); }
.pv-card .pv-label { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; font-size: 13px; font-weight: 800; letter-spacing: -.1px; color: #fff; }
.pv-card .pv-label::before { content: ""; flex: none; width: 4px; height: 14px; border-radius: 2px; background: var(--accent); }
.pv-card .pv-text { margin: 0; font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.62); }
.pv-card .pv-text .tn { color: #fff; font-weight: 700; }
.pv-card .pv-text .n { color: #fff; font-weight: 600; }
.pv-card .pv-text .hl, .pv-card .pv-text .px { color: var(--accent); font-weight: 800; }
.pv-card .pv-text .fl { font-weight: 800; }
.pv-card .pv-text .grp { white-space: nowrap; }
.pv-card .pv-text .f-W { color: var(--green); } .pv-card .pv-text .f-L { color: var(--red); } .pv-card .pv-text .f-D { color: var(--white54); }
.pv-card .pv-stats { margin: 2px 0 0; }
.pv-cards .pv-updated { margin: 2px 10px 0; font-size: 11px; color: var(--white54); }

/* a list of fixture tiles needs no card around it */
.ov-card.plain { background: none; border-radius: 0; overflow: visible; }
.ov-card.plain .card-title { padding-left: 4px; padding-right: 4px; }
.ov-card.plain .tile { margin-left: 0; margin-right: 0; }

/* ---------- Highlights tab (finished matches): the events told as a story ---------- */
.hl { padding: 4px 12px 16px; }
.hl-lead { margin: 6px 2px 12px; font-size: 15px; line-height: 1.5; font-weight: 500; color: #fff; }
.hl-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; }
.hl-chips li { padding: 6px 10px; border-radius: 10px; background: rgba(255,255,255,.06); font-size: 12px; color: var(--white70); }
.hl-chips b { color: #fff; margin-right: 2px; }
.hl-controls { display: flex; justify-content: flex-end; margin: 0 0 6px; }
.hl:has(#hl-hide-subs:checked) .hl-sub { display: none; }
.hl-feed { list-style: none; margin: 0; padding: 0; }
.hl-mile { margin: 14px 0 8px; padding: 6px 12px; border-radius: 10px; background: rgba(255,255,255,.05); font-size: 11px; font-weight: 700; letter-spacing: .6px; color: var(--white70); text-align: center; }
.hl-m { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.03); }
.hl-time { flex: none; min-width: 44px; padding: 3px 0; border-radius: 8px; background: rgba(158,158,158,.22); font-size: 12px; font-weight: 600; text-align: center; color: #fff; }
.hl-ico { flex: none; width: 22px; padding-top: 2px; text-align: center; font-size: 16px; color: var(--white70); }
.hl-ico i { display: inline-block; font-style: normal; }
.hl-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hl-body b { font-size: 14px; font-weight: 600; color: #fff; }
.hl-body small { font-size: 12px; color: var(--white54); }
.hl-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.hl-tags em { padding: 2px 8px; border-radius: 8px; background: rgba(255,255,255,.08); font-style: normal; font-size: 11px; color: var(--white70); }
.hl-score { flex: none; align-self: center; padding: 4px 10px; border-radius: 10px; background: rgba(255,255,255,.88); font-size: 14px; font-weight: 800; color: #212121; }
.hl-goal { background: rgba(76,175,80,.12); }
.hl-goal .hl-time { background: rgba(255,255,255,.88); color: #212121; }
.hl-red { background: rgba(226,75,74,.14); }
.hl-red .hl-time { background: rgba(226,75,74,.85); }
.hl-miss, .hl-var { background: rgba(248,100,7,.1); }
.hl-sub { background: none; padding-top: 6px; padding-bottom: 6px; }
.hl-sub .hl-body b { font-size: 12px; font-weight: 500; color: var(--white54); }
.hl-sub .hl-time { background: none; color: var(--white38, rgba(255,255,255,.38)); }

/* Overview: every section (preview, tips, odds, stats, events, lineups, standings, more...) runs down the page as a numbered step on a connected line, with no card around them */
.panel[data-panel="briefs"] { counter-reset: flow; }
.ov-card.flow-step { counter-increment: flow; position: relative; margin: 0 16px 0 12px; padding: 0 0 44px 34px; background: none; border-radius: 0; overflow: visible; }
.flow-step::before { content: counter(flow); position: absolute; left: 0; top: 0; z-index: 1; width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.12); color: var(--white70); font-size: var(--fs-label); font-weight: 700; line-height: 24px; text-align: center; }
.flow-step::after { content: ""; position: absolute; left: 11px; top: 32px; bottom: 10px; width: 2px; border-radius: 1px; background: rgba(255,255,255,.1); } /* the line to the next step (a graphic like the events spine, not a border) */
.flow-step:not(:has(~ .flow-step))::after { display: none; }
.flow-step:not(:has(~ .flow-step)) { padding-bottom: 10px; }
.flow-step:not(:has(~ .flow-step)) > .tile { margin-left: -34px; margin-right: -4px; } /* the match tiles of the last step (more from the league) use the full width, the badge and title keep the rail */
.ov-card.flow-step .card-title { height: 24px; min-height: 0; margin-bottom: 10px; padding: 0; align-items: center; } /* the same height as the number badge, so the title and the badge share one centre line */
.ov-card.flow-step .card-title .see-more { margin: -6px 0; } /* the tap area (36px) overhangs the row instead of making it taller */
.flow-step .events-list.compact { padding: 0; }
.flow-step .ov-body, .flow-step .ov-body.tight { padding: 0; }
.flow-step .teams-head { padding: 4px 0 8px; }
.flow-step .split-row { padding: 10px 0; }
/* inside the overview the rows are a summary: smaller figures and labels than on the Stats tab */
.flow-step .split-row { padding: 7px 0; gap: 8px; }
.flow-step .sr-val { width: 40px; font-size: var(--fs-figure); font-weight: 600; }
.flow-step .sr-val .win { font-weight: 700; }
.flow-step .sr-label { margin-bottom: 5px; font-size: var(--fs-label); font-weight: 400; color: var(--grey); }
.flow-step .sr-bar .half { height: 5px; }

/* the preview article of the standalone preview page: bare too */
.ov-card.preview-card { background: none; padding: 14px 4px 12px; }
/* tab panels and swapped days fade in */
@keyframes panel-in { from { opacity: 0; } to { opacity: 1; } }
.js .panel.active:not(.from-left):not(.from-right) { animation: panel-in .2s ease-out; }
main.screen.swap-in { animation: panel-in .24s ease-out; }
@media (prefers-reduced-motion: reduce) { .js .panel.active, main.screen.swap-in { animation: none; } }
/* every second row of a standings table is a shade lighter, so the eye can follow a row from the team to its figures (solid colours: the frozen # and logo cells must stay opaque) */
.st-table tbody tr:nth-child(even):not(.playing) td, .st-table tbody tr:nth-child(even):not(.playing) .s-rank, .st-table tbody tr:nth-child(even):not(.playing) .s-logo { background: #141414; }
