/* NEXUS Match Article Embed — match-embed.css v1.0 */

.nxmae-card{
  --nxmae-home: #e63946;
  --nxmae-away: #1d3557;
  --nxmae-bg: var(--nx-surface, #fff);
  --nxmae-border: var(--nx-border, rgba(0,0,0,.09));
  --nxmae-text: var(--nx-text, #111);
  --nxmae-muted: var(--nx-muted, #6b7280);
  --nxmae-accent: var(--nx-accent, #e63946);
  background: var(--nxmae-bg);
  border: 1px solid var(--nxmae-border);
  border-radius: 12px;
  overflow: hidden;
  margin: 28px 0;
  font-family: var(--nx-font-ui, system-ui, -apple-system, sans-serif);
  box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

/* Brand bar */
.nxmae-brand-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px;
  background: linear-gradient(135deg, #e63946 0%, #c72a37 100%);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}
.nxmae-comp{ opacity: .9; }
.nxmae-brand-link{
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  opacity: .9;
  transition: opacity .2s;
}
.nxmae-brand-link:hover{ opacity: 1; }

/* Scoreboard */
.nxmae-scoreboard{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 16px 12px;
  gap: 8px;
}
.nxmae-team{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.nxmae-team-name{
  font-size: 13px;
  font-weight: 700;
  color: var(--nxmae-text);
  text-align: center;
  line-height: 1.3;
  word-break: break-word;
}
.nxmae-badge{ width: 52px; height: 52px; object-fit: contain; }
.nxmae-badge-ph{
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--nxmae-accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
}

.nxmae-score-centre{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  min-width: 90px;
}
.nxmae-score{
  font-size: 36px;
  font-weight: 900;
  color: var(--nxmae-text);
  letter-spacing: -1px;
  line-height: 1;
}
.nxmae-score span{ margin: 0 4px; color: var(--nxmae-muted); }
.nxmae-score-vs{ font-size: 22px; color: var(--nxmae-muted); }
.nxmae-ht{ font-size: 11px; color: var(--nxmae-muted); }
.nxmae-status{
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: .06em;
}
.nxmae-status-live{ background: #e63946; color: #fff; animation: nxmae-pulse 1.5s infinite; }
.nxmae-status-ft  { background: #e5e7eb; color: #374151; }
.nxmae-status-ht  { background: #fef3c7; color: #92400e; }
.nxmae-status-up  { background: #dbeafe; color: #1e40af; }
.nxmae-status-pp,.nxmae-status-ca{ background: #f3f4f6; color: #6b7280; }

@keyframes nxmae-pulse{ 0%,100%{opacity:1} 50%{opacity:.7} }

.nxmae-venue{
  text-align: center;
  font-size: 11px;
  color: var(--nxmae-muted);
  padding: 0 16px 12px;
}

/* Sections */
.nxmae-section{
  border-top: 1px solid var(--nxmae-border);
  padding: 14px 16px;
}
.nxmae-section-title{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--nxmae-muted);
  margin: 0 0 12px;
}

/* Stats bars */
.nxmae-stats{ display: flex; flex-direction: column; gap: 9px; }
.nxmae-stat-row{
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 8px;
}
.nxmae-stat-hv{ text-align: right; font-size: 13px; font-weight: 700; color: var(--nxmae-text); }
.nxmae-stat-av{ text-align: left;  font-size: 13px; font-weight: 700; color: var(--nxmae-text); }
.nxmae-stat-mid{ display: flex; flex-direction: column; gap: 3px; }
.nxmae-stat-label{ font-size: 10px; color: var(--nxmae-muted); text-align: center; }
.nxmae-stat-bar{
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
}
.nxmae-stat-fill-h{ background: var(--nxmae-home); border-radius: 3px 0 0 3px; transition: width .6s ease; }
.nxmae-stat-fill-a{ background: var(--nxmae-away); border-radius: 0 3px 3px 0; transition: width .6s ease; }

/* Events */
.nxmae-events{ display: flex; flex-direction: column; gap: 6px; }
.nxmae-event{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 5px 4px;
  border-radius: 6px;
}
.nxmae-event-home{ justify-content: flex-start; }
.nxmae-event-away{ justify-content: flex-end; flex-direction: row-reverse; }
.nxmae-ev-min{ font-size: 10px; font-weight: 700; color: var(--nxmae-muted); min-width: 32px; }
.nxmae-event-home .nxmae-ev-min{ text-align: left; }
.nxmae-event-away .nxmae-ev-min{ text-align: right; }
.nxmae-ev-icon{ font-size: 14px; flex-shrink: 0; }
.nxmae-ev-player{ color: var(--nxmae-text); font-weight: 600; }
.nxmae-ev-player em{ font-style: normal; color: var(--nxmae-muted); font-weight: 400; }

/* Footer */
.nxmae-footer{
  border-top: 1px solid var(--nxmae-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  font-size: 12px;
}
.nxmae-match-link{
  color: var(--nxmae-accent);
  font-weight: 600;
  text-decoration: none;
}
.nxmae-match-link:hover{ text-decoration: underline; }
.nxmae-footer-brand{ color: var(--nxmae-muted); font-size: 11px; }
.nxmae-footer-brand a{ color: var(--nxmae-accent); text-decoration: none; }

/* Dark mode */
[data-theme="dark"] .nxmae-card,
.dark-mode .nxmae-card{
  --nxmae-bg: #1e2433;
  --nxmae-border: rgba(255,255,255,.08);
  --nxmae-text: #f1f5f9;
  --nxmae-muted: #9ca3af;
}
[data-theme="dark"] .nxmae-stat-bar,
.dark-mode .nxmae-stat-bar{ background: rgba(255,255,255,.1); }
[data-theme="dark"] .nxmae-status-ft,
.dark-mode .nxmae-status-ft{ background: #374151; color: #d1d5db; }

@media (max-width: 480px){
  .nxmae-score{ font-size: 28px; }
  .nxmae-badge{ width: 40px; height: 40px; }
  .nxmae-badge-ph{ width: 40px; height: 40px; font-size: 18px; }
  .nxmae-team-name{ font-size: 11px; }
  .nxmae-stat-row{ grid-template-columns: 28px 1fr 28px; }
}

/* SoccerHub brand badge used elsewhere */
.nxb-brand-badge{
  display:inline-flex; align-items:center; gap:4px;
  font-size:10px; font-weight:600; color: var(--nx-muted,#9ca3af);
  padding:2px 8px; border-radius:10px;
  border:1px solid var(--nx-border,rgba(0,0,0,.08));
  background: var(--nx-surface,#f8f9fa);
}
