#timeline {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: transparent;
  padding: 20px;
  box-sizing: border-box; /* width 100% plus padding used to overflow the viewport */
  pointer-events: none;
}

/* Only the buttons take the pointer. The label and control rows span the full width, and
   used to swallow clicks meant for the sidebar switchers and the globe behind them. */
#timeline button {
  pointer-events: auto;
}

#timelineLabel {
  text-align: center;
  font-size: 24px;
  font-weight: 200;
  margin-bottom: 15px;
  color: #FFFFFF;
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  letter-spacing: 2px;
}

#currentYear,
#currentSeason {
  color: #FFFFFF;
}

#timelineControls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
}

.timeline-btn {
  padding: 12px 16px;
  border: none;
  border-radius: 50%;
  background-color: transparent;
  color: #FFFFFF;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s;
  min-width: 50px;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-btn i {
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
}

.timeline-btn:hover:not(:disabled) {
  transform: scale(1.2);
  color: #FFFFFF;
}

.timeline-btn:disabled {
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
}

.timeline-btn:disabled i {
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.15));
}

.timeline-btn.step-btn {
  font-size: 24px;
  padding: 10px 14px;
  min-width: 45px;
  min-height: 45px;
}

.timeline-btn.play-btn {
  font-size: 22px;
  min-width: 50px;
  min-height: 50px;
}

.timeline-btn.play-btn.active {
  color: #FFFFFF;
  animation: pulse 1s infinite;
}

.timeline-btn.pause-btn {
  font-size: 22px;
  min-width: 50px;
  min-height: 50px;
}

/* One-line keyboard hint under the controls: quiet until you look for it */
#timelineHint {
  margin-top: 6px;
  text-align: center;
  font-size: 10.5px;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.32);
  user-select: none;
}
#timelineHint kbd {
  display: inline-block;
  min-width: 10px;
  padding: 0 4px;
  margin: 0 1px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  font-family: inherit;
  font-size: 9.5px;
  line-height: 14px;
  color: rgba(255, 255, 255, 0.5);
}

/* Touch screens have no keyboard, so the hint is noise there */
@media (hover: none), (max-width: 820px) {
  #timelineHint { display: none; }
}

@media (max-width: 820px) {
  #timeline { padding: 12px 12px 16px; }
  #timelineLabel { font-size: 20px; margin-bottom: 8px; gap: 12px; }
}

@media (max-width: 480px) {
  #timelineControls { gap: 2px; }
  .timeline-btn,
  .timeline-btn.play-btn,
  .timeline-btn.pause-btn { min-width: 44px; min-height: 44px; padding: 8px 10px; font-size: 19px; }
  .timeline-btn.step-btn { min-width: 44px; min-height: 44px; padding: 8px 10px; font-size: 20px; }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.2));
  }
  50% {
    transform: scale(1.1);
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.3));
  }
}
