/* MATCH_CARDS.CSS - ScorePulse V11.0 Dark Glass */

/* VIEWS */
.view { display: flex; flex-direction: column; gap: 16px; }
.view.hidden { display: none; }

/* VIEW HEADER */
.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.view-title {
  font-family: var(--font-tactical);
  font-size: 13px;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.view-title-icon { font-size: 15px; }

.view-title-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--green-bright);
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 10px;
  padding: 2px 8px;
}

/* VIEW PLACEHOLDER */
.view-placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  gap: 12px;
}

.placeholder-icon { font-size: 40px; opacity: 0.3; }

.placeholder-text {
  font-family: var(--font-tactical);
  font-size: 14px;
  color: var(--text-secondary);
  letter-spacing: 1px;
}

.placeholder-sub {
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  max-width: 320px;
  line-height: 1.6;
}

.section-title {
  font-family: var(--font-tactical);
  font-size: 10px;
  letter-spacing: 2.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 3px; height: 14px;
  background: linear-gradient(180deg, var(--purple-bright), var(--purple));
  box-shadow: 0 0 10px var(--purple);
  border-radius: 2px;
}

.btn-reboot {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: var(--radius);
  color: var(--purple-bright);
  font-size: 10px;
  font-family: var(--font-tactical);
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: var(--transition);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.btn-reboot:hover {
  background: rgba(139,92,246,0.16);
  border-color: var(--purple);
  box-shadow: 0 0 20px rgba(139,92,246,0.2);
}

.btn-reboot.spinning .reboot-icon { animation: spin 0.6s linear; }
@keyframes spin { to { transform: rotate(360deg); } }

/* MATCH GRID — agora é container de secções de liga */
.match-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* LEAGUE SECTION */
.league-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.league-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
  user-select: none;
}

.league-section-header:hover {
  background: rgba(255,255,255,0.055);
}

.league-section-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.league-flag {
  font-size: 14px;
  line-height: 1;
}

.league-section-logo {
  width: 20px; height: 20px;
  object-fit: contain;
  opacity: 0.85;
}

.league-section-name {
  font-family: var(--font-tactical);
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-secondary);
}

.league-section-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.league-section-count {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--green-bright);
  letter-spacing: 0.5px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 10px;
  padding: 2px 8px;
}

.league-section-chevron {
  font-size: 11px;
  color: var(--text-dim);
  transition: transform var(--transition);
}

.league-section.collapsed .league-section-chevron {
  transform: rotate(-90deg);
}

.league-section.collapsed .league-section-grid {
  display: none;
}

/* GRID INTERNO DE CARDS */
.league-section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* MARKET PILLS */
.card-markets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 8px;
  margin-top: 6px;
  border-top: 1px solid var(--glass-border);
}

.market-pill {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid transparent;
}

.market-pill.off {
  color: var(--text-dim);
  border-color: rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.03);
  opacity: 0.5;
}

.market-pill.watch {
  color: var(--purple-bright);
  border-color: rgba(139,92,246,0.3);
  background: rgba(139,92,246,0.08);
}

.market-pill.signal {
  color: #000;
  background: var(--green-bright);
  border-color: var(--green-bright);
  animation: pill-pulse 1.5s ease-in-out infinite;
}

@keyframes pill-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.4); }
  50%       { box-shadow: 0 0 8px 3px rgba(52,211,153,0.2); }
}

/* MATCH CARD */
.match-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  min-height: 128px;
}

/* Animação de entrada apenas em cards recém-criados — evita piscar em re-renders */
.match-card.fresh { animation: card-in 0.4s ease both; }

@keyframes card-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.match-card:hover {
  border-color: rgba(139,92,246,0.25);
  background: var(--bg-card-hover);
  box-shadow: 0 4px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(139,92,246,0.1);
}

/* Linha colorida esquerda por intensidade */
.match-card::before {
  content: '';
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(180deg, var(--purple), var(--green));
  opacity: 0.5;
}

/* CARD HEADER ROW */
.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

/* TIME BADGE */
.card-time {
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.25);
  border-radius: 4px;
  padding: 2px 7px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--green-bright);
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* LEAGUE LOGO */
.card-league {
  display: flex;
  align-items: center;
}
.league-logo {
  width: 18px; height: 18px;
  object-fit: contain;
  opacity: 0.7;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.4));
}

/* RED CARD BADGE */
.card-rc {
  font-size: 8px;
  line-height: 1;
  display: block;
  margin-top: 2px;
}

/* CARD BODY */
.card-body {
  display: grid;
  grid-template-columns: 1fr 80px 58px 110px 36px;
  align-items: center;
  gap: 12px;
}

/* TEAMS + SCORE */
.card-teams-score {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.team-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 58px;
  max-width: 68px;
}

.team-logo {
  width: 32px; height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5));
}

.team-logo-placeholder {
  width: 32px; height: 32px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--text-dim);
}

.team-name {
  font-size: 9px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
}

.card-score {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--green-bright);
  text-shadow: 0 0 24px rgba(52,211,153,0.5);
  letter-spacing: 2px;
  flex-shrink: 0;
  text-align: center;
  min-width: 52px;
}

/* PRESSURE — zona compacta, largura fixa */
.card-pressure {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 80px;
  flex-shrink: 0;
}

.pressure-label {
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-family: var(--font-mono);
  opacity: 0.6;
}

.pressure-map {
  display: flex;
  align-items: flex-end;
  gap: 1px;
  height: 20px;
}

.p-bar {
  flex: 1;
  border-radius: 2px 2px 0 0;
  min-height: 4px;
  transition: height 0.5s ease;
}

.p-bar.home { background: var(--purple-bright); opacity: 0.8; }
.p-bar.away { background: var(--green-bright); opacity: 0.7; }

/* AI RING — SVG animado */
.ai-ring-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 58px;
}

.ai-ring-svg {
  width: 52px; height: 52px;
  transform: rotate(-90deg);
}

.ai-ring-bg {
  fill: none;
  stroke: rgba(139,92,246,0.15);
  stroke-width: 3;
}

.ai-ring-fill {
  fill: none;
  stroke: var(--purple-bright);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 126;
  stroke-dashoffset: 126;
  filter: drop-shadow(0 0 4px var(--purple));
  transition: stroke-dashoffset 1.2s ease;
}

.ai-ring-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ai-ring-container {
  position: relative;
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ai-ring-container .ai-ring-svg { position: absolute; inset: 0; }

.ai-pct {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--purple-bright);
  line-height: 1;
  position: relative;
  z-index: 1;
}

.ai-label-text {
  font-size: 7px;
  color: var(--text-dim);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

/* STATS */
.card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 8px;
  column-gap: 12px;
  flex-shrink: 0;
}

.stat-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 6px;
  padding: 4px 0;
}

.stat-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
}

.stat-lbl {
  font-size: 7.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

/* ACTION BUTTONS */
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.btn-action {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 12px;
  transition: var(--transition);
  cursor: pointer;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(4px);
  text-decoration: none;
}

.btn-action:hover {
  border-color: var(--green);
  color: var(--green-bright);
  box-shadow: 0 0 10px rgba(16,185,129,0.2);
  background: rgba(16,185,129,0.08);
}

.btn-action.whatsapp:hover {
  border-color: #25d366;
  color: #25d366;
  box-shadow: 0 0 10px rgba(37,211,102,0.2);
  background: rgba(37,211,102,0.06);
}

/* ESTADOS */
.no-games {
  grid-column: 1 / -1;
  text-align: center;
  padding: 70px 20px;
  color: var(--text-dim);
}

.no-games-icon { font-size: 36px; margin-bottom: 14px; opacity: 0.5; }
.no-games-text { font-size: 14px; color: var(--text-secondary); margin-bottom: 6px; }
.no-games-sub  { font-size: 11px; color: var(--text-dim); }

/* LOCK OVERLAY */
.lock-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse at center, #0e0b1a 0%, #050508 100%);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease;
}

.lock-overlay.hidden { opacity: 0; pointer-events: none; }

.pin-terminal {
  border: 1px solid rgba(139,92,246,0.3);
  border-radius: 14px;
  padding: 40px 48px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(24px);
  box-shadow: 0 0 80px rgba(139,92,246,0.15), 0 24px 64px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  min-width: 300px;
}

.terminal-brand {
  font-family: var(--font-tactical);
  font-size: 20px;
  background: linear-gradient(90deg, #fff, var(--purple-bright));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 2px;
}

.terminal-header {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-dim);
  text-transform: uppercase;
}

#pin-input {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--purple-bright);
  letter-spacing: 10px;
  text-align: center;
  width: 180px;
  outline: none;
  transition: var(--transition);
}

#pin-input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 20px rgba(139,92,246,0.2);
}

.pin-error {
  font-size: 10px;
  color: var(--red);
  letter-spacing: 1px;
  font-family: var(--font-mono);
  opacity: 0;
  transition: opacity 0.3s;
}

.pin-error.visible { opacity: 1; }

/* ─── GOAL ANIMATIONS ───────────────────────────────────────────── */

@keyframes goal-card-flash {
  0%   { border-color: var(--glass-border); box-shadow: none; }
  12%  { border-color: var(--green-bright); box-shadow: 0 0 0 2px rgba(52,211,153,0.4), 0 0 32px rgba(52,211,153,0.5); }
  35%  { border-color: rgba(52,211,153,0.6); box-shadow: 0 0 0 1px rgba(52,211,153,0.2), 0 0 20px rgba(52,211,153,0.3); }
  55%  { border-color: var(--green-bright); box-shadow: 0 0 0 2px rgba(52,211,153,0.35), 0 0 28px rgba(52,211,153,0.4); }
  100% { border-color: var(--glass-border); box-shadow: none; }
}

@keyframes goal-score-pop {
  0%   { color: var(--green-bright); transform: scale(1);    text-shadow: 0 0 24px rgba(52,211,153,0.5); }
  18%  { color: #ffffff;             transform: scale(1.35); text-shadow: 0 0 40px #fff, 0 0 20px rgba(52,211,153,0.9); }
  45%  { color: var(--green-bright); transform: scale(1.18); text-shadow: 0 0 28px rgba(52,211,153,0.7); }
  100% { color: var(--green-bright); transform: scale(1);    text-shadow: 0 0 24px rgba(52,211,153,0.5); }
}

.match-card.goal-flash {
  animation: goal-card-flash 1.8s ease forwards;
}

.match-card.goal-flash .card-score {
  animation: goal-score-pop 1.2s cubic-bezier(0.22,1,0.36,1) forwards;
}

/* ─── GOAL TOAST ────────────────────────────────────────────────── */

#goal-toasts {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.goal-toast {
  background: rgba(8, 10, 20, 0.96);
  border: 1px solid var(--green-bright);
  border-radius: 10px;
  padding: 12px 14px 12px 16px;
  min-width: 270px;
  max-width: 340px;
  box-shadow: 0 0 30px rgba(52,211,153,0.28), 0 8px 32px rgba(0,0,0,0.65);
  display: flex;
  flex-direction: column;
  gap: 7px;
  pointer-events: all;
  cursor: pointer;
  animation: toast-slide-in 0.4s cubic-bezier(0.16,1,0.3,1) both;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.goal-toast::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green-bright), var(--purple-bright));
}

.goal-toast.toast-out {
  animation: toast-slide-out 0.3s ease forwards;
}

@keyframes toast-slide-in {
  from { opacity: 0; transform: translateX(60px) scale(0.93); }
  to   { opacity: 1; transform: translateX(0)    scale(1);    }
}

@keyframes toast-slide-out {
  from { opacity: 1; transform: translateX(0)    scale(1);    max-height: 200px; }
  to   { opacity: 0; transform: translateX(70px) scale(0.93); max-height: 0;     padding-top: 0; padding-bottom: 0; }
}

.toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.toast-goal-badge {
  font-family: var(--font-tactical);
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--green-bright);
  display: flex;
  align-items: center;
  gap: 7px;
  text-shadow: 0 0 10px rgba(52,211,153,0.5);
}

.toast-goal-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 8px var(--green-bright);
  animation: pulse-dot 1s ease-in-out infinite;
  flex-shrink: 0;
}

.toast-close {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  color: var(--text-dim);
  font-size: 9px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
  transition: var(--transition);
}

.toast-close:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.3);
}

.toast-match {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast-teams {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  letter-spacing: 0.3px;
  flex-wrap: nowrap;
}

/* Equipa que marcou — destaque verde */
.toast-scorer {
  color: var(--green-bright);
  font-weight: 800;
  font-size: 12px;
  white-space: nowrap;
  text-shadow: 0 0 8px rgba(52,211,153,0.45);
}

/* Equipa que não marcou — mais discreta */
.toast-team-dim {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0.75;
}

/* "vs" separador */
.toast-vs {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 400;
  opacity: 0.5;
  flex-shrink: 0;
}

.toast-score {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--green-bright);
  text-shadow: 0 0 16px rgba(52,211,153,0.6);
  letter-spacing: 2px;
  flex-shrink: 0;
}

.toast-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.toast-minute {
  color: var(--green-bright);
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  border-radius: 3px;
  padding: 1px 5px;
  flex-shrink: 0;
}

.toast-league {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.toast-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--green-bright), var(--purple-bright));
  transform-origin: left center;
  animation: toast-progress-bar 6s linear forwards;
}

@keyframes toast-progress-bar {
  from { width: 100%; }
  to   { width: 0%; }
}

/* ─── SIDEBAR SOUND TOGGLE ───────────────────────────────────────────────── */
.sidebar-sound-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 7px 12px;
  margin-bottom: 8px;
  background: rgba(167,139,250,.07);
  border: 1px solid rgba(167,139,250,.18);
  border-radius: 8px;
  color: var(--text-b);
  font-size: 11px;
  font-family: var(--mono);
  cursor: pointer;
  transition: background .2s, color .2s;
  text-align: left;
}
.sidebar-sound-btn:hover { background: rgba(167,139,250,.14); color: #fff; }
.sidebar-sound-btn.muted { color: var(--text-d); border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.03); }

/* ── LIVE V11 — TREND BADGES, MOMENTUM LINE, LAST EVENT, YC ──────────────── */

/* Trend badges na header row */
.card-trend-badges {
  display: flex;
  gap: 4px;
  align-items: center;
}

.trend-badge {
  font-size: 8px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.4px;
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  text-transform: uppercase;
  cursor: default;
}

.trend-badge.home {
  background: rgba(139,92,246,0.18);
  border: 1px solid rgba(139,92,246,0.35);
  color: #a78bfa;
}

.trend-badge.away {
  background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.3);
  color: var(--green-bright);
}

.trend-badge.warn {
  background: rgba(251,191,36,0.15);
  border: 1px solid rgba(251,191,36,0.35);
  color: #fbbf24;
  animation: badge-pulse 2s ease-in-out infinite;
}

.trend-badge.cold {
  background: rgba(147,210,255,0.1);
  border: 1px solid rgba(147,210,255,0.2);
  color: #93c5fd;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

/* Momentum line — linha bicolor fina abaixo das barras de pressão */
.momentum-line {
  display: flex;
  gap: 1px;
  height: 3px;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 3px;
  width: 100%;
}

.mom-seg {
  flex: 1;
  border-radius: 1px;
  transition: background 0.6s ease, opacity 0.6s ease;
}

/* Yellow card badge junto ao nome da equipa */
.card-yc {
  font-size: 8px;
  line-height: 1;
  display: block;
  margin-top: 2px;
  opacity: 0.9;
}

/* Last event — linha discreta abaixo do card-body */
.card-last-event {
  min-height: 16px;
  padding: 0 12px 4px;
  display: flex;
  align-items: center;
}

.last-evt-text {
  font-size: 9px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
  opacity: 0.75;
  animation: evt-fadein 0.4s ease;
}

@keyframes evt-fadein {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 0.75; transform: translateX(0); }
}

/* Stat labels com emojis — ligeiramente maior */
.stat-lbl {
  font-size: 8px !important;
}

/* ═══════════════════════════════════════════════════════════
   LIVE FILTER TABS (Todos · Com sinal · 🔥 Quentes)
   ═══════════════════════════════════════════════════════════ */
.live-filter-tabs {
  display: flex;
  gap: 4px;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 10px;
  padding: 4px;
  margin-right: auto;
  margin-left: 16px;
}
.live-filter-tab {
  background: transparent;
  border: 0;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
}
.live-filter-tab:hover { color: var(--text-primary); background: rgba(148,163,184,0.08); }
.live-filter-tab.active {
  background: rgba(52, 211, 153, 0.14);
  color: var(--green-bright);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.35);
}
.live-filter-tab[data-filter="hot"].active {
  background: rgba(249, 115, 22, 0.16);
  color: #fb923c;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.45);
}
.live-filter-count {
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.14);
  color: var(--text-dim);
  font-weight: 700;
  min-width: 18px;
  text-align: center;
}
.live-filter-tab.active .live-filter-count {
  background: rgba(0,0,0,0.25);
  color: inherit;
}

/* Sidebar hot badge (🔥 N no item Live) */
.nav-badge-hot {
  background: linear-gradient(135deg, #f97316, #ef4444) !important;
  color: #fff !important;
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.55);
  font-weight: 800 !important;
  animation: hot-badge-pulse 2s ease-in-out infinite;
}
@keyframes hot-badge-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(249, 115, 22, 0.45); }
  50%      { box-shadow: 0 0 14px rgba(249, 115, 22, 0.9); }
}

/* ═══════════════════════════════════════════════════════════
   MATCH CARD — estado HOT (jogo a ferver)
   ═══════════════════════════════════════════════════════════ */
.match-card.hot {
  border-color: rgba(249, 115, 22, 0.55) !important;
  animation: hot-card-glow 2.4s ease-in-out infinite;
  position: relative;
}
.match-card.hot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(249,115,22,0.09) 0%, rgba(249,115,22,0) 40%);
  z-index: 0;
}
.match-card.hot > * { position: relative; z-index: 1; }

@keyframes hot-card-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(249, 115, 22, 0.35),
      0 0 16px rgba(249, 115, 22, 0.25);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(249, 115, 22, 0.6),
      0 0 28px rgba(249, 115, 22, 0.5);
  }
}

/* Flame já existente no .card-time ganha pulse extra quando card é hot */
.match-card.hot .hot-flame {
  animation: hot-flame-pulse 1.1s ease-in-out infinite;
}
@keyframes hot-flame-pulse {
  0%, 100% { transform: scale(1);   filter: drop-shadow(0 0 4px #ff5722); }
  50%      { transform: scale(1.25); filter: drop-shadow(0 0 10px #ff8f3f); }
}

/* ═══════════════════════════════════════════════════════════
   CARDS CLICKÁVEIS — hover e indicação visual
   ═══════════════════════════════════════════════════════════ */
.match-card.clickable { cursor: pointer; }
.match-card.clickable:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 163, 184, 0.35);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.3);
}
.match-card.clickable.hot:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.75) !important;
}

/* ═══════════════════════════════════════════════════════════
   PRESSURE SPARKLINE — substitui mom-segs
   ═══════════════════════════════════════════════════════════ */
.momentum-line {
  display: block;
  margin-top: 4px;
  width: 100%;
  height: 20px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.35);
}
.momentum-line .pressure-spark {
  width: 100%;
  height: 100%;
  display: block;
}

/* Stat delta (+N) dentro das stat rows */
.stat-delta {
  display: inline-block;
  font-size: 8px;
  color: var(--green-bright);
  font-weight: 700;
  margin-left: 4px;
  opacity: 0.9;
  animation: stat-delta-fade 4s ease forwards;
}
@keyframes stat-delta-fade {
  0%   { opacity: 1; transform: translateY(-1px); }
  80%  { opacity: 0.9; }
  100% { opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════
   LEAGUE HEADER — ricos com médias + hot
   ═══════════════════════════════════════════════════════════ */
.league-section-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.league-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-dim);
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.1);
  letter-spacing: 0.3px;
}
.league-stat.hot {
  color: #fb923c;
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.35);
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.25);
  animation: hot-badge-pulse 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════
   MATCH DETAIL DRAWER
   ═══════════════════════════════════════════════════════════ */
body.md-drawer-lock { overflow: hidden; }

#md-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 9900;
}
#md-drawer-overlay.open { opacity: 1; pointer-events: auto; }

#md-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(720px, 100vw);
  background: linear-gradient(180deg, #0b1220 0%, #0a0f1c 100%);
  border-left: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.5);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.35, 1);
  z-index: 9901;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#md-drawer.open { transform: translateX(0); }

/* HEADER */
.md-head-wrap {
  position: relative;
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.06), transparent);
  flex-shrink: 0;
}
.md-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-dim);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.18s ease;
  z-index: 2;
}
.md-close:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #fff;
}

.md-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-right: 40px;
}
.md-league-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.md-flag { font-size: 14px; }
.md-league-logo { width: 18px; height: 18px; object-fit: contain; }
.md-minute-chip {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  color: var(--green-bright);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.35);
  padding: 4px 12px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.2);
}

.md-matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}
.md-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.md-matchup .md-team:first-child  { align-items: flex-end;   text-align: right; }
.md-matchup .md-team:last-child   { align-items: flex-start; text-align: left;  }
.md-team-logo,
.md-team-logo-ph {
  width: 48px;
  height: 48px;
  object-fit: contain;
}
.md-team-logo-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.15);
  border-radius: 50%;
  color: var(--text-dim);
  font-size: 20px;
}
.md-team-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.md-score-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.md-score {
  font-size: 32px;
  font-weight: 900;
  color: var(--green-bright);
  font-family: var(--font-mono);
  text-shadow: 0 0 24px rgba(52, 211, 153, 0.55);
  letter-spacing: 1px;
}
.md-ring {
  position: relative;
  width: 42px;
  height: 42px;
}
.md-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.md-ring-bg {
  fill: none;
  stroke: rgba(148, 163, 184, 0.15);
  stroke-width: 4;
}
.md-ring-fill {
  fill: none;
  stroke: var(--green-bright);
  stroke-width: 4;
  stroke-dasharray: 126;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
  filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.6));
}
.md-ring-pct {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  font-weight: 800;
  color: var(--green-bright);
  font-family: var(--font-mono);
}

/* BODY */
.md-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 22px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.md-body::-webkit-scrollbar { width: 8px; }
.md-body::-webkit-scrollbar-thumb { background: rgba(148, 163, 184, 0.2); border-radius: 4px; }
.md-body::-webkit-scrollbar-thumb:hover { background: rgba(148, 163, 184, 0.35); }

.md-section {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 12px;
  padding: 14px 16px;
}
.md-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.md-section-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.md-section-sub {
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
}

/* Pressure big chart */
.md-pressure-wrap {
  width: 100%;
  height: 80px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  overflow: hidden;
}
.md-pressure-wrap .pressure-spark { width: 100%; height: 100%; display: block; }
.md-axis {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-top: 6px;
  padding: 0 2px;
}
.md-axis-mid { opacity: 0.5; }
.md-chart-empty,
.md-timeline-empty,
.md-markets-empty {
  padding: 14px;
  text-align: center;
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.15);
  border-radius: 6px;
}

/* Volume mini charts */
.md-vol-row {
  margin-bottom: 10px;
}
.md-vol-row:last-child { margin-bottom: 0; }
.md-vol-row.empty {
  padding: 10px;
  font-size: 10px;
  color: var(--text-dim);
  text-align: center;
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.15);
  border-radius: 6px;
}
.md-vol-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.md-vol-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
}
.md-vol-score {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}
.md-vol-sep { color: var(--text-dim); margin: 0 4px; }
.md-vol-chart {
  width: 100%;
  height: 44px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  display: block;
}

/* Stats table */
.md-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
}
.md-stats-table th {
  font-size: 10px;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 6px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.md-st-home  { color: var(--green-bright)   !important; text-align: left; }
.md-st-away  { color: var(--purple-bright)  !important; text-align: right; }
.md-stats-table td {
  padding: 8px 6px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(148, 163, 184, 0.05);
}
.md-stats-table tbody tr:last-child td { border-bottom: 0; }
.md-st-h-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--green-bright);
  width: 50px;
  text-align: left;
}
.md-st-a-val {
  font-size: 14px;
  font-weight: 800;
  color: var(--purple-bright);
  width: 50px;
  text-align: right;
}
.md-st-label {
  text-align: center;
  font-size: 10px;
  color: var(--text-secondary);
  position: relative;
  padding: 0 10px;
}
.md-st-emoji { font-size: 14px; line-height: 1; margin-bottom: 2px; }
.md-st-name  { font-weight: 600; letter-spacing: 0.3px; margin-bottom: 4px; }
.md-st-bar {
  display: flex;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.08);
}
.md-st-bar-h { background: var(--green-bright);  transition: width 0.4s ease; }
.md-st-bar-a { background: var(--purple-bright); transition: width 0.4s ease; }

/* Timeline */
.md-timeline {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.md-tl-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  background: rgba(0, 0, 0, 0.2);
  border-left: 2px solid rgba(148, 163, 184, 0.2);
  border-radius: 4px;
}
.md-tl-item.md-tl-goal   { border-left-color: var(--green-bright); background: rgba(52, 211, 153, 0.05); }
.md-tl-item.md-tl-red    { border-left-color: #ef4444; background: rgba(239, 68, 68, 0.05); }
.md-tl-item.md-tl-yellow { border-left-color: #eab308; background: rgba(234, 179, 8, 0.04); }
.md-tl-min {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--text-primary);
  text-align: center;
}
.md-tl-text {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Markets list */
.md-markets-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.md-mkt-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.08);
  border-radius: 6px;
}
.md-mkt-row.pend {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.06);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}
.md-mkt-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.5px;
}
.md-mkt-status {
  font-size: 10px;
  color: var(--text-secondary);
}
.md-mkt-row.pend .md-mkt-status {
  color: #ef4444;
  font-weight: 700;
}
.md-mkt-conf {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  color: var(--green-bright);
}
.md-mkt-conf.dim { color: var(--text-dim); opacity: 0.6; }

/* Offline state */
.md-offline {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-dim);
}
.md-offline-ico { font-size: 42px; margin-bottom: 14px; }
.md-offline-title { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 6px; }
.md-offline-sub { font-size: 11px; }

/* Mobile drawer: bottom sheet */
@media (max-width: 720px) {
  #md-drawer {
    width: 100vw;
    height: 92vh;
    top: auto;
    bottom: 0;
    border-left: 0;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
  }
  #md-drawer.open { transform: translateY(0); }
  .md-score { font-size: 26px; }
  .md-team-logo, .md-team-logo-ph { width: 38px; height: 38px; }
}

/* ╔══════════════════════════════════════════════════════════════════╗
   ║  MATCH CARD V2 — HERO + BATTLE BARS                              ║
   ╚══════════════════════════════════════════════════════════════════╝ */
.match-card.v2 {
  padding: 0;
  min-height: 240px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  isolation: isolate;
}

/* Accent stripes (sides) — team identity subtil */
.match-card.v2 .card-accent-h,
.match-card.v2 .card-accent-a {
  position: absolute;
  top: 0; bottom: 0;
  width: 3px;
  z-index: 0;
  opacity: 0.8;
}
.match-card.v2 .card-accent-h {
  left: 0;
  background: linear-gradient(180deg, var(--green-bright), transparent 75%);
}
.match-card.v2 .card-accent-a {
  right: 0;
  background: linear-gradient(180deg, var(--purple-bright), transparent 75%);
}
.match-card.v2:hover .card-accent-h,
.match-card.v2:hover .card-accent-a { opacity: 1; }

/* Override old card-body (not used in v2 but keep safe) */
.match-card.v2 > .card-body { display: none; }

/* ─── TOP BAR ─── */
.match-card.v2 .card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}
.match-card.v2 .card-top-left {
  display: flex;
  align-items: center;
  gap: 8px;
}
.match-card.v2 .card-time {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--green-bright);
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.match-card.v2 .card-time .hot-flame {
  font-size: 13px;
  filter: drop-shadow(0 0 4px #ff5722);
}
.match-card.v2 .card-trend-badges {
  display: inline-flex;
  gap: 4px;
}

/* AI badge: ring compacto com % dentro */
.match-card.v2 .card-ai-badge {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.match-card.v2 .card-ai-badge .ai-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.match-card.v2 .card-ai-badge .ai-ring-bg {
  fill: none;
  stroke: rgba(148, 163, 184, 0.15);
  stroke-width: 4;
}
.match-card.v2 .card-ai-badge .ai-ring-fill {
  fill: none;
  stroke: var(--green-bright);
  stroke-width: 4;
  stroke-dasharray: 126;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s cubic-bezier(.22,1,.36,1);
  filter: drop-shadow(0 0 4px rgba(52, 211, 153, 0.55));
}
.match-card.v2 .card-ai-badge .ai-pct {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  color: var(--green-bright);
  letter-spacing: 0.3px;
}

/* ─── HERO — teams + score ─── */
.match-card.v2 .card-hero {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 12px;
  position: relative;
}
.match-card.v2 .hero-team {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
/* Home: logo à esquerda, nome ocupa o resto da coluna alinhado à esquerda  */
.match-card.v2 .hero-team-home { justify-content: flex-start; }
/* Away: row-reverse → ordem visual [nome] [logo]; flex:1 no nome empurra o logo até à margem direita */
.match-card.v2 .hero-team-away { flex-direction: row-reverse; }

.match-card.v2 .hero-team .team-logo,
.match-card.v2 .hero-team .team-logo-placeholder {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}
.match-card.v2 .team-logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(148, 163, 184, 0.1);
  border-radius: 50%;
  color: var(--text-dim);
  font-size: 22px;
}
.match-card.v2 .hero-team .team-name {
  flex: 1 1 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.match-card.v2 .hero-team-home .team-name { text-align: left; }
.match-card.v2 .hero-team-away .team-name { text-align: right; }

.match-card.v2 .hero-score-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.match-card.v2 .card-score {
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 900;
  color: var(--green-bright);
  text-shadow:
    0 0 20px rgba(52, 211, 153, 0.55),
    0 0 40px rgba(52, 211, 153, 0.25);
  letter-spacing: 3px;
  line-height: 1;
  padding: 0 4px;
  position: relative;
}
/* Subtle "light beams" flanking the score */
.match-card.v2 .card-score::before,
.match-card.v2 .card-score::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(52, 211, 153, 0.4));
  transform: translateY(-50%);
}
.match-card.v2 .card-score::before { right: 100%; transform: translateY(-50%) rotate(180deg); }
.match-card.v2 .card-score::after  { left: 100%; }

/* Red/yellow badges inline com nome */
.match-card.v2 .hero-team .card-rc,
.match-card.v2 .hero-team .card-yc {
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
}

/* ─── PRESSURE BAND ─── */
.match-card.v2 .card-pressure-band {
  padding: 4px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.match-card.v2 .momentum-line {
  width: 100%;
  height: 22px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.45);
  overflow: hidden;
  margin: 0;
}
.match-card.v2 .momentum-line .pressure-spark {
  width: 100%;
  height: 100%;
  display: block;
}
.match-card.v2 .pressure-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  font-family: var(--font-mono);
  color: var(--text-dim);
  letter-spacing: 0.3px;
  padding: 0 2px;
}
.match-card.v2 .pc-side { color: var(--text-secondary); font-weight: 700; }
.match-card.v2 .pc-sep  { opacity: 0.4; }
.match-card.v2 .pc-poss { color: var(--text-dim); }

/* ─── STAT BATTLES ─── */
.match-card.v2 .card-stat-battles {
  padding: 6px 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.match-card.v2 .stat-battle {
  display: grid;
  grid-template-columns: 18px 26px 1fr 26px;
  align-items: center;
  gap: 8px;
}
.match-card.v2 .sb-icon {
  font-size: 11px;
  text-align: center;
  opacity: 0.85;
}
.match-card.v2 .sb-val-h {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--green-bright);
  text-align: right;
  letter-spacing: 0.3px;
}
.match-card.v2 .sb-val-a {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  color: var(--purple-bright);
  text-align: left;
  letter-spacing: 0.3px;
}
.match-card.v2 .sb-bar {
  display: flex;
  height: 7px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.match-card.v2 .sb-bar-h {
  height: 100%;
  background: linear-gradient(90deg, rgba(52,211,153,0.4), var(--green-bright));
  transition: width 0.5s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.35);
}
.match-card.v2 .sb-bar-a {
  height: 100%;
  background: linear-gradient(90deg, var(--purple-bright), rgba(139, 92, 246, 0.4));
  transition: width 0.5s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.35);
}

/* ─── TICK ANIMATION nos battle bars (quando o stat sobe) ─── */
@keyframes sb-tick-h {
  0%   { transform: scale(1);   color: var(--green-bright); text-shadow: 0 0 0 transparent; }
  35%  { transform: scale(1.45); color: #5fffb8; text-shadow: 0 0 12px rgba(52, 211, 153, 0.9); }
  100% { transform: scale(1);   color: var(--green-bright); text-shadow: 0 0 0 transparent; }
}
@keyframes sb-tick-a {
  0%   { transform: scale(1);   color: var(--purple-bright); text-shadow: 0 0 0 transparent; }
  35%  { transform: scale(1.45); color: #c4a8ff; text-shadow: 0 0 12px rgba(139, 92, 246, 0.9); }
  100% { transform: scale(1);   color: var(--purple-bright); text-shadow: 0 0 0 transparent; }
}
@keyframes sb-flash-h {
  0%   { box-shadow: 0 0 8px rgba(52, 211, 153, 0.35); filter: brightness(1); }
  35%  { box-shadow: 0 0 18px rgba(52, 211, 153, 0.95); filter: brightness(1.4); }
  100% { box-shadow: 0 0 8px rgba(52, 211, 153, 0.35); filter: brightness(1); }
}
@keyframes sb-flash-a {
  0%   { box-shadow: 0 0 8px rgba(139, 92, 246, 0.35); filter: brightness(1); }
  35%  { box-shadow: 0 0 18px rgba(139, 92, 246, 0.95); filter: brightness(1.4); }
  100% { box-shadow: 0 0 8px rgba(139, 92, 246, 0.35); filter: brightness(1); }
}
.match-card.v2 .stat-battle.tick-h .sb-val-h { animation: sb-tick-h 1.05s ease-out; transform-origin: center; display: inline-block; }
.match-card.v2 .stat-battle.tick-a .sb-val-a { animation: sb-tick-a 1.05s ease-out; transform-origin: center; display: inline-block; }
.match-card.v2 .stat-battle.tick-h .sb-bar-h { animation: sb-flash-h 1.05s ease-out; }
.match-card.v2 .stat-battle.tick-a .sb-bar-a { animation: sb-flash-a 1.05s ease-out; }

/* ─── POSSESSION BAR (debaixo do hero) ─── */
.match-card.v2 .card-poss-bar {
  position: relative;
  margin: 0 16px 8px;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.match-card.v2 .card-poss-bar .poss-h {
  height: 100%;
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.55), rgba(52, 211, 153, 0.85));
  transition: width 0.6s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.35);
}
.match-card.v2 .card-poss-bar .poss-a {
  height: 100%;
  background: linear-gradient(90deg, rgba(139, 92, 246, 0.85), rgba(139, 92, 246, 0.55));
  transition: width 0.6s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 0 6px rgba(139, 92, 246, 0.35);
}
.match-card.v2 .card-poss-bar .poss-label-h,
.match-card.v2 .card-poss-bar .poss-label-a {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}
.match-card.v2 .card-poss-bar .poss-label-h { left: 6px; }
.match-card.v2 .card-poss-bar .poss-label-a { right: 6px; }

/* ─── IMMINENT MODE — score breathe quando jogo está apertado nos minutos finais ─── */
@keyframes score-imminent-breathe {
  0%, 100% {
    transform: scale(1);
    text-shadow:
      0 0 20px rgba(251, 191, 36, 0.55),
      0 0 40px rgba(251, 146, 60, 0.30);
  }
  50% {
    transform: scale(1.06);
    text-shadow:
      0 0 26px rgba(251, 191, 36, 0.85),
      0 0 56px rgba(251, 146, 60, 0.55),
      0 0 80px rgba(251, 146, 60, 0.25);
  }
}
@keyframes imminent-pulse-edge {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
.match-card.v2.imminent .card-score {
  color: #fbbf24;
  animation: score-imminent-breathe 2.4s ease-in-out infinite;
  transform-origin: center;
  display: inline-block;
}
.match-card.v2.imminent .card-score::before,
.match-card.v2.imminent .card-score::after {
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.7));
  height: 1.5px;
  width: 32px;
  animation: imminent-pulse-edge 2.4s ease-in-out infinite;
}
/* Quando .imminent + .hot ao mesmo tempo: o hot já dá amber, deixamos a animação dar override */
.match-card.v2.imminent.hot .card-score { color: #fbbf24; }

/* ─── FOOTER (eventos + mercados + acções) ─── */
.match-card.v2 .card-footer {
  margin-top: auto;
  padding: 8px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
  background: rgba(0, 0, 0, 0.15);
  position: relative;
}
.match-card.v2 .card-last-event {
  min-height: 12px;
  display: flex;
  align-items: center;
}
.match-card.v2 .card-last-event .last-evt-text {
  font-size: 9.5px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.3px;
  opacity: 0.85;
}
.match-card.v2 .card-markets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.match-card.v2 .card-actions {
  position: absolute;
  top: 8px;
  right: 10px;
  display: flex;
  gap: 4px;
}
.match-card.v2 .btn-action {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 12px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}
.match-card.v2 .btn-action:hover {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.4);
  color: var(--green-bright);
  transform: translateY(-1px);
}
.match-card.v2 .btn-action.whatsapp:hover {
  background: rgba(34, 197, 94, 0.15);
  border-color: #22c55e;
  color: #22c55e;
}

/* Hot state: accent stripes ficam laranja + mais vibrantes */
.match-card.v2.hot .card-accent-h,
.match-card.v2.hot .card-accent-a {
  background: linear-gradient(180deg, #fb923c, transparent 65%);
  opacity: 1;
  animation: accent-breathe 2.4s ease-in-out infinite;
}
@keyframes accent-breathe {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}
.match-card.v2.hot .card-score {
  color: #fbbf24;
  text-shadow:
    0 0 22px rgba(251, 146, 60, 0.65),
    0 0 44px rgba(239, 68, 68, 0.3);
}
.match-card.v2.hot .card-score::before,
.match-card.v2.hot .card-score::after {
  background: linear-gradient(90deg, transparent, rgba(251, 146, 60, 0.55));
}

/* Mobile */
@media (max-width: 640px) {
  .match-card.v2 .hero-team .team-logo,
  .match-card.v2 .hero-team .team-logo-placeholder { width: 44px; height: 44px; }
  .match-card.v2 .card-score { font-size: 32px; letter-spacing: 2px; }
  .match-card.v2 .hero-team .team-name { font-size: 11px; }
}
