/* Futebol Engine — Live Match Core. Scoped; does not modify global frontend.css. */
[data-fe-live-match] .fe-live-score-dynamic{display:none}
[data-fe-live-match].fe-live-has-score .fe-live-score-dynamic{display:flex}
[data-fe-live-match].fe-live-has-score .fe-live-versus-fallback{display:none}
.fe-live-status-dynamic{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#777;margin-top:2px;font-weight:800}
.fe-live-status-dynamic.is-live{color:#d71920}
.fe-live-pulse{display:inline-flex;align-items:center;gap:6px}
.fe-live-pulse:before{content:"";width:7px;height:7px;border-radius:50%;background:#d71920;box-shadow:0 0 0 0 rgba(215,25,32,.5);animation:fe-live-pulse 1.7s infinite}
@keyframes fe-live-pulse{0%{box-shadow:0 0 0 0 rgba(215,25,32,.5)}70%{box-shadow:0 0 0 7px rgba(215,25,32,0)}100%{box-shadow:0 0 0 0 rgba(215,25,32,0)}}
.fe-live-hub-score{display:none;align-items:center;justify-content:center;gap:5px;min-width:58px}
.fe-live-has-score .fe-live-hub-score{display:flex}
.fe-match-card.fe-live-has-score .fe-versus{display:none}
.fe-live-hub-score b{font-size:22px}.fe-live-hub-score span{color:#777}
.fe-live-time-label{font-weight:800;font-size:12px;color:#555}
.fe-live-time-label.is-live{display:inline-flex;width:max-content;background:#d71920;color:#fff;border-radius:4px;padding:4px 7px;font-size:11px;font-weight:900}
@media(max-width:760px){.fe-live-hub-score b{font-size:18px}}

/* Keep score and live status visually separated inside the match summary. */
.fe-match-summary-card .fe-match-summary-result{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-width:92px}
.fe-match-summary-card .fe-live-score-dynamic{align-items:center;justify-content:center;gap:8px;line-height:1}
.fe-match-summary-card .fe-live-status-dynamic{display:block;margin-top:0;line-height:1.2;white-space:nowrap}
.fe-match-summary-card .fe-live-status-dynamic.fe-live-pulse{display:inline-flex}
@media(max-width:760px){.fe-match-summary-card .fe-match-summary-result{min-width:72px;gap:5px}.fe-match-summary-card .fe-live-score-dynamic{gap:5px}}

/* v0.8.129 — timeline de eventos */
.fe-match-timeline{display:none}
.fe-match-timeline.has-events{display:block}
.fe-live-timeline-note{margin:-4px 0 14px;color:#667085;font-size:.9rem}
.fe-live-timeline-list{display:flex;flex-direction:column;gap:0}
.fe-live-event{display:grid;grid-template-columns:48px 34px minmax(0,1fr);gap:10px;align-items:start;padding:12px 0;border-bottom:1px solid #eceff3}
.fe-live-event:last-child{border-bottom:0}
.fe-live-event-minute{font-weight:800;font-variant-numeric:tabular-nums;padding-top:3px;text-align:right}
.fe-live-event-icon{width:30px;height:30px;display:flex;align-items:center;justify-content:center;font-size:21px;line-height:1}
.fe-live-event-icon img{width:26px;height:26px;display:block;object-fit:contain}
.fe-live-event-copy{min-width:0;display:flex;flex-wrap:wrap;column-gap:8px;row-gap:2px;align-items:baseline}
.fe-live-event-copy strong{font-size:.98rem}
.fe-live-event-team{font-size:.82rem;font-weight:700;color:#667085}
.fe-live-event-copy small{flex-basis:100%;color:#667085;line-height:1.35}
.fe-live-event-copy .fe-live-event-result{font-weight:800;color:var(--fe-primary,#c8102e)}
.fe-live-event-goal .fe-live-event-copy strong,.fe-live-event-penalty .fe-live-event-copy strong,.fe-live-event-own_goal .fe-live-event-copy strong{font-weight:900}
@media(max-width:640px){.fe-live-event{grid-template-columns:38px 30px minmax(0,1fr);gap:8px}.fe-live-event-minute{font-size:.9rem}.fe-live-event-icon{width:28px;height:28px}.fe-live-event-icon img{width:24px;height:24px}}

/* v0.8.130 — timeline editorial, períodos e eventos integrados à escalação */
.fe-live-period-group{margin:0}
.fe-live-period-group>h3{margin:0;padding:9px 12px;background:#f6f7f9;border-radius:7px;font-size:.92rem;line-height:1.2;color:#344054}
.fe-live-period-group>h3+ .fe-live-event{border-top:0}
.fe-live-interval-divider{display:flex;align-items:center;gap:12px;margin:8px 0;color:#667085;font-size:.82rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.fe-live-interval-divider:before,.fe-live-interval-divider:after{content:"";height:1px;flex:1;background:#e4e7ec}
.fe-live-interval-divider.is-current span{background:#fff4e5;color:#9a6700;border-radius:999px;padding:5px 9px}
.fe-live-event-kind{font-size:.82rem;font-weight:800;color:#475467}
.fe-live-event-team:before{content:"· ";color:#98a2b3}
.fe-live-event-result{display:inline-flex;width:max-content;background:#f6f7f9;border-radius:5px;padding:2px 6px}
.fe-lineup-player-name{display:inline-flex;align-items:center;gap:5px;flex-wrap:wrap}
.fe-lineup-events{display:inline-flex;align-items:center;gap:3px;margin-left:2px;vertical-align:middle}
.fe-lineup-event-icon,.fe-lineup-event-image{width:16px;height:16px;display:inline-flex;align-items:center;justify-content:center;object-fit:contain;line-height:1}
.fe-lineup-event-image img,.fe-lineup-events img{width:16px;height:16px;display:block;object-fit:contain}
.fe-lineup-event-emoji{font-size:14px;line-height:1}
.fe-match-discipline{display:none;margin-top:12px;padding-top:10px;border-top:1px solid #eceff3;font-size:.9rem;color:#667085}
.fe-match-discipline.has-cards{display:block}
@media(max-width:640px){.fe-live-period-group>h3{padding:8px 10px}.fe-live-event-kind{flex-basis:100%}.fe-live-event-team:before{content:"· "}}


/* v0.8.131 — atalhos e modais de escalação/arbitragem junto aos lances */
.fe-match-quick-modals{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:-2px 0 16px}
.fe-match-modal-trigger{appearance:none;border:1px solid var(--fe-primary);background:var(--fe-primary);color:#fff;border-radius:999px;padding:8px 14px;font:inherit;font-size:.9rem;font-weight:800;line-height:1;cursor:pointer;transition:filter .15s ease,transform .15s ease}
.fe-match-modal-trigger:hover,.fe-match-modal-trigger:focus-visible{border-color:var(--fe-primary);background:var(--fe-primary);color:#fff;filter:brightness(.9);outline:none}
.fe-match-modal-trigger:active{transform:translateY(1px)}
.fe-match-modal[hidden]{display:none!important}
.fe-match-modal{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:24px}
.fe-match-modal-backdrop{position:absolute;inset:0;background:rgba(16,24,40,.68);backdrop-filter:blur(2px)}
.fe-match-modal-dialog{position:relative;z-index:1;width:min(920px,100%);max-height:min(86vh,900px);overflow:auto;background:#fff;border-radius:14px;box-shadow:0 24px 80px rgba(16,24,40,.28);padding:26px}
.fe-match-modal-close{position:sticky;top:0;float:right;z-index:2;width:36px;height:36px;margin:-10px -10px 4px 12px;border:0;border-radius:50%;background:#f2f4f7;color:#101828;font-size:25px;line-height:1;cursor:pointer}
.fe-match-modal-close:hover,.fe-match-modal-close:focus-visible{background:#e4e7ec;outline:none}
.fe-match-modal-content>h2{margin-top:0;padding-right:42px}
.fe-match-modal-content .fe-match-data-note{margin-top:-6px}
body.fe-match-modal-open{overflow:hidden}
@media(max-width:640px){.fe-match-quick-modals{gap:7px;margin-bottom:14px}.fe-match-modal-trigger{padding:8px 12px;font-size:.86rem}.fe-match-modal{padding:12px;align-items:flex-end}.fe-match-modal-dialog{width:100%;max-height:88vh;border-radius:14px 14px 8px 8px;padding:20px 16px}.fe-match-modal-close{margin:-6px -2px 4px 10px}}

/* v0.8.132 — Head to Head / últimos confrontos */
.fe-h2h-block{overflow:hidden}
.fe-h2h-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 18px}
.fe-h2h-summary-item{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:3px;min-height:72px;padding:10px 8px;background:#f8fafc;border:1px solid #eaecf0;border-radius:9px}
.fe-h2h-summary-item strong{font-size:1.28rem;line-height:1;font-weight:900;color:#101828}
.fe-h2h-summary-item span{font-size:.78rem;line-height:1.25;color:#667085;font-weight:700}
.fe-h2h-list{display:flex;flex-direction:column}
.fe-h2h-row{display:grid;grid-template-columns:90px minmax(0,1fr) 130px;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid #eceff3}
.fe-h2h-row:last-child{border-bottom:0}
.fe-h2h-date,.fe-h2h-competition{font-size:.82rem;color:#667085}
.fe-h2h-competition{text-align:right}
.fe-h2h-match{min-width:0;text-align:center;font-weight:700}
.fe-h2h-match>a,.fe-h2h-match>span{color:inherit;text-decoration:none}
.fe-h2h-match>a{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:center}
.fe-h2h-match.no-link{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:8px;align-items:center}
.fe-h2h-match>a:hover span,.fe-h2h-match>a:focus-visible span{text-decoration:underline}
.fe-h2h-match strong{display:inline-flex;align-items:center;justify-content:center;min-width:62px;background:#f2f4f7;border-radius:6px;padding:5px 7px;font-size:.94rem;color:#101828;white-space:nowrap}
.fe-h2h-match span:first-child{text-align:right}.fe-h2h-match span:last-child{text-align:left}
@media(max-width:700px){
  .fe-h2h-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  .fe-h2h-row{grid-template-columns:1fr;gap:5px;padding:13px 0}
  .fe-h2h-date,.fe-h2h-competition{text-align:center}
  .fe-h2h-match>a,.fe-h2h-match.no-link{grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);gap:6px}
}

/* v0.8.134 — atalhos mantêm blocos completos visíveis na página */
.fe-match-modal-trigger,.fe-match-modal-trigger:visited{color:#fff!important}

/* v0.8.135 — marcadores de início dos tempos + atalhos disponíveis no pré-jogo */
.fe-live-event-period_start{background:#fafbfc}
.fe-live-event-period_start .fe-live-event-icon{font-size:15px;color:var(--fe-primary)}
.fe-live-event-period_start .fe-live-event-copy strong{font-weight:800;color:#344054}
.fe-match-pregame-actions{margin:14px 0 18px;padding:0 2px}
@media(max-width:640px){.fe-match-pregame-actions{margin:12px 0 16px}}

/* v0.8.136 — marcadores de encerramento dos tempos */
.fe-live-event-period_end .fe-live-event-icon{font-size:.9em;opacity:.72}
.fe-live-event-period_end .fe-live-event-copy strong{font-weight:700}


/* Match hero: a mesma arte 2000x700 é reposicionada no mobile para manter
   mandante, X e visitante dentro da área visível sem gerar um segundo asset. */
@media (max-width:760px){
  .fe-match-seo-page .fe-match-detail-hero.has-image{background-position:60% center!important;}
}
