.hpd-sports-board {
  --hpd-navy: #0b1d3a;
  --hpd-gold: #b8860b;
  --hpd-line: #e7ecf2;
  --hpd-soft: #f8fafc;
  --hpd-text: #0f172a;
  margin: 18px 0;
  font-family: inherit;
}

.hpd-sports-board-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--hpd-navy);
  color: #fff;
  padding: 12px 16px;
  border-left: 5px solid var(--hpd-gold);
}

.hpd-sports-board-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.hpd-sports-board-meta {
  font-size: 11px;
  color: #d8dee9;
}

.hpd-sports-grid {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.hpd-game-card {
  display: grid;
  grid-template-columns: 1fr 70px 1fr 90px;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--hpd-line);
  background: linear-gradient(180deg, #fff, var(--hpd-soft));
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06);
}

.hpd-team {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.hpd-team.home {
  justify-content: flex-end;
  text-align: right;
}

.hpd-team-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
}

.hpd-team-logo-fallback {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #0b1d3a;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .2px;
}

.hpd-team-name {
  font-weight: 800;
  font-size: 12px;
  color: var(--hpd-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hpd-score {
  background: var(--hpd-navy);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  text-align: center;
  padding: 4px 6px;
}

.hpd-game-state {
  text-align: right;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #475569;
}

.hpd-game-state.live {
  color: #991b1b;
}

.hpd-game-state.final {
  color: #166534;
}

.hpd-game-note {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  margin-top: 2px;
}

@media (max-width: 720px) {
  .hpd-game-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hpd-team,
  .hpd-team.home {
    justify-content: center;
    text-align: center;
  }

  .hpd-game-state {
    text-align: center;
  }
}

.hpd-sports-nav {
  margin: 0 0 20px 0;
  border-bottom: 2px solid var(--hpd-line);
}

.hpd-sports-nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0 !important;
  margin: 0;
  gap: 4px;
  overflow: visible;
  white-space: normal;
}

.hpd-sports-nav-list li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.hpd-sports-nav-list li::marker {
  content: "" !important;
}

.hpd-sports-nav-list li a {
  display: block;
  padding: 9px 12px;
  text-decoration: none;
  color: #475569;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hpd-sports-nav-list li a:hover {
  color: var(--hpd-navy);
}

.hpd-sports-nav-list li a.active {
  color: var(--hpd-navy);
  border-bottom-color: var(--hpd-gold);
}

/* Ajustes Inmediatos de Prioridad (CoverNews/Newsport override) */
.entry-content .hpd-sports-board {
  width: 100% !important;
  max-width: 100% !important;
  margin: 16px 0 24px !important;
}

.entry-content .hpd-game-card {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr) 100px !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, #fff, var(--hpd-soft));
  /* Keep the gradient */
}

.entry-content .hpd-team-logo {
  width: 40px !important;
  height: 40px !important;
  object-fit: contain !important;
  margin: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

.entry-content .hpd-team-logo-fallback {
  width: 40px !important;
  height: 40px !important;
  font-size: 11px !important;
  border-radius: 50% !important;
}

.entry-content .hpd-team-name {
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  color: var(--hpd-text) !important;
}

.entry-content .hpd-score {
  min-width: 82px !important;
  font-size: 18px !important;
  padding: 6px 8px !important;
  border-radius: 0 !important;
  background: var(--hpd-navy) !important;
  color: #fff !important;
}

.entry-content .hpd-game-state {
  font-size: 11px !important;
  text-align: right !important;
}

/* Enforce larger team logos even when theme/plugin styles cascade later. */
.hpd-sports-board .hpd-team-logo,
.hpd-sports-board .hpd-team-logo-fallback {
  width: 42px !important;
  height: 42px !important;
}

.hpd-results-ticker .hpd-results-ticker-logo,
.hpd-results-ticker .hpd-results-ticker-badge {
  width: 28px !important;
  height: 28px !important;
}

/* Some MLB marks have heavy internal padding in source PNGs. Scale only those files. */
.hpd-team-logo[src*="/mlb/cle.png"],
.hpd-team-logo[src*="/mlb/sea.png"],
.hpd-team-logo[src*="/mlb/nym.png"],
.hpd-team-logo[src*="/mlb/det.png"],
.hpd-team-logo[src*="/mlb/pit.png"],
.hpd-team-logo[src*="/mlb/laa.png"],
.hpd-team-logo[src*="/mlb/cin.png"],
.hpd-team-logo[src*="/mlb/sf.png"],
.hpd-team-logo[src*="/mlb/bos.png"],
.hpd-team-logo[src*="/mlb/lad.png"],
.hpd-results-ticker-logo[src*="/mlb/cle.png"],
.hpd-results-ticker-logo[src*="/mlb/sea.png"],
.hpd-results-ticker-logo[src*="/mlb/nym.png"],
.hpd-results-ticker-logo[src*="/mlb/det.png"],
.hpd-results-ticker-logo[src*="/mlb/pit.png"],
.hpd-results-ticker-logo[src*="/mlb/laa.png"],
.hpd-results-ticker-logo[src*="/mlb/cin.png"],
.hpd-results-ticker-logo[src*="/mlb/sf.png"],
.hpd-results-ticker-logo[src*="/mlb/bos.png"],
.hpd-results-ticker-logo[src*="/mlb/lad.png"] {
  transform: scale(1.2);
  transform-origin: center center;
}

@media (max-width: 720px) {

  .hpd-sports-board .hpd-team-logo,
  .hpd-sports-board .hpd-team-logo-fallback {
    width: 34px !important;
    height: 34px !important;
  }
}

.hpd-results-ticker {
  --ticker-bg: #041c4a;
  --ticker-line: #14315f;
  --ticker-accent: #00a3ff;
  --ticker-text: #f8fbff;
  --ticker-muted: #b7c9e9;
  margin: 14px 0 20px;
  border: 1px solid var(--ticker-line);
  background: linear-gradient(180deg, #062356 0%, #041c4a 100%);
  color: var(--ticker-text);
  box-shadow: 0 6px 22px rgba(3, 10, 27, .25);
  overflow: hidden;
}

.hpd-results-ticker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, .15);
  background: rgba(1, 14, 38, .35);
  text-transform: uppercase;
  letter-spacing: .35px;
}

.hpd-results-ticker-head strong {
  font-size: 12px;
  font-weight: 900;
}

.hpd-results-ticker-head span {
  font-size: 10px;
  color: var(--ticker-muted);
}

.hpd-results-ticker-viewport {
  overflow: hidden;
  width: 100%;
}

.hpd-results-ticker-track {
  display: flex;
  align-items: stretch;
  width: max-content;
  animation: hpdTickerScroll 64s linear infinite;
}

.hpd-results-ticker:hover .hpd-results-ticker-track {
  animation-play-state: paused;
}

.hpd-results-ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  min-width: 320px;
  border-right: 1px solid rgba(255, 255, 255, .12);
  white-space: nowrap;
}

.hpd-results-ticker-teams {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.hpd-results-ticker-team {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.hpd-results-ticker-logo,
.hpd-results-ticker-badge {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
}

.hpd-results-ticker-logo {
  object-fit: contain;
}

.hpd-results-ticker-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 8px;
  font-weight: 900;
  background: #16386f;
  color: #fff;
}

.hpd-results-ticker-name {
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 700;
}

.hpd-results-ticker-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 2px 6px;
  border-radius: 2px;
  background: rgba(0, 0, 0, .25);
  font-size: 12px;
  font-weight: 900;
}

.hpd-results-ticker-state {
  margin-left: auto;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ticker-muted);
}

.hpd-results-ticker-state.live {
  color: #ffccd2;
}

.hpd-results-ticker-state.final {
  color: #d5ffe5;
}

.hpd-results-ticker-state.scheduled {
  color: #d7e7ff;
}

@keyframes hpdTickerScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hpd-results-ticker-track {
    animation: none;
  }
}

@media (max-width: 680px) {
  .hpd-results-ticker-item {
    min-width: 280px;
    padding: 8px 10px;
  }

  .hpd-results-ticker-name {
    max-width: 72px;
  }
}