/* Match page. Loaded only on /jogo/{id}. Team palettes come from the page (same rules as the app). */
.mp-club-crest{display:inline-block;line-height:0;border-radius:10px;color:inherit}
.mp-club-name{color:inherit;text-decoration:none}
.mp-club-name:hover{text-decoration:underline;text-underline-offset:3px}
.mp-club-crest:focus-visible,.mp-club-name:focus-visible{outline:2px solid var(--green);outline-offset:4px;border-radius:6px}
/* Scoped internal pregame cards; guide/video/external markup never receives these classes. */
.pre-summary{display:grid;gap:14px;margin-top:14px;min-width:0}
.pre-hero .mp-team{padding-bottom:28px;position:relative}.pre-hero .mp-pos{position:absolute;bottom:0;left:50%;transform:translateX(-50%);white-space:nowrap}
.pre-fact summary>.icon{width:18px;height:18px;margin-bottom:4px}
.pre-panel{padding:18px;border-radius:16px;min-width:0}
.pre-panel>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.pre-panel h2{font-size:16px;margin:0;letter-spacing:-.2px}
.pre-link{background:none;border:0;padding:6px 0;color:var(--green,#12a64c);font:inherit;font-weight:700;font-size:12px;cursor:pointer;text-align:right}
.pre-link:focus-visible,.pre-fact summary:focus-visible{outline:2px solid currentColor;outline-offset:4px}
.pre-link span{font-size:18px;margin-left:4px}
.pre-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:8px}
.pre-fact{border:1px solid var(--line,#dce5ed);border-radius:14px;background:var(--surface,#fff);overflow:hidden}
.pre-fact summary{padding:14px;cursor:pointer;list-style-position:inside;color:var(--green,#12a64c)}
.pre-fact summary small,.pre-fact summary strong{display:block;color:var(--text);margin-top:4px}
.pre-fact summary small{color:var(--muted);font-size:11px}
.pre-fact summary strong{font-size:13px;line-height:1.5}
.pre-fact>div{padding:0 14px 12px;font-size:13px}
.pre-fact>div>img{max-width:100%;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:10px}
.pre-form{display:flex;align-items:center;gap:10px;padding:10px 0;min-width:0}
.pre-form strong{font-size:14px;flex:1;min-width:0}
.pre-form>span{display:flex;gap:4px;flex-shrink:0}
.pre-dot{width:23px;height:23px;display:inline-grid;place-items:center;border-radius:50%;font-style:normal;color:#fff;font-size:10px;font-weight:800}
.pre-dot.is-w{background:#159e50}.pre-dot.is-d,.pre-dot.is-unknown{background:#8998ac}.pre-dot.is-l{background:#dc3641}
.pre-note{font-size:11px;color:var(--muted);margin:10px 0 0;line-height:1.6}
.pre-standing{padding:14px 12px;border-left:3px solid var(--line,#dce5ed);background:var(--bg,#f4f7f5);border-radius:0 12px 12px 0}
.pre-standing+.pre-standing{margin-top:10px}
.pre-standing.is-leading{border-left-color:#16a34a}
.pre-numbers button{display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:0;background:none;border:0;color:inherit;font:inherit;cursor:pointer;text-align:left}
.pre-numbers button:hover small{text-decoration:underline}
.pre-dialog{width:min(600px,calc(100% - 32px));max-height:85dvh;border:1px solid var(--line,#dce5ed);border-radius:18px;padding:20px;color:var(--text);background:var(--surface,#fff)}
.pre-dialog::backdrop{background:#07131e80;backdrop-filter:blur(3px)}.pre-dialog form{text-align:right}.pre-dialog h2{font-size:18px}.pre-dialog details{padding:12px 0}.pre-dialog summary{cursor:pointer;font-size:13px;font-weight:700}
.pre-dialog .pre-comparison{margin-top:12px}.pre-detail-game{display:flex;gap:10px;align-items:center}.pre-detail-game>.pre-meeting{flex:1;min-width:0}
.pre-standing>div:first-child{display:flex;align-items:center;gap:9px;font-size:14px}
.pre-standing strong{flex:1;min-width:0}.pre-rank{background:var(--surface,#fff);border-radius:8px;padding:6px;font-size:13px}
.pre-points{white-space:nowrap;font-size:13px}.pre-numbers{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:14px 0 0 44px}
.pre-numbers span{display:flex;flex-direction:column;gap:5px}.pre-numbers small{color:var(--muted);font-size:11px}.pre-numbers b{font-size:14px}
.pre-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.pre-comparison>div{border:1px solid var(--line,#dce5ed);border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:10px}
.pre-comparison small{text-transform:uppercase;font-size:10px;letter-spacing:.6px;color:var(--muted)}
.pre-comparison strong{font-size:22px;letter-spacing:-.6px}.pre-comparison strong span{font-size:13px;color:var(--muted);padding:0 8px;font-weight:400}
.pre-meeting{display:block;color:inherit;text-decoration:none;padding:12px 0;border-top:1px solid var(--line,#dce5ed)}
.pre-meeting>small{font-size:11px;color:var(--muted)}.pre-meeting>span{display:grid;grid-template-columns:22px 1fr auto 1fr 22px;align-items:center;gap:8px;margin-top:10px;font-size:12px}
.pre-meeting>span>span:last-of-type{text-align:right}.pre-meeting:hover{color:var(--green,#12a64c)}
.pre-lineup-teams{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:16px}
.pre-lineup-teams>div{display:grid;grid-template-columns:28px 1fr;align-items:center;gap:6px 8px;font-size:13px}
.pre-lineup-teams small{grid-column:2;color:var(--muted);font-size:11px}.pre-empty{color:var(--muted);font-size:13px;margin:0;padding:8px 0}
.pre-pitch{position:relative;height:290px;max-width:650px;margin:auto;border:6px solid #237447;border-radius:12px;background:repeating-linear-gradient(90deg,#267e4d 0%,#267e4d 12.5%,#298751 12.5%,#298751 25%);overflow:hidden}
.pre-pitch:before{content:'';position:absolute;inset:10px;border:1px solid #ffffff65}
.pre-pitch:after{content:'';position:absolute;top:10px;bottom:10px;left:50%;border-left:1px solid #ffffff65}
.pre-pitch>i{position:absolute;left:50%;top:50%;width:64px;height:64px;transform:translate(-50%,-50%);border:1px solid #ffffff65;border-radius:50%}
.pre-player{position:absolute;display:flex;align-items:center;flex-direction:column;transform:translate(-50%,-50%);width:52px;z-index:1}
.pre-player img{width:24px;height:24px;border-radius:50%;background:#fff;border:2px solid #4ade80;object-fit:cover}.pre-player.is-away img{border-color:#22d3ee}
.pre-player small{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;text-shadow:0 1px 3px #000;font-size:9px;line-height:1.6}
@media(max-width:550px){.pre-panel{padding:14px}.pre-panel h2{font-size:14px}.pre-form strong{font-size:12px}.pre-dot{width:19px;height:19px;font-size:9px}.pre-numbers{grid-template-columns:repeat(3,minmax(0,1fr));margin-left:0}.pre-pitch{height:260px}.pre-player{width:40px}.pre-player img{width:20px;height:20px}.pre-player small{font-size:8px}.pre-standing>div:first-child{font-size:12px}.pre-link{font-size:11px}}
@media(max-width:320px){.pre-pitch{display:none}.pre-form{flex-wrap:wrap}.pre-form>span{margin-left:auto}}
.mp, .watch-guide {
  --st-home: var(--sh-l, #15803D); --st-away: var(--sa-l, #2563EB);
  --st-home-text: var(--sth-l, var(--text)); --st-away-text: var(--sta-l, var(--text));
  --dom-home: var(--dh-l, #15803D); --dom-away: var(--da-l, #2563EB);
  --r1: #197A45; --r2: #2F7D57; --r3: #8A6418; --r4: #A33B3B;
  --pitch-a: #1E7A45; --pitch-b: #1A6E3E;
}
.mp {
  display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; align-items: start;
}
/* Wider page on desktop (match page only); header and footer follow so edges line up. */
.page-match { max-width: 1360px; }
body:has(.page-match) .site-header .wrap, body:has(.page-match) .site-footer .wrap { max-width: 1360px; }
.fact-league { display: flex; align-items: center; gap: 6px; }
@media (min-width: 1200px) {
  .mp-title { font-size: 20px; }
  .mp-hero { padding: 22px 20px; }
  .mp-crest { width: 84px; height: 84px; }
  .mp-team-name { font-size: 19px; }
  .mp-score { font-size: 52px; }
  .mp-goals { font-size: 13px; }
  .mp-tabs a { min-height: 44px; padding: 0 18px; font-size: 15px; }
  .mp-block { padding: 20px; }
  .mp-block > h2 { font-size: 18px; }
  .st-v { font-size: 15px; } .st-v span { font-size: 14px; }
  .ev-body { font-size: 15px; }
  .fact dd { font-size: 15px; }
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mp, :root:not([data-theme="light"]) .watch-guide {
    --st-home: var(--sh-d, #4ADE80); --st-away: var(--sa-d, #60A5FA); --dom-home: var(--dh-d, #4ADE80); --dom-away: var(--da-d, #60A5FA);
    --st-home-text: var(--sth-d, var(--text)); --st-away-text: var(--sta-d, var(--text));
    --r1: #46B979; --r2: #68A982; --r3: #C59A3C; --r4: #C65C5C; --pitch-a: #14532D; --pitch-b: #124A28;
  }
}
:root[data-theme="dark"] .mp, :root[data-theme="dark"] .watch-guide {
  --st-home: var(--sh-d, #4ADE80); --st-away: var(--sa-d, #60A5FA); --dom-home: var(--dh-d, #4ADE80); --dom-away: var(--da-d, #60A5FA);
  --st-home-text: var(--sth-d, var(--text)); --st-away-text: var(--sta-d, var(--text));
  --r1: #46B979; --r2: #68A982; --r3: #C59A3C; --r4: #C65C5C; --pitch-a: #14532D; --pitch-b: #124A28;
}
.mp-main { display: grid; gap: 14px; min-width: 0; }
.mp-rail { position: sticky; top: 76px; display: grid; gap: 14px; min-width: 0; }
.mp-dom-slot:empty, .mp-situation-slot:empty { display: none; }
html:not(.js) .js-only { display: none !important; }
.muted { color: var(--muted); }
.mp h2, .mp h3 { margin: 0; }

/* Toolbar */
.mp-toolbar { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mp-back { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding-right: 6px; color: var(--muted); font-weight: 700; flex: none; }
.mp-back .ic { transform: rotate(180deg); }
.mp-title { flex: 1; min-width: 0; font-size: 18px; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Hero */
.mp-hero { padding: 18px 16px; display: grid; gap: 8px; text-align: center; background: linear-gradient(160deg, var(--green-soft), var(--surface) 55%); }
.mp-meta { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; color: var(--muted); font-weight: 700; font-size: 14px; }
.mp-date { color: var(--muted); font-size: 13px; }
.mp-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: start; margin-top: 4px; }
.mp-team { display: grid; justify-items: center; gap: 6px; min-width: 0; }
.mp-crest { width: 72px; height: 72px; object-fit: contain; }
.mp-team-name { display: inline-flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.mp-goals { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 12px; font-weight: 700; color: var(--muted); }
.mp-more-goals summary { cursor: pointer; color: var(--green); list-style: none; font-weight: 900; }
.mp-more-goals summary::-webkit-details-marker { display: none; }
.mp-more-goals ul { list-style: none; margin: 4px 0 0; padding: 8px; border-radius: 10px; background: var(--surface-2); }
.mp-center { display: grid; justify-items: center; gap: 4px; padding-top: 10px; min-width: 96px; }
.mp-score { display: flex; gap: 10px; font-size: 44px; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.mp-score span { color: var(--muted); font-weight: 700; }
.mp-vs { font-size: 30px; color: var(--muted); font-weight: 800; }
.mp-pen { color: var(--muted); font-size: 13px; font-weight: 700; }
.mp-status { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--muted); }
.mp-status.is-live { color: var(--live); }
.mp-countdown { font-size: 13px; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }

/* Broadcast */
.mp-broadcast { padding: 12px; display: grid; gap: 10px; }
.mp-broadcast-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.mp-broadcast .player-caption { display: grid; gap: 2px; }
.about-stream summary { list-style: none; }
.about-stream summary::-webkit-details-marker { display: none; }

/* Facts and dominance */
.mp-facts { margin: 0; padding: 6px 14px; display: grid; }
.fact { padding: 10px 0; display: grid; gap: 2px; }
.fact + .fact { border-top: 1px solid var(--line); }
.fact dt { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 0; font-weight: 700; }
.fact .fact-sub { font-weight: 500; font-size: 13px; color: var(--muted); }
.mp-dominance { padding: 12px 14px; display: grid; gap: 6px; }
.dom-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.dom-home, .dom-away { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; }
.dom-home { color: var(--dom-home); }
.dom-away { color: var(--dom-away); }
.dom-info { text-align: center; font-size: 11px; font-weight: 800; color: var(--muted); }
.dom-info summary { cursor: pointer; list-style: none; min-height: 32px; display: inline-flex; align-items: center; gap: 4px; }
.dom-info summary::-webkit-details-marker { display: none; }
.dom-info p { font-weight: 500; font-size: 13px; text-align: left; margin-top: 6px; color: var(--text); }
.dom-info p.muted { color: var(--muted); }
.dom-i { font-size: 14px; }
.dom-track { position: relative; height: 8px; border-radius: 999px; overflow: visible; display: flex; background: var(--surface-2); }
.dom-fill-home { background: linear-gradient(90deg, color-mix(in srgb, var(--dom-home) 50%, transparent), var(--dom-home)); border-radius: 999px 0 0 999px; }
.dom-fill-away { flex: 1; background: linear-gradient(90deg, var(--dom-away), color-mix(in srgb, var(--dom-away) 50%, transparent)); border-radius: 0 999px 999px 0; }
.dom-knob { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid color-mix(in srgb, var(--dom-home) 50%, var(--dom-away)); transform: translate(-50%, -50%); box-shadow: 0 0 6px rgba(0, 0, 0, .25); transition: left .7s ease; }
.dom-teams { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); font-weight: 600; }

/* Tabs */
.mp-tabs-wrap { display: grid; gap: 12px; min-width: 0; scroll-margin-top: 70px; }
.mp-tabs { position: sticky; top: 60px; z-index: 6; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.mp-tabs::-webkit-scrollbar { display: none; }
.mp-tabs a { flex: none; display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; font-weight: 800; font-size: 14px; color: var(--muted); white-space: nowrap; }
.mp-tabs a.is-active { background: var(--green); color: var(--on-green); }
[data-panel] { display: grid; gap: 12px; min-width: 0; }
[data-panel][hidden] { display: none; }
.loading { padding: 24px; text-align: center; color: var(--muted); }

/* Blocks and chips */
.mp-block { padding: 16px; display: grid; gap: 12px; min-width: 0; }
.mp-article { line-height: 1.6; }
.mp-article h3 { margin: 3px 0; }
.mp-article section p + p { margin-top: 5px; }
.watch-guide { width: min(100%, 820px); margin-inline: auto; }
@media (min-width: 1440px) {
  .watch-guide { width: min(100%, 1100px); }
  .watch-guide .watch-nav:not(.watch-match-tabs) { display: none; }
}
.watch-guide [id] { scroll-margin-top: 84px; }
.watch-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.watch-nav a, .watch-nav button { border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: var(--surface); color: var(--text); font-weight: 700; }
.watch-nav button { cursor: pointer; }
.watch-nav button[aria-selected="true"] { background: var(--green-soft); border-color: var(--green); }
.watch-guide .watch-match-tabs { gap: 5px; padding: 5px; width: fit-content; max-width: 100%; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 3px 12px rgba(15, 35, 25, .04); }
.watch-guide .watch-match-tabs button { min-height: 40px; padding: 9px 18px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted); font-size: 14px; transition: background .15s, color .15s; }
.watch-guide .watch-match-tabs button:hover { background: var(--surface-2); color: var(--text); }
.watch-guide .watch-match-tabs button[aria-selected="true"] { background: var(--green); border-color: var(--green); color: #fff; box-shadow: 0 2px 5px rgba(0, 120, 55, .15); }
.watch-guide .watch-match-tabs button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.watch-summary { padding: 24px; }
.watch-summary-heading { display: flex; align-items: center; gap: 12px; }
.watch-summary-heading h2 { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: 18px; line-height: 1.4; }
.watch-summary-icon, .watch-channel-icon { display: grid; place-items: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; color: var(--green); background: var(--green-soft); }
.watch-summary-intro { line-height: 1.8; margin: 16px 0 20px; color: var(--text); }
.watch-summary-facts { display: grid; grid-template-columns: 1.3fr 1.5fr .65fr; gap: 12px; margin: 0; }
.watch-summary-facts > div { min-width: 0; padding: 15px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.watch-summary-facts dt { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.watch-summary-facts dt .ic { width: 16px; height: 16px; flex-shrink: 0; }
.watch-summary-facts dd { margin: 0; font-size: 14px; line-height: 1.6; font-weight: 600; overflow-wrap: anywhere; }
.watch-broadcast { padding: 20px 24px; gap: 14px; }
.watch-broadcast .player-caption { margin: 0; }
.watch-broadcast .watch-channel-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.watch-broadcast .watch-channel-cards li { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.watch-channel-cards strong { display: block; font-size: 14px; line-height: 1.5; }
.watch-channel-cards small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.watch-broadcast .about-stream { padding-top: 13px; border-top: 1px solid var(--line); }
.watch-broadcast .about-stream summary { width: fit-content; cursor: pointer; font-size: 12px; color: var(--muted); line-height: 1.6; }
@media (max-width: 700px) {
  .watch-summary, .watch-broadcast { padding: 17px; }
  .watch-summary-heading h2 { font-size: 16px; }
  .watch-summary-facts { grid-template-columns: 1fr; gap: 9px; }
  .watch-summary-facts > div { padding: 12px 14px; }
  .watch-guide .watch-match-tabs { width: 100%; min-width: 0; flex-wrap: nowrap; overflow-x: auto; }
  .watch-guide .watch-match-tabs button { flex: 1 0 auto; white-space: nowrap; padding: 8px 11px; font-size: 12px; }
  .watch-broadcast .watch-channel-cards { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}
.watch-match-details [data-watch-panel]:not([hidden]) { margin-top: 12px; }
.watch-transmission-panel { display: grid; gap: 14px; }
.watch-transmission-panel[hidden] { display: none; }
@media (max-width: 767px) {
  .watch-match-tabs { gap: 6px; }
  .watch-match-tabs button { padding-inline: 9px; }
}
.watch-lineups > h2 { margin: 0 0 10px; font-size: 18px; }
.watch-faq details, .watch-history { border-top: 1px solid var(--line); padding-top: 10px; }
.watch-faq summary, .watch-history summary { font-weight: 700; cursor: pointer; }
.watch-faq details p { margin: 8px 0 0; }
.watch-history { margin-top: 10px; }
.watch-history ul { padding: 0; list-style: none; }
.watch-history li { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 7px 0; }
.watch-upcoming > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.watch-upcoming h3 { margin: 0 0 6px; }
.watch-upcoming ul { list-style: none; padding: 0; margin: 0; }
.watch-upcoming li { padding: 8px 0; border-top: 1px solid var(--line); }
.watch-upcoming li a { display: flex; align-items: center; gap: 8px; }
.watch-upcoming li small { display: block; color: var(--muted); padding-left: 32px; }
.mp-block > h2 { font-size: 16px; font-weight: 900; }
.mp-sub { font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-top: 6px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 13px; cursor: pointer; }
.chip.is-active { background: var(--green-soft); border-color: var(--green); color: var(--green); }
.mp-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--green); font-weight: 800; }
.mp-app-hint { text-align: center; }

/* Statistics */
.st-teams { display: grid; grid-template-columns: 22px 1fr 1fr 22px; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; }
.st-teams span:nth-of-type(2) { text-align: right; }
.stats-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.st-v { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; font-size: 14px; }
.st-v span { text-align: center; color: var(--muted); font-weight: 600; font-size: 13px; }
.st-v b:last-child { text-align: right; }
.st.lead-home .st-v b:first-child { color: var(--st-home-text); }
.st.lead-away .st-v b:last-child { color: var(--st-away-text); }
.st-bar { display: flex; gap: 3px; height: 6px; margin-top: 6px; }
.st-bar i { display: block; height: 100%; border-radius: 999px; min-width: 2px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 28%, transparent); }
.st-home { background: var(--st-home); }
.st-away { background: var(--st-away); }
.transmission-table-gap td { text-align: center; padding-block: 3px; color: var(--muted); }
.transmission-table-full { margin-top: 15px; }
.transmission-table-full > summary { display: flex; width: fit-content; cursor: pointer; gap: 9px; list-style: none; }
.transmission-table-full > summary::-webkit-details-marker { display: none; }
.transmission-table-full .table-collapse-label { display: none; }
.transmission-table-full[open] > summary .table-expand-label { display: none; }
.transmission-table-full[open] > summary .table-collapse-label { display: inline; }
.transmission-table-full[open] > summary .ic { transform: rotate(90deg); }
.transmission-table-full > .mp-block { margin-top: 12px; box-shadow: none; }
.st.is-empty .st-bar i { background: var(--surface-2); }

/* Events */
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.ev { display: grid; grid-template-columns: 46px 26px 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; border-left: 3px solid var(--st-home); background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.ev.is-away { border-left-color: var(--st-away); }
.ev[hidden] { display: none; }
.ev-min { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; }
.ev-ic { display: inline-grid; place-items: center; width: 22px; height: 22px; font-size: 15px; }
.ev-goal::before, .ev-goal-alt::before { content: "⚽"; }
.ev-goal-alt { filter: grayscale(1); opacity: .7; }
.ev-yellow::before, .ev-red::before { content: ""; width: 12px; height: 16px; border-radius: 2px; background: #FACC15; }
.ev-red::before { background: var(--red-card); }
.ev-subst::before { content: "⇄"; font-weight: 900; color: var(--green); }
.ev-var::before { content: "VAR"; font-size: 9px; font-weight: 900; color: #2563EB; }
.ev-other::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.ev-body { display: grid; gap: 1px; min-width: 0; font-size: 14px; }
.ev-body span { overflow-wrap: anywhere; }
.ev-body small { color: var(--muted); font-size: 12px; }
.ev-tag { color: var(--muted); font-size: 12px; font-weight: 700; }
.ev-score { font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ev-sides { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--muted); }
.ev-sides span::before { content: ""; display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; background: var(--st-home); }
.ev-sides span:last-child::before { background: var(--st-away); }

/* Lineups */
.lu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.lu-head { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 900; }
.lu-head h2 { font-size: 16px; flex: 1; }
.lu-team.is-home .pl-num { background: var(--st-home); }
.lu-team.is-away .pl-num { background: var(--st-away); }
.pitch { position: relative; list-style: none; margin: 0; padding: 0; aspect-ratio: 3 / 4; max-width: 100%; border-radius: 14px; overflow: hidden;
  background-color: #1A6E3E; background-image: repeating-linear-gradient(180deg, var(--pitch-a, #1E7A45) 0 10%, var(--pitch-b, #1A6E3E) 10% 20%); }
.pitch::before { content: ""; position: absolute; inset: 4%; border: 2px solid rgba(255, 255, 255, .35); border-radius: 4px;
  background: linear-gradient(rgba(255, 255, 255, .35), rgba(255, 255, 255, .35)) center / 100% 2px no-repeat; }
.pitch::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; border: 2px solid rgba(255, 255, 255, .35); border-radius: 50%; transform: translate(-50%, -50%); }
.pitch li { position: absolute; z-index: 1; transform: translate(-50%, -50%); }
.pl-pitch { display: grid; justify-items: center; gap: 2px; max-width: 84px; padding: 3px; border: 0; border-radius: 10px; background: transparent; color: #fff; cursor: pointer; }
.pl-pitch:hover { background: rgba(0, 0, 0, .22); }
.pl-num { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 4px; border-radius: 50%; color: #fff; font-weight: 900; font-size: 12px; border: 2px solid rgba(255, 255, 255, .85); }
.pl-name { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 800; text-shadow: 0 1px 2px rgba(0, 0, 0, .7); }
.rating { display: inline-block; padding: 1px 5px; border-radius: 6px; font-size: 11px; font-weight: 900; background: var(--surface); }
.rating.r1 { color: var(--r1); } .rating.r2 { color: var(--r2); } .rating.r3 { color: var(--r3); } .rating.r4 { color: var(--r4); }
.pl-badges { display: inline-flex; flex-wrap: wrap; gap: 2px; justify-content: center; }
.pl-badge { font-size: 10px; font-weight: 800; padding: 0 4px; border-radius: 6px; background: rgba(0, 0, 0, .35); color: #fff; }
.bench .pl-badge, .pl-card .pl-badge { background: var(--surface-2); color: var(--text); }
.pl-badge.b-in { color: var(--green); } .pl-badge.b-out { color: var(--red-card); }
.lu-coach { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.lu-coach small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; font-weight: 800; }
.pl-photo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.bench { list-style: none; margin: 0; padding: 0; display: grid; }
.bench li + li { border-top: 1px solid var(--line); }
.pl-row { width: 100%; display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; align-items: center; gap: 8px; min-height: 48px; padding: 4px 2px; border: 0; background: transparent; text-align: left; cursor: pointer; }
.pl-row:hover { background: var(--surface-2); }
.pl-row .pl-num { background: var(--surface-2) !important; color: var(--text); border-color: var(--line); }
.pl-row-name { display: grid; font-weight: 700; min-width: 0; }
.pl-row-name small { color: var(--muted); font-weight: 500; }
.pl-dialog { width: min(440px, calc(100vw - 24px)); max-height: 86vh; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); }
.pl-dialog::backdrop { background: rgba(0, 0, 0, .55); }
.pl-close { position: absolute; right: 10px; top: 10px; }
.pl-card { padding: 18px; display: grid; gap: 14px; }
.pl-card-head { display: flex; gap: 12px; align-items: center; padding-right: 44px; }
.pl-card-head .pl-photo { width: 64px; height: 64px; }
.pl-card-head h2 { font-size: 18px; }
.pl-card-head p { color: var(--muted); font-size: 13px; }
.pl-team { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text) !important; }
.pl-stats { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pl-stat { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.pl-stat dt { color: var(--muted); }
.pl-stat dd { margin: 0; font-weight: 900; }

/* Standings */
.table-scroll { overflow-x: auto; max-width: 100%; }
.st-table, .cmp-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.st-table { min-width: 560px; }
.st-table.transmission-compact-table { min-width: 0; }
.transmission-compact-table .st-club { white-space: normal; }
.transmission-compact-table .st-club img { flex-shrink: 0; }
.st-table th { font-size: 11px; color: var(--muted); font-weight: 800; text-align: center; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.st-table th:nth-child(2) { text-align: left; }
.st-table td { text-align: center; padding: 7px 4px; border-bottom: 1px solid var(--line); }
.st-table tbody[hidden] { display: none; }
.st-rank { border-left: 3px solid var(--zone, transparent); font-weight: 800; }
.st-club { text-align: left !important; }
.st-club { display: flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; }
.st-pts { font-weight: 900; }
.st-table tr.is-match td { background: var(--green-soft); font-weight: 800; }
.st-form { display: inline-flex; gap: 2px; }
.st-form i { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; font-size: 10px; font-style: normal; font-weight: 900; color: #fff; background: var(--muted); }
.st-form i.f-w { background: #16A34A; } .st-form i.f-d { background: #94A3B8; } .st-form i.f-l { background: #DC2626; }
.zone-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--muted); }
.zone-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ties { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tie { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; padding: 8px; border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.tie span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.tie span:last-child { justify-content: flex-end; }
.tie .is-winner { font-weight: 900; }
.tie.is-match { outline: 2px solid var(--green); }
.situation { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.situation li { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; font-size: 14px; }

/* H2H: Comparativo, Confrontos diretos, Últimos jogos */
.h2x { gap: 16px; }
.h2x [hidden] { display: none !important; }
.h2x-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.h2x-head h2 { font-size: 18px; font-weight: 900; }
.h2x-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.h2x-controls .chips { flex-wrap: wrap; overflow: visible; }
.h2x-limit { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.h2x-limit select { min-height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 800; cursor: pointer; }
.h2x-panel { display: grid; gap: 14px; }
.h2x-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; cursor: pointer; list-style: none; }
.h2x-summary::-webkit-details-marker { display: none; }
.h2x-summary h2 { font-size: 18px; font-weight: 900; }
.h2x-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--green-soft); color: var(--green); font-size: 14px; font-weight: 800; white-space: nowrap; }
.h2x-toggle::before { content: "Expandir"; }
.h2x-toggle::after { content: "▾"; transition: transform .2s; }
.h2x-details[open] .h2x-toggle::before { content: "Recolher"; }
.h2x-details[open] .h2x-toggle::after { transform: rotate(180deg); }
.h2x-details-body { display: grid; gap: 16px; margin-top: 12px; }
.h2x-summary h2 { flex: none; }
.h2x-teasers { flex: 1; min-width: 0; display: flex; justify-content: center; }
.h2x-details[open] .h2x-teasers { display: none; }
.h2x-teaser { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 18px; }
.h2x-mini { display: inline-flex; align-items: baseline; gap: 5px; white-space: nowrap; }
.h2x-mini small { font-size: 12px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.h2x-mini b { font-size: 17px; font-weight: 900; font-variant-numeric: tabular-nums; }
.h2x-mini .is-home { color: var(--st-home); } .h2x-mini .is-away { color: var(--st-away); }
.h2x-mini i { font-style: normal; font-size: 12px; color: var(--muted); }
.h2x-mini-note { font-size: 12px; color: var(--muted); font-weight: 600; }
@media (max-width: 767px) {
  .h2x-summary { flex-wrap: wrap; }
  .h2x-teasers { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .h2x-teaser { justify-content: flex-start; gap: 6px 14px; }
}
.h2x-teams { display: flex; justify-content: space-between; gap: 12px; }
.h2x-teams > span { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.h2x-teams > span > span { display: grid; min-width: 0; }
.h2x-teams b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2x-teams small { color: var(--muted); font-weight: 600; }
.h2x-teams .is-away { text-align: right; }
.h2x-cards { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.h2x-card { padding: 12px; border-radius: 12px; background: var(--surface-2); display: grid; gap: 6px; }
.h2x-card dt { font-size: 12px; color: var(--muted); font-weight: 800; }
.h2x-card dd { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.h2x-card b { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.h2x-card .is-home { color: var(--st-home); } .h2x-card .is-away { color: var(--st-away); }
.h2x-card span { color: var(--muted); font-size: 12px; }
.h2x-rows { display: grid; gap: 4px; }
.h2x-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(120px, 190px) minmax(0, 1fr) 64px; align-items: center; gap: 12px; min-height: 36px; }
.h2x-val { font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.h2x-val.is-home { color: var(--st-home); } .h2x-val.is-away { color: var(--st-away); text-align: right; }
.h2x-label { text-align: center; font-size: 14px; font-weight: 700; color: var(--muted); }
.h2x-bar { display: flex; height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.h2x-bar.is-home { justify-content: flex-end; }
.h2x-bar i { display: block; height: 100%; border-radius: 999px; }
.h2x-bar.is-home i { background: var(--st-home); } .h2x-bar.is-away i { background: var(--st-away); }
.h2x-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: center; }
.h2x-sum > div { display: grid; justify-items: center; gap: 2px; padding: 14px 8px; border-radius: 14px; background: var(--surface-2); min-width: 0; }
.h2x-sum-name { font-size: 14px; font-weight: 800; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2x-sum b { font-size: 36px; line-height: 1.1; font-weight: 900; font-variant-numeric: tabular-nums; }
.h2x-sum .is-home b { color: var(--st-home); } .h2x-sum .is-away b { color: var(--st-away); }
.h2x-sum span:not(.h2x-sum-name) { font-size: 13px; color: var(--muted); font-weight: 700; }
.h2x-sum small { font-size: 15px; font-weight: 800; }
.h2x-sum-wrap { display: grid; gap: 10px; }
.h2h-bar { display: flex; gap: 3px; height: 10px; }
.h2h-bar i { border-radius: 999px; }
.h2h-draw { background: var(--muted); opacity: .5; }
.h2x-goals { font-size: 14px; color: var(--muted); text-align: center; }
.h2x-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.h2x-match, .h2x-game { display: grid; gap: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface-2) 40%, transparent); }
.h2x-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13px; color: var(--muted); font-weight: 700; }
.h2x-league { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.h2x-line { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.h2x-team { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; min-width: 0; }
.h2x-team.is-left { justify-content: flex-end; text-align: right; }
.h2x-score { font-size: 20px; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; }
.res { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-weight: 900; font-size: 13px; color: #fff; background: var(--muted); }
.res-w { background: #16A34A; } .res-d { background: #94A3B8; } .res-l { background: #DC2626; }
.h2x-last-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.h2x-team-col { display: grid; gap: 10px; align-content: start; min-width: 0; }
.h2x-team-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 900; margin: 0; }
.h2x-form { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; font-size: 13px; font-weight: 700; color: var(--muted); }
.h2x-form .st-form i { width: 22px; height: 22px; font-size: 11px; }
.h2x-game-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; }
.h2x-opp { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; min-width: 0; }
.h2x-opp span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2x-opp small { color: var(--muted); font-weight: 600; }
.pill.is-home-pill { background: var(--green-soft); color: var(--green); }
.h2x-goals-line { font-size: 13px; color: var(--muted); }

/* Tablet */
@media (max-width: 1199px) {
  .mp { grid-template-columns: minmax(0, 1fr) 280px; }
  .h2x-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h2x-row { grid-template-columns: 52px minmax(0, 1fr) minmax(96px, 140px) minmax(0, 1fr) 52px; gap: 8px; }
  .h2x-val { font-size: 16px; }
}
/* Mobile: one column, reordered so facts and dominance follow the player. */
@media (max-width: 767px) {
  .mp { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .mp-main, .mp-rail { display: contents; }
  .mp-toolbar { order: 0; } .mp-hero { order: 1; } .mp-broadcast { order: 2; } .mp-facts { order: 3; } .mp-dom-slot { order: 4; }
  .mp-tabs-wrap { order: 5; } .mp-situation-slot { order: 6; } .mp-cta-slot { order: 7; }
  .mp > *, .mp-main > *, .mp-rail > * { min-width: 0; }
  .mp-facts { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); column-gap: 14px; }
  .fact + .fact { border-top: 0; }
  .mp-tabs { position: static; }
  .mp-title { font-size: 16px; }
  .mp-crest { width: 56px; height: 56px; }
  .mp-score { font-size: 36px; }
  .mp-team-name { font-size: 14px; }
  .mp-center { min-width: 80px; }
  .mp-block { padding: 14px 12px; }
  .st-v { grid-template-columns: 52px 1fr 52px; }
  .ev { grid-template-columns: 40px 22px minmax(0, 1fr) auto; padding: 8px; }
  .js .lu-grid:not([data-team="1"]) [data-lu-block="1"], .js .lu-grid[data-team="1"] [data-lu-block="0"] { display: none; }
  .pl-stats { grid-template-columns: 1fr; }
  .h2x-controls .chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
  .h2x-controls { width: 100%; }
  .h2x-row { grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr) 44px; grid-template-areas: "label label label label" "hv hb ab av"; gap: 2px 8px; }
  .h2x-label { grid-area: label; font-size: 13px; }
  .h2x-val.is-home { grid-area: hv; } .h2x-bar.is-home { grid-area: hb; } .h2x-bar.is-away { grid-area: ab; } .h2x-val.is-away { grid-area: av; }
  .h2x-sum b { font-size: 28px; }
  .h2x-sum-name { font-size: 12px; }
  .h2x-line { gap: 8px; }
  .h2x-team { font-size: 13px; }
  .h2x-score { font-size: 17px; }
  .h2x-card b { font-size: 18px; }
  .h2x-last-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 768px) { .lu-chips { display: none !important; } }

/* ==========================================================================================
   ROSTOS E POSIÇÃO — o que faltava em relação ao aplicativo.
   A foto vem da escalação, cruzada por id; sem ela, as iniciais, nunca um buraco.
   ========================================================================================== */
.pl-face {
    width: 34px; height: 34px; border-radius: 50%; object-fit: cover;
    background: var(--surface-2); border: 1px solid var(--line); flex: none;
}
.pl-face-txt {
    display: inline-grid; place-items: center; font-size: 12px; font-weight: 900;
    color: var(--muted); letter-spacing: .02em;
}
/* A foto por cima das iniciais: se ela nao carregar, o que ja esta embaixo e a resposta certa. */
.pl-face-box { position: relative; display: inline-grid; place-items: center; }
.pl-face-box .pl-face-img { position: absolute; inset: 0; width: 100%; height: 100%; }

/* No campo e no banco: o retrato com o número por cima, que é o que identifica quem joga. */
.pl-avatar { position: relative; display: inline-grid; place-items: center; }
.pl-avatar .pl-num {
    position: absolute; right: -4px; bottom: -4px; min-width: 20px; height: 20px;
    font-size: 11px; border-width: 2px; background: rgba(0, 0, 0, .55);
}
.pl-avatar.is-row { margin-right: 2px; }
.pl-avatar.is-row .pl-num {
    background: var(--surface-2); color: var(--text); border-color: var(--line);
}
.pl-pitch .pl-face { width: 34px; height: 34px; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }

/* Linha do tempo: o rosto de quem protagonizou o lance. */
.ev-face { display: inline-grid; place-items: center; }
.ev-face .pl-face { width: 34px; height: 34px; }

/* Cabeçalho: a posição na tabela logo abaixo do escudo. */
.mp-pos {
    display: inline-flex; align-items: baseline; gap: 5px; margin: 0;
    padding: 2px 9px; border-radius: 999px; background: var(--surface-2);
    border: 1px solid var(--line); line-height: 1.3;
}
.mp-pos strong { font-size: 13px; font-weight: 900; }
.mp-pos span { font-size: 11px; font-weight: 700; color: var(--muted); }

/* Cabeçalho: o gol com o rosto de quem marcou. */
.mp-goals li { display: flex; align-items: center; gap: 5px; justify-content: center; }
.mp-goals .pl-face { width: 22px; height: 22px; }
.mp-goal-ic { font-size: 11px; }
.mp-goal-nome { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 15ch; }
.mp-goals small { color: var(--muted); font-variant-numeric: tabular-nums; }
.mp-team.is-away .mp-goals li { flex-direction: row-reverse; }

/* Ficha: a foto do estádio, que o payload já trazia e o site ignorava. */
.fact.has-img { position: relative; }
.mp-venue-img {
    width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
    border-radius: var(--radius-sm, 10px); margin-bottom: 8px; background: var(--surface-2);
}
@media (max-width: 560px) {
    .ev { grid-template-columns: 40px 22px 30px minmax(0, 1fr) auto; gap: 6px; }
    .ev-face .pl-face { width: 30px; height: 30px; }
    .mp-goal-nome { max-width: 11ch; }
}

/* ==========================================================================================
   LINHA DO TEMPO — porte de game_events.dart.
   Trilho central, lances alternando pelo time, minuto sobre o trilho, ponto ligando o cartao.
   As cores sao as mesmas de `_timelineTone`, com o par claro/escuro de cada tipo.
   ========================================================================================== */
.tl { list-style: none; margin: 10px 0 0; padding: 0; }
.tl-ev { display: grid; grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); align-items: stretch; --tl: var(--muted); }
.tl-ev.k-goal, .tl-ev.k-penalty_goal { --tl: #168343; }
.tl-ev.k-own_goal { --tl: #AD5512; }
.tl-ev.k-yellow { --tl: #886500; }
.tl-ev.k-second_yellow { --tl: #AD4C19; }
.tl-ev.k-red { --tl: #B92C46; }
.tl-ev.k-substitution { --tl: #276AB8; }
.tl-ev.k-missed_penalty { --tl: #8456A4; }
.tl-lado { padding-bottom: 10px; min-width: 0; }

/* O trilho: a linha vertical, o ponto do lado do cartao e o tracinho que liga os dois. */
.tl-trilho { position: relative; display: flex; justify-content: center; }
.tl-trilho::before {
    content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
    margin-left: -.5px; background: color-mix(in srgb, var(--text) 18%, transparent);
}
.tl-ev.is-first .tl-trilho::before { top: 28px; }
.tl-ev.is-last .tl-trilho::before { bottom: calc(100% - 28px); }
.tl-trilho::after {
    content: ""; position: absolute; top: 24px; width: 8px; height: 8px; border-radius: 50%;
    background: var(--tl);
}
.tl-ev.is-home .tl-trilho::after { left: 3px; }
.tl-ev.is-away .tl-trilho::after { right: 3px; }
.tl-min {
    position: relative; z-index: 1; align-self: flex-start; margin-top: 16px; max-width: 52px;
    padding: 4px 5px; border-radius: 8px; font-size: 10px; font-weight: 800; line-height: 1;
    color: var(--tl); border: 1px solid color-mix(in srgb, var(--tl) 50%, transparent);
    background: color-mix(in srgb, var(--tl) 13%, var(--surface));
    font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* O cartao, tingido pelo tipo do lance. */
.tl-card {
    padding: 10px; border-radius: 8px;
    border: 1px solid color-mix(in srgb, var(--tl) 30%, transparent);
    background: color-mix(in srgb, var(--tl) 6%, var(--surface));
}
.tl-card-topo { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.tl-card-topo strong { font-size: 11.5px; font-weight: 800; letter-spacing: .01em; }
.tl-card-topo .pl-face, .tl-card-topo .pl-face-box { width: 44px; height: 44px; }
.tl-ic { display: inline-grid; place-items: center; width: 22px; height: 22px; font-size: 15px; flex: none; }
.tl-quem { margin: 0 0 4px; font-size: 12px; font-weight: 700; overflow-wrap: anywhere; }
.tl-tag {
    display: inline-block; margin-right: 6px; padding: 1px 5px; border-radius: 4px;
    font-size: 9px; font-weight: 900; letter-spacing: .04em; vertical-align: middle;
}
.tl-tag.is-in { background: color-mix(in srgb, #276AB8 18%, transparent); color: #276AB8; }
.tl-tag.is-out { background: color-mix(in srgb, var(--muted) 18%, transparent); color: var(--muted); }
.tl-placar { margin: 6px 0 0; font-size: 14px; font-weight: 800; color: var(--tl); font-variant-numeric: tabular-nums; }
.tl-texto { margin: 6px 0 0; font-size: 10.5px; line-height: 1.25; color: var(--muted); overflow-wrap: anywhere; }
.tl-ev[hidden] { display: none; }

/* O lado do visitante espelha o do mandante, como no aplicativo. */
.tl-ev.is-away .tl-card-topo { flex-direction: row-reverse; }
.tl-ev.is-away .tl-card { text-align: right; }
.tl-ev.is-away .tl-tag { margin: 0 0 0 6px; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tl-ev.k-goal, :root:not([data-theme="light"]) .tl-ev.k-penalty_goal { --tl: #67DE91; }
  :root:not([data-theme="light"]) .tl-ev.k-own_goal { --tl: #FFB679; }
  :root:not([data-theme="light"]) .tl-ev.k-yellow { --tl: #F2D067; }
  :root:not([data-theme="light"]) .tl-ev.k-second_yellow { --tl: #FFAC70; }
  :root:not([data-theme="light"]) .tl-ev.k-red { --tl: #FF8F9C; }
  :root:not([data-theme="light"]) .tl-ev.k-substitution { --tl: #88C6FF; }
  :root:not([data-theme="light"]) .tl-ev.k-missed_penalty { --tl: #D5ACF0; }
  :root:not([data-theme="light"]) .tl-card { background: color-mix(in srgb, var(--tl) 10%, var(--surface)); }
}
:root[data-theme="dark"] .tl-ev.k-goal, :root[data-theme="dark"] .tl-ev.k-penalty_goal { --tl: #67DE91; }
:root[data-theme="dark"] .tl-ev.k-own_goal { --tl: #FFB679; }
:root[data-theme="dark"] .tl-ev.k-yellow { --tl: #F2D067; }
:root[data-theme="dark"] .tl-ev.k-second_yellow { --tl: #FFAC70; }
:root[data-theme="dark"] .tl-ev.k-red { --tl: #FF8F9C; }
:root[data-theme="dark"] .tl-ev.k-substitution { --tl: #88C6FF; }
:root[data-theme="dark"] .tl-ev.k-missed_penalty { --tl: #D5ACF0; }
:root[data-theme="dark"] .tl-card { background: color-mix(in srgb, var(--tl) 10%, var(--surface)); }

/* No telefone o trilho encolhe e os cartoes ficam mais estreitos, nunca empilhados em coluna unica:
   a leitura "quem fez o que" depende de o lado continuar significando o time. */
@media (max-width: 560px) {
    .tl-ev { grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); }
    .tl-card { padding: 8px; }
    .tl-card-topo .pl-face, .tl-card-topo .pl-face-box { width: 34px; height: 34px; }
    .tl-min { margin-top: 14px; }
    .tl-trilho::after { top: 22px; }
}
.transmission-guide { border-top: 3px solid var(--green, #10a34a); }
.transmission-eyebrow { display: block; margin-bottom: 8px; color: #07863b; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.transmission-guide h2 { margin-top: 0; line-height: 1.35; }
.transmission-lead { font-size: 15px; line-height: 1.8; }
.transmission-status { padding: 12px 14px; border-left: 3px solid #10a34a; border-radius: 0 8px 8px 0; background: rgba(16, 163, 74, .07); line-height: 1.65; }
.transmission-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.transmission-facts > div { min-width: 0; border: 1px solid rgba(125, 145, 165, .22); border-radius: 10px; padding: 12px 14px; }
.transmission-facts dt { font-size: 12px; opacity: .75; margin-bottom: 5px; }
.transmission-facts dd { margin: 0; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.transmission-live { margin-block: 20px; }
@media (max-width: 600px) { .transmission-facts { grid-template-columns: 1fr; } .transmission-lead { font-size: 14px; } }
