/**
 * pbp-public.css — Estilos de la Vista Pública Play by Play
 * Paleta Cardenales de Lara: Rojo (#C41230), Dorado (#E5A823) y Grafito Deportivo
 */

/* ── Variables Aisladas a .pbp-game-view ──────────────────────────────────── */
.pbp-game-view {
  --pbp-primary:      #C41230;
  --pbp-primary-dark: #800A1F;
  --pbp-accent:       #E5A823;
  --pbp-green:        #27ae60;
  --pbp-red:          #c0392b;
  --pbp-live-red:     #e74c3c;
  --pbp-bg:           #0e1017;
  --pbp-card-bg:      #181b24;
  --pbp-white:        #ffffff;
  --pbp-border:       rgba(255, 255, 255, 0.1);
  --pbp-text:         #ffffff;
  --pbp-text-dim:     #a0a6b5;
  --pbp-radius:       10px;
  --pbp-shadow:       0 4px 20px rgba(0, 0, 0, 0.4);

  box-sizing: border-box;
  font-family: inherit;
  background-color: var(--pbp-card-bg, #11141c);
  color: var(--pbp-text, #ffffff);
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 16px;
  border-radius: var(--pbp-radius, 12px);
  position: relative;
  container-type: inline-size;
  container-name: pbp-container;
}

.pbp-game-view * { box-sizing: border-box; }

.pbp-gameday-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ── Cabecera del partido ───────────────────────────────────────────────────── */
.pbp-header {
  background: linear-gradient(135deg, #181b24 0%, #7A0019 50%, #C41230 100%);
  color: #fff;
  padding: 18px 16px 14px;
  border-bottom: 4px solid var(--pbp-accent);
  border-radius: var(--pbp-radius) var(--pbp-radius) 0 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
}

.pbp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Equipos */
.pbp-team {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
}
.pbp-team--away {
  justify-content: flex-start;
  text-align: left;
}
.pbp-team--home {
  justify-content: flex-end;
  text-align: right;
}
.pbp-team-logo {
  width: 56px;
  height: 56px;
  max-width: 56px;
  max-height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}
.pbp-team-info {
  min-width: 0;
  overflow: hidden;
}
.pbp-team-city {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  opacity: .75;
  letter-spacing: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pbp-team-name {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.15;
  word-break: break-word;
}

/* Marcador central */
.pbp-scorebox {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  min-width: 180px;
  margin: 0 6px;
}
.pbp-scores {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2px;
}
.pbp-score-big {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 2px 4px 8px rgba(0,0,0,.4);
  min-width: 42px;
}
.pbp-score-sep {
  font-size: 24px;
  opacity: .5;
}
.pbp-inning-display {
  font-size: 16px;
  font-weight: 700;
  color: var(--pbp-accent);
  margin-bottom: 3px;
}

/* Estado del partido */
.pbp-status-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 2px 0 4px;
}
.pbp-live-badge {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #888;
}
.pbp-status--live     .pbp-live-badge { background: var(--pbp-live-red); animation: pbp-pulse 1.2s ease-in-out infinite; }
.pbp-status--final    .pbp-live-badge { background: #ccc; }
.pbp-status--scheduled .pbp-live-badge { background: var(--pbp-accent); }

/* Cuenta */
.pbp-count-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 3px;
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.pbp-count-group {
  display: flex;
  align-items: center;
  gap: 5px;
  text-align: center;
}
.pbp-count-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
}
.pbp-dots-row {
  display: flex;
  gap: 4px;
  align-items: center;
}
.pbp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 1.5px solid rgba(255,255,255,.4);
  transition: all .3s;
}
.pbp-dot.active       { background: var(--pbp-green); border-color: var(--pbp-green); }
.pbp-dot.active.strike { background: var(--pbp-accent); border-color: var(--pbp-accent); }
.pbp-dot.active.out   { background: var(--pbp-live-red); border-color: var(--pbp-live-red); }

/* Indicador de conexión */
#pbp-connection-indicator {
  font-size: 11px;
  margin-top: 4px;
  opacity: .85;
}
.pbp-connected    { color: #2ecc71; }
.pbp-disconnected { color: #e74c3c; }

.pbp-game-meta {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  opacity: .75;
  margin-top: 12px;
}

/* ── Secciones ──────────────────────────────────────────────────────────────── */
.pbp-section {
  background: var(--pbp-card-bg, #181b24);
  border: 1px solid var(--pbp-border, rgba(255, 255, 255, 0.1));
  border-radius: var(--pbp-radius, 10px);
  padding: 18px 20px;
  margin: 16px auto;
  max-width: 1200px;
  box-shadow: var(--pbp-shadow, 0 4px 20px rgba(0, 0, 0, 0.4));
  color: var(--pbp-text, #ffffff);
}
.pbp-section-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--pbp-accent, #E5A823);
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--pbp-accent, #E5A823);
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* ── Fila de Pizarra (Linescore) en su propia fila debajo de B-S-O ──── */
.pbp-header-linescore-row {
  width: 100%;
  max-width: 720px;
  margin: 14px auto 0 auto;
  padding: 0;
  box-sizing: border-box;
}
.pbp-header-linescore-wrap {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 6px 8px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.pbp-scoreboard-wrap { overflow-x: auto; }
.pbp-innings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  line-height: 1.2;
}
.pbp-innings-table th {
  background: rgba(255, 255, 255, 0.08);
  color: #8fa0b5;
  padding: 4px 3px;
  text-align: center;
  min-width: 22px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.pbp-innings-table td {
  text-align: center;
  padding: 4px 3px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background .2s;
  color: #ffffff;
  font-weight: 600;
  min-width: 22px;
}
.pbp-innings-table tr:last-child td { border-bottom: none; }
.pbp-innings-table tr:nth-child(odd) td { background: rgba(255, 255, 255, 0.03); }
.pbp-innings-table .pbp-team-col {
  text-align: left;
  font-weight: 800;
  padding-left: 6px;
  min-width: 60px;
  max-width: 75px;
  white-space: nowrap;
  color: #ffffff;
}
.pbp-innings-table .pbp-total-r {
  font-size: 13px;
  font-weight: 900;
  color: var(--pbp-accent, #E5A823);
  background: rgba(229, 168, 35, 0.22);
  border-left: 1.5px solid rgba(255, 255, 255, 0.15);
  min-width: 26px;
}
.pbp-innings-table .pbp-totals-r {
  background: rgba(229, 168, 35, 0.22);
  color: var(--pbp-accent, #E5A823);
  font-weight: 900;
  border-left: 1.5px solid rgba(255, 255, 255, 0.15);
  min-width: 26px;
}
.pbp-innings-table .pbp-totals-h,
.pbp-innings-table .pbp-total-h,
.pbp-innings-table .pbp-totals-e,
.pbp-innings-table .pbp-total-e {
  background: rgba(0, 0, 0, 0.25);
  color: #d1d5db;
  font-weight: 700;
  min-width: 24px;
}
.pbp-innings-table .pbp-current-inning {
  background: rgba(229, 168, 35, 0.3) !important;
  color: #ffffff !important;
  font-weight: 900;
  outline: 1px solid var(--pbp-accent, #E5A823);
}

/* ── Grid principal: Gamecast TV ────────────────────────────────────────────── */
.pbp-main-grid {
  display: grid;
  grid-template-columns: 560px 1fr;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto 16px;
  align-items: stretch;
}
@media (max-width: 1024px) {
  .pbp-main-grid { grid-template-columns: 1fr; }
}

.pbp-visual-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pbp-visual-column .pbp-section {
  margin: 0;
  width: 100%;
  max-width: none;
}

/* Campo dividido: Diamante + Strike Zone */
.pbp-section--field {
  padding: 16px;
}
.pbp-field-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
}
@media (max-width: 600px) {
  .pbp-field-split { grid-template-columns: 1fr; }
}

.pbp-subcard-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--pbp-accent);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Diamante */
.pbp-diamond-wrap {
  text-align: center;
}
.pbp-diamond-public svg {
  width: 100%;
  max-width: 250px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.pbp-diamond-public .pbp-base { transition: fill .35s ease; }
.pbp-diamond-public .pbp-base.occupied { fill: var(--pbp-accent) !important; }

/* Strike Zone Pública */
.pbp-strikezone-public-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pbp-sz-public-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 6px;
}
.pbp-sz-live-count {
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
  color: var(--pbp-accent);
}

/* ── Cuadro de Lanzamiento SVG (Strike Zone) ────────────────────────────── */
.pbp-strikezone-public-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pbp-strikezone-svg {
  width: 100%;
  max-width: 200px;
  height: auto;
  aspect-ratio: 220 / 250;
  display: block;
  margin: 0 auto;
  user-select: none;
  background: #0f121a;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}
.pbp-sz-box-main {
  fill: rgba(229, 168, 35, 0.05);
  stroke: var(--pbp-accent, #E5A823);
  stroke-width: 2;
}
.pbp-sz-cell {
  fill: rgba(255, 255, 255, 0.03);
  stroke: rgba(229, 168, 35, 0.4);
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
.pbp-sz-outer {
  fill: rgba(0, 0, 0, 0.35);
}
.pbp-sz-svg-text {
  font-size: 11px;
  font-weight: 700;
  fill: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  font-family: inherit;
}
.pbp-sz-svg-num {
  font-size: 13px;
  font-weight: 800;
  fill: rgba(255, 255, 255, 0.3);
  pointer-events: none;
  font-family: inherit;
}

.pbp-public-pitch-list {
  margin-top: 8px;
  width: 100%;
  max-height: 80px;
  overflow-y: auto;
  font-size: 11px;
}
.pbp-sz-empty-note {
  font-size: 11px;
  color: var(--pbp-text-dim, #a0a6b5);
  text-align: center;
  padding: 4px 0;
  font-style: italic;
}
.pbp-sz-list-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 3px;
}
.pbp-sz-list-item .pbp-sz-num {
  font-weight: 800;
  color: var(--pbp-accent);
}
.pbp-sz-list-item .pbp-sz-call {
  font-weight: 700;
  color: #fff;
}
.pbp-sz-list-item .pbp-sz-type {
  margin-left: auto;
  color: var(--pbp-text-dim, #a0a6b5);
  font-size: 10px;
}

/* ── Tarjeta de Duelo Actual ────────────────────────────────────────────────── */
.pbp-section--matchup {
  padding: 14px 18px;
}
.pbp-matchup-header {
  margin-bottom: 8px;
}
.pbp-matchup-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--pbp-accent);
}
.pbp-matchup-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--pbp-border, rgba(255, 255, 255, 0.1));
  border-radius: 8px;
  padding: 10px 14px;
}
.pbp-matchup-player {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pbp-matchup-player--pitcher {
  justify-content: flex-end;
}
.pbp-matchup-photo-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--pbp-accent);
  background: #11141d;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.pbp-matchup-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pbp-matchup-role-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 8px;
  font-weight: 800;
  text-align: center;
  background: var(--pbp-primary);
  color: #fff;
  text-transform: uppercase;
  padding: 1px 0;
}
.pbp-matchup-role-badge.pbp-role--pitcher {
  background: #1e3a8a;
}
.pbp-matchup-info {
  flex: 1;
}
.pbp-matchup-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--pbp-accent);
}
.pbp-matchup-name {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.pbp-matchup-meta {
  display: flex;
  gap: 5px;
  font-size: 10px;
  color: var(--pbp-text-dim, #a0a6b5);
  margin-top: 2px;
}
.pbp-matchup-pos {
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
  color: var(--pbp-accent);
}
.pbp-matchup-vs {
  font-size: 13px;
  font-weight: 900;
  color: var(--pbp-accent);
  background: rgba(229, 168, 35, 0.15);
  border: 1.5px solid var(--pbp-accent);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Feed de jugadas ────────────────────────────────────────────────────────── */
/* ── Feed de jugadas ────────────────────────────────────────────────────────── */
.pbp-section--feed,
.pbp-game-view .pbp-section--feed {
  display: flex;
  flex-direction: column;
  margin: 0;
  width: 100%;
  max-width: none;
  overflow: hidden;
  background: var(--pbp-card-bg, #181b24) !important;
  color: #ffffff !important;
}
.pbp-feed-header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--pbp-accent);
  padding-bottom: 6px;
  margin-bottom: 12px;
}
.pbp-feed-header-main .pbp-section-title {
  margin: 0;
  border: none;
  padding: 0;
}
.pbp-feed-count {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  color: var(--pbp-accent);
  font-weight: 700;
}
.pbp-feed {
  flex: 1;
  min-height: 480px;
  max-height: 520px;
  overflow-y: auto;
  padding-right: 6px;
  scroll-behavior: smooth;
}
.pbp-feed::-webkit-scrollbar {
  width: 6px;
}
.pbp-feed::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}
.pbp-feed::-webkit-scrollbar-thumb {
  background: var(--pbp-accent);
  border-radius: 4px;
}

/* Estado vacío de feed */
.pbp-feed-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  margin: 20px 0;
}
.pbp-fes-icon {
  font-size: 40px;
  margin-bottom: 12px;
  animation: pbp-float 2.5s ease-in-out infinite;
}
@keyframes pbp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.pbp-feed-empty-state h4 {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff !important;
  margin: 0 0 8px 0;
}
.pbp-feed-empty-state p {
  font-size: 13px;
  color: var(--pbp-text-dim, #a0a6b5) !important;
  margin: 0 0 16px 0;
  max-width: 280px;
  line-height: 1.4;
}
.pbp-fes-pulse {
  font-size: 11px;
  font-weight: 700;
  color: #2ecc71;
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.3);
  padding: 5px 12px;
  border-radius: 14px;
  display: inline-block;
}

.pbp-feed-item {
  border-left: 4px solid var(--pbp-primary);
  padding: 10px 12px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 0 8px 8px 0;
  transition: transform .2s, box-shadow .2s;
  animation: pbp-feed-in .4s ease;
}
.pbp-feed-item:hover { transform: translateX(2px); background: rgba(255, 255, 255, 0.07); }

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

.pbp-feed-item--new { animation: pbp-feed-in .4s ease; }

.pbp-feed-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.pbp-feed-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--pbp-primary);
  color: #fff;
}
.pbp-feed-inning { font-size: 11px; color: #666; font-weight: 700; }
.pbp-feed-time   { font-size: 10px; color: #999; margin-left: auto; }
.pbp-feed-players { font-size: 13px; margin-bottom: 4px; color: #444; }
.pbp-feed-description { font-size: 14px; margin: 4px 0; color: var(--pbp-text); line-height: 1.5; }
.pbp-feed-runs { font-size: 13px; color: var(--pbp-green); font-weight: 700; margin-top: 4px; }

/* Tipos de jugada */
.pbp-type-home-run   { border-left-color: #7d3c98; }
.pbp-type-home-run .pbp-feed-badge { background: #7d3c98; }
.pbp-type-strikeout  { border-left-color: var(--pbp-live-red); }
.pbp-type-strikeout .pbp-feed-badge { background: var(--pbp-live-red); }
.pbp-type-walk       { border-left-color: var(--pbp-green); }
.pbp-type-walk .pbp-feed-badge { background: var(--pbp-green); }
.pbp-type-double     { border-left-color: #2980b9; }
.pbp-type-double .pbp-feed-badge { background: #2980b9; }
.pbp-type-triple     { border-left-color: #16a085; }
.pbp-type-triple .pbp-feed-badge { background: #16a085; }
.pbp-type-out        { border-left-color: #95a5a6; }
.pbp-type-inning-end { border-left-color: #2c3e50; background: #f0f0f0; }
.pbp-type-inning-end .pbp-feed-badge { background: #2c3e50; }
.pbp-type-note        { border-left-color: #3b82f6 !important; background: rgba(59, 130, 246, 0.08) !important; }
.pbp-type-note .pbp-feed-badge { background: #3b82f6 !important; color: #fff !important; }
.pbp-badge-note       { background: #3b82f6 !important; color: #fff !important; }
.pbp-feed-item--note  { border-left-color: #3b82f6 !important; }

/* Filtros interactivos del Feed */
.pbp-feed-filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--pbp-border, rgba(255, 255, 255, 0.08));
}
.pbp-feed-fbtn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--pbp-border, rgba(255, 255, 255, 0.12));
  color: var(--pbp-text, #ffffff);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pbp-feed-fbtn:hover {
  background: rgba(255, 255, 255, 0.15);
}
.pbp-feed-fbtn.active {
  background: var(--pbp-primary, #c41230);
  border-color: var(--pbp-primary, #c41230);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(196, 18, 48, 0.4);
}

/* ── Bateadores en Espera (On-Deck) ─────────────────────────── */
.pbp-card--on-deck {
  margin-top: 14px;
}
.pbp-on-deck-subtag {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.55);
  margin-left: auto;
  font-weight: 600;
}
.pbp-on-deck-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 8px;
}
@media (max-width: 768px) {
  .pbp-on-deck-list {
    grid-template-columns: 1fr;
  }
}
.pbp-on-deck-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--pbp-border, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.pbp-on-deck-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
}
.pbp-on-deck-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  width: fit-content;
}
.pbp-role-ondeck .pbp-on-deck-badge {
  background: #e5a823;
  color: #000;
}
.pbp-role-inthehole .pbp-on-deck-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.pbp-role-next .pbp-on-deck-badge {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
}
.pbp-on-deck-body {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pbp-on-deck-photo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}
.pbp-on-deck-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}
.pbp-on-deck-num {
  font-size: 10px;
  font-weight: 800;
  color: var(--pbp-accent, #e5a823);
  line-height: 1;
}
.pbp-on-deck-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 2px 0;
}
.pbp-on-deck-pos {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.5);
}
.pbp-on-deck-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Boxscore ───────────────────────────────────────────────────────────────── */
.pbp-section--boxscore { max-width: 1100px; }
.pbp-boxscore-team { margin-bottom: 24px; }
.pbp-boxscore-team h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--pbp-primary);
  margin-bottom: 8px;
}
.pbp-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pbp-boxscore-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  min-width: 600px;
}
.pbp-boxscore-table th {
  background: var(--pbp-primary);
  color: #fff;
  padding: 7px 8px;
  text-align: center;
  font-weight: 700;
  white-space: nowrap;
}
.pbp-boxscore-table th.pbp-player-col { text-align: left; }
.pbp-boxscore-table td {
  padding: 7px 8px;
  text-align: center;
  border-bottom: 1px solid var(--pbp-border);
  transition: background .15s;
}
.pbp-boxscore-table tr:hover td { background: #f0f6ff; }
.pbp-boxscore-table .pbp-player-col { text-align: left; }
.pbp-player-number { color: #888; margin-right: 4px; font-size: 11px; }
.pbp-player-pos { color: #aaa; margin-left: 6px; font-size: 11px; }
.pbp-decision {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
}
.pbp-decision--w { background: var(--pbp-green); color: #fff; }
.pbp-decision--l { background: var(--pbp-live-red); color: #fff; }
.pbp-decision--s { background: #2980b9; color: #fff; }

/* ── Resumen final ──────────────────────────────────────────────────────────── */
.pbp-section--summary { border-top: 4px solid var(--pbp-accent); }
.pbp-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.pbp-summary-card {
  background: var(--pbp-bg);
  border-radius: var(--pbp-radius);
  padding: 16px 18px;
  border: 1px solid var(--pbp-border);
}
.pbp-summary-card h3 { font-size: 14px; font-weight: 800; color: var(--pbp-primary); margin: 0 0 12px; }
.pbp-decision-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; font-size: 14px; }
.pbp-decision-label { font-weight: 700; min-width: 90px; }
.pbp-editorial { font-size: 14px; line-height: 1.7; color: #333; }
.pbp-key-plays-list { padding-left: 18px; }
.pbp-key-plays-list li { margin-bottom: 6px; font-size: 14px; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .pbp-header-inner { grid-template-columns: 1fr; gap: 12px; }
  .pbp-team, .pbp-team--home { flex-direction: column; text-align: center; }
  .pbp-score-big { font-size: 48px; }
  .pbp-team-logo { width: 54px; height: 54px; }
  .pbp-section { padding: 14px 12px; }
  .pbp-current-players { grid-template-columns: 1fr; }
  .pbp-game-meta { flex-direction: column; gap: 4px; }
}

/* ── Animations ─────────────────────────────────────────────────────────────── */
@keyframes pbp-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(231,76,60,.4); }
  50%       { opacity: .7; box-shadow: 0 0 0 4px rgba(231,76,60,0); }
}

/* ── Sin partido ─────────────────────────────────────────────────────────────── */
.pbp-no-game {
  text-align: center;
  padding: 60px 20px;
  background: var(--pbp-bg);
  border-radius: var(--pbp-radius);
  color: #666;
  font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   MLB GAMEDAY LAYOUT & COMPONENTS (Images 1 & 2)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. Ticker superior de jornada ────────────────────────────────────────── */
.pbp-ticker-strip {
  display: flex;
  align-items: center;
  background: #0d0f15;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px;
  overflow-x: auto;
  gap: 12px;
  font-size: 11px;
}
.pbp-ticker-label {
  font-weight: 800;
  color: var(--pbp-accent, #E5A823);
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.pbp-ticker-items {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.pbp-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
}
.pbp-ticker-item:hover,
.pbp-ticker-item.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--pbp-accent, #E5A823);
}
.pbp-ti-team {
  font-weight: 700;
}
.pbp-ti-sep {
  color: #666;
}
.pbp-ti-status {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: #9ca3af;
}
.pbp-ti--live {
  background: rgba(231, 76, 60, 0.2);
  color: #ff4d4d;
}

/* ── 2. Rotativa de Patrocinantes Adaptada a Columna Central ────────── */
.pbp-sponsor-rotator {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 0 12px 0;
  text-align: center;
  position: relative;
  box-sizing: border-box;
}
.pbp-sponsor-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #8fa0b5;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.pbp-sponsor-rotator-inner {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 776 / 141;
  height: auto;
  max-height: 125px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-sizing: border-box;
  transition: opacity 0.3s ease-in-out;
}
.pbp-sponsor-rotator-inner a,
.pbp-sponsor-link {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.pbp-sponsor-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}

/* ── 3. Tabs Responsive para Mobile & Tablet (Image 2) ────────────────────── */
.pbp-mobile-tabs {
  display: none;
  background: #181b24;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 8px;
  gap: 6px;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
.pbp-m-tab {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 6px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.pbp-m-tab.active {
  background: var(--pbp-primary, #C41230);
  border-color: var(--pbp-accent, #E5A823);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(196, 18, 48, 0.35);
}

@media (max-width: 1023px) {
  .pbp-mobile-tabs {
    display: flex;
  }
}

/* ── 4. Layout Principal de 3 Columnas (MLB Gameday) ─────────────────────── */
.pbp-gameday-3col {
  display: grid;
  grid-template-columns: 290px 1fr 390px;
  gap: 16px;
  margin-top: 14px;
  align-items: start;
  width: 100%;
}

.pbp-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

/* ── Tarjeta de Sede y Fecha (Left Col Top) ─────────────────────────── */
.pbp-card--venue-bar {
  background: var(--pbp-card-bg, #141822);
  border: 1px solid var(--pbp-border, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  padding: 8px 12px;
}
.pbp-venue-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #94a3b8;
  font-weight: 700;
  font-family: inherit;
}

/* ── Marcador de Situación de Juego Superior (Hero MLB Gameday) ─────── */
.pbp-center-scoreboard {
  background: linear-gradient(135deg, #141824 0%, #1e2536 50%, #141824 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  gap: 16px;
  font-family: inherit;
  margin: 0 0 16px 0;
  width: 100%;
  box-sizing: border-box;
}
.pbp-csb-team {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 0;
  min-width: 0;
}
.pbp-csb-away { justify-content: flex-start; }
.pbp-csb-home { justify-content: flex-end; }
.pbp-csb-logo {
  width: 58px;
  height: 58px;
  max-width: 58px;
  max-height: 58px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
}
.pbp-csb-team-meta {
  min-width: 0;
  overflow: hidden;
}
.pbp-csb-abbr {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: var(--pbp-text, #ffffff);
  letter-spacing: 0.8px;
  white-space: nowrap;
  font-family: inherit;
}
.pbp-csb-record {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: inherit;
  letter-spacing: 0.4px;
}
.pbp-csb-score {
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  color: var(--pbp-text, #ffffff);
  min-width: 44px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.pbp-csb-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  flex: 0 0 auto;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.pbp-csb-inning {
  font-size: 18px;
  font-weight: 900;
  color: var(--pbp-accent, #E5A823);
  margin-bottom: 3px;
  white-space: nowrap;
  letter-spacing: 0.5px;
}
.pbp-csb-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
}
.pbp-status-bar--live .pbp-csb-status,
.pbp-csb-status.pbp-status-bar--live {
  background: rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}
.pbp-status-bar--final .pbp-csb-status,
.pbp-csb-status.pbp-status-bar--final {
  background: rgba(100, 116, 139, 0.2);
  color: #94a3b8;
}
.pbp-csb-count {
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px 14px;
  border-radius: 14px;
  margin-top: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.pbp-csb-count-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.pbp-csb-clabel {
  font-size: 11px;
  font-weight: 900;
  color: #cbd5e1;
}
.pbp-dots-row {
  display: flex;
  gap: 4px;
  align-items: center;
}
.pbp-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 1.5px solid rgba(255,255,255,0.4);
  display: inline-block;
}
.pbp-dot.active { background: #27ae60; border-color: #27ae60; box-shadow: 0 0 6px rgba(39, 174, 96, 0.6); }
.pbp-dot.active.strike { background: var(--pbp-accent, #E5A823); border-color: var(--pbp-accent, #E5A823); box-shadow: 0 0 6px rgba(229, 168, 35, 0.6); }
.pbp-dot.active.out { background: #e74c3c; border-color: #e74c3c; box-shadow: 0 0 6px rgba(231, 76, 60, 0.6); }
.pbp-csb-connection {
  font-size: 10px;
  margin-top: 4px;
  font-weight: 600;
}
.pbp-connected { color: #2ecc71; }
.pbp-disconnected { color: #e74c3c; }

@media (max-width: 768px) {
  .pbp-center-scoreboard {
    padding: 10px 12px;
    gap: 8px;
  }
  .pbp-csb-logo {
    width: 38px;
    height: 38px;
    max-width: 38px;
    max-height: 38px;
  }
  .pbp-csb-abbr {
    font-size: 15px;
  }
  .pbp-csb-record {
    display: none;
  }
  .pbp-csb-score {
    font-size: 32px;
    min-width: 28px;
  }
  .pbp-csb-center {
    padding: 0 6px;
  }
  .pbp-csb-inning {
    font-size: 14px;
  }
  .pbp-csb-count {
    padding: 2px 6px;
    gap: 6px;
  }
  .pbp-dot {
    width: 7px;
    height: 7px;
  }
}

/* ── Pizarra Linescore en Columna Derecha Top ────────────────────────── */
.pbp-card--linescore {
  background: var(--pbp-card-bg, #141822);
  border: 1px solid var(--pbp-border, rgba(255, 255, 255, 0.1));
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.pbp-linescore-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}


/* ── Responsive: Tablet (2 columnas) ─────────────────────────────────── */
@media (max-width: 960px) {
  .pbp-gameday-3col {
    grid-template-columns: 1fr 1fr;
    margin-top: 12px;
  }
  .pbp-col-left   { order: 2; }
  .pbp-col-center { order: 1; grid-column: 1 / -1; }
  .pbp-col-right  { order: 3; grid-column: 1 / -1; }
}

/* ── Responsive: Móvil (apilado continuo, toda la información visible) ── */
@media (max-width: 680px) {
  .pbp-mobile-tabs {
    display: none !important;
  }
  .pbp-gameday-3col {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    margin-top: 12px;
  }
  .pbp-col {
    display: flex !important;
    width: 100% !important;
  }
  .pbp-col-center { order: 1; }
  .pbp-col-left   { order: 2; }
  .pbp-col-right  { order: 3; }
}



/* Tarjetas comunes */
.pbp-card {
  background: var(--pbp-card-bg, #181b24);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--pbp-radius, 10px);
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.pbp-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.pbp-card-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--pbp-accent, #E5A823);
}

/* ── Mini Diamante y Outs ─────────────────────────────────────────────────── */
.pbp-card--minidiamond {
  padding: 12px 14px;
}
.pbp-minidiamond-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.pbp-mini-outs-display {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pbp-mini-outs-label {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  text-transform: uppercase;
}
.pbp-mini-outs-dots {
  display: flex;
  gap: 4px;
}
.pbp-m-out-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.pbp-m-out-dot.active {
  background: var(--pbp-live-red, #e74c3c);
  border-color: var(--pbp-live-red, #e74c3c);
  box-shadow: 0 0 6px rgba(231, 76, 60, 0.6);
}
.pbp-diamond-wrapper {
  position: relative;
  width: 100%;
  max-width: 270px;
  margin: 0 auto;
}
.pbp-mini-diamond-container {
  width: 100%;
  max-width: 270px;
  margin: 0 auto;
}
.pbp-mini-diamond-container svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Chips Defensivos en Diamante */
.pbp-def-chip {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(13, 38, 64, 0.92);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 2px 4px;
  font-size: 9px;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  max-width: 85px;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 5;
  pointer-events: none;
}
.pbp-def-chip .pbp-dc-pos {
  font-weight: 800;
  color: var(--pbp-accent, #E5A823);
  font-size: 8px;
}
.pbp-def-chip .pbp-def-chip-name {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60px;
}

/* Chips de Corredores Ofensivos en Diamante Público */
.pbp-runner-chip {
  position: absolute;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--pbp-accent, #E5A823);
  color: #0d2640;
  font-weight: 800;
  font-size: 9px;
  line-height: 1.1;
  padding: 2px 5px;
  border-radius: 4px;
  border: 1px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  max-width: 85px;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  animation: pbpRunnerPop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes pbpRunnerPop {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Badge de Dirección del Batazo (Spray Chart) */
.pbp-spray-badge {
  background: rgba(229, 168, 35, 0.15);
  border: 1px solid rgba(229, 168, 35, 0.4);
  color: var(--pbp-accent, #E5A823);
  font-weight: 700;
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
}

/* Boxscore Horizontal Full-Width */
.pbp-section--boxscore-full {
  width: 100%;
  margin-top: 18px;
}

/* ── Secuencia de Pitcheos del Turno ──────────────────────────────────────── */
.pbp-pitch-sequence-list {
  max-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pbp-pitches-count {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ── Feed Twitter con Fotos (Image 1 & 2) ─────────────────────────────────── */
.pbp-feed-twitter {
  max-height: 520px;
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pbp-feed-item {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--pbp-primary, #C41230);
  border-radius: 8px;
  padding: 10px 12px;
  transition: background 0.2s;
}
.pbp-feed-item:hover {
  background: rgba(255, 255, 255, 0.06);
}
.pbp-feed-avatar {
  flex-shrink: 0;
}
.pbp-avatar-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 16px;
}
.pbp-feed-body {
  flex: 1;
}
.pbp-feed-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.pbp-feed-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--pbp-primary, #C41230);
  color: #ffffff;
  text-transform: uppercase;
}
.pbp-feed-inning {
  font-size: 10px;
  font-weight: 700;
  color: var(--pbp-accent, #E5A823);
}
.pbp-feed-time {
  font-size: 10px;
  color: #6b7280;
  margin-left: auto;
}
.pbp-feed-players {
  font-size: 12px;
  color: #e5e7eb;
  margin-bottom: 4px;
}
.pbp-vs-txt {
  color: #9ca3af;
  font-size: 10px;
  margin: 0 3px;
}
.pbp-feed-description {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: #d1d5db;
}
.pbp-feed-media {
  margin-top: 8px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
}
.pbp-feed-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.pbp-feed-img:hover {
  transform: scale(1.02);
}
.pbp-feed-runs {
  font-size: 11px;
  font-weight: 800;
  color: #10b981;
  margin-top: 4px;
}

/* ── 5. Estadio con Perspectiva 3D y Strike Zone Central ─────────────────── */
.pbp-card--stadium-view {
  padding: 0;
  overflow: hidden;
  position: relative;
}
.pbp-stadium-canvas-wrap {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0b1017;
}

/* Fondo perspectiva de estadio */
.pbp-stadium-perspective-field {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.pbp-field-skyline {
  height: 60px;
  background: linear-gradient(180deg, #07090e 0%, #111a26 100%);
  position: relative;
  border-bottom: 2px solid #23344a;
}
.pbp-stadium-lights {
  position: absolute;
  top: 10px;
  width: 40px;
  height: 14px;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  border-radius: 2px;
}
.pbp-light-left  { left: 30px; }
.pbp-light-right { right: 30px; }

.pbp-outfield-wall {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: #1e3a8a;
  border-top: 2px solid var(--pbp-accent, #E5A823);
}
.pbp-outfield-grass {
  flex: 1;
  background: radial-gradient(ellipse at 50% 100%, #1e4620 0%, #0d2711 70%, #07170a 100%);
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 25px;
}
.pbp-pitcher-mound-perspective {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.pbp-mound-dirt {
  width: 58px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, #966f44 0%, #684827 100%);
  border: 1px solid #4a331a;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}
.pbp-pitcher-rubber {
  width: 22px;
  height: 4px;
  background: #ffffff;
  border-radius: 1px;
  margin-top: -16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.pbp-mound-label {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 8px;
}

.pbp-infield-dirt-perspective {
  height: 140px;
  background: radial-gradient(ellipse at 50% 110%, #9e754a 0%, #6b4929 60%, transparent 80%);
  position: relative;
}

.pbp-homeplate-area {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
}
.pbp-batter-box {
  width: 26px;
  height: 52px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.05);
}
.pbp-homeplate-plate {
  width: 24px;
  height: 24px;
  background: #ffffff;
  clip-path: polygon(0% 0%, 100% 0%, 100% 50%, 50% 100%, 0% 50%);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
}

/* Contenedor flotante de Strike Zone SVG */
.pbp-strikezone-overlay-container {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
}
.pbp-strikezone-svg {
  background: rgba(11, 16, 23, 0.88);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

/* Callout tooltip */
.pbp-pitch-callout {
  margin-top: 8px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--pbp-accent, #E5A823);
  border-radius: 20px;
  padding: 4px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.pbp-callout-speed {
  font-size: 11px;
  font-weight: 800;
  color: var(--pbp-accent, #E5A823);
}
.pbp-callout-desc {
  font-size: 11px;
  font-weight: 600;
  color: #ffffff;
}

/* ── 6. Tarjeta Duelo Actual (Batter vs Pitcher) ──────────────────────────── */
.pbp-matchup-count-pill {
  font-size: 11px;
  font-weight: 700;
  color: #e5e7eb;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 8px;
  border-radius: 12px;
}
.pbp-duel-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 6px 0;
}
.pbp-duel-player {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pbp-duel-pitcher {
  justify-content: flex-end;
}
.pbp-duel-photo-wrap {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--pbp-accent, #E5A823);
  background: #11141d;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}
.pbp-duel-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pbp-duel-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 8px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  padding: 1px 0;
  color: #fff;
}
.pbp-badge-batter  { background: var(--pbp-primary, #C41230); }
.pbp-badge-pitcher { background: #1e3a8a; }

.pbp-duel-info {
  flex: 1;
}
.pbp-duel-number {
  font-size: 11px;
  font-weight: 800;
  color: var(--pbp-accent, #E5A823);
}
.pbp-duel-name {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}
.pbp-duel-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.pbp-stat-pill {
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  color: var(--pbp-accent, #E5A823);
}
.pbp-stat-sub {
  font-size: 10px;
  color: #9ca3af;
}

.pbp-duel-vs-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(229, 168, 35, 0.15);
  border: 1.5px solid var(--pbp-accent, #E5A823);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: var(--pbp-accent, #E5A823);
}

/* ── 7. Columna Derecha: Linescore y Boxscore ─────────────────────────────── */
.pbp-bs-team-toggle {
  display: flex;
  gap: 4px;
}
.pbp-bs-t-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9ca3af;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.pbp-bs-t-btn.active {
  background: var(--pbp-accent, #E5A823);
  color: #000000;
  border-color: var(--pbp-accent, #E5A823);
}

.pbp-bs-side-panel {
  display: none;
}
.pbp-bs-side-panel.active {
  display: block;
}
.pbp-bs-subheading {
  font-size: 12px;
  font-weight: 800;
  color: var(--pbp-accent, #E5A823);
  margin: 8px 0 6px;
  text-transform: uppercase;
}
.pbp-bs-player-flex {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pbp-bs-player-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: #222;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RADIO STREAMING WIDGET & EQUALIZER WAVES (PUNTO 4)
   ═══════════════════════════════════════════════════════════════════════════ */
.pbp-top-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.pbp-top-nav-bar .pbp-ticker-strip {
  margin: 0 !important;
  flex: 1 1 340px;
}

.pbp-radio-player-widget {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(17, 24, 39, 0.95), rgba(10, 15, 25, 0.95));
  border: 1px solid rgba(229, 168, 35, 0.35);
  border-radius: 8px;
  padding: 6px 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  color: #ffffff;
  flex: 0 0 auto;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.pbp-radio-player-widget.is-playing {
  border-color: var(--pbp-accent, #E5A823);
  box-shadow: 0 0 16px rgba(229, 168, 35, 0.25);
}

.pbp-rp-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pbp-rp-logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pbp-rp-icon-fallback {
  font-size: 18px;
  line-height: 1;
}

.pbp-rp-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  max-width: 140px;
}

.pbp-rp-name {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
}

.pbp-rp-tagline {
  font-size: 9px;
  font-weight: 700;
  color: #10b981;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
}

.pbp-rp-live-dot {
  width: 6px;
  height: 6px;
  background-color: #ef4444;
  border-radius: 50%;
  display: inline-block;
  animation: pbp-live-pulse 1.5s infinite;
}

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

/* ── Ecualizador de ondas de sonido animadas ── */
.pbp-audio-waves {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  padding: 0 4px;
}

.pbp-audio-waves .pbp-wave-bar {
  width: 3px;
  height: 4px;
  background-color: #64748b;
  border-radius: 2px;
  transition: height 0.2s ease, background-color 0.25s ease;
}

.pbp-audio-waves.is-playing .pbp-wave-bar {
  background-color: var(--pbp-accent, #E5A823);
  animation: pbp-wave-bounce 0.9s ease-in-out infinite alternate;
}

.pbp-audio-waves.is-playing .bar-1 { animation-delay: 0.05s; }
.pbp-audio-waves.is-playing .bar-2 { animation-delay: 0.35s; }
.pbp-audio-waves.is-playing .bar-3 { animation-delay: 0.15s; }
.pbp-audio-waves.is-playing .bar-4 { animation-delay: 0.5s; }
.pbp-audio-waves.is-playing .bar-5 { animation-delay: 0.25s; }

@keyframes pbp-wave-bounce {
  0%   { height: 4px; }
  25%  { height: 16px; }
  50%  { height: 8px; }
  75%  { height: 18px; }
  100% { height: 6px; }
}

/* ── Controles de reproducción ── */
.pbp-rp-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pbp-rp-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.pbp-rp-btn:hover {
  background: rgba(229, 168, 35, 0.2);
  border-color: var(--pbp-accent, #E5A823);
  color: var(--pbp-accent, #E5A823);
  transform: scale(1.05);
}

.pbp-rp-btn--play {
  background: var(--pbp-accent, #E5A823);
  color: #000000;
  border-color: var(--pbp-accent, #E5A823);
}

.pbp-rp-btn--play:hover {
  background: #f5b935;
  color: #000000;
}

.pbp-rp-btn--stop {
  color: #ef4444;
}

.pbp-rp-btn--stop:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #ef4444;
}

.pbp-rp-volume-box {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pbp-rp-vol-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}

.pbp-rp-vol-btn:hover {
  color: #ffffff;
}

.pbp-rp-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 55px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  outline: none;
  cursor: pointer;
}

.pbp-rp-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pbp-accent, #E5A823);
  cursor: pointer;
}

.pbp-rp-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pbp-accent, #E5A823);
  cursor: pointer;
  border: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   DEFENSIVE ROSTER CARD (PUNTO 5)
   ═══════════════════════════════════════════════════════════════════════════ */
.pbp-card--defense-roster {
  margin-top: 10px;
  background: rgba(13, 15, 21, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 10px 12px;
}

.pbp-defense-grid {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pbp-def-grid-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: background-color 0.2s, border-color 0.2s;
}

.pbp-def-grid-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(229, 168, 35, 0.3);
}

.pbp-def-pill {
  flex: 0 0 28px;
  text-align: center;
  font-size: 10px;
  font-weight: 900;
  color: var(--pbp-accent, #E5A823);
  background: rgba(229, 168, 35, 0.15);
  border: 1px solid rgba(229, 168, 35, 0.35);
  border-radius: 4px;
  padding: 2px 0;
  letter-spacing: 0.5px;
}

.pbp-def-info {
  flex: 1 1 auto;
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.pbp-def-name {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pbp-def-pos-desc {
  font-size: 9px;
  font-weight: 500;
  color: #94a3b8;
  white-space: nowrap;
}

.pbp-def-num {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  color: #cbd5e1;
}

@media (max-width: 768px) {
  .pbp-top-nav-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .pbp-radio-player-widget {
    justify-content: space-between;
    width: 100%;
  }
  .pbp-rp-meta {
    max-width: 180px;
  }
}

/* ── Botón CTA Boletín Oficial del Partido (PDF) ────────────────────────── */
.pbp-bulletin-cta-wrap {
  margin: 14px 0 16px 0;
  text-align: center;
  width: 100%;
}
.pbp-bulletin-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #1e3a8a 0%, #0d2640 40%, #b91c1c 80%, #e5a823 100%);
  background-size: 200% 200%;
  color: #ffffff !important;
  text-decoration: none !important;
  padding: 12px 24px;
  border-radius: 30px;
  border: 1px solid rgba(229, 168, 35, 0.45);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4), 0 0 14px rgba(229, 168, 35, 0.25);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation: pbp-cta-shimmer 5s ease-in-out infinite;
}
@keyframes pbp-cta-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.pbp-bulletin-cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 6px 24px rgba(229, 168, 35, 0.45), 0 0 20px rgba(229, 168, 35, 0.4);
  border-color: #e5a823;
  color: #ffffff !important;
}
.pbp-bulletin-cta-btn .pbp-b-icon {
  font-size: 20px;
  line-height: 1;
}
.pbp-bulletin-cta-btn .pbp-b-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.pbp-bulletin-cta-btn .pbp-b-badge {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 1.5px;
  background: #e5a823;
  color: #0f172a;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.pbp-bulletin-cta-btn .pbp-b-text {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #ffffff;
}
.pbp-bulletin-cta-btn .pbp-b-arrow {
  font-size: 16px;
  font-weight: 900;
  color: #e5a823;
  transition: transform 0.2s ease;
}
.pbp-bulletin-cta-btn:hover .pbp-b-arrow {
  transform: translate(2px, -2px);
}

/* ── Botón de Cabecera Superior: Boletín Oficial ─────────────────────────── */
.pbp-top-bulletin-wrap {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
}
.pbp-top-bulletin-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(229, 168, 35, 0.15);
  border: 1px solid rgba(229, 168, 35, 0.5);
  color: #e5a823 !important;
  text-decoration: none !important;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.pbp-top-bulletin-btn:hover {
  background: #e5a823;
  color: #0f172a !important;
  box-shadow: 0 4px 14px rgba(229, 168, 35, 0.4);
  transform: translateY(-1px);
}
.pbp-top-bulletin-btn .pbp-tbb-icon {
  font-size: 14px;
  line-height: 1;
}
.pbp-top-bulletin-btn .pbp-tbb-text {
  font-weight: 700;
}
.pbp-top-bulletin-btn .pbp-tbb-arrow {
  font-size: 12px;
  opacity: 0.8;
  transition: transform 0.2s ease;
}
.pbp-top-bulletin-btn:hover .pbp-tbb-arrow {
  transform: translate(2px, -2px);
  opacity: 1;
}
@media (max-width: 640px) {
  .pbp-top-bulletin-wrap {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
  }
}

/* ── Ficha Oficial de Partido Finalizado (Post-Game Recap) ─────────────── */
.pbp-final-recap-card {
  background: linear-gradient(145deg, #181b24 0%, #11141c 100%);
  border: 1px solid rgba(229, 168, 35, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4);
  width: 100%;
}
.pbp-frc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 14px;
  margin-bottom: 16px;
}
.pbp-frc-header-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #94a3b8;
}
.pbp-frc-badge {
  background: #C41230;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}
.pbp-frc-stage {
  color: #e5a823;
  font-weight: 700;
}
.pbp-frc-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(229, 168, 35, 0.15);
  border: 1px solid rgba(229, 168, 35, 0.4);
  color: #e5a823 !important;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none !important;
  transition: all 0.2s;
}
.pbp-frc-pdf-btn:hover {
  background: #e5a823;
  color: #0f172a !important;
}
.pbp-frc-scoreboard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 18px;
  gap: 16px;
  flex-wrap: wrap;
}
.pbp-frc-team {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 200px;
}
.pbp-frc-team--home {
  justify-content: flex-end;
}
.pbp-frc-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.pbp-frc-name {
  font-size: 16px;
  color: #ffffff;
  display: block;
}
.pbp-frc-abbr {
  font-size: 11px;
  color: #94a3b8;
}
.pbp-frc-score {
  font-size: 32px;
  font-weight: 900;
  color: #94a3b8;
  min-width: 40px;
  text-align: center;
}
.pbp-frc-team.winner .pbp-frc-score {
  color: #e5a823;
}
.pbp-frc-team.winner .pbp-frc-name {
  color: #ffffff;
  font-weight: 900;
}
.pbp-frc-vs {
  font-size: 12px;
  font-weight: 900;
  color: #64748b;
  letter-spacing: 2px;
}
.pbp-frc-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.pbp-frc-subcard {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 14px;
}
.pbp-frc-subtitle {
  font-size: 12px;
  font-weight: 800;
  color: #e5a823;
  margin: 0 0 10px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.pbp-frc-dec-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pbp-frc-dec-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pbp-dec-tag {
  font-size: 10px;
  font-weight: 900;
  padding: 2px 7px;
  border-radius: 4px;
  color: #ffffff;
  min-width: 28px;
  text-align: center;
}
.pbp-dec-tag--w { background: #10b981; }
.pbp-dec-tag--l { background: #ef4444; }
.pbp-dec-tag--s { background: #3b82f6; }
.pbp-dec-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #ffffff;
}
.pbp-dec-num {
  font-size: 11px;
  color: #94a3b8;
}
.pbp-frc-mvp-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pbp-frc-mvp-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pbp-frc-mvp-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.pbp-frc-mvp-icon {
  font-size: 16px;
  width: 32px;
  text-align: center;
}
.pbp-frc-mvp-info {
  display: flex;
  flex-direction: column;
  font-size: 12px;
}
.pbp-frc-mvp-info strong {
  color: #ffffff;
}
.pbp-frc-mvp-stat {
  color: #94a3b8;
  font-size: 11px;
}
.pbp-frc-plays-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pbp-frc-plays-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  color: #cbd5e1;
}
.pbp-kp-inn {
  font-size: 10px;
  font-weight: 800;
  color: #e5a823;
  background: rgba(229, 168, 35, 0.12);
  padding: 1px 5px;
  border-radius: 3px;
  white-space: nowrap;
}
.pbp-frc-editorial {
  background: rgba(255, 255, 255, 0.03);
  border-left: 3px solid #e5a823;
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
}
.pbp-frc-editorial-body {
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5e1;
}
.pbp-frc-empty-text {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

/* ── Roster & Staff Módulo (LVBP Style — Aqua / Teal #4a9ea8) ──────────── */
.pbp-roster-module {
  width: 100%;
  margin: 20px 0;
  font-family: inherit;
  color: #0f172a;
  background: #ffffff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.pbp-roster-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}
.pbp-roster-season-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.pbp-roster-main-nav {
  display: flex;
  gap: 8px;
}
.pbp-rs-btn {
  background: transparent;
  color: #4a9ea8;
  border: 1px solid #4a9ea8;
  padding: 6px 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.pbp-rs-btn:hover {
  background: rgba(74, 158, 168, 0.1);
}
.pbp-rs-btn.active {
  background: #4a9ea8;
  color: #ffffff;
  border-color: #4a9ea8;
}
.pbp-roster-section {
  margin-bottom: 28px;
}
.pbp-roster-group-title {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  color: #0f172a;
  margin: 0 0 10px 0;
  letter-spacing: 0.5px;
}
.pbp-roster-table-responsive {
  width: 100%;
  overflow-x: auto;
}
.pbp-roster-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.pbp-roster-table thead th {
  background: #4a9ea8;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
  border: none;
}
.pbp-roster-table tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid #e2e8f0;
  color: #334155;
  vertical-align: middle;
}
.pbp-roster-table tbody tr:hover {
  background-color: #f8fafc;
}
.pbp-cell-num {
  font-weight: 800;
  color: #0f172a;
  width: 40px;
}
.pbp-player-row-flex {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pbp-player-headshot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background: #e2e8f0;
}
.pbp-player-name-link {
  color: #4a9ea8 !important;
  font-weight: 700;
  text-decoration: none !important;
}
.pbp-player-name-link:hover {
  text-decoration: underline !important;
}
.pbp-cell-p .pbp-pos-pill {
  background: #f1f5f9;
  color: #475569;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 10px;
}
.pbp-cell-height strong {
  font-weight: 800;
  color: #0f172a;
}
.pbp-roster-empty-row {
  text-align: center;
  padding: 20px;
  color: #94a3b8;
}

/* ── Ficha y Perfil de Pelotero (LVBP Style) ────────────────────────────── */
.pbp-player-profile-view {
  width: 100%;
  margin: 20px 0;
  background: #ffffff;
  color: #0f172a;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.pbp-pp-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.pbp-pp-avatar-wrap {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
}
.pbp-pp-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
}
.pbp-pp-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pbp-pp-name {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}
.pbp-pp-team {
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
}
.pbp-pp-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
}
.pbp-pp-pos-badge {
  font-weight: 800;
  color: #0f172a;
}
.pbp-pp-sep {
  color: #cbd5e1;
}
.pbp-pp-origin {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}
.pbp-pp-section {
  margin-bottom: 28px;
}
.pbp-pp-sec-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
  text-transform: uppercase;
}
.pbp-pp-filters {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.pbp-pp-select {
  padding: 6px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 12px;
  color: #334155;
  background: #ffffff;
}
.pbp-pp-table-responsive {
  width: 100%;
  overflow-x: auto;
}
.pbp-pp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.pbp-pp-table thead th {
  background: #4a9ea8;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 7px 8px;
  text-align: center;
  white-space: nowrap;
  border: none;
}
.pbp-pp-table thead th:first-child,
.pbp-pp-table tbody td:first-child {
  text-align: left;
}
.pbp-pp-table tbody td {
  padding: 7px 8px;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
  color: #334155;
  white-space: nowrap;
}
.pbp-pp-table tbody tr:hover {
  background: #f8fafc;
}
.pbp-empty-row {
  padding: 16px;
  text-align: center;
  color: #94a3b8;
}

/* ─── PANTALLA LED ELECTRÓNICA DEL ESTADIO (JUMBOTRON LED DISPLAY) ─── */
.pbp-stadium-led-display {
  margin: 14px 0 16px 0;
  border-radius: 8px;
  background: #070a12;
  border: 2px solid #1e293b;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), inset 0 0 12px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  position: relative;
  font-family: 'Courier New', Courier, monospace;
}

.pbp-led-bezel {
  padding: 8px 12px;
}

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

.pbp-led-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
}

.pbp-led-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: pbp-led-pulse 1.5s infinite;
}

@keyframes pbp-led-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.85); }
}

.pbp-led-dot-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fca5a5;
}

.pbp-led-sub-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #94a3b8;
  text-transform: uppercase;
}

.pbp-led-screen {
  background: #030712;
  border: 1px solid #111827;
  border-radius: 5px;
  padding: 10px 14px;
  min-height: 48px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* Efecto scanline y matriz de puntos LED */
.pbp-led-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.4) 50%);
  background-size: 100% 3px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.6;
}

.pbp-led-matrix-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
  z-index: 2;
  opacity: 0.5;
}

.pbp-led-text-track {
  width: 100%;
  position: relative;
  z-index: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.pbp-led-text-main {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: inline-block;
  transition: all 0.3s ease;
}

/* Brillos de colores LED */
.pbp-led-glow-amber {
  color: #fbbf24;
  text-shadow: 0 0 6px #f59e0b, 0 0 14px rgba(245, 158, 11, 0.6);
}

.pbp-led-glow-green {
  color: #34d399;
  text-shadow: 0 0 6px #10b981, 0 0 14px rgba(16, 185, 129, 0.6);
}

.pbp-led-glow-red {
  color: #f87171;
  text-shadow: 0 0 6px #ef4444, 0 0 14px rgba(239, 68, 68, 0.6);
}

.pbp-led-glow-cyan {
  color: #38bdf8;
  text-shadow: 0 0 6px #0ea5e9, 0 0 14px rgba(14, 165, 233, 0.6);
}

.pbp-led-glow-gold {
  color: #fde047;
  text-shadow: 0 0 8px #eab308, 0 0 20px rgba(234, 179, 8, 0.9);
  animation: pbp-led-flash 0.8s infinite alternate;
}

@keyframes pbp-led-flash {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0.85; transform: scale(1.02); }
}

@media (max-width: 640px) {
  .pbp-led-text-main {
    font-size: 12px;
    letter-spacing: 1px;
  }
  .pbp-led-screen {
    padding: 8px 10px;
    min-height: 42px;
  }
}

/* ── Pie de Página y Branding Oficial GameDay ──────────────────────── */
.pbp-gameday-footer {
  width: 100%;
  text-align: center;
  margin-top: 28px;
  padding: 20px 14px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}

.pbp-gameday-credits {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #94a3b8;
  letter-spacing: 0.2px;
}

.pbp-gameday-credits strong.pbp-credit-author {
  color: #f8fafc;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.pbp-gameday-credits strong.pbp-credit-agency {
  color: var(--pbp-accent, #e5a823);
  font-weight: 800;
  letter-spacing: 0.3px;
}

.pbp-gameday-credits strong.pbp-agency-link a {
  color: var(--pbp-accent, #e5a823);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.3px;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.pbp-gameday-credits strong.pbp-agency-link a:hover,
.pbp-gameday-credits strong.pbp-agency-link a:focus {
  color: #fbbf24;
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.45);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .pbp-gameday-footer {
    margin-top: 20px;
    padding: 16px 8px 8px;
  }
  .pbp-gameday-credits {
    font-size: 12px;
  }
}
