* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
#map { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }

.toast {
  position: fixed;
  top: 12px; left: 50%; transform: translateX(-50%);
  z-index: 1000;
  background: rgba(20, 20, 20, 0.88); color: #fff;
  padding: 10px 16px; border-radius: 8px;
  font: 14px/1.4 system-ui, sans-serif;
  max-width: 90vw; text-align: center; cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.toast.hidden { display: none; }

.refresh-btn {
  position: fixed;
  right: 14px; bottom: 84px;
  z-index: 1000;
  width: 48px; height: 48px;
  border: none; border-radius: 50%;
  background: #fff; color: #1976d2;
  font-size: 26px; line-height: 48px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  cursor: pointer;
}
.refresh-btn:active { background: #eee; }

.controls {
  position: fixed;
  left: 12px; right: 12px; bottom: 14px;
  z-index: 1000;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,0.92);
  padding: 10px 14px; border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
.play-btn {
  flex: none;
  width: 44px; height: 44px;
  border: none; border-radius: 50%;
  background: #1976d2; color: #fff;
  font-size: 18px; cursor: pointer;
}
.play-btn:active { background: #145ea8; }
.timeline-wrap { flex: 1; display: flex; flex-direction: column; }
.timeline { width: 100%; height: 36px; cursor: pointer; }
.timeline-axis {
  display: flex; justify-content: space-between;
  margin-top: 2px; padding: 0 2px;
  font: 11px/1.2 system-ui, sans-serif; color: #666;
}
.frame-label {
  flex: none; min-width: 72px; text-align: right;
  font: 14px/1.2 system-ui, sans-serif; color: #222;
}

@media (max-width: 480px) {
  .frame-label { min-width: 64px; font-size: 13px; }
  .refresh-btn { bottom: 92px; }
}
