/* NDE Live Blog — Scoreboard + Timeline */

/* =========================================================
   SCOREBOARD
   ========================================================= */

.nde-scoreboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--c-contrast-900, #161616);
  border-radius: 10px;
  padding: 20px 16px 16px;
  margin-bottom: 28px;
  gap: 8px;
}

.nde-scoreboard__team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  text-align: center;
  min-width: 0;
}

.nde-scoreboard__logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.nde-scoreboard__logo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: rgba(255,255,255,.7);
  font-family: var(--ui-font, sans-serif);
  letter-spacing: .04em;
}

.nde-scoreboard__team-name {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--ui-font, sans-serif);
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.nde-scoreboard__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding: 0 8px;
}

.nde-scoreboard__score {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}

.nde-scoreboard__goals {
  font-size: 52px;
  font-weight: 900;
  font-family: var(--ui-font, sans-serif);
  color: #fff;
  min-width: 36px;
  text-align: center;
  line-height: 1;
}

.nde-scoreboard__sep {
  font-size: 28px;
  font-weight: 300;
  color: rgba(255,255,255,.3);
  line-height: 1;
}

.nde-scoreboard__time {
  font-size: 12px;
  font-weight: 700;
  font-family: var(--ui-font, sans-serif);
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--c-main, #2ab391);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Punto pulsante en modo EN VIVO */
.nde-scoreboard--live .nde-scoreboard__time::before {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-main, #2ab391);
  animation: nde-pulse 1.4s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes nde-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .35; transform: scale(.75); }
}

.nde-scoreboard--halftime .nde-scoreboard__time {
  color: #f0b429;
}

.nde-scoreboard--finished .nde-scoreboard__time {
  color: rgba(255,255,255,.45);
}

.nde-scoreboard--prematch .nde-scoreboard__time {
  color: #63b3ed;
}

/* "vs" centrado en modo pre-partido (sin números de gol) */
.nde-scoreboard__sep--vs {
  font-size: 22px;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  letter-spacing: .06em;
  padding: 0 4px;
}

.nde-scoreboard__round {
  font-size: 10px;
  color: rgba(255,255,255,.35);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-top: 2px;
}

@media (max-width: 420px) {
  .nde-scoreboard__logo { width: 42px; height: 42px; }
  .nde-scoreboard__goals { font-size: 40px; }
  .nde-scoreboard__team-name { font-size: 10px; }
}

/* =========================================================
   TIMELINE
   ========================================================= */

.nde-entry {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--c-separator, #e8e8e8);
}

.nde-entry:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Entrada más reciente: destacada */
.nde-entry:first-child .nde-entry__body {
  background: var(--c-contrast-50, #f7f7f7);
}

/* --- Columna izquierda: icono + minuto --- */
.nde-entry__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  width: 48px;
}

.nde-entry__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--c-contrast-75, #efefef);
  border: 2px solid var(--c-separator, #e8e8e8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}

.nde-entry__minute {
  font-size: 11px;
  font-weight: 700;
  color: var(--c-post-meta, #8a8a8a);
  font-family: var(--ui-font, sans-serif);
  letter-spacing: .03em;
}

/* --- Columna derecha: contenido --- */
.nde-entry__body {
  flex: 1;
  border-radius: 6px;
  padding: 12px 16px;
  border: 1px solid var(--c-separator, #e8e8e8);
  border-left: 4px solid var(--c-contrast-150, #ddd);
  background: var(--c-contrast-0, #fff);
}

.nde-entry__body p {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-contrast-800, #333);
}

.nde-entry__body p:last-child { margin-bottom: 0; }

/* --- Color por tipo de evento --- */
.nde-entry--goal .nde-entry__icon {
  background: var(--c-main, #2ab391);
  border-color: var(--c-main, #2ab391);
  font-size: 22px;
}

.nde-entry--goal .nde-entry__body {
  border-left-color: var(--c-main, #2ab391);
}

.nde-entry--red_card .nde-entry__icon {
  background: #e53e3e;
  border-color: #e53e3e;
}

.nde-entry--red_card .nde-entry__body {
  border-left-color: #e53e3e;
}

.nde-entry--yellow_card .nde-entry__icon {
  background: #f0b429;
  border-color: #f0b429;
}

.nde-entry--yellow_card .nde-entry__body {
  border-left-color: #f0b429;
}

.nde-entry--halftime .nde-entry__icon,
.nde-entry--fulltime .nde-entry__icon {
  background: var(--c-contrast-100, #e8e8e8);
  border-color: var(--c-contrast-200, #ccc);
  font-size: 18px;
}

.nde-entry--halftime .nde-entry__body,
.nde-entry--fulltime .nde-entry__body {
  border-left-color: var(--c-contrast-300, #bbb);
  text-align: center;
  background: var(--c-contrast-75, #efefef);
}

.nde-entry--fulltime .nde-entry__body strong {
  font-size: 17px;
}

/* Entrada narrativa — estilo editorial, sin icono llamativo */
.nde-entry--narrative .nde-entry__icon {
  background: transparent;
  border-color: var(--c-separator, #e8e8e8);
  font-size: 14px;
  color: var(--c-contrast-400, #999);
}

.nde-entry--narrative .nde-entry__body {
  border-left-color: var(--c-contrast-200, #ccc);
  background: transparent;
  border-top: none;
  border-right: none;
  border-bottom: none;
  padding-left: 14px;
}

.nde-entry--narrative .nde-entry__body p {
  font-style: italic;
  font-size: 14px;
  color: var(--c-contrast-600, #666);
  line-height: 1.7;
}
