/**
 * pbp-widgets.css — Estilos para Widgets y Shortcodes
 * Paleta Cardenales de Lara: Rojo (#C41230), Dorado (#E5A823) y Grafito Deportivo
 */

/* ── Variables de Widgets ─────────────────────────────────────────────────── */
.pbp-scoreboard-widget,
.pbp-boxscore-widget,
.pbp-cta-widget,
.pbp-scoreboard-inline,
.pbp-boxscore-inline,
.pbp-calendar,
.pbp-nextgame-card,
.pbp-standings-card {
  --pbp-primary:      #C41230;
  --pbp-primary-dark: #800A1F;
  --pbp-accent:       #E5A823;
  --pbp-dark-surface: #141720;
  --pbp-dark-card:    #181b24;
  --pbp-border-subtle: rgba(255, 255, 255, 0.1);
  --pbp-text-light:   #ffffff;
  --pbp-text-dim:     #9ba3af;
}

/* ── Widget Marcador ────────────────────────────────────────────────────────── */
.pbp-scoreboard-widget {
  background: linear-gradient(135deg, #181b24, #12141a);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--pbp-primary);
  color: #fff;
  border-radius: 10px;
  padding: 16px;
  font-family: inherit;
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
}

.pbp-widget-live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ff4d4d;
  margin-bottom: 10px;
}

.pbp-widget-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d4d;
  animation: pbp-live-pulse 1.2s ease-in-out infinite;
}

@keyframes pbp-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.3); }
}

.pbp-widget-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pbp-widget-team {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.pbp-widget-team--home { align-items: flex-end; }

.pbp-widget-team-abbr {
  font-size: 20px;
  font-weight: 900;
  color: #ffffff;
}
.pbp-widget-team-name {
  font-size: 11px;
  color: #9ba3af;
}
.pbp-widget-score {
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  color: #f0d060;
}
.pbp-widget-sep {
  font-size: 26px;
  opacity: .35;
  align-self: center;
  color: #ffffff;
}

.pbp-widget-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 8px;
  color: #a5acb8;
}

.pbp-widget-count {
  display: flex;
  gap: 12px;
  font-size: 12px;
  margin-bottom: 12px;
  color: #a5acb8;
}

.pbp-widget-cta-btn {
  display: block;
  text-align: center;
  background: var(--pbp-primary);
  color: #ffffff !important;
  border-radius: 6px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none !important;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(196, 18, 48, 0.4);
}
.pbp-widget-cta-btn:hover {
  background: var(--pbp-primary-dark);
  transform: translateY(-1px);
}

.pbp-widget-no-game {
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: #888;
}

/* ── Widget Boxscore ────────────────────────────────────────────────────────── */
.pbp-boxscore-widget { padding: 4px 0; }

.pbp-mini-boxscore {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 8px;
  background: #181b24;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.pbp-mini-boxscore th {
  background: var(--pbp-primary);
  color: #fff;
  padding: 6px 8px;
  text-align: center;
  font-weight: 800;
}
.pbp-mini-boxscore th:first-child { text-align: left; }
.pbp-mini-boxscore td {
  padding: 6px 8px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}
.pbp-mini-boxscore td:first-child { text-align: left; font-weight: 800; color: #E5A823; }

.pbp-widget-link {
  display: block;
  text-align: right;
  font-size: 12px;
  color: #E5A823;
  text-decoration: none;
  margin-top: 6px;
  font-weight: 700;
}
.pbp-widget-link:hover { text-decoration: underline; }

/* ── Widget CTA ─────────────────────────────────────────────────────────────── */
.pbp-cta-widget { text-align: center; }
.pbp-cta--live .pbp-cta-score {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}

.pbp-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #181b24;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none !important;
  transition: all .2s;
  width: 100%;
  justify-content: center;
}
.pbp-cta-button:hover {
  background: var(--pbp-primary);
  border-color: var(--pbp-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 18, 48, 0.4);
}

.pbp-cta-button--live {
  background: linear-gradient(135deg, #C41230, #9E0D24);
  border: none;
  animation: pbp-cta-glow 2s ease-in-out infinite;
}
.pbp-cta-button--live:hover {
  background: linear-gradient(135deg, #A80F29, #7A0019);
}

@keyframes pbp-cta-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196, 18, 48, 0.5); }
  50%       { box-shadow: 0 0 0 8px rgba(196, 18, 48, 0); }
}

.pbp-cta-live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  animation: pbp-live-pulse 1.2s ease-in-out infinite;
}

/* ── Shortcodes inline ──────────────────────────────────────────────────────── */
.pbp-scoreboard-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #181b24;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 800;
  font-family: inherit;
}
.pbp-si-sep { opacity: .4; }
.pbp-si-inning { font-size: 11px; opacity: .8; color: #E5A823; }

.pbp-cta-inline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pbp-cta-score-inline {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.pbp-boxscore-inline .pbp-mini-innings-table {
  border-collapse: collapse;
  font-size: 13px;
  background: #181b24;
  color: #fff;
  border-radius: 6px;
  overflow: hidden;
}
.pbp-boxscore-inline .pbp-mini-innings-table th {
  background: var(--pbp-primary);
  color: #fff;
  padding: 5px 8px;
  text-align: center;
  min-width: 28px;
}
.pbp-boxscore-inline .pbp-mini-innings-table td {
  padding: 5px 8px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Calendario Deportivo Profesional ───────────────────────────────────────── */
.pbp-calendar {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 10px;
  font-family: inherit;
}

.pbp-calendar-header {
  margin-bottom: 24px;
}

.pbp-calendar-title {
  font-size: 26px !important;
  font-weight: 900 !important;
  color: #ffffff !important;
  text-transform: uppercase !important;
  letter-spacing: 1px !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  border-bottom: 3px solid #C41230 !important;
  padding-bottom: 8px !important;
  text-shadow: 0 2px 4px rgba(0,0,0,.6);
}

/* Pestañas de Fases del Campeonato */
.pbp-cal-stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 8px;
}

.pbp-cal-stage-tabs .pbp-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #181b24;
  color: #cbd5e1 !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
  line-height: 1.2;
}

.pbp-cal-stage-tabs .pbp-tab-btn:hover {
  background: #242938;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.pbp-cal-stage-tabs .pbp-tab-btn.active {
  background: #C41230 !important;
  color: #ffffff !important;
  border-color: #e53e3e !important;
  box-shadow: 0 4px 14px rgba(196, 18, 48, 0.45);
}

.pbp-cal-stage-tabs .pbp-tab-count {
  font-size: 11px;
  opacity: 0.85;
  font-weight: 600;
}

/* Barra de Navegación Rápida de Meses */
.pbp-cal-month-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  background: #14171f;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pbp-cal-month-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #1e222d;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 7px 15px;
  border-radius: 20px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.pbp-cal-month-pill:hover {
  background: #282f3f;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.pbp-cal-month-pill.active {
  background: #E5A823;
  color: #0b0f19;
  border-color: #f59e0b;
  font-weight: 800;
  box-shadow: 0 3px 10px rgba(229, 168, 35, 0.35);
}

.pbp-cal-month-pill .pbp-pill-count {
  font-size: 11px;
  opacity: 0.9;
}

/* Sección Agrupada por Mes */
.pbp-cal-month-section {
  margin-bottom: 36px;
  transition: opacity 0.25s ease;
}

.pbp-cal-month-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: linear-gradient(90deg, rgba(196, 18, 48, 0.22) 0%, rgba(20, 23, 31, 0.8) 100%);
  border-left: 4px solid #C41230;
  border-radius: 6px;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.pbp-cal-month-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pbp-cal-month-icon {
  font-size: 17px;
}

.pbp-cal-month-title {
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 !important;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.pbp-cal-month-count {
  font-size: 12px;
  font-weight: 700;
  color: #E5A823;
  background: rgba(229, 168, 35, 0.12);
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(229, 168, 35, 0.25);
  white-space: nowrap;
}

.pbp-calendar-empty {
  background: #181b24;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #a5acb8;
  font-size: 15px;
}

.pbp-calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 18px;
}

.pbp-calendar-card {
  background: #181b24;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.pbp-calendar-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  border-color: rgba(196, 18, 48, 0.5);
}

.pbp-calendar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
}
.pbp-cal-status--live::before      { background: #e74c3c; box-shadow: 0 0 10px #e74c3c; }
.pbp-cal-status--final::before     { background: #4a5568; }
.pbp-cal-status--scheduled::before { background: #E5A823; }
.pbp-cal-status--postponed::before { background: #718096; }

/* Top Row: Fecha, Fase y Sede Blindada contra Quiebres */
.pbp-cal-card-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.pbp-cal-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 5px 10px;
  border-radius: 6px;
  font-weight: 700;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.3;
}

.pbp-cal-day {
  color: #E5A823;
  text-transform: capitalize;
}

.pbp-cal-time {
  opacity: 0.85;
}

.pbp-cal-meta-right {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: calc(100% - 130px);
}

.pbp-cal-stage-tag {
  display: inline-block;
  background: rgba(196, 18, 48, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(196, 18, 48, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pbp-cal-venue {
  color: #9ba3af;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}

@media (max-width: 480px) {
  .pbp-cal-meta-right {
    margin-left: 0;
    max-width: 100%;
    width: 100%;
    justify-content: flex-start;
  }
}

/* Matchup Central */
.pbp-cal-matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 10px 0 16px;
}

.pbp-cal-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pbp-cal-logo-wrap {
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}

.pbp-cal-logo {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}

.pbp-cal-logo--fallback {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C41230, #7A0019);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  border: 2px solid rgba(255,255,255,0.15);
}

.pbp-cal-team-abbr {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #ffffff;
  line-height: 1.1;
}

.pbp-cal-team-name {
  font-size: 11px;
  color: #9ba3af;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

/* Centro: VS o Score */
.pbp-cal-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pbp-cal-vs-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #E5A823;
  font-weight: 900;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 1px;
}

.pbp-cal-score-box {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.pbp-cal-score {
  color: #f0d060;
  min-width: 26px;
  text-align: center;
}

.pbp-cal-score-sep {
  opacity: 0.4;
  font-size: 20px;
}

.pbp-cal-live-tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 800;
  background: #e74c3c;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer Card */
.pbp-cal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pbp-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pbp-badge--live {
  background: #e74c3c;
  color: #ffffff;
  animation: pbp-live-pulse 1.2s ease-in-out infinite;
}

.pbp-badge--final {
  background: #2d3748;
  color: #cbd5e0;
}

.pbp-badge--scheduled {
  background: #E5A823;
  color: #1a1a2e;
}

.pbp-badge--postponed {
  background: #4a5568;
  color: #e2e8f0;
}

.pbp-live-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  display: inline-block;
}

/* Botones de acción del calendario */
.pbp-cal-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  transition: all 0.2s ease !important;
}

.pbp-cal-btn--live {
  background: #e74c3c !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
}
.pbp-cal-btn--live:hover {
  background: #c0392b !important;
  transform: translateY(-1px);
}

.pbp-cal-btn--final {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.pbp-cal-btn--final:hover {
  background: rgba(255, 255, 255, 0.18) !important;
}

.pbp-cal-btn--preview {
  background: #C41230 !important;
  color: #ffffff !important;
}
.pbp-cal-btn--preview:hover {
  background: #9E0D24 !important;
  transform: translateY(-1px);
}

@media (max-width: 480px) {
  .pbp-calendar-grid {
    grid-template-columns: 1fr;
  }
}

/* ── WIDGET PRÓXIMO ENCUENTRO (Image 5) ────────────────────────────────────── */
.pbp-nextgame-card {
  position: relative;
  background: linear-gradient(145deg, #181b24 0%, #12141c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: #ffffff;
  margin-bottom: 20px;
}

.pbp-nextgame-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--pbp-primary, #C41230) 0%, var(--pbp-accent, #E5A823) 100%);
}

.pbp-nextgame-content {
  padding: 18px 20px 18px 24px;
}

.pbp-nextgame-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
  margin-bottom: 14px;
}

.pbp-nextgame-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pbp-nextgame-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pbp-accent, #E5A823);
}

.pbp-nextgame-live-dot.active {
  background: #ff4d4d;
  box-shadow: 0 0 10px #ff4d4d;
  animation: pbp-live-pulse 1.2s ease-in-out infinite;
}

.pbp-nextgame-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
}

.pbp-nextgame-date {
  font-size: 11px;
  font-weight: 600;
  color: #9ca3af;
  letter-spacing: 0.5px;
}

.pbp-nextgame-matchup {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin: 16px 0 18px;
}

.pbp-nextgame-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 75px;
}

.pbp-nextgame-logo-box {
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.pbp-nextgame-logo-box:hover {
  transform: scale(1.05);
}

.pbp-nextgame-logo {
  max-width: 42px;
  max-height: 42px;
  object-fit: contain;
}

.pbp-nextgame-placeholder-logo {
  font-size: 26px;
}

.pbp-nextgame-team-code {
  font-size: 13px;
  font-weight: 800;
  color: #e5e7eb;
  letter-spacing: 0.5px;
}

.pbp-nextgame-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 100px;
}

.pbp-nextgame-vs-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.pbp-ng-vs {
  font-size: 16px;
  font-weight: 900;
  color: var(--pbp-accent, #E5A823);
  letter-spacing: 1px;
}

.pbp-ng-time {
  font-size: 12px;
  font-weight: 700;
  color: #9ca3af;
}

.pbp-nextgame-live-score {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pbp-ng-score-val {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  color: #ffffff;
}

.pbp-ng-score-sep {
  font-size: 22px;
  color: #6b7280;
  font-weight: 700;
}

.pbp-nextgame-inning-badge {
  margin-top: 6px;
  background: #e74c3c;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pbp-nextgame-action {
  margin: 12px 0;
}

.pbp-nextgame-btn {
  display: block !important;
  text-align: center !important;
  background: linear-gradient(135deg, var(--pbp-primary, #C41230) 0%, var(--pbp-primary-dark, #800A1F) 100%) !important;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  padding: 11px 16px !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 14px rgba(196, 18, 48, 0.4) !important;
  transition: all 0.25s ease !important;
}

.pbp-nextgame-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(196, 18, 48, 0.6) !important;
}

.pbp-nextgame-countdown-section {
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 12px;
  text-align: center;
}

.pbp-countdown-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 8px;
}

.pbp-countdown-digits {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.pbp-cd-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 6px 8px;
  min-width: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pbp-cd-num {
  font-size: 18px;
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
}

.pbp-cd-label {
  font-size: 8px;
  font-weight: 700;
  color: #9ca3af;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.pbp-cd-sep {
  font-size: 16px;
  font-weight: 900;
  color: #6b7280;
  margin-top: -6px;
}

.pbp-nextgame-live-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
  margin-top: 12px;
  font-size: 11px;
  color: #9ca3af;
}

.pbp-ng-count-mini {
  display: flex;
  gap: 10px;
}

.pbp-hidden {
  display: none !important;
}

/* ── TABLA DE POSICIONES PÚBLICA (Image 3) ─────────────────────────────────── */
.pbp-standings-card {
  background: linear-gradient(145deg, #181b24 0%, #12141a 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  color: #ffffff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  margin-bottom: 24px;
}

.pbp-standings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--pbp-primary, #C41230);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.pbp-standings-title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pbp-standings-season {
  background: rgba(255, 255, 255, 0.08);
  color: var(--pbp-accent, #E5A823);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
}

.pbp-standings-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pbp-standings-public-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: center;
}

.pbp-standings-public-table th {
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9ca3af;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pbp-standings-public-table td {
  padding: 11px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.pbp-standings-public-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.pbp-row-leader,
.pbp-standings-public-table tbody tr:first-child {
  background: #373a48 !important;
}

.pbp-col-pos {
  width: 44px;
}

.pbp-pos-num {
  font-weight: 700;
  color: #8e94a5;
  font-size: 14px;
}

.pbp-row-leader .pbp-pos-num,
.pbp-standings-public-table tbody tr:first-child .pbp-pos-num {
  color: #ffffff;
}

.pbp-col-team {
  text-align: left !important;
  min-width: 120px;
}

.pbp-team-flex {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pbp-st-logo {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  min-width: 24px !important;
  object-fit: contain !important;
  vertical-align: middle;
  flex-shrink: 0;
}

.pbp-st-logo-placeholder {
  font-size: 16px;
  width: 24px;
  text-align: center;
}

.pbp-st-names {
  display: flex;
  flex-direction: column;
}

.pbp-st-name {
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
}

.pbp-st-abbr {
  font-size: 10px;
  color: #9ca3af;
  font-weight: 600;
}

.pbp-col-stat {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.pbp-stat-win {
  color: #10b981;
  font-weight: 800;
}

.pbp-stat-loss {
  color: #ef4444;
}

.pbp-col-highlight {
  color: var(--pbp-accent, #E5A823);
  font-weight: 800;
}

.pbp-stat-cacp {
  color: #9ca3af;
  font-size: 12px;
}

/* ── Estilos Mejorados de Tabla de Posiciones y Widget v1.3.0 ────────────── */
.pbp-num-large {
  font-size: 14px !important;
  font-weight: 700 !important;
}

.pbp-st-abbr-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pbp-st-abbr-main {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.pbp-status-marker {
  display: inline-block;
  font-weight: 900;
  font-size: 12px;
  color: #e5a823;
  margin-right: 2px;
}

.pbp-standings-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  color: #94a3b8;
  flex-wrap: wrap;
}

.pbp-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ── WIDGET DE POSICIONES (PBP_Widget_Standings) — Diseño Fiel Image 2 ───── */
.pbp-standings-widget-container {
  background: #252833;
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  margin-bottom: 20px;
}

/* Pestañas de Fase (Temporada Regular / Round Robin / Serie Final) */
.pbp-standings-widget-container .pbp-standings-tabs {
  display: flex;
  align-items: center;
  background: #1d2029;
  border-radius: 6px;
  padding: 4px;
  gap: 4px;
  margin: 12px 10px 14px 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pbp-standings-widget-container .pbp-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 8px;
  border-radius: 4px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  font-family: inherit;
  white-space: nowrap;
  box-shadow: none;
  outline: none;
}

.pbp-standings-widget-container .pbp-tab-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.pbp-standings-widget-container .pbp-tab-btn.active {
  background: #383b49;
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Tabla de Posiciones */
.pbp-standings-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pbp-standings-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: #ffffff;
  table-layout: auto;
  border-spacing: 0;
  margin: 0;
}

.pbp-standings-mini-table th {
  padding: 12px 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  line-height: 1.2;
}

.pbp-standings-mini-table th.pbp-col-pos {
  text-align: center;
  width: 44px;
  padding-left: 10px;
}

.pbp-standings-mini-table th.pbp-col-team {
  text-align: left;
  padding-left: 10px;
  min-width: 100px;
}

.pbp-standings-mini-table th.pbp-col-stat {
  text-align: center;
  width: 46px;
}

.pbp-standings-mini-table td {
  padding: 12px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  vertical-align: middle;
  line-height: 1.2;
}

.pbp-standings-mini-table tbody tr {
  background: transparent;
  transition: background 0.15s ease;
}

.pbp-standings-mini-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Fila 1 Destacada (Líder / Posición 1) — Barra más clara idéntica a Image 2 */
.pbp-standings-mini-table tbody tr.pbp-row-leader,
.pbp-standings-mini-table tbody tr:first-child {
  background: #373a48 !important;
}

.pbp-standings-mini-table tbody tr.pbp-row-leader td,
.pbp-standings-mini-table tbody tr:first-child td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Columna POS */
.pbp-standings-mini-table .pbp-cell-pos {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #8e94a5;
  padding-left: 10px;
  width: 44px;
}

.pbp-standings-mini-table tr.pbp-row-leader .pbp-cell-pos,
.pbp-standings-mini-table tr:first-child .pbp-cell-pos {
  color: #ffffff;
}

/* Columna Equipo & Logo */
.pbp-standings-mini-table .pbp-cell-team {
  text-align: left;
  padding-left: 10px;
}

.pbp-standings-mini-table .pbp-team-flex {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pbp-standings-mini-table .pbp-mini-logo {
  width: 24px !important;
  height: 24px !important;
  max-width: 24px !important;
  max-height: 24px !important;
  min-width: 24px !important;
  object-fit: contain !important;
  display: inline-block !important;
  flex-shrink: 0;
  vertical-align: middle;
  border: none;
  background: transparent;
  margin: 0 !important;
  padding: 0 !important;
}

.pbp-standings-mini-table .pbp-mini-logo-placeholder {
  font-size: 16px;
  width: 24px;
  text-align: center;
  display: inline-block;
  flex-shrink: 0;
}

.pbp-standings-mini-table .pbp-abbr-text {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.pbp-standings-mini-table .pbp-team-abbr-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Números de Estadísticas */
.pbp-standings-mini-table .pbp-cell-stat {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #8e94a5;
  font-variant-numeric: tabular-nums;
  width: 46px;
}

.pbp-standings-mini-table tr.pbp-row-leader .pbp-cell-stat,
.pbp-standings-mini-table tr:first-child .pbp-cell-stat {
  color: #a0a6b7;
}

/* Leyenda */
.pbp-standings-widget-container .pbp-standings-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 14px;
  font-size: 11px;
  color: #8e94a5;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pbp-standings-widget-container .pbp-status-marker {
  color: #e5a823;
  font-weight: 800;
}


