/* Score bug — fixed strip pinned above the header and news ticker */

.scorebug {
  position: fixed;
  top: 80px;
  left: 0;
  width: 100%;
  height: 64px;
  background: var(--bg-dark, #0a0f1a);
  border-bottom: 1px solid var(--border-dark, #14294d);
  box-shadow: 0 2px 0 var(--bright-orange, #FFA515);
  z-index: 101;
}

.scorebug-inner {
  height: 100%;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.scorebug-inner::-webkit-scrollbar {
  display: none;
}

.scorebug-game {
  flex: 0 0 auto;
  width: 126px;
  padding: 6px 10px;
  border-right: 1px solid var(--border-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.scorebug-game:hover,
.scorebug-game:focus-visible {
  background: rgba(255, 165, 21, 0.08);
  outline: none;
}

.scorebug-team {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  line-height: 1.2;
}

.scorebug-team img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 auto;
}

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

.scorebug-abbr {
  color: var(--text-light, #F4F4F4);
  font-family: var(--font-display, 'Barlow Condensed', sans-serif);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scorebug-score {
  color: var(--pure-white, #FFFFFF);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.scorebug-team.is-loser .scorebug-abbr,
.scorebug-team.is-loser .scorebug-score {
  opacity: 0.5;
  font-weight: 600;
}

.scorebug-status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  color: var(--off-white, #eeeded);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.scorebug-status.is-live {
  color: var(--bright-orange, #FFA515);
  font-weight: 700;
}

.scorebug-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-orange, #EA4E3D);
  flex: 0 0 auto;
  box-shadow: 0 0 0 0 rgba(234, 78, 61, 0.7);
  animation: scorebugPulse 1.8s infinite;
}

@keyframes scorebugPulse {
  0% { box-shadow: 0 0 0 0 rgba(234, 78, 61, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(234, 78, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(234, 78, 61, 0); }
}

.scorebug-network {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--off-white, #eeeded);
  background: var(--bg-card, #161d2e);
  border-radius: 2px;
  padding: 1px 4px;
}

.scorebug-nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 26px;
  display: none;
  align-items: center;
  justify-content: center;
  border: none;
  background: linear-gradient(to right, var(--bg-dark, #0a0f1a) 45%, transparent);
  color: var(--bright-orange, #FFA515);
  font-size: 15px;
  cursor: pointer;
  z-index: 2;
}

.scorebug-nav.is-visible {
  display: flex;
}

.scorebug-nav-prev {
  left: 0;
}

.scorebug-nav-next {
  right: 0;
  background: linear-gradient(to left, var(--bg-dark, #0a0f1a) 45%, transparent);
}

.scorebug-empty {
  padding: 0 14px;
  display: flex;
  align-items: center;
  color: var(--charcoal, #606060);
  font-size: 0.75rem;
}

@media (max-width: 600px) {
  .scorebug-game {
    width: 108px;
    padding: 6px 8px;
  }
}