/* ── Season Progress Bar ────────────────────────────────────────────────── */

#season-progress {
  position: absolute;
  left: 14px;
  top: 80px;
  bottom: 40px;
  z-index: 500;
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: thin;                       /* Firefox — visible thin scrollbar on desktop */
  scrollbar-color: var(--border) transparent;   /* Firefox thumb/track colors */
  pointer-events: auto;
  transition: opacity 0.3s ease;
}

/* Desktop-only: flips the scrollbar to the left edge of this container.
   Scoped to desktop so mobile's layout/alignment stays completely
   untouched — this rule and its content-reset never apply below 769px. */

@media (min-width: 769px) {
  #season-progress {
    direction: rtl;
    align-items: flex-end; /* flex-start/flex-end swap meaning under rtl —
                               this restores true left-flush alignment for
                               every row, regardless of label width */
  }

  #season-progress > * {
    direction: ltr; /* restore normal left-to-right layout for the actual content */
  }
}


#season-progress::-webkit-scrollbar {
  width: 4px; /* Chrome/Safari/Opera — visible thin scrollbar on desktop */
}

#season-progress::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}




.progress-node {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 20px;
}

/* ── Dots ───────────────────────────────────────────────────────────────── */
.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.3s ease;
}



.progress-dot.complete {
  background: #e74c3c; /* matches status-past marker ring */
}

.progress-dot.live {
  background: var(--live-color);
  box-shadow: 0 0 0 3px rgba(0,200,83,0.2);
  animation: progressGlow 2s ease-in-out infinite;
}

.progress-dot.upcoming {
  background: #f5a623; /* matches status-upcoming marker ring */
}

.progress-dot.cancelled {
  background: transparent;
  border: 2px dashed #9b59b6; /* matches status-cancelled marker ring */
}



body.light-theme .progress-dot.upcoming {
  border-color: rgba(0,0,0,0.15);
}

body.light-theme .progress-dot.cancelled {
  border-color: rgba(0,0,0,0.15);
}

@keyframes progressGlow {
  0%,100% { box-shadow: 0 0 0 3px rgba(0,200,83,0.2); }
  50%      { box-shadow: 0 0 0 6px rgba(0,200,83,0.45); }
}

/* ── Labels ─────────────────────────────────────────────────────────────── */
.progress-label {
  font-size: 0.55rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
  line-height: 1;
}



.progress-label.complete  { color: #e74c3c; }
.progress-label.live      { color: var(--live-color); }
.progress-label.upcoming  { color: #f5a623; }
.progress-label.cancelled {
  color: #9b59b6;
  text-decoration: line-through;
}

body.light-theme .progress-label.complete  {
  color: #e74c3c;
  text-shadow: 0 1px 3px rgba(255,255,255,0.7);
}
body.light-theme .progress-label.live      {
  color: var(--live-color);
  text-shadow: 0 1px 3px rgba(255,255,255,0.7);
}
body.light-theme .progress-label.upcoming  {
  color: #f5a623;
  text-shadow: 0 1px 3px rgba(255,255,255,0.7);
}
body.light-theme .progress-label.cancelled {
  color: #9b59b6;
  text-shadow: 0 1px 3px rgba(255,255,255,0.7);
}



/* ── Connector lines ────────────────────────────────────────────────────── */
.progress-line {
  width: 2px;
  height: 12px;
  margin-left: 3px;
  border-radius: 2px;
  transition: background 0.3s ease;
}



.progress-line.complete { background: #e74c3c; }



.progress-line.upcoming { background: rgba(255,255,255,0.1); }

body.light-theme .progress-line.upcoming {
  background: rgba(0,0,0,0.08);
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */




@media (max-width: 768px) {
  #season-progress {
    top: 60px;
    left: 10px;
    bottom: 20px;
    scrollbar-width: none; /* hidden on mobile — touch/drag scroll still works fully */
  }

  #season-progress::-webkit-scrollbar {
    display: none;
  }  


  .progress-dot {
    width: 6px;
    height: 6px;
  }

  .progress-label {
    font-size: 0.48rem;
  }

  .progress-line {
    height: 10px;
    margin-left: 2px;
  }

  .progress-row {
    height: 16px;
  }
}


/* ── Route animation sync ─────────────────────────────────────────────── */
.progress-dot-pulse {
  animation: progressDotPulse 0.8s ease-out;
}

@keyframes progressDotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,255,255,0.65); transform: scale(1); }
  40%  { box-shadow: 0 0 0 8px rgba(255,255,255,0);   transform: scale(1.6); }
  100% { box-shadow: 0 0 0 0 rgba(255,255,255,0);     transform: scale(1); }
}